Simple Arduino Wireless Burglar Alarm
by HLModTech in Circuits > Arduino
16144 Views, 205 Favorites, 0 Comments
Simple Arduino Wireless Burglar Alarm
![mini wireless burglar.jpg](/proxy/?url=https://content.instructables.com/FO7/NJOJ/I8LGPHIU/FO7NJOJI8LGPHIU.jpg&filename=mini wireless burglar.jpg)
![2015-04-18 10.57.20.jpg](/proxy/?url=https://content.instructables.com/FUT/KNA5/I8LGPHOJ/FUTKNA5I8LGPHOJ.jpg&filename=2015-04-18 10.57.20.jpg)
![2015-04-19 11.23.32.jpg](/proxy/?url=https://content.instructables.com/FEY/RVOP/I8OH04JS/FEYRVOPI8OH04JS.jpg&filename=2015-04-19 11.23.32.jpg)
This project is a modified version of the awesome instructable by deba168. You can view the original here.
I teach an 8th grade tech course, so the training will talk about kits we have in our room... Your tools may vary. I have the lesson cut into very short steps, but that is what I have found works best with my students. The class is essentially self taught as the students work through the modules they have chosen. I have more than 30 areas from them to study, during the 18 weeks they are with me.
If you are interested in seeing what Modular Technology is all about, you can view our website. You can also follow us @HLModTech on Twitter, Instagram and at Facebook.
Obtain the Toys.
![mini wireless burglar.jpg](/proxy/?url=https://content.instructables.com/FO7/NJOJ/I8LGPHIU/FO7NJOJI8LGPHIU.jpg&filename=mini wireless burglar.jpg)
![Arduino Burglar Alarm project - Get your Parts](/proxy/?url=https://content.instructables.com/FZO/J56C/JIKJWKLN/FZOJ56CJIKJWKLN.jpg&filename=Arduino Burglar Alarm project - Get your Parts)
To complete this project you will need 2 arduino boards. I used a nano and a duemilanove for mine. You also need the following
- a pir motion sensor
- a buzzer
- led
- resistor (I use 220 Ohm, but you may use whatever makes your day)
- 2 breadboards
- a wireless transmitting and receiving kit. I obtained mine from miniinthebox as shows in the the picture for less than 2 dollars.
- 2 arduino boards ( I have a duemilanove and a nano)
Attach the Main Parts
![Attach the main parts for the Burglar Alarm - Step 2](/proxy/?url=https://content.instructables.com/F38/U0HG/JIKJWNYQ/F38U0HGJIKJWNYQ.jpg&filename=Attach the main parts for the Burglar Alarm - Step 2)
Put the parts in place as shown
Attach the Main Components
![2015-04-19 11.23.39.jpg](/proxy/?url=https://content.instructables.com/F3R/6W8N/I8OH04K5/F3R6W8NI8OH04K5.jpg&filename=2015-04-19 11.23.39.jpg)
![Time to add Power wires for the Burglar Alarm - Step 3](/proxy/?url=https://content.instructables.com/FBC/4Z4Y/JIKJWO0I/FBC4Z4YJIKJWO0I.jpg&filename=Time to add Power wires for the Burglar Alarm - Step 3)
Attach the main parts as shown in the video
Power Wires
![Add the motion sensor - Step 4](/proxy/?url=https://content.instructables.com/FXP/V5XM/JIKJWO27/FXPV5XMJIKJWO27.jpg&filename=Add the motion sensor - Step 4)
Add wires for GND and Power
Motion Sensor
![Attach pir sensor wires - Step 5](/proxy/?url=https://content.instructables.com/FLV/70ML/JIKJWO8R/FLV70MLJIKJWO8R.jpg&filename=Attach pir sensor wires - Step 5)
Attach and wire-up the motion sensor.
Load the Code for the Nano - Transmitter
![2015-04-19 11.23.13.jpg](/proxy/?url=https://content.instructables.com/F96/AGM5/I8OH04NJ/F96AGM5I8OH04NJ.jpg&filename=2015-04-19 11.23.13.jpg)
![Upload the transmitter code - Step 6](/proxy/?url=https://content.instructables.com/F0P/YQ6X/JIKJWO9T/F0PYQ6XJIKJWO9T.jpg&filename=Upload the transmitter code - Step 6)
You will need to have the virtual wire library available for this project. You can download it here.
If you have not added a library to your Arduino IDE before, this link will take you to a tutorial. It opens in another window, so this will be waiting for you when you return.
My Video shows the transmit code being loaded, since I have already put it on the student PC's... You will have to copy and past it into the Arduino IDE on your own.
Downloads
Moving on to the Reciever
![2015-04-19 11.23.22.jpg](/proxy/?url=https://content.instructables.com/FND/OKWI/I8OH04QJ/FNDOKWII8OH04QJ.jpg&filename=2015-04-19 11.23.22.jpg)
![The Receiver hardware - Step 7](/proxy/?url=https://content.instructables.com/FWF/1775/JIKJWOBN/FWF1775JIKJWOBN.jpg&filename=The Receiver hardware - Step 7)
Use the steps in the movie to add hardware to your breadboard.
Add the Wires
![We Need MORE Power wires for receiver - Step 8](/proxy/?url=https://content.instructables.com/FAO/WK7H/JIKJWOMY/FAOWK7HJIKJWOMY.jpg&filename=We Need MORE Power wires for receiver - Step 8)
Wire it up as the movie shows.
Add the Buzzer
![The buzzer steps - Step 9](/proxy/?url=https://content.instructables.com/FPB/NPEY/JIKJWOKT/FPBNPEYJIKJWOKT.jpg&filename=The buzzer steps - Step 9)
Integrate the buzzer as shown here. I like to note the signal wire for my buzzer because it is nice to be able to instantly unplug it when you get tired of the alarm sound. =)
Upload the Code
![Upload the receiver code - Step 10](/proxy/?url=https://content.instructables.com/FS9/V5MV/JIKJWOGF/FS9V5MVJIKJWOGF.jpg&filename=Upload the receiver code - Step 10)
Once again you must have the virtual wire library installed. It was explained in step 6 above.
My movie also talks about loading the receive code, but you will need to copy and paste it into your IDE.
Downloads
Uh... Good Luck Asking. =)
![Find the juice for power - Step 11](/proxy/?url=https://content.instructables.com/FVB/KE2H/JIKJWODJ/FVBKE2HJIKJWODJ.jpg&filename=Find the juice for power - Step 11)
You can see here that I use phone charging plugs to power our arduino's once they have been programmed. You could also use 9-volt batteries or any other slick system to juice up your creation.
Go Time! =)
![2015-04-19 11.23.53.jpg](/proxy/?url=https://content.instructables.com/FF2/M6XD/I8OH04N2/FF2M6XDI8OH04N2.jpg&filename=2015-04-19 11.23.53.jpg)
![2015-04-19 11.23.18.jpg](/proxy/?url=https://content.instructables.com/F36/5GRE/I8OH04QG/F365GREI8OH04QG.jpg&filename=2015-04-19 11.23.18.jpg)
![Time to Test and Debug - Step 12 of 12](/proxy/?url=https://content.instructables.com/FX5/7DGQ/JIKJWOCK/FX57DGQJIKJWOCK.jpg&filename=Time to Test and Debug - Step 12 of 12)
This is where you either smile, or debug... Good luck.
Remember, the alarm is loud and annoying... If you are building in the morning, disable (unplug) the buzzer so you do not end up with an ornery family. =)