Basic Level     Skills: Not specified    
Author email
[email protected]


Microcontroller Based Home Security System

Home security system is the best burglar deterrent you can have. Many people don't think about security at home until it is too late and they have become victims. The prime concern of this project is to provide total security. This microcontroller based home security with password door lock system feature can also perform day and night detection, laser beam monitoring system for windows, and magnetic monitoring for doors. Aside of providing total security, this project aims to utilize the homemade circuitry and build a low cost integrated home security system.

The system includes alarm system. Hence the security system will sound an alert when there is an attempt of break-in. The system is digital. It also incorporated a 7 segment display with a 4x3 keypad.

Home security system prototype make use of the 20pin At89c2051 microcontroller. The user is required to enter 5 digit pin to activate or deactivate the door lock security. The " # " serves as an enter key and The backspace by pressing " * " is implemented so that when the user enters a wrong password, this keys can be used to delete the previous entered pin. Windows and doors are monitored by laser beam and magnetic door sensor. If the beam and the magnetic door sensor get interrupted for a possible break-in, hence an alarm will sound and an array of light will blink.

This project is capable of light sensing using Light dependent resistor (LDR) and uses digital input output logic and analog information process. The LDR is attached to a voltage divider circuitry. By using Kirchhoff’s law the voltage obtained and which we can use to measure the level of light. As result the system will automatically trigger the lights on during night and off during day time.

Here is a working demo of the project:


2.43 MB





James Luther
12 Jun 2014: 16:42 PM
I downloaded the rar file but when i write hex in mcu_2 for door look in mcu(AT89C2051) it gives error while verifying."Verify failed at Byte 2 ".
But the Hex for mcu1 sensor writes and verify succesfully after programming.

Please help with the mcu_2 door lock hex
13 Jun 2014: 10:40 AM
@James, can you please try with the newer hex file. Actually the hex file inside is generated from unregistered version of keil. so file does not suits well for AT89C2051.
15 Oct 2014: 15:33 PM
Where is the newer hex file you are talking about?
15 Oct 2014: 18:19 PM
@senyora, its already updated in the zip file.
16 Oct 2014: 13:28 PM
Thankyou so much!
19 Oct 2014: 09:31 AM
Is there something wrong in the program(hexfile) ? It doesn't work.
21 Mar 2015: 20:56 PM
how can i check the hex code whether it is correct or not?
plzzzzzzz help me..
23 Mar 2015: 04:31 AM
@Arush, Well you need to test it or simulate it for better idea.
23 Mar 2015: 18:21 PM
I have the C code of the project 'GSM based home security' bt when i ran this code on keil it shows some error but i did't able to detect the error and i also got a hex code bt dont knw wether it is correct or not ...What can i do to get the correct hex code so that i can make my final year project....plzzzzz help me
29 Mar 2015: 19:28 PM
@Arush, please post the problem/question in forum. Do mention where you got the project from.
03 Apr 2015: 09:29 AM
Sir i have this code whr i am getting some error ..Can you help me regarding this?? plzzz
thank you
03 Apr 2015: 11:29 AM
@Arush, This is not the place to ask question. Please create a new thread. just a thought change the include path as follows:
11 Aug 2015: 18:40 PM
do you have coding at MPLAB
(Required; Min length 5)
(Required; will not be displayed)


Wed Oct 26 2016, 08:23 AM
is it possible to completly get the robot running from java code
Sun Oct 23 2016, 05:50 PM
mamata thakur
plz send full mini project report for ic 741&ic 555 tester
Wed Oct 19 2016, 03:30 PM
can you provide an explanation for the inverter 8051 code and how it works
Sat Oct 15 2016, 12:15 AM
@snaya. Create a thread in the 8051 forum for your questions
Fri Oct 14 2016, 10:00 AM
i m going to make a project with 8051and the name is scrolling led message display .now i wanna ask so many of questions.may be u can help me .so help me out
Fri Sep 30 2016, 10:40 AM
plz I want code for adc interfacing with8051
Sun Sep 25 2016, 04:41 AM
hi sir, could you help me regarding simple multiplication calculator?it should be include with buzzer. i use dragonplus. please
Sat Sep 24 2016, 05:49 PM
@Rus Ans .. what project ?
Sat Sep 24 2016, 05:48 PM
@engr1931 depends on type of scanner
Sat Sep 24 2016, 03:07 PM
Is it possible to send data from 2 barcode scanner to pc using serial port using 8051?



Thu Oct 27 2016, 01:54 PM
[email protected]
Fri Oct 21 2016, 10:35 PM
Sat Oct 15 2016, 09:40 AM
Wed Oct 05 2016, 08:16 AM
Mon Oct 03 2016, 07:37 PM
Thu Sep 29 2016, 06:31 AM
Thu Sep 08 2016, 06:28 PM
Sat Aug 20 2016, 01:44 PM


Guests: 23, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37787
Newest member: ozancakiroglu
Forum Activity
Pratik_Suthar Avatar
Posted By Pratik_Suthar
Thu Oct 13 2016, 12:39 PM
@martin the HEX file provided in the project is no...
ajay_bhargav Avatar
Posted By ajay_bhargav
Thu Oct 06 2016, 06:15 AM
Hi Phil, Do you want to add this to existing proje...
ajay_bhargav Avatar
Posted By ajay_bhargav
Thu Oct 06 2016, 06:13 AM
CE should be high when you go for reading mode/wai...
ajay_bhargav Avatar
Posted By ajay_bhargav
Thu Oct 06 2016, 06:03 AM
You can also use ESP8266 with its SDK to write app...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Oct 03 2016, 11:15 PM
This is an old thread and the links no longer work...
martinsnc115877 Avatar
Posted By martinsnc115877
Wed Sep 14 2016, 12:51 PM
sir, i did your led scrolling mass display, and it...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Sep 09 2016, 11:45 PM
The Hex file for this project is a bit too big for...
rajavarmanslr Avatar
Posted By rajavarmanslr
Thu Aug 18 2016, 01:40 PM
I have two 8051 that interfaces with nRF24l01. One...
rajavarmanslr Avatar
Posted By rajavarmanslr
Thu Aug 18 2016, 12:31 PM
I have two 8051 that interfaces with nRF24l01. One...