Arduino Home Security System
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
AndreeaC 3 years ago
marawan.mahmoud 4 years ago
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.
barzillialloyd 4 years ago
marawan.mahmoud 4 years ago
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?
barzillialloyd 4 years ago
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
marawan.mahmoud 4 years ago
MithleshJ 5 years ago
barzillialloyd 5 years ago
MithleshJ 5 years ago
MithleshJ 5 years ago
MithleshJ 5 years ago
maher alahalki 5 years ago
yashporiya96 5 years ago
AmnaL 5 years ago
Here is my gmail
lodhiamna346@gmail.com
MyRulez 5 years ago
dagra9252 5 years ago
mindoba 5 years ago
vishalsolanki687 5 years ago
vishalsolanki687@gmail.com
barzillialloyd 5 years ago
vishalsolanki687 5 years ago