Password Based Door Lock System Using 8051 Microcontroller
Password Based Door Lock System Using 8051 Microcontroller
ELECTRONICS HUB
P R O J E C T S | T U T O R I A L S
HOME FREE PROJECT CIRCUITS MINI PROJECTS PASSWORD BASED DOOR LOCK SYSTEM USING 8051 MICROCONTROLLER
Contents [hide]
Password Based Door Lock System using 8051 Microcontroller is a simple project where a
secure password will act as a door unlocking system. Traditional lock systems using
mechanical lock and key mechanism are being replaced by new advanced techniques of
locking system. These techniques are an integration of mechanical and electronic devices and
are highly intelligent. One of the prominent features of these innovative lock systems is their
simplicity and high efficiency.
Such an automatic lock system consists of electronic control assembly, which controls the
output load through a password. This output load can be a motor or a lamp or any other
mechanical/electrical load.
Here, we developed an electronic code lock system using 8051 microcontroller (a Password
based Door Lock System using 8051 Microcontroller), which provides control to the actuating
the load. It is a simple embedded system with input from the keyboard and the output being
actuated accordingly.
This system demonstrates a Password based Door Lock System using 8051 Microcontroller,
wherein once the correct code or password is entered, the door is opened and the concerned
person is allowed access to the secured area. Again, if another person arrives, it will ask to
enter the password. If the password is wrong, then door would remain closed, denying access
to the person.
If the entered password is correct, then the system opens the door by rotating door motor and
displays the status of door on LCD. If the password is wrong, then the door is remains closed
and displays PWD is wrong on LCD.
Software Requirements
Keil Vision IDE
Willar Programmer
Proteus (for circuit diagram and simulation)
How to Design Circuit of Password based Door Lock System?
Password based door lock system using 8051 microcontroller circuit design uses five major
components a Microcontroller, an L293D Motor Driver, a DC Motor, a 44 Matrix Keypad and
a 162 LCD. Here, an AT89C52 Microcontroller is used and it is an 8-bit controller. This
controller requires a supply voltage of +5V DC. In order to provide regulated 5V DC voltage to
the controller we need to use 7805 power supply circuit. We can use 9V DC battery or 12V, 1A
adaptor as a power source.
Reset Circuit Design: The reset pin of the microcontroller is kept active till the power supply is
in the specified range and a minimum oscillation level is maintained. In other words to ensure
the supply voltage does not falls below the threshold level of 1.2V and the reset pulse width is
greater than 100ms (recommended for 89C52), we need to select the values of resistor and
capacitor such that RC >=100ms. Hence, we selected a 10K resistor and a 10F electrolytic
capacitor.
Oscillator Circuit Design: An 11.0592MHz crystal oscillator is used to provide external clock
signal to the microcontroller. To ensure smooth operation, we need to connect two ceramic
capacitors in the range of 30pF to 40pF. This crystal oscillator is connected between pin 18
and 19 of the microcontroller. Here, we used two 33pF capacitors.
Interfacing LCD, Keypad and Motor Driver: First, a 10K Potentiometer is connected to the
LCD Displays Contrast Adjust Pin (Pin 3). RS, RW and E of LCD are connected to P3.0, GND and
P3.2 pins respectively. The eight data lines of the LCD are connected to PORT1.
The four ROW pins of the Keypad are connected to P2.0 to P2.3 and the four COLUMN pins of
the Keypad are connected to P2.4 to P2.7 pins respectively. The IN1 and IN2 of (1A and 2A) of
the L293D Motor Driver are connected to PORT0 pins P0.0 and P0.1. Motor is connected
between OUT1 and OUT2 (1Y and 2Y) pins of L293D.
Compilation of Microcontroller Code: Once the circuit is designed and drawn on a piece of
paper, the next step is to write and compile the code. Here, we used the Keil Vision software
to write the program in C language.
Prior to writing the code, general steps needs to be followed like creating a new project and
selecting the target device or the required microcontroller. Once the code is written, we need
to save it with .c extension and then add it to the source file group under the target folder. The
code is then compiled by pressing F7 key.
Once the code is compiled, a hex file is created. In the next step, we use Proteus software to
draw the circuit. The code is dumped into the microcontroller using an external programmer
and Willar Software.
Now the controller compares the entered password with predefined password. If the
password is matched, then the microcontroller makes P0.0 HIGH and P0.1 LOW, so the motor
driver gets the input signals for forward motion of the motor.
As a result, the Door Motor rotates in forward direction to open the door. After a delay of
10seconds, the microcontroller makes P0.0 LOW and P0.1 HIGH, so the motor driver gets the
input signals for reverse motion. As a result, the Door motor rotates in reverse direction to
close the door.
If the password is not matched, then microcontroller maintains both P0.0 and P0.1 LOW.
Hence, the door motor is stationary so that door remains closed.
NOTE: While giving the connections, make sure that there is no common connection between
AC and DC supplies.
Buy Course along with Code: Password Based Door Lock System
Delay using 8051 Stepper Motor Control Interfacing 162 LCD Interfacing DC Motor
Timers using 8051 with 8051 with 8051
Microcontroller Microcontroller
FILED UNDER: 8051 MICROCONTROLLER, ELECTRONICS, EMBEDDED, FREE PROJECT CIRCUITS, MINI PROJECTS
Comments
i need code of this projact Password Based Door Lock System using 8051
Microcontroller:
Reply
Administrator says
APRIL 13, 2014 AT 2:12 PM
Reply
Akash says
FEBRUARY 14, 2016 AT 9:53 AM
Reply
kiffayatkhan says
MAY 18, 2016 AT 3:24 PM
Reply
the code in this article have some error in 12th n 13th line
so could u plz upload correct code n plz send dat code to my mail
i will be bery glad to have dat
Reply
The project coding which you given in this article has one error which I cant able
to resolve..
Please help me to overcome it..
The error is str_lcd: has ANSI style prototype
what is the solution for it please mail it to my email id
Reply
Anusha says
APRIL 12, 2016 AT 1:57 AM
Reply
Reply
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:50 PM
Reply
hiro says
JUNE 6, 2014 AT 11:26 AM
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:51 PM
Project code you can find in the article.
Reply
vishnu says
MARCH 22, 2016 AT 9:26 AM
where it is ?we cant find it in the above Article so could you please post the code
for the project ?
Reply
i need code of this projact Password Based Door Lock System using 8051
Microcontroller:
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:51 PM
Reply
komal says
JANUARY 19, 2016 AT 12:12 AM
Reply
Administrator says
JANUARY 30, 2016 AT 6:06 AM
Reply
solomon says
JUNE 14, 2014 AT 2:41 AM
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:53 PM
Yeah, we do more projects, keep following us, thanks for your support.
Reply
umang says
AUGUST 6, 2014 AT 3:45 PM
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:53 PM
Its FREE.
Reply
a s d kiran says
AUGUST 9, 2014 AT 6:16 AM
pl were i want get the password based door lock systems use spare parts and pcb
Reply
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:55 PM
Yeah you can try to make this project based on above article, all the best.
Reply
Reply
sureka says
AUGUST 25, 2014 AT 2:38 PM
i need this project with assembly language &8051 microcontroller circuit diagram &
apparatus required & report format please send to my email id
[email protected]
Reply
Reply
Hey!
I need the code for the project Password Based Door Lock System using 8051
Microcontroller at the earliest. I would be really greatful to you if you could help me out
with this!
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:56 PM
We have updated project code long back, you may check it in the above article. Thank
you.
Reply
Oldane says
SEPTEMBER 6, 2014 AT 4:12 PM
How do you store the input password in a array variable and compare it?
Reply
prashanth says
OCTOBER 23, 2014 AT 8:31 PM
Reply
Askar says
NOVEMBER 4, 2014 AT 7:30 PM
Hi, I had a quick question regarding the project design to whether or not it will be able to
communicate with the main controller such as the RFM73 transceiver or not. I tried emailing
you at [email protected], but it says this email is invalid.
Reply
Email is not deliver to your id. Please email me the coding in C language.
Thanks.
Reply
H. Ally says
NOVEMBER 19, 2014 AT 9:08 PM
Reply
Administrator says
NOVEMBER 24, 2015 AT 2:00 PM
Most energetic comment for us, we always love your support and cooperation. Thank
you so much for your feedback.
Reply
suppose the password forget there is no option for operate the door lock system why..? i
mean why cant be reset the password
Reply
Alex says
NOVEMBER 14, 2015 AT 9:19 AM
Reply
Alex says
NOVEMBER 14, 2015 AT 9:20 AM
I need the code for this project as a guideline for university project
Reply
Reply
Samuel says
NOVEMBER 18, 2015 AT 12:51 AM
I would like to receive the code, I have a code written and it compiles fine but there is a
glitch that I am having that I seem to cannot find. This is a project sin school. Thank you
Reply
Reply
Reply
i need code of this projact Password Based Door Lock System using 8051
Microcontroller: in Aurdino formattif any one have plz snd me in my email
[email protected]
Reply
i need code of this projact Password Based Door Lock System using 8051
Microcontroller:..arduino format baseany one have then plz email me
[email protected]
Reply
aivee says
NOVEMBER 18, 2015 AT 9:43 PM
This is really helpful.. Can you give us the code for us to try.
Thank you..
Reply
Reply
Administrator says
NOVEMBER 24, 2015 AT 1:42 PM
Thats a awesome project, many people are showing interest to do this project. All the
best.
Reply
Reply
Need the project code can u plz send me to my email the above code shows corrupted.
Thank u
Reply
i need this project code to learn myself as i wan to specialized in this kind of science , so i
wan to check if there was any something wrong with my assembly code
Reply
Anusha says
JANUARY 2, 2016 AT 6:44 AM
Reply
Sunny says
DECEMBER 6, 2015 AT 3:29 AM
Please I need this project, but I need the code that can help me change the stored
password.
And please admin help me drop some comments that explains the codes so I can be able
to explain during defecne
Reply
shru says
DECEMBER 8, 2015 AT 3:51 AM
i am interested to do this project but can anyone tell me instead of door motor what else
we can use to show that the door is locked or not??
Reply
Reply
ali says
DECEMBER 14, 2015 AT 6:37 AM
Reply
enquhone says
DECEMBER 17, 2015 AT 10:32 AM
Reply
Reply
Rohan says
DECEMBER 23, 2015 AT 8:02 AM
please can you give me the PCB layout and block diagram of this project.
Reply
Reply
shahid amin says
JANUARY 17, 2016 AT 2:13 PM
Reply
Hey I need the code for the project Password Based Door Lock System using 8051
Microcontroller as early as possible. it would great if u do the needful.
Reply
I need the code for this project as early as possible. it would be great if u do the needful
Reply
Actually I want to do a mini project on this topic because I need itplz help me and send
me code Thank you!
Reply
taruna says
JANUARY 26, 2016 AT 11:03 AM
I need code for this project plz m making the same.project for my mini project in college
plzrpy to me asapI need the code ..tysm
Reply
K.bhargavi says
JANUARY 27, 2016 AT 1:06 PM
Useful
Reply
Shreyas says
FEBRUARY 1, 2016 AT 3:26 PM
I am making the same project as I have taken this project as my topic for mini project so
con you please provide the programs.
Reply
Can you please provide me with the assembly level code. I am learning how to use the
hardware and I saw this video on youtube and it seemed like an interesting project and one
which I can learn from. I would be extremely obliged if you could provide me with the
assembly level code.
Reply
I am making the same projectas I have taken this project as my topic for mini project so con
you please provide the programs.
Reply
talib says
FEBRUARY 2, 2016 AT 8:59 PM
Reply
aarti says
FEBRUARY 3, 2016 AT 5:33 AM
Reply
Arpitha says
FEBRUARY 6, 2016 AT 2:54 AM
I need code for ths project as i am doing it as mini project in my colg so plz send me the
code using 8051 microcontroller if it s in arduino format base thn it would be of great help
ty
Reply
ahmed says
FEBRUARY 9, 2016 AT 4:51 AM
i need this project code because i wan to implement my last year graduation project
plz give me the code of this project
Reply
Admin says
FEBRUARY 10, 2016 AT 1:55 AM
Reply
hi i am sandhya .I need project code of this project for my last year project submission. Can
u give me project code ofpassword door lock system using 8085 in assembly language?
Reply
Sampada says
FEBRUARY 11, 2016 AT 10:52 AM
Reply
Hariharan V says
FEBRUARY 16, 2016 AT 11:51 AM
i need the code of door lock password project this is the first time am doing dis first am
going to try the same project
Reply
Anusha says
FEBRUARY 17, 2016 AT 2:08 AM
We have uploaded the codeGo through the article completely..we have provided link
below simulation video
Reply
Chandan says
FEBRUARY 19, 2016 AT 3:44 PM
The project code uploaded by you is not opening after the download please snd us a
original code to replicate your project.
Reply
Anusha says
FEBRUARY 23, 2016 AT 3:26 AM
Reply
shreyas says
FEBRUARY 20, 2016 AT 8:39 AM
Reply
Anusha says
FEBRUARY 23, 2016 AT 3:38 AM
Reply
poovarasi says
FEBRUARY 26, 2016 AT 6:22 AM
Reply
rajlaxmi says
FEBRUARY 27, 2016 AT 2:15 PM
Reply
Admin says
FEBRUARY 29, 2016 AT 2:13 AM
Reply
shanu says
MARCH 3, 2016 AT 12:28 AM
Reply
Admin says
MARCH 3, 2016 AT 1:11 AM
Reply
sir tell me the specification of dc motor that used in password door lock system.
Reply
ajay says
MARCH 8, 2016 AT 1:27 AM
Why that relay is required in the project we can rotate the stepper motor without relay
also?
Reply
Anusha says
MARCH 8, 2016 AT 2:24 AM
Reply
shanu says
MARCH 9, 2016 AT 3:28 PM
Can I get this ic at89c59 with this program burnt on it for password protection door locking
system?
Reply
mukesh says
MARCH 17, 2016 AT 11:01 AM
Reply
prasad says
MARCH 18, 2016 AT 11:44 AM
Reply
Saukhya says
MARCH 21, 2016 AT 12:38 AM
I want assemblylanguage code for this project.And I m not able to find asm file only C file is
there n no asm file..Can u pls mail it to me??or pls re-post the link here again.
Reply
sen says
MARCH 21, 2016 AT 3:27 PM
Reply
ebuka says
MARCH 23, 2016 AT 7:45 AM
please admin. how do i combine the codes in the compiler. this is my final year project
Reply
Anusha says
MARCH 28, 2016 AT 8:53 AM
where is the code ? i cant see it anywhere in the article if its really in the article
then please upload the link.
Reply
arsalanarain says
MARCH 28, 2016 AT 12:04 PM
Help ?
Reply
almaz says
MARCH 31, 2016 AT 11:51 AM
Reply
Unknow says
APRIL 3, 2016 AT 2:20 AM
Reply
Reply
Milouni Desai says
APRIL 7, 2016 AT 5:13 AM
Reply
akhil says
APRIL 9, 2016 AT 8:31 AM
Reply
where i can find the hex file or the programe to commond the microcontroller????
Reply
I am working on this project based on this article but i have a problem with hardware. In
Proteus project works good but when implement on hardware its not working please
guide me admin.
Reply
sahana says
JULY 30, 2016 AT 8:29 AM
Reply
BASHIR ADAM says
FEBRUARY 21, 2017 AT 9:10 AM
PLEASE I NEED THE CODE FOR MICROCONTROLLER BASED LOCK USING COLOUR
SECURITY CODE IF ANY
Reply
rushikesh says
MARCH 20, 2017 AT 11:46 PM
Reply
sir i am enggineering student i have been given this project (PASSWORD BASED LOCK
DOOR SYSTEM) send me the code of this project i will be very grateful to you
my email address: [email protected]
Reply
Anusha says
JULY 7, 2017 AT 4:49 AM
Reply
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
reCAPTCHA
POST COMMENT
ads by media.net
Microcontroller Board
Electronics Hub
YouTube 18K
Electronics Hub
Follow On
Electronics Hub
Suivre
SUBSCRIBE
Delivered by FeedBurner
Electronics Hub
667,246 likes
Microcontroller Board
Lock Systems
Password Sharing
Password Stealer
DC Power Adapter
Variable Resistor
PROJECTS BY CATEGORY
GENERAL
Tutorials
Symbols
Courses
Calculator
Contact
PROJECTS
Electrical
Electronics
Embedded
Power
Robotics
ARM
IOT
PROJECTS
Mini projects
Microcontroller
Aurdino
Solar
Free circuits
Home Automation
TUTORIALS
Capcitors
Resitors
Filters
Diodes
Transistors
TUTORIALS
Amplifiers
IO Devices
Thyristors
DC Circuits
Nummber System
FOLLOW US
Youtube
Google Plus
Twitter