0% found this document useful (0 votes)
80 views

Digital Code Lock Using AT89C2051

This project is a digital code lock using an AT89C2051 microcontroller. It uses a 4x3 keypad for input and a 2x16 LCD for display. The lock has a 5-digit user code and a 10-digit master code to prevent hacking. Users can set their own 5-digit code after entering the default or master code. The keypad uses numeric keys 0-9 and special keys * and #. Source code files written in C and a circuit diagram in PDF are provided for download.

Uploaded by

Naveed Ramzan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Digital Code Lock Using AT89C2051

This project is a digital code lock using an AT89C2051 microcontroller. It uses a 4x3 keypad for input and a 2x16 LCD for display. The lock has a 5-digit user code and a 10-digit master code to prevent hacking. Users can set their own 5-digit code after entering the default or master code. The keypad uses numeric keys 0-9 and special keys * and #. Source code files written in C and a circuit diagram in PDF are provided for download.

Uploaded by

Naveed Ramzan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Digital Code lock using AT89C2051

Tuesday, November 18th, 2008

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:
Circuit diagram of Digital Code lock using AT89C2051

Download File Information:

1. LCD.C – 4-Bit LCD Drivers


2. LCD.H – LCD function prototypes and other declerations
3. Lock.C – code for lock functioning
4. LOCK.H – lock function declarations
5. KEYPAD.C – Keypad drivers
6. KEYPAD.H – Function declarations
7. DELAY.C – Delay Functions
8. DELAY.H – Function Prototypes only
9. MAIN.C – Main function!
10. Digital Code Lock Schematic – PDF file of orcad schematic

You might also like