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)


Tue Oct 13 2015, 06:08 AM
Can anyone please help me solve these problems?
Tue Oct 06 2015, 08:22 AM
HI you looking for ideas or you have solution
Fri Oct 02 2015, 03:39 PM
poojitha: projects on wireless communication between two microcontrollers
Thu Oct 01 2015, 04:38 PM
hey! i wanted to simulate my circit using proteus. i have a sugar cube relay in my circuit....but i dont know which one is that in the device libraries of the software. any help? thankyou.
Tue Sep 29 2015, 09:40 PM
@Michal, that rocket is too heavy for itself and trust is not enough unless afterburners are fed with fuel properly.
Sat Sep 26 2015, 08:19 PM
Hello, its possible to make a amateur rocket with this engine, or something simillar, which be able to flight?
Thu Sep 24 2015, 10:38 AM
Ir Switch sir.
Wed Sep 23 2015, 01:10 AM
@engr1931 which project ?
Tue Sep 22 2015, 11:57 AM
Hello sir, is it ok to use 12.000MHz oscillator in IRswitch, because the requirement written in the post is 11.059MHz. And i use PIC1018 as an Ir receiver
Mon Sep 21 2015, 04:15 PM
Hello sir, your blog is kind of helpful for us especially students. May I know do you have the coding for decimal to binary using proteus 8. My mini project is about to convert decimal to binary just like a calculator. The output is LCD. A bit confusing is the decimal to binary coding on proteus 8. pls help thanks.



Sat Oct 10 2015, 10:49 AM
Tue Oct 06 2015, 01:02 PM
Fri Oct 02 2015, 03:28 PM
Sat Sep 26 2015, 01:26 AM
Fri Sep 25 2015, 10:57 AM
Wed Sep 23 2015, 08:13 PM
Wed Sep 16 2015, 04:55 AM
Mon Sep 14 2015, 03:06 PM


Guests: 58, Members: 0 ...

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

Members: 37699
Newest member: abrahmed
Forum Activity
praveenraoms Avatar
Posted By praveenraoms
Tue Oct 06 2015, 01:06 PM
hi i want to know the code to access the geographi...
sachinmm Avatar
Posted By sachinmm
Wed Sep 30 2015, 08:54 AM
how to used polling method in this?? my code is co...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Sep 29 2015, 09:39 PM
__irq is just compiler directive to wrap IRQ routi...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Sep 29 2015, 09:36 PM
The comment does say the time values as per the th...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Sep 29 2015, 09:33 PM
are you testing this on Proteus? or MplabX simulat...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Sep 29 2015, 09:31 PM
[Topic moved to ARM Development Forum]
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Sep 29 2015, 09:29 PM
start with reading datasheet. SPI interface on LPC...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Sep 29 2015, 09:27 PM
I am not sure you've solved it or not but "USARTRe...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Sep 29 2015, 06:31 PM
i am confused in "__irq" it is uesd??sachin...
sachinmm Avatar
Posted By sachinmm
Tue Sep 29 2015, 11:11 AM
my I2C.c file=>>/*********************************...