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


Project tested and working perfectly

Digital Lock Using AT89C2051 with LCD and Keypad - Assembly

A Brief Description:
This project is a rewrite of previously made project "Digital Code Lock using keypad and LCD"
I got many requests from student's side who want this project in Assembly language. So i spent some time making this project.

You will find working of this project same as that of original project. Nothing has been changed as such.

Its a simple project with efficient hacking prevention from Brute Force etc. The basic user lock is of 5 Digits and Master Lock is of 10 digits so its not easy for an intruder to break the lock unless you keep the code simple.
The input is taken from a 4x3 Keypad (please see the schematic for more information) and Display the user input on a 2x16 LCD. A pin is assigned as output for activating and deactivating the lock. For demonstration i have connected an LED to that pin.

User Side working:
The user has two options either he/she can use its own 5 digit code or use the default 5 digit code. If user has to do setup his own code, then he has to enter "12345" and press '#'. After this.. controller will ask for 10 Digit master password which is preprogrammed in the controller. Entering master lock, user can enter the new 5 digit code for the lock and press '#' to save it.

Using the Keypad:
Keypad has 12 keys (4x3) starting from 1,2,3,4,5,6,7,8,9,*,0,# (please see the schematic for layout). Numeric keys are used for entering numbers. '*' is used as the Cancel key and '#' is used as the Enter key.

Download File Information:
LCD.asm - Project Code
LCD.hex - Final Hex file
Digital Code Lock Schematic - PDF file of orcad schematic

If any problem Please post in the forum

17.46 kB





30 Oct 2014: 11:54 AM
i want you to help me in a program for interfatcing hex key pad with8051 and then make a digital lock
Kindly guide me as to how to combine the two different programs. thanks
02 Nov 2014: 07:10 AM
Just down the project and go through the code yourself. If you need help, just post a question. You can also look into our tutorial section for keypad tutorial.
24 Apr 2015: 18:24 PM
sir in the above shown program where are you going to dtore new password.
as you have not shown any memory ic
29 Apr 2015: 18:55 PM
@navig, This project does not store password in non-volatile memory. It just stores the password in RAM and if controller resets password also resets. You can add an EEPROM to add saving password to EEPROM.
Muhammad Ahmad
05 May 2016: 11:50 AM
Sir. kindly upload the proteus file. i want to complete schematic diagram. thank you
17 Dec 2017: 16:24 PM
(Required; Min length 5)
(Required; will not be displayed)


Mon Mar 19 2018, 07:33 PM
sorry bedo.. maybe next time
Sun Mar 18 2018, 07:48 AM
Mourya Manojkumar
Please send me circuit diagram and PCB diagram
Thu Mar 01 2018, 05:49 AM
May you please help me with a code for programmable load shedding controlling 4 loads
Sun Feb 25 2018, 08:29 PM
i need of it
Sat Feb 24 2018, 03:35 AM
I want help for digital ic tester
Tue Feb 20 2018, 04:01 PM
Join up.. and post your problem
Mon Feb 19 2018, 11:17 AM
i needs help for my project
Mon Feb 19 2018, 11:16 AM
can i join you guys
Sun Feb 04 2018, 09:38 PM
Hi Dave. Good to see you.
Tue Jan 09 2018, 07:55 PM
It's been a few years since I poked around here - Hi all...



Tue Mar 20 2018, 09:51 AM
Mon Mar 19 2018, 07:48 AM
Fri Mar 16 2018, 10:12 AM
Tue Mar 13 2018, 02:21 PM
Sat Mar 10 2018, 12:09 PM
Fri Mar 09 2018, 06:00 AM
Thu Mar 08 2018, 07:56 AM
Thu Mar 08 2018, 02:57 AM


Guests: 55, Members: 0 ...

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

Members: 37987
Newest member: LAMBO
Forum Activity
bedo123 Avatar
Posted By bedo123
Mon Mar 19 2018, 07:51 AM
guys right now I m in a lab, is there anyone to he...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Mar 17 2018, 09:26 PM
Khadka_Bishal Avatar
Posted By Khadka_Bishal
Fri Mar 16 2018, 11:34 AM
I want to have a delay of 15 microsecond in 8051 u...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Mar 14 2018, 10:46 PM
Thanks a lot for all your help. It's really hard ...
kks Avatar
Posted By kks
Mon Mar 12 2018, 06:54 PM
As i said, it just needed it's own resistor. It's ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Mar 12 2018, 05:07 AM
It isn't faulty, but very dim. I tried it both way...
kks Avatar
Posted By kks
Mon Mar 12 2018, 01:11 AM
It isn't faulty, but very dim. I tried it both way...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Mar 11 2018, 10:47 PM>...
kks Avatar
Posted By kks
Sun Mar 11 2018, 08:10 PM
It's Society car access system, where only the car...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Mar 11 2018, 07:53 PM
>As for the door locking again, you just have to s...