Vous êtes sur la page 1sur 5

MINOR PROJECT ON DIGITAL SECURITY LOCK

Abstract:-This project shows how we can interface a numeric keypad ,


LCD display and a motor to microcontroller.The code is asked to be
entered through keypad with a message on LCD “ENTER THE
PASSWORD”.As the correct code is entered motor rotates.But on the entry
of wrong password following message is displayed in LCD
“WRONG PASSWORD”.

In todays world security is main issue. This Project is used as a lock for
safe to protect the confidentials and other expensive things. The project is
built around 8051 microcontroller. Microcontroller continuously scans the
keypad . As a key is pressed controller detects it.

First of all as we switch on the circuit a message is displayed on LCD


concerning to entering the password. Password is entered through a
numeric keypoad which is attached to one of the port of microcontroller.

As we enter the code , controller compares the entered password


with the correct password which is burned into it. If the password is
matched then stepper motor or simple motor which is attached to door
rotates and door will open.If the password is incorrect then door will not
open and “Wrong code” message is displayed on LCD.

Numeric keypoad which is attached to one of the port of


microcontroller. Keypad is a 4x3 keypad that is contains 4 rows and 3
columns , containing keys from 0 to 9 and * ,# keys . Hence keypad will
occupy 7 I/O lines (4 orws+3 columns) of microcontroller,while 1 port
contains 8 I/O lines.
Program is to be written in C language and is to be compiled using
KEIL C software.After obtaining Hex file of code HEX file is burned into
microcontroller using a MICROCONTROLLER PROGRAMMER or
BURNER.

Description
A 4x3 matrix keypad and a 16x2 LCD have been used here. Keypad and
LCD are very commonly used input & output devices, respectively. A four
digit predefined password needs to be specified the user. This password is
stored in the system.

While unlocking, if the entered password from keypad matches with the
stored password, then the lock opens and a message is displayed on LCD.
Also an output pin is made high to be used for further purpose.

The connections in the circuit are as following: port P2 of microcontroller


AT89C51 is used as data input port which is connected to data pins (7-14)
of LCD. P3^0, P3^1 and P3^2 pins of microcontroller are connected to
control pins RS, RW and EN of LCD. Port P0 is used to take input from
keypad. P0^7 has been used as lock output pin of controller.

As the program starts, string ‘Enter Password’ is displayed on LCD. The


keypad is scanned for pressed digits one by one. Every time, row and
column of the key pressed is detected and a ‘*’ is displayed on LCD
corresponding to the entered number. After the four digits are entered,
the user is prompted to ‘Confirm Password’ and again the input is taken
through LCD. If the passwords do not match, a message is displayed to
indicate ‘Wrong Password’; otherwise the user is prompted to unlock the
device.

To unlock, user needs to ‘Enter Password’ through keypad. Again the


keypad is scanned for pressed keys and corresponding digits are
identified. The passkey is displayed as ‘****’ on the LCD screen. After the
four digits are entered, they are compared with the pre-set password. If
all the four digits match with set password, LCD displays ‘Lock Open’ and
the lock output pin goes high. If the security code is wrong, ‘Wrong
Password’ is sent to be displayed on LCD. The system gets locked if more
than three attempts are made with wrong password to open the electronic
lock. The system needs to be reset in such a case.

GROUP MEMBERS :-
1. ABDUL MAJEED
2. IFTIKHAR ALI
3. JAIKISHAN TAK
4. AJAY VYAS
5. ABHIMANYU
CIRCUIT DIAGRAM :-

Vous aimerez peut-être aussi