Here is a project called ‘Digital Code Lock using AT89C2051’. LCD is used for display and a keyboard is used to input the keys. This project source code is written in C. Both the C files and hex files are given for download.
A Brief Description:
This 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 4×3 Keypad (please see the schematic for more information) and Display the user input on a 2×16 LCD. A pin is assigned as output for activating and deactivating the lock. For demonstration i have connected an LED to that pin.
From user side:
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 (4×3) 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.
Circuit Diagram:
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 declarations
- KEYPAD.C – Keypad drivers
- KEYPAD.H – Function declarations
- DELAY.C – Delay Functions
- DELAY.H – Function Prototypes only
- MAIN.C – Main function!
- Digital Code Lock Schematic – PDF file of orcad schematic
Download the source codes by clicking here
By Ajay Bhargav
http://rickeyworld.info
Hello Ajay Bhargav, which compiler did u use? I used SDCC but ur code seems to generate error. So cannot proceed for the asm files to be created.
Nice project, but where do you store unlock key? I would put an EEPROM for key so you can change it programatically.
pls sir, from the files listed above, which one do I burn into the ucontroller
Pls Sir, from the files listed above, which one do I burn into the micro controller
Digital Code Lock Schematic – PDF file of orcad schematic
you can burn this file emeka
lock
intel hex file
6kb
A well written article, i’ve bookmarked it so I can look at it once i’m back from work.Thanks for writing it! 🙂
more information about digital code lock.
nice useful for me
how much cost this project is?
fine
good…
thank u very much
Please Give Me The Program of AT89C2051. Plz it’s Ergent
sir please give me documentation for this project.
asm file please hehe
pls give the microcontroller code for this code lock..
hi monica
here is the c code for microcontroller based digital code lock
http://www.engineersgarage.com/microcontroller/8051projects/electronic-code-lock-with-password-using-at89c51
which l.c.d u used in this kindly tell me the model and Vendor name of l.c.d or give me the data sheet if that L.C.D.
Thnx
Regards
Ayesha
Excellent !!!
You’re genius….
please can you provide detailed information about code lock
sir,i implementd on proteus but hex file shws enter lock code,but it dont
take 12345 or anythng as a password plz help
Sir i want component list ,ckt dig. More info. Related to this so plz send me on this ajeet2092@gmail.com
which file i can burn in microcontoller?
very useful project..
Thank you…
i want to make the product still more reliable ,so please tell me how display the star(*)
instead of displaying the number.please tell or send me the logic plz……………
my mail id is satishs021@gmail.com
d hex file created for ds code s f 6kb bt d ic hs only 2kb f rom.. m facing serious problem here
more information about digital code system
in practical the code is not working.only lcd is switching on .nothing is displayed
sir
I want to know programming of AT89C2051 micro controller for digital lock code and detail description of digital lock code.
sir
I want to know programming of AT89C2051 micro controller for digital lock code and detail description of digital lock code.