Maker.io main logo

Door Alarm using Atmosphere IoT Studio

2019-09-18 | By KELSIE

License: None

This project demonstrates how to create a simple door alarm using Atmosphere IoT Studio and components from Digi-Key.  

Required Hardware:
F8075-ND Littelfuse Reed Sensor
57145-000-ND Littelfuse Magnet
AC164160-ND Microchip AVR-IoT
1125-1193-ND LED
1.0KQBK-ND Resistor
BKGS-830-ND Breadboard
377-2093-ND Jumper wires 

Hardware Setup
Connect the PWM pin on the AVR-IoT to one wire of the Littelfuse reed sensor.
Connect the other wire from the Littelfuse reed sensor to one leg of the resistor. 
Connect the other leg of the resistor to the negative leg of the LED. 
Connect the positive leg of the LED to the 3.3V pin on the AVR-IoT. 

 

schematic

Atmosphere IoT Studio Software

Atmosphere IoT Studio is a cloud based programming software that allows the user to develop a prototype in minutes. No code needs to be written as this is a drag and drop system.

The first step is to add interval and GPIO blocks.

Code

Next, click on the interval element.  Make sure the GPIO ability is set to toggle. 

interval

Choose the GPIOPin element. Make sure the variables look the same as the picture below.  GPIO

Compile the program.

 Compile

Make sure your board is plugged into your computers USB port and the AVR-IoT micro USB port. 

Click program firmware. 

Program firmware

It will download as a .hex file. 

hex file

Drag and drop this to your board, which will show up as curiosity.  

Curiosity

Wait for the program to finish downloading. 

Download

Your project should now be operable.  When you put the magnet next to the Littelfuse sensor, the LED should blink (this is the door closed).  When you remove the magnet the light will stop blinking. A sound device could be used instead of, or with the light, but being in an office building I elected to stick with just the light.  

制造商零件编号 59145-1-T-02-F
SENSOR REED SW SPST-NO W LEADS
Littelfuse Inc.
制造商零件编号 57145-000
MAGNET 1.125"L X 0.259"W PLASTIC
Littelfuse Inc.
制造商零件编号 AC164160
AVR-IOT WG GOOGLE CLOUD EVAL BRD
Microchip Technology
制造商零件编号 MT5470E-UR
LED RED DIFFUSED 5MM OVAL T/H
Marktech Optoelectronics
制造商零件编号 CFR-25JB-52-1K
RES 1K OHM 5% 1/4W AXIAL
YAGEO
制造商零件编号 GS-830
BREADBRD TERM STRIP 6.50X2.13"
Global Specialties
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum