Digital Code lock with LCD and Keypad using AT89C2051
Basic Level Skills: Not specified Wed Aug 29 2007, 05:08 pm
Digital Code Lock with LCD and Keypad using AT89C2051
A Brief Description:
This project is written in C language. 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.C - 4-Bit LCD Drivers
LCD.H - LCD function prototypes and other declerations
Lock.C - code for lock functioning
LOCK.H - lock function declerations
KEYPAD.C - Keypad drivers
KEYPAD.H - Function declerations
DELAY.C - Delay Functions
DELAY.H - Function Prototypes only
MAIN.C - Main function!
Digital Code Lock Schematic - PDF file of orcad schematic
If any problem Please post in the forum
Tags Digital Code LockDigital door lock projectdoor lock keypadprogrammable door lock8051 door lock project8051 digital lock
- Author
- Ajay Bhargav
- Author email
- [email protected]
- Author website
- www.8051projects.net
Description
Digital Code Lock with LCD and Keypad using AT89C2051
A Brief Description:
This project is written in C language. 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.C - 4-Bit LCD Drivers
LCD.H - LCD function prototypes and other declerations
Lock.C - code for lock functioning
LOCK.H - lock function declerations
KEYPAD.C - Keypad drivers
KEYPAD.H - Function declerations
DELAY.C - Delay Functions
DELAY.H - Function Prototypes only
MAIN.C - Main function!
Digital Code Lock Schematic - PDF file of orcad schematic
If any problem Please post in the forum
Tags Digital Code LockDigital door lock projectdoor lock keypadprogrammable door lock8051 door lock project8051 digital lock
Filesize
20.16 kB
Downloads
76144
Rating
- << Previous [Automatic Room light Controller with Visitor Counter - Updated]
- Back to list
- [IR Remote Switch using TV remote (RC5 Protocol)] Next >>
Comments
21 Jul 2014: 10:50 am
Geethika, can you post your problem in forum with proteus schematic?
sufiyan
28 Aug 2014: 22:08 pm
can you please tell me what type of lock activator i can use in place of led???
sufiyan
29 Aug 2014: 14:01 pm
please can you tell me which type of lock activator should i connect in place of LED? can i use selenoid lock actuator
vikshit
12 Sep 2014: 11:32 am
Sir iam unable to run the code(lock.hex) in proteus....after displaying "Enter Lock Code : " it is not taking the input from keypad and is doing nothing.
help me.
help me.
breadman
16 Sep 2014: 11:33 am
sorry but at89c2051 have <5kb flash. is it possible to install the lock.hex on this ic ? sorry for my bad english.
17 Sep 2014: 10:32 am
@Vikshit, Check your keypad connections. Try swapping Rows and Columns. If you still face issue post in forum.
@breadman, hex file always have more size than the actual binary code as hex is in ascii. Programmer software converts hex to binary before loading. You should not have any issue installing hex file in IC.
@breadman, hex file always have more size than the actual binary code as hex is in ascii. Programmer software converts hex to binary before loading. You should not have any issue installing hex file in IC.
breadman
17 Sep 2014: 11:19 am
ok, thanks for explaining. what compiler are you using for compiling main.c ?
breadman
06 Oct 2014: 15:50 pm
Thank you very much sir. The program was running very well on at89s51.
FARYAL
13 Nov 2014: 00:11 am
the lcd is not showing the pasword i am entering plus is not doing anything after that
14 Nov 2014: 10:46 am
@FARYAL, check your keypad connections. if you have any doubts please post in forum.
sufyan
27 Dec 2014: 22:01 pm
can we use this code in AT89S52 instead of AT89C2051 ....
haishbhat
12 Feb 2015: 16:46 pm
sir plz send the source code to my e mail.plzzzz
vinothkumar
25 Mar 2015: 18:10 pm
sir i want abstract for digital code lock using at89c2089.
30 Mar 2015: 01:01 am
@vinothkumar, I don't think it will be hard to write few words on the project as simple as a digital lock. Please do prepare an abstract and share it with us. We will add it to this project as your contribution.
srikar
09 Apr 2015: 07:10 am
hello sir can u please help me i need proteus code for this digital code lock
vl u pls mail me
vl u pls mail me
10 Apr 2015: 23:52 pm
@Srikar, code is provided in the zip file. there is no separate code for proteus. Post in forum for further questions.
astro
26 Jul 2015: 07:10 am
Should I just be burning the main.c function onto the microcontroller? What are the other files for?
krizza
24 Aug 2015: 08:04 am
could you pleas help me to create this project for our final grading @ AT89C2051
27 Aug 2015: 12:46 pm
@krizza, Please download the project and build it. I have also provided hex file incase you do not have compiler.
tabrej
22 Sep 2015: 13:44 pm
admin sir please send me the source code of password based door lock system...i m trying from 2 month. still not get success on it.
so please help me sir
so please help me sir
30 Sep 2015: 03:23 am
@tabrej, Click on the download file button to get the zip file containing code and schematic. Post in forum if you need any help.
h-shahsavar
23 Nov 2015: 10:29 am
its very interesting
thanks
thanks
Ajay
28 Mar 2016: 18:35 pm
Can u send me the whole working of main circuit diagram
I need urgent ...plz sir
I need urgent ...plz sir
Neng
16 Aug 2016: 10:16 am
Sir can you help me for my project? I need to have a servo motor that use for my lock. My project is like a vault.
10 Mar 2018: 17:44 pm
Hi,
I am working on digital code lock project. I got the output on proteus(did not connect the pull up resistors connected to lcd.)
When I am testing on breadboard the LCD shows "Enter the codelock: " but when I press the matrix keypad nothing is displayed on LCD.
I am working on digital code lock project. I got the output on proteus(did not connect the pull up resistors connected to lcd.)
When I am testing on breadboard the LCD shows "Enter the codelock: " but when I press the matrix keypad nothing is displayed on LCD.
Janhvi
24 Sep 2019: 14:54 pm
Sir can u send whole code
help me.
thanku and regards.