Professional Documents
Culture Documents
Mini Project Report Digital Door Lock System: Submitted by
Mini Project Report Digital Door Lock System: Submitted by
Mini Project Report Digital Door Lock System: Submitted by
ON
Submitted by:
FAZIL T A (13180031)
GOKULNAND C K (13180032)
H VISHNUDAS (13180033)
HANA ABDUL RASHEED (13180034)
ISHIKA SINGH (13180035)
BACHELOR OF TECHNOLOGY
In
ELECTRONICS AND COMMUNICATION
DIVISION OF ELECTRONICS ENIGINEERING
SCHOOL OF ENGINEERING
COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY
KOCHI-22
NOVEMBER 2019
1
DIVISION OF ELECTRONICS ENGINEERING
SCHOOL OF ENGINEERING
COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY
KOCHI-22
CERTIFICATE
Certified that the MINI PROJECT report entitled DIGITAL DOOR LOCK
SYSTEM is a bonafide report of work by FAZIL T A, GOKULNAND C K, H
VISHNUDAS, HANA ABDUL RASHEED and ISHIKA SINGH towards the
partial fulfillment of the award of the degree of B.Tech in ELECTRONICS
AND COMMUNICATION of Cochin University of Science And Technology,
Kochi-22
FAZIL T A
GOKULNAND C K
H VISHNUDAS
HANA ABDUL RASHEED
ISHIKA SINGH
3
ABSTRACT
4
CONTENTS
1 INTRODUCTION 7
2 OBJECTIVES 8
3 BLOCK DIAGRAM 9
4 PASSWORD BASED LOCK 10
SYSTEM ALGORITHM
5 CIRCUIT DIAGRAM 11
6 PCB LAYOUT DIAGRAM 12
7 CIRCUIT DESCRIPTION 13
8 PROGRAM 14
9 COMPONENTS 20
Microcontroller
LCD Module
Motor
Keypad
Crystal Oscillator
10 ADVANTAGES OF PASSWORD 31
BASED LOCK SYSTEM
11 APPLICATIONS OF PASSWORD 32
BASED LOCK SYSTEM
12 CONCLUSION AND SCOPE 33
OF THE PROJECT
13 REFERENCE 34
5
14 BILL OF MATERIALS 35
LIST OF FIGURES
1 BLOCK DIAGRAM 9
2 CIRCUIT DIAGRAM 11
3 PCB LAYOUT 12
4 MICROCONTROLLER: 20
AT89S51
5 AT89S51 :
PIN CONFIGURATION 21
6 LCD MODULE 25
7 DC MOTOR 28
8 KEYPAD 29
9 KEYPAD INTERNAL 29
DIAGRAM
10 CRYSTAL OSCILLATOR 30
6
INTRODUCTION
.
This Password based door lock system uses five major components – a
Microcontroller, a DC Motor, a 4×3 Matrix Keypad and a 16×2 LCD.
Here, an AT89S51 Microcontroller is used and it is an 8-bit controller.
This controller requires a supply voltage of +5V DC. In order to provide
regulated 5V DC voltage, we can use 9V DC battery or 12V, 1A adaptor
as a power source.
Once the circuit is powered ON, microcontroller sends commands to
the LCD to display “enter password” on LCD. Now we need to enter
the password using the keypad. Once password is entered, it displays
10 stars on LCD to indicate that controller read password successfully.
Now the controller compares the entered password with predefined
password. If the password is matched, the door motor rotates in
forward direction to open the door. After a delay of 10seconds, the
door motor rotates in reverse direction to close the door. If the
password is not matched, then the door motor is stationary so that
door remains closed.
7
OBJECTIVE
They also provide a keyless way to enter business premises, homes &
schools without the need for always having to carry a set of keys. This
password can also be changed instantly as per our requirement.
8
BLOCK DIAGRAM
power supply
16x2 LCD
Module:
Microcontroller
4×3 keypad
9
PASSWORD BASED DOOR LOCK SYSTEM ALORITHM:
• Initially, declare the PORT2 to LCD data pins and control pins (RS, RW
and E) to P3.0, P3.1, P3.2. Also declare PORT0 to Keypad. Also use P3.3
and P3.4 for motor.
• Then display the message “Enter Password” on LCD
• Now read the 10-digit password from the user
• Compare the entered password with the stored password
• If the password is correct, then make P3.3 high and P3.4 low to open
the door.
• After some time delay, make P3.3 low and P3.4 high to close the door.
• If the password is wrong, then display the message “Access Denied” on
LCD.
• After some delay, ask again to enter password
10
CIRCUIT DIAGRAM
11
PCB LAYOUT
12
CIRCUIT DESCRIPTION
13
THE PROGRAM
#include<reg51.h>
sbit r1=P1^0;
sbit r2=P1^1;
sbit r3=P1^2;
sbit r4=P1^3;
sbit c1=P1^4;
sbit c2=P1^5;
sbit c3=P1^6;
sbit rs=P3^0;
sbit rw=P3^1;
sbit en=P3^2;
sbit motp=P3^3;
sbit motn=P3^4;
r4=1;
}
}
void check()
{
if(pwd[0]=='7'&&pwd[1]=='0'&&pwd[2]=='0'&&pwd[3]=='4'&&pw
d[4]=='6'&&pwd[5]=='2'&&pwd[6]=='8'&&pwd[7]=='3'&&pwd[8]=='8'&&
pwd[9]=='7')
{
motp=1;
17
motn=0;
lcdcmd(0x01);
lcddis("PASSWORD MATCHED",16);
delay();
}
else
{
lcdcmd(0x01);
lcddis("PASSWORD WRONG",14);
delay();
}
}
19
COMPONENTS
MICROCONTROLLER: AT89S51
PIN DESCRIPTION:
21
Pin Pin Name Description
Number
6 P1.5 (MOSI) MOSI for in System Programming or 5th GPIO pin of PORT 1
7 P1.6 (MISO) MISO for in System Programming or 6th GPIO pin of PORT 1
8 P1.7 (SCK) SCK for in System Programming or 7th GPIO pin of PORT 1
22
17 P3.7 (RD’) Memory Read or 7th GPIO pin of PORT 3
23
34 P0.5 (AD5) Address / Data pin 5 or 5th GPIO pin of PORT 0
24
16x2 LCD Module:
LCD modules are very commonly used in most embedded projects, the
reason being its cheap price, availability and programmer friendly. Most
of us would have come across these displays in our day to day life, either
at PCO’s or calculators. The appearance and the pinouts have already
been visualized above now let us get a bit technical.
16×2 LCD is named so because; it has 16 Columns and 2 Rows. There are
a lot of combinations available like, 8×1, 8×2, 10×2, 16×1, etc. but the
most used one is the 16×2 LCD. So, it will have (16×2=32) 32 characters in
total and each character will be made of 5×8 Pixel Dots. A Single character
with all its Pixels is shown in the below picture.
25
PIN DESCRIPTION:
5 Read/Write Used to read or write data. Normally grounded to write data to LCD
7 Data Pin 0
8 Data Pin 1
26
9 Data Pin 2
10 Data Pin 3
11 Data Pin 4
12 Data Pin 5
13 Data Pin 6
14 Data Pin 7
27
DC MOTOR:
A DC motor is an electric motor that runs on
direct current power. In any electric motor,
operation is dependent upon simple
electromagnetism. A current carrying
conductor generates a magnetic field, when
this is then placed in an external magnetic
field, it will encounter a force proportional
to the current in the conductor and to the
strength of the external magnetic field. It is a device which converts
electrical energy to mechanical energy. It works on the fact that a current
carrying conductor placed in a magnetic field experiences a force which
causes it to rotate with respect to its original position.
Practical DC Motor consists of field windings to provide the magnetic flux
and armature which acts as the conductor.
28
4×3 KEYPAD:
Most of the applications of embedded systems require keypads to take
the user inputs, especially in case where an application requires more
number of keys. With simple architecture and easy interfacing
procedure, matrix keypads are replacing normal push-buttons by
offering more inputs to the user with the lesser I/O pins
A Matrix keypad is the most commonly used input device in many of the
application areas like digital circuits, telephone communications,
calculators, ATMs, and so on. A matrix keypad consists of a set of push
button or switches which are arranged in a matrix format of rows and
columns. These keypads are available in configurations like 4×3 and 4×4
based on the application it is implemented for. Internal diagram of this
matrix keypad is shown in the below figure.
Internal Diagram
29
CRYSTAL OSCILLATOR:
A crystal oscillator is an electronic oscillator circuit that uses the
mechanical resonance of a vibrating crystal of piezoelectric material to
create an electrical signal with a precise frequency. This frequency is
often used to keep track of time, as in quartz wristwatches, to provide a
stable clock-signal for digital integrated circuits, and to stabilize
frequencies for radio transmitters and receivers. The most common type
of piezoelectric resonator used is
the quartz crystal, so oscillator
circuits incorporating them
became known as crystal
oscillators,[1] but other
piezoelectric materials including
polycrystalline ceramics are used
in similar circuits.
A crystal oscillator, particularly
one using a quartz crystal, works by distorting the crystal with an electric
field, when voltage is applied to an electrode near or on the crystal. This
property is known as electrostriction or inverse piezoelectricity. When
the field is removed, the quartz - which oscillates in a precise frequency -
generates an electric field as it returns to its previous shape, and this can
generate a voltage. The result is that a quartz crystal behaves like an RLC
circuit, but with a much higher Q.
30
ADVANTAGES OF PASSWORD BASED DOOR LOCK SYSTEM:
31
APPLICATIONS OF PASSWORD BASED DOOR LOCK SYSTEM:
32
CONCLUSION AND SCOPE OF THE PROJECT:
33
REFERENCE:
• www.firmcodes.com/
• www.circuitstoday.com
• www.electronicshub.org
BOOKS
34
BILL OF MATERIALS:
1. Microcontroller 55/-
2. DC Motor 25/-
3. 4*3 Keypad 80/-
4. LCD Module 60/-
5. Wires 10/-
6. PCB Layout 700/-
7. Crystal Oscillator 12/-
8. Resistors, capacitors 10/-
and Potentiometer
35
36