Arduino Wireless Home Security System
Arduino Wireless Home Security System
Table of Contents
Step 2: TRANSMITTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Step 4: RECEIVER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Step 5: SOFTWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Author:deba168 OpenGreenEnergy
I love to make things.I believe in ""IF YOU TRY YOU MIGHT,IF YOU DON'T YOU WON'T ""
1. Few years ago my friend's new bike was stolen from the parking premises of our apartment.
3. One of my friend always worried for his new born baby when sleeping on a bed but no one is there to monitor him.
By modifying few things in my device you can solve all these problems very easily.
My device uses a PIR motion sensor to detect the human motion and this information is transmitted without wire by using a RF transmitter-receiver module to give some
sort of alert.I choose a RF module for wire less communication because compared to the existing wireless systems like blue tooth,XBee or WiFi ,it is user friendly and
very cheap.You can get it from eBay @ less than $ 2.
You could use IR, but that has a limited range and can only work within a line of sight of the receiver.But using the cheap RF module we can communicate within the
range of around 100m.
At the end I will give you few tips to reduce the power consumption.
1.TRANSMITTER : To sense the human motion and transmit the data to receiver
2. RECEIVER : Receive the data from transmitter and activate alarm system and camera or sending a sms etc
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Step 1: PARTS AND TOOLS REQUIRED
1. ARDUINO UNO/ARDUINO MINI/ARDUINO NANO or similar board (Tx)
4. PIR sensor
5. Buzzer
6. LED
8. Bread Board
9. Jumper Wires
12.Switches
TOOLS REQUIRED :
1.Hobby Knife
2.Glue Gun
3.Soldering Iron
5.Tin Snips
You can buy the items very cheaply from eBay .These are links from where I have bought my parts.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Step 2: TRANSMITTER
The transmitter is consists of
Passive infrared sensors work by measuring incoming infrared from human or animal. They do not emit energy themselves, which is why they are called "passive".
Humans and animals both release infrared energy. Passive infrared sensors(sometimes called pyro electric detectors) detect this energy and give a signal to the
ARDUINO.
For transmitter I used a Arduino Nano board to reduced the cost. Of course your Arduino Uno also works fine.You can also use a Arduino mini Pro which cheaper than
nano.As now I do not have a FTDI module to program the mini board I choose the nano board.
Before going to make the entire transmitter module check the PIR sensor and have a fun.
vcc -----> 5v
Out ........> D2
Before uploading the code set the correct board and serial port in the Arduino IDE. Then upload the sketch given bellow.
In the software part I attached the pics for setting the board and serial port .Just check it.
When there is motion in front of the sensor the LED will glow.You can see the message also by opening your serial monitor.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Image Notes
1. picture taken from adafruit.com
File Downloads
Connect the VCC pin to the 5V pin of the Arduino board that you are using (In my case it is Nano).
Connect the data pin to the pin number 12 of the Arduino board.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Image Notes
1. RF Transmitter used in this schematic is not same as what exactly I used.It is
just shown to understand the wiring.
Step 4: RECEIVER
The Receiver is consists of
2. Arduino to process the data from RF Tx and give an out put (alarm,sms,email etc)
Connect the VCC pin to the 5V pin of the Arduino board that you are using (In my case it is Uno).
Connect the data pin to the pin number 12 of the Arduino board.
Image Notes
1. RF Receiver used in this schematic is not same as what exactly I used.It is just
shown to understand the wiring.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Step 5: SOFTWARE
The software is wholly depends on a virtual wire library.So first download it. Click here to download.
After downloading extract the folder and then place it in the Arduino library folder.
Before going to upload the sketch to the transmitter board, you have to set few things in the IDE
2.Serial Port -> COM XX (check the com port in which your device is connected )
After setting the above things,down the code wireless_tx and upload it.
2.Serial Port -> COM XX (check the com port in which your device is connected)
After setting the above things,down the code wireless_rx and upload it.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
File Downloads
wireless_tx_code.txt (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'wireless_tx_code.txt']
Wireless_rx_code.txt (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Wireless_rx_code.txt']
Step 6: BREAD BOARD TEST
After uploading the code to both transmitter and receiver board ,now it is time to check whether every thing works correctly or not.
Provide external power (battery ) to the both the board.( positive terminal goes to Vin )
If the buzzer in the receiver board starts to make noise then every thing works fine.
Now it is time to make a portable device for practical use.In the next two steps I will show you how to make a beautiful gadget for your home security.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Step 7: MAKE THE TRANSMITTER MODULE
Cut header connectors for arduino nano (15 pins 2nos ),PIR sensor (3 pins),RF transmitter (3 pins) and Power (2 pins).I used a tin snips to cut the header.
Place the arduino nano board over the header and connect jumper wires to PIR sensor and RF transmitter.
Make a rectangular hole to insert the power switch and glue it.
Wrap a color paper (black) on the front surface of the enclosure.I made this to hide everything inside the enclosure.
I used scotch mounting pad to fix the perforated board and battery inside the enclosure.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Step 8: MAKE THE RECEIVER MODULE
Bind the mini bread board and arduino uno by a rubber band
Insert buzzer in the circular hole and switch in the rectangular hole.Then glue them.
Place every thing inside.I uses scotch mounting pad to hold the battery and board firmly.
After making the both modules,place the transmitter module to the location where you want to protect.I kept it at our parking place.The receiver module should be placed
inside your room.
Note :Now I am searching for a good single core wire for making the antenna.Whenever I will make it ,I will post the picture.So visit this page again for updates.
As per data sheet the range can be increased by using the antenna.
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Step 9: POWER SUPPLY AND OPTIMIZATION
During the uploading of code,the board is powered by USB cable but when ever you want to use it in the real world,you need an external power supply.it is usually
impractical to run long power cables out to the sensor’s location.So for external power supply battery is the best option I think.There are several types of battery exist in
the market.So choose according to your choice.In this project I used 9V battery.A high capacity battery pack can be used for longer life.
Connecting a 9V battery directly to the arduino board is some what tricky.Connect the positive terminal of the battery to the Vin pin of the arduino and negative terminal of
the battery to the GND pin of the arduino. After connecting the battery, I measured the voltage across 5v and GND pin it is 4.97v which is safe for our operation.
How many days you can run your system by using a 9V battery ? Hardly 2 to 3 days.The main power consuming element in the board is led in the pin 13 and the voltage
regulator.So how can you run this system for a month or year by using a smaller battery pack ??All these possible by using some hardware and software.
Power Optimization
Your module will run when the voltage level is sufficient. When the voltage in the pack drops below a certain threshold, the sensor system shuts down, even though there
is still some remaining “juice” in the battery cells.
If your transmitter module is exposed to sunlight then I think you are lucky.How ??
Because you can use a small solar panel to charge the battery pack.Though the amount of sunlight is a great factor but using a boost converter solved all these
problems.
2. APPLIANCES ON/OFF
Use a camera to take pictures when there is a motion and send it to your email.This can be used to monitor your sleeping baby :)
You can send sms to your mobile when there is a motion.Read the following article to get some idea.
You can read the following article to make email sending motion detector .
email-sending-movement-detector
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/
Related Instructables
Anti-Halloween
Motion Tracker House by
Arduino PIR with PIRs, randofo How to make an
Smart
Motion Sensor Arduino and a alarm system Arduino
home with
arduino and by MakerSpark Servo by JimRD with Arduino by controlled lights
Industries jackbell16 by Blaneparker
jubito (video) by
jambel
Advertisements
Comments
http://www.instructables.com/id/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/