
Digital Code Lock with LCD and Keypad
By
Ajay
- Wednesday 29 August 2007 - 05:00:51 in
Rickey's World News
Digital Code Lock with LCD and Keypad using AT89C2051A 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. User has maximum of 3 retries.. if fails then Master Locks has to be entered which is of 10 digits. So Complete security is there.
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.
Please visit
download section to download this projects
Comments
encosat
| 30 Aug : 12:37
Dear Ajay,
Thanks for posting such e nice example.I wanted to implement it on my experimental board (EASY8-51A) but I noticed that I do not have a real keypad.In fact, this board has 8 switches per IO port(4 ports) such that from one side are connected to Port pins and from another side can be pull-uped to Vcc or to gnd via a jumper.Further,this board has a AT89s8253 and a LCD 2x16.
I wanted to use your idea as follows:
-Make use of port 0 for LCD and
-Ports 1,2 and 3 for scaning if the switches are pressed on/off (simulating kyepad).
Do you think that this could work and how can I modify the functions: getkey() and translate() under keypad.c module?
Thank you in advance
Regards
Enco
Reply to this

usman.anjum | 10 Jan : 03:40
Can i use this code for AT89c51
Reply to this
|
Ajay
| 10 Jan : 08:56
surely yes you can use.. keep the ports used same as in the circuit.. even though you have port 0 and port 2 on AT89C51, but circuit is using only Port1 and Port 3.
Reply to this
|

saqib | 04 Mar : 09:27
hy i want an eeprom with it and relay should be on for a few seconds
please do it for me or send me a c program.
saqib_537@yahoo.com
Reply to this
wan
| 10 Sep : 10:16
sir,Ajay. since you told that we can use this on AT89c51..
so, how about the AT89s51.
isit fine too.
Reply to this
wan
| 10 Sep : 20:51
ehem.. tq.
but, sir there's an error state that,' error program program memory'.
it's fine when i'm try another simple hex file.
what do u think the mistake i made here?
since i'm using the KST-AT89S MCU programmer. have ever heard bout that.?
Reply to this
Submit comment
Google Search for Microcontrollers!