You are on page 1of 14

ELECTRONIC CODE LOCK

PROJECT REPORT
EE-301
Subham Sekhar
Shankar Prasad
Sudeep M A
Aman Gupta

(1100233)
(1100232)
(1100234)
(1100102)

OBJECTIVE:

An access control for doors forms a vital link in a


security chain . The microcontroller based digital lock
for Doors is an access control system that allows only
authorized persons to access a restricted area. The
system is fully controlled by the 8 bit microcontroller
AT89S52 which has a 4Kbytes of ROM for the
program memory. The password is stored in the
EPROM so that we can change it at any time. The
system has a keypad by which the password can be
entered through it. When the entered password
equals with the password stored in the memory then
the relay gets on and so that the door is opened. If
we entered a wrong password for more than three
times then the Alarm is switched on.

Block Diagram:

HARDWARE DESIGN:
Microcontroller

LCD

Display
Buzzer
EEPROM
Power Supply

AT89S52

Microcontroller AT89S52:
Features:

4K Bytes of In-System Reprogrammable Flash


Memory
Endurance: 1,000 Write/Erase Cycles
Fully Static Operation: 0 Hz to 24 MHz
Three-level Program Memory Lock
128 x 8-bit Internal RAM
32 Programmable I/O Lines
Two 16-bit Timer/Counters
Six Interrupt Sources
Programmable Serial Channel
Low-power Idle and Power-down Modes

PIN DIAGRAM OF 8051:

LCD Display Interface:


The

dot-matrix liquid crystal display


controller and driver LSI displays
alphanumeric, characters, and symbols. It
can be configured to drive a dot-matrix
liquid crystal display under the control of a
4 or 8-bit microprocessor.
Micro controller sends the data signals
through pin 11 through 18(RC0-RC3) and
control signal through 4,6 and 7 of the
micro controller. Pin no 3 of the LCD is
used to control the contrast by using
preset PR1.

DIAGRAM:

BUZZER:
A

buzzer connected to port RB0 of the


micro controller through a driver
transistor. The buzzer requires 12 volts at
a current of around 50ma, which cannot
provided by the micro controller. So the
driver transistor is added. The buzzer is
used to audible indication for valid user and
error situation and alarm mode. As soon as
pin of the micro controller goes high, the
buzzer operates.

DIAGRAM:

EEPROM(AT24C32):
Features:

Voltage

operating range: 4.5V to 5.5V


100 kHz and 400 kHz compatibility
Self-timed ERASE and WRITE cycles
Power on/off data protection circuitry
1,000,000 Erase/Write cycles guaranteed
32-byte page or byte write modes available
8-pin PDIP and SOIC packages

DIAGRAM:

Process Chart:

The power supply is provided first to the


hardware and through voltage regulator, the
circuit components receive their proper supply
voltage.
After that, the LCD displays the required BCD
code and asks to the person to show the tag.
The code is received by the module and checks
the code availability.
For correct code, LCD displays the CORRECT
PASSWORD
For wrong code, LCD displays INVALID
PASSWORD.

You might also like