Password Based Door Lock System Using 8051 Microcontroller

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 21

DEPARTMENT OF ELECTRONICS AND

COMMUNICATION ENGINEERING

A D I T YA I N S T I T U T E O F T E C H N O L O G Y A N D M A N A G M E N T

Approved by AICTE, permanently affiliated to


JNTUK,KAKINADA)
(AUTONOMOUS)
K.KOTTURU, TEKKALI
PASSWORD BASED DOOR LOCK SYSTEM USING 8051 MICRO CONTROLLER

USING KIEL AND PROTEUS SOFTWARE

Project Batch
Under the Esteemed guidance of P.Akhil kumar Patnaik– 19A51A04A3
Dr. M.S.R.Naidu P. Sai Pooja -19A51A04A5
Associate Professor G.Vidya – 20A55A0409
Department of ECE K.Sai venkatesh – 20A55A0413

2
ABSTRACT

Many times we forgot to carry the key of our home. Or


sometimes we come out of our home and door latch closes by
mistake. In these cases it is really difficult to get inside the house.
This project is designed to solve this purpose. Main concept
behind this project is of a door-latch opening using a password
entered through keypad. As well as turning on the Buzzer when
password is entered wrong for multiple times. User can change
this password anytime he/she wish using a keypad.
INTRODUCTION

• Due to population and their busy working schedule, people require secured identification.

• Using the advanced secured access system, we can change the drawback of those oldest systems. If
that system is made with password protected then it provides high level security

• Password Based Door Locking System Using 8051 Microcontroller is a simple project where a secure
password will act as a door unlocking system.

• Firstly, system ask for its personal 4- digit code.

• If entered code is corrected then it displays the information or else display indicates wrong password is
entered on LCD screen.
• Traditional lock systems are being replaced by new advanced techniques of locking
system .

• One of the prominent features of these innovative lock systems is their simplicity
and high efficiency,

• Here we developed an electronic codepfjfhc


lock system using 8051 microcontroller,
which is a simple embedded system with input from the keyboard and the output
being actuated accordingly.

5
LITERATURE SURVEY
Before starting with the analysis and design of project, we referred many research papers, manuals, documents
related to the concept of project

DOOR-AUTOMATION SYSTEM USING BLUETOOTH BASED ANDROID FOR MOBILE PHONE By, Lia Kamelia, Alfin Noorhassan S.R,
Mada Sanjaya and W.S., Edi Mulyana
 This paper gives overall idea of how to control home security for smart homes especially for door key locks.
 With the use of wireless Bluetooth connection in microcontroller the system installation in more easy way.
 And It aimed to control the door condition using an Android phone which is Bluetooth-enabled via Bluetooth HC-05.

PASSWORD BASED SECURITY LOCK SYSTEM By, Arpita Mishra, Siddharth Sharma, Sachin Dubey, S.K.Dubey
 This project has considered about this and created a secure access for a door which needs a password to unlock the
door.
It will operates with the correct entry of Password.
 Extra features like adding new users and changing old password are configured by the keypad as usual.
 These systems have less manual operations, so the flexibility, reliabilities are high and accurate are there
characteristics.

6
WORKING PRINCIPLE

The Main important component in this circuit is 8051 microcontroller. Here 4*4
keypad is used to enter the password. The entered password is compared with the
predefined password. If it is correct password, the system opens the door by
rotating door motor and displays the status of door on LCD. If the password is wrong
then door remains closed and displays password is wrong‖ on LCD

7
Components Required
Hardware Requirements:
8051 Microcontroller
8051 Programmer
4×4 Matrix Keypad
16×2 LCD
L293D Motor Driver Board
5V Relay
10k, 330 Ω resistor (1/4 watt) pfjfhc
33pF capacitors – 2
10uF electrolytic capacitor
12MHz Crystal
DC Motor
10KΩ Potentiometer
Connecting wires
Power Supply
Software Requirements 
Kiel µVision IDE
Proteus (for circuit diagram and simulation)

8
BLOCK DIAGRAM

9
DESCRIPTION OF THE BLOCK DIAGRAM

The microcontroller based door locker is an access control system that allows only authorized person to access a
restricted area . The system is fully controlled by the 8 bit microcontroller 8051 which has a 2K bytes 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. There are two relays one to open the door and other to close the door. There is an button
which should be placed inside the door so that the person inside can open/close the door.
1. Microcontroller: This is the CPU (central processing unit) of our project. We are going to use a
Microcontroller of 8051 family. The various functions of microcontroller are like:
Reading the digital input from Keypad
Sending this data to LCD so that the person operating this project should read the password
Sensing the password using keypad and to check whether it is a correct password or a wrong. Password and
rotate the stepper motor if the password entered is a correct password.
Sending the data to the computer using serial port. This data consist of the status of entered Password
(Correct/wrong)
10
It is a 40 pin IC with four ports namely port0,
port1, port2, port3
LCD data pins (AD0 to AD7) are connected to the
port 2.0 to 2.7 to send the data for the LCD
display
The control pins of LCD display is connected to
port 3.0,3.1,respectively take action as RS, RW, E .
In 40 pin AT89C51, there are four ports
designated as P1, P2, P3and P0. All these ports
are 8-bit bi-directional ports
Port P0and P2are also used to provide low byte
and high byte addresses, respectively, when
connected to an external memory
Port 3 has multiplexed pins for special functions
like serial communication, hardware interrupts,
timer inputs and read/write operation from
external memory
2.LCD: We are going to use 16x2 alphanumeric Liquid Crystal Display (LCD) which means it can display
alphabets along with numbers on 2 lines each containing 16 characters.
LCD stands for liquid crystal display. They come in many sizes 8x1, 8x2 , 10x2 , 16x1 , 16x2 , 16x4 , 20x2 ,
20x4 ,24x2 , 30x2 ,32x2 , 40x2 etc.
.
All the LCDs performs the same functions (display characters numbers special characters ASCII characters etc).
Their programming is also same and they all have same 14 pins (0-13) or 16 pins (0 to 15).
The command register stores the command instructions given to the LCD. A command is an instruction
given to LCD to do a predefined task like initializing it, clearing its screen, setting the cursor position,
controlling display etc.
The data register stores the data to be displayed on the LCD. The data is the ASCII value of the character to be
displayed on the LCD.
3. Keypad: User will enter the password using the keypad. Various keys of keypad are as following,
I. 0 to 9 II. Enter III. Clear
This keypad has 16 buttons, arranged in a telephone-line 4x4 grid. It's made of a thin, flexible membrane
material with an adhesive backing (just remove the paper) so you can attach it to nearly anything
The keys are connected into a matrix, so you only need 7 microcontroller pins (4-columns and 4-rows) to scan
through the pad.

12
4.Motor Driver IC:
The Actuator's are those devices which actually gives the movement or to do a task like motor’s.

We use L293D motor driver IC in our circuit. The Device is a monolithic integrated high voltage, high current four
channel driver designed to accept standard DTL or TTL logic levels and drive inductive loads (such as relays
solenoids, DC and stepping motors) and switching power transistors.

To simplify use as two bridges each pair of channels is equipped with an enable input. A separate supply input is
provided for the logic, allowing operation at a lower voltage and internal clamp diodes are included.

This device is suitable for use in switching applications at frequencies up to 5 kHz.

The L293D is assembled in a 16 lead plastic package which has 4 centre pins connected together and used for
heat sinking.

The L293DD is assembled in a 20 lead surface mount which has 8centre pins connected together and used for
heat sinking.

13
CIRCUIT DIAGRAM

14
CIRCUIT DESCRIPTION:

The total functioning of the -CODE LOCK SYSTEM‖ is based on the software program which is burn inside the
microcontroller IC 8051.
In this circuit microcontroller works with 12MHz frequency hence 12MHz crystal is used for that, the unwanted
frequency produced is bypassed by the capacitor of 33pf capacitor. Reset pin is connected to 10uf capacitor and resistor
of 10K whenever reset requires the reset switch required to press.
Port 1.0 to 1.7 is connected to input keypad 4X4 (rows and columns) as any key press, particular rows and columns are
shorted and microcontroller defined the pressed number.
Microcontroller calculates the numbers entered are valid or not, if valid then take further action. It can display on LCD
screen like entered code is valid
LCD data pins (AD0 to AD7) are connected to the port 2.0 to 2.7 to send the data for the LCD display. The control pins
of LCD display is connected to port 3.0,3.1,respectively take action as RS, RW, E. Resistor of 10K is used as pull up resistor,
due to port0 is active low port.
Variable resistor of 10K is connected to the adjust contrast of 16X2 LCD display. 10uf capacitor is used to cancel loading
effect and 0.1uf is used to bypass the unwanted spikes produced in the circuit.
Port 0 is used to drive stepper motor, due to active low port pull-up resistor is used, L293D motor driver IC is
connected to drive stepper motor.
We can implement this project with 4 wire or 6 wire stepper motor depending upon programming conditions/
requirements of project

15
METHODOLOGY

Write the source code in Kiel Micro vision Implement components in Proteus

Run the simulation Dump the code in Micro Controller

16
NEW FEATURES
Door lock security systems are classified based on technology used as 1)OTP Based, 2)RFID Based,
3)Fingerprint Based

17
RESULT

pfjfhc

18
ADVANTAGES
This project provides security
P o w e r c o n s u m p ti o n i s l e s s
Uses commonly available components
Project is Simple and Easy
REFERENCE

• Technology Intelligent Home: SMS Based Home Security System with Immediate Feedback
International Journal Of Advance Research In Science And Engineering http://www.ijarse.com IJARSE,
Vol. No.2, Issue No.5, May, 2013 ISSN-2319-8354(E
• Mukesh Kumar Thakur, Ravi Shankar Kumar, Mohit Kumar, Raju Kumar Wireless Fingerprint Based
Security System using Zigbee‖ , International Journal of Inventive Engineering and Sciences (IJIES)
ISSN: 2319–9598, Volume-1, Issue-5, April 2013.
• Signals, Systems and Computers, 2004 Conference Record of the Thirty-Eighth Asilomar Conference
on Publication 7-Nov-2004 Volume: 1, on page(s): 577-581 Vol. 1
• Liu, T., Guo, H., and Wang, Y., A new approach for color-based object recognition with fusion of color
models‖, Congress on Image and Signal Processing Conference, Sanya-China, vol. 3, pp. 456-460, May
2008

20
THANK YOU

You might also like