Basic Level     Skills: Not specified    
Author
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
Tags Digital Code LockDigital door lock projectdoor lock keypadprogrammable door lock8051 door lock project8051 digital lock
  Filesize

20.16 kB

  Downloads

66949

  Rating
 

Comments

geethika
17 Jul 2014: 10:32 AM
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.
  
ajay_bhargav
21 Jul 2014: 05:20 AM
Geethika, can you post your problem in forum with proteus schematic?
  
sufiyan
28 Aug 2014: 16:38 PM
can you please tell me what type of lock activator i can use in place of led???
  
sufiyan
29 Aug 2014: 08:31 AM
please can you tell me which type of lock activator should i connect in place of LED? can i use selenoid lock actuator
  
ajay_bhargav
30 Aug 2014: 16:11 PM
You can make use of Solenoid lock.
  
vikshit
12 Sep 2014: 06:02 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.
  
breadman
16 Sep 2014: 06:03 AM
sorry but at89c2051 have <5kb flash. is it possible to install the lock.hex on this ic ? sorry for my bad english.
  
ajay_bhargav
17 Sep 2014: 05:02 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
17 Sep 2014: 05:49 AM
ok, thanks for explaining. what compiler are you using for compiling main.c ?
  
ajay_bhargav
01 Oct 2014: 06:42 AM
Code is written for Keil.
  
breadman
06 Oct 2014: 10:20 AM
Thank you very much sir. The program was running very well on at89s51.
  
FARYAL
12 Nov 2014: 18:41 PM
the lcd is not showing the pasword i am entering plus is not doing anything after that
  
ajay_bhargav
14 Nov 2014: 05:16 AM
@FARYAL, check your keypad connections. if you have any doubts please post in forum.
  
sufyan
27 Dec 2014: 16:31 PM
can we use this code in AT89S52 instead of AT89C2051 ....
  
ajay_bhargav
06 Jan 2015: 04:39 AM
@sufyan, Yes you can use AT89S52. Just keep the same port pins.
  
haishbhat
12 Feb 2015: 11:16 AM
sir plz send the source code to my e mail.plzzzz
  
ajay_bhargav
13 Feb 2015: 04:45 AM
@haishbhat, please use the download button.
  
vinothkumar
25 Mar 2015: 12:40 PM
sir i want abstract for digital code lock using at89c2089.
  
ajay_bhargav
29 Mar 2015: 19:31 PM
@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: 01:40 AM
hello sir can u please help me i need proteus code for this digital code lock
vl u pls mail me
  
ajay_bhargav
10 Apr 2015: 18:22 PM
@Srikar, code is provided in the zip file. there is no separate code for proteus. Post in forum for further questions.
  
(Required; Min length 5)
(Required; will not be displayed)

Conversation

Mon May 04 2015, 09:06 AM
wasim
hi all , im doing my attendance project using EM-18 rfid ,my project issue is when the card is swiped its not getting read , plz help me
Sat May 02 2015, 04:30 AM
sharmi
hi am electronic student am doing project in vehicle monitoring system with arm processor using can protocol.i need proteus simulation result output using can and arm for displaying temperature ,gas and ldr sensor value
ExperimenterUK
Fri May 01 2015, 09:24 PM
months ! is this a very big track or a very slow kart ?
Fri May 01 2015, 06:40 AM
shaygan
Hey I am s mechanical eng student and I would like to make a countdown clock for my go-kart team but we need more digits , like MM,WW, DD, HH , mm , ss , ms (month , week , day , hour , minute , sec , milli sec) .. can anybody help and tell me to how make such thing in big scale ?
ExperimenterUK
Mon Apr 27 2015, 08:14 PM
@Janvier This project is in assembly. It is unlikely anyone has a 'c' code
Mon Apr 27 2015, 04:47 PM
Janvier
hello! can u help me to find c code for a project called " automatic light controller with visitor counter". Best regards.
ExperimenterUK
Mon Apr 27 2015, 05:27 AM
@mostfa.. it's a browser thing. Check your settings/try another browser.
Sat Apr 25 2015, 06:16 AM
rohan_verma
sir this circuit is tested?can i use it directly on developing PCB
Sat Apr 25 2015, 06:13 AM
rohan_verma
MSCOMM32.ocx cannot be copied in the systems folder even with administration rights.
Fri Apr 24 2015, 01:58 AM
mostfa
please fix the LCD Interfacing Tutorial as all pictures is gone

Downloads

Comments

manmanan120
Tue May 05 2015, 01:34 PM
Santhoshkumar458
Mon May 04 2015, 11:19 AM
israelo
Sun May 03 2015, 11:57 AM
djsamfisher
Fri May 01 2015, 07:15 AM
0pus0ne
Wed Apr 29 2015, 11:10 PM
ingsilor
Tue Apr 28 2015, 01:13 PM
Seven
Thu Apr 23 2015, 12:02 AM
killbillpandey
Wed Apr 22 2015, 09:07 PM

Online

Guests: 38, Members: 0 ...

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

Members: 37635
Newest member: manmanan120
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue May 05 2015, 05:58 PM
What if we took ceramic capacitor of higher values...
ankitbajaj01 Avatar
Posted By ankitbajaj01
Mon May 04 2015, 05:02 PM
@Electrolytic Capacitor...Putting 220uF cap at 14V...
ankitbajaj01 Avatar
Posted By ankitbajaj01
Mon May 04 2015, 04:58 PM
Hello ExperimenterUK...@Ceramic CapacitorWhat if w...
ElectronicManiac Avatar
Posted By ElectronicManiac
Mon May 04 2015, 04:13 PM
I tried making a proteus file but it is not simula...
ElectronicManiac Avatar
Posted By ElectronicManiac
Mon May 04 2015, 04:11 PM
I tried making a proteus file but it is not simula...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun May 03 2015, 06:12 PM
How the value of this capacitor helps? Does smalle...
ankitbajaj01 Avatar
Posted By ankitbajaj01
Sun May 03 2015, 04:34 PM
Hello ExperimenterUK...Attaching the existing powe...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 30 2015, 10:03 PM
But Let me know that if I place 2200uF cap instead...
ankitbajaj01 Avatar
Posted By ankitbajaj01
Thu Apr 30 2015, 05:51 PM
Hello ExperimenterUK...I will be showing you the p...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Apr 29 2015, 08:33 PM
Hello ExperimenterUK...My confidence gets boost up...