Arduino Home Security System

barzillialloyd 'profile picture'
50K64132

Intro: Arduino Home Security System

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

STEP 1: Items Needed

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.

STEP 2: Circuit Diagrams of the Connection

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.

STEP 3: Connection of the Devices

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.

STEP 4: Build Your House Model

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.

STEP 5: Assembly Components Into the Model House

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.

STEP 6: Final Phase

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

STEP 7: Code and a Short Video I Made Before Completing This Project


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

101 Comments

Hello,do you have any idea if I can add a gsm module and build an interface for this?
Hello sir.
I am currently trying to implement this system but whenever I enter the password it says "system deactivated". I dont know why. Do you have any idea?
Note:The only difference i did is that I'm using a 16x2 LCD but I dont think this is the reason of the problem.
Hi, yeah the LCD don't matter, just update in the code. The problem you having seems to be same others had and we solved them if you read through the comments. Try re-install the code again and try, if that don't work check all you connection is right and to be sure somethings isn't shorting out. Thank you
Thanks for your reply.
I made sure nothing is shorting and modified the LCD part in the code and everything works execpt the part where it activates the system.
The system does not activate and automatically de-activates when I eneter the password. I have read the comments and done all the solutions you gave and still doesnt work. By the way... im only using an arduino mega because Im not using the bluetooth feature in my version. Does that make a difference? Is the link above for the code the latest?
Arduino Mega alone is fine.
Sorry to hear you still having issues.
The code has not been updated and I've not had time to look at it ever since i made it. Since problem persist i'll suggest trying to trace whats causing the conflict by fault-finding, first try disconnecting some components like say the DS1302 and restart device to see if it makes any difference, try with others too and if you locate one, then you can look at the code more closely to be able to correct it.
Thank you
Thanks for your time. I have managed to find whats causing the problem. I found out that there was a magnetic door sensor that was consistently triggering the system. This led to automatically deactivating the system because the moment I entered the password the system is already triggered so it deactivates the system automatically. I modified this part and it worked well. Thanks for your advice though. It is definitely helpful for someone with a similar problem to mine.
Hello sir i made this project but my project doesn't work. My arduino board only transfer power. Sir please help me
Hi Mithlesh, quite a few people had that problem and most has to do with the connection. Pls check all connection match the schematic and download the code again and reinstall and try again. Let me know if that didn’t work. Thank you
Hello sir we are make this project but we are use 16*2 lcd display. When we enter password the system is deactivate. The problem is that the system is not activated
Hello sir we are make this project but we are use 16*2 lcd display. When we enter password the system is deactivate. The problem is that the system is not activated
Hello sir we are make this project but we are use 16*2 lcd display. When we enter password the system is deactivate. The problem is that the system is not activated
how can i upgraded it to make sending message to my phone and creation password and send it also to my phone and close the door when the thief inside
hii so i am doing this project ....so can u send me the proper circuit Diagram (working project Diagram) send me plizzzz.....Email:yashporiya96@gmail.com
I am a final year university student. I want to make a project. We are 5 members in a group. We want to make a dog robot for home security. But our supervisor asked about the modifications in our project. Kindly help us by giving some good ideas. We'll be very thankful to you.
Here is my gmail
lodhiamna346@gmail.com
Halo, can you pls send me the full schematic connection ? I noticed that there's no RTC module connected in your schematic circuit. Here's my email = My_Rulez97@yahoo.com. Thanks.
hey can i have the coad for the porjects so i can do it for my school projects
Hello. can I use keypad 4x4key 12key or 4x4 16 key keyboard?
Sorry what project report are you talking about?
More Comments