Arduino Home Security System

by barzillialloyd in Circuits > Arduino

49221 Views, 64 Favorites, 0 Comments

Arduino Home Security System

01a280730c79c2009798259a5197fbb8443973d6ba.jpg
Photo 6.jpg

This a Home Security System using Arduino Mega 2560, which will trigger alarm when any door is opened or movement detected in the room when the system is activated. Its a nice project for anyone in final year in the university. you can upgrade it even much better. will be here to help. Have fun!!

Items Needed

01c589cadb8accf28fbf3e36d3dde9dce202aae1ab.jpg
01eb27e62a915dae53be846b39d9f56b55d4d338cf.jpg
01b06b66553266958aac7a2a360dbfe0f99e9ebc77.jpg
019e6bd548a5448442c35d0b1ba8aeec750544d31c.jpg
013b61078bb072e2871efd5be262095258338058f0.jpg
PIR.jpg
0188c2d48d4a78d406f47327a31147535a31ff8a48.jpg
018417087aea5f46d1aa42f7744d8b89183d004057.jpg
017d1a7a502e508ca147cb7df44d1ab8fbee6e9419.jpg
khhj.jpg
s-l225.jpg
ftyi.jpg
images.jpg

the items needed are shown in the pictures, not forgetting the camera, you can use a dashcam from the ones use in a car. you can also add IP camera to broadcast live videos online.

all this components can be purchased cheap on eBay

> Arduino Mega 2560 is the main brain for the system

> Arduino Uno is for the lights in the house

> keypad for entering pin to activate and de-activate the system

>breadboard for the components and connection

>Servo for the movement of the camera with respect to the sensor or motion detected

>PIR motion sensor for the rooms to detect any movement

> 20X4 LCD display screen for display of the results and indicating the location of the motion detected, alarm status etc

>Magnetic Door rid switch, this is attached to the doors to detect when door is open or closed

> buzzer for the alarm

> Jumper wires for connection

>DS 1305 for interrupt input

>RGB led

>camera

> 1KOhm resistorsX4

>4.7KOhm potentiometers X2

>Relay to control camera on and off status and the LED if you using 12V LEDs if not you can choose to ignore the relay and power up the camera with your laptop and any low voltage LED's with 3V-5V can power up with the Arduino..

this devices will be connected using the circuit diagram shown in next stage.

Circuit Diagrams of the Connection

ftgt.png
Senior Project  Schematic - Final Design_bb.jpg
wrgw.png

With the circuit diagram the circuit creation begins following the pattern arranged on the diagram.

I must say that this isn't for beginners new to Arduino and programming in Arduino but can challenge you to learn more as you create it, am here to help every step of the way to help you build and make it better than mine.

Connection of the Devices

yujytjtjtj.jpg
0154b7a075395996d1012fc2c130325f8b293f5787.jpg
0145993fdb790a9b6d20f98e56aca0411a4b280701.jpg

First test the LCD screen display with the short code. test the components functionality with code as you build along to solve error problems and avoid a system that dosn't work. a complete system with error can be hard to solve if it was handled step-by-step. most of the problem that will arise are due to either wrong connection, code error or defective component used. be sure to watch out for those alone the way

NB: remember to attach 1KOhm resistor to the positive leads of the PIR sensor to act as pull-up resistor.

Build Your House Model

xsfb.png
IMG_1288.JPG
IMG_1295.JPG
IMG_1305.JPG
01f8041972656ea8b6ac1d01fca0120de9cd0b96c3.jpg
0196d3ba2f181ec57e4e6325bb0bca3f9059ba48da.jpg

the model depends on how you want it to look like, chose a design and build, that will help to test the device in a real-time situation. i used plywood at first, and later tried it with cardboard paper. Any can be great for the job.

it doesn't matter the compartments you choose to build, if you build 3 bedrooms, you will need 3 PIR sensors and an additional code which is similar to the others but different pin-outs and it will still work great. you can also have a garage or make it more complex.

the roof i used a cardboard and cut out a print of patterns from A4 paper.

Assembly Components Into the Model House

01f086562c5493509b522ccd46de3f9e718e10e34f.jpg
013a651f836fba0145ebdbaac28841eca5946e598d.jpg
019cef9ca451eb464df24442b20f5050d2b82ca3e1.jpg
Photo 6.jpg

The Magnetic door rid's go behind the front door and backdoor, while the PIR sensors go in the rooms, label the rooms as bedroom 1 and bedroom 2 or 3 if you chose to add more.

Now perform a test on the servo's operation, be sure its moving the right direction and angle required. you will have to update the code if your model house isn't the exact shape and size as mine. That's just to change the position in the code.

Final Phase

01d808775af9024252e06b81c1e1d4eb347dbe9337.jpg
012cc45835afd55381dd2f50efca413aa8226c7dc2.jpg
01a280730c79c2009798259a5197fbb8443973d6ba.jpg
0149cac67f4194baf8c829ff34b3a8751b10f9a0ce.jpg
0151431900c9a4dadc67db79e3640344ecf1a281cf.jpg
01d2af4621ff77c29723fddef866d1c031c842861a.jpg

Put all stuffs together and give it one more trial. each door opening should trigger the alarm and the screen displays which door is opened. any motion in the rooms should also trigger the alarm and displayed onscreen the point of movement.

attached is the code!!

attac

HAVE FUN!!!!

Code and a Short Video I Made Before Completing This Project

Advance Arduino Home Security

Attached is a short video during the assembling testing and the code. hope this inspires you to do more and better. have fun. am here if you face any challenges...Adios!!