Introduction: Simple Arduino Wireless Burglar Alarm
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.
Step 1: Obtain the Toys.
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
- 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)
Step 2: Attach the Main Parts
Put the parts in place as shown
Step 3: Attach the Main Components
Attach the main parts as shown in the video
Step 4: Power Wires
Add wires for GND and Power
Step 5: Motion Sensor
Attach and wire-up the motion sensor.
Step 6: Load the Code for the Nano - Transmitter
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.
Step 7: Moving on to the Reciever
Use the steps in the movie to add hardware to your breadboard.
Step 8: Add the Wires
Wire it up as the movie shows.
Step 9: Add the Buzzer
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. =)
Step 10: Upload the Code
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.
Step 11: Uh... Good Luck Asking. =)
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.
Step 12: Go Time! =)
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. =)
We have a be nice policy.
Please be positive and constructive.