8051 Projects [ Download final year project using 8051 microcontroller with complete project report, code and circuit diagram. ]
Digital Code lock with LCD and Keypad using AT89C2051
Author Ajay Bhargav
Author email [email protected]
Author website www.8051projects.net
Description Project tested and working perfectly

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
Image
Filesize 20.16 kB
Date
Downloads 76571
Download
Rating
 7.5 - 12 votes  
<< Previous [Automatic Room light Controller with Visitor Counter - Updated] Back to list [IR Remote Switch using TV remote (RC5 Protocol)] Next >>


Comments
Sir iam unable to run the code in proteus....after displaying "Enter Lock Code : " it is not taking the input from keypad and is doing nothing.
help me.
thanku and regards.

[ Comment by geethika :: ]


Geethika, can you post your problem in forum with proteus schematic?

[ Comment by :: ]


can you please tell me what type of lock activator i can use in place of led???

[ Comment by sufiyan :: ]


please can you tell me which type of lock activator should i connect in place of LED? can i use selenoid lock actuator

[ Comment by sufiyan :: ]


You can make use of Solenoid lock.

[ Comment by :: ]


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.

[ Comment by vikshit :: ]


sorry but at89c2051 have <5kb flash. is it possible to install the lock.hex on this ic ? sorry for my bad english.

[ Comment by breadman :: ]


@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.

[ Comment by :: ]


ok, thanks for explaining. what compiler are you using for compiling main.c ?

[ Comment by breadman :: ]


Code is written for Keil.

[ Comment by :: ]


Thank you very much sir. The program was running very well on at89s51.

[ Comment by breadman :: ]


the lcd is not showing the pasword i am entering plus is not doing anything after that

[ Comment by FARYAL :: ]


@FARYAL, check your keypad connections. if you have any doubts please post in forum.

[ Comment by :: ]


can we use this code in AT89S52 instead of AT89C2051 ....

[ Comment by sufyan :: ]


@sufyan, Yes you can use AT89S52. Just keep the same port pins.

[ Comment by :: ]


sir plz send the source code to my e mail.plzzzz

[ Comment by haishbhat :: ]


@haishbhat, please use the download button.

[ Comment by :: ]


sir i want abstract for digital code lock using at89c2089.

[ Comment by vinothkumar :: ]


@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.

[ Comment by :: ]


hello sir can u please help me i need proteus code for this digital code lock
vl u pls mail me :)

[ Comment by srikar :: ]


@Srikar, code is provided in the zip file. there is no separate code for proteus. Post in forum for further questions.

[ Comment by :: ]


Should I just be burning the main.c function onto the microcontroller? What are the other files for?

[ Comment by astro :: ]


could you pleas help me to create this project for our final grading @ AT89C2051

[ Comment by krizza :: ]


@krizza, Please download the project and build it. I have also provided hex file incase you do not have compiler.

[ Comment by :: ]


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

[ Comment by tabrej :: ]


@tabrej, Click on the download file button to get the zip file containing code and schematic. Post in forum if you need any help.

[ Comment by :: ]


its very interesting
thanks

[ Comment by h-shahsavar :: ]


Can u send me the whole working of main circuit diagram
I need urgent ...plz sir


[ Comment by Ajay :: ]


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.

[ Comment by Neng :: ]


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.


[ Comment by :: ]


Sir can u send whole code

[ Comment by Janhvi :: ]





You must be logged in to make comments on this site - please log in, or if you are not registered click here to signup