Simple Arduino Wireless Burglar Alarm

by HLModTech in Circuits > Arduino

15731 Views, 205 Favorites, 0 Comments

Simple Arduino Wireless Burglar Alarm

mini wireless burglar.jpg
2015-04-18 10.57.20.jpg
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
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

Put the parts in place as shown

Attach the Main Components

2015-04-19 11.23.39.jpg
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

Add wires for GND and Power

Motion Sensor

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
Upload the transmitter code - Step 6

You will need to have the virtual wire library available for this project. You can download it here.

Virtual Wire Library

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
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

Wire it up as the movie shows.

Add the Buzzer

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

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

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
2015-04-19 11.23.18.jpg
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. =)