Sunteți pe pagina 1din 15

PASSWORD

BASED
DOORLOCK
SYSTEM
Ayush Shah :-171090010 Mohammed Dhange :-171090008
OBJECTIVE:

 Increase the security level to prevent an unauthorized unlocking

of the door.
 Give the flexibility to the user to change or reset the password in case the user

forgets that combination.


 Lock the door by using password.

 To give user more secure yet cost-efficient way of door locking system.
INTRODUCTION:

■ Since the main intension of this project is to design a security Door locks system.
In order to fulfill this application there are few steps that has been performed i.e.

 Designing the power supply for the entire circuitry.

 Selection of microcontroller that suits our application.

 Selection Key pad.

 Selection of DC motor.

 Selection of buzzer according to the requirement.

■ Complete studies of all the above points are useful to develop this project
BLOCK DIAGRAM:
DESCRIPTION OF BLOCK DIAGRAM:

■ Block Diagram consist of following blocks:

• Keypad: It is an input device that helps to enter a code to open the door. This block

gives the entered code signals to the microcontroller.

• Buzzer and LCD: These are the final indicating devices for displaying the

information and alarming.

• DC motor: It moves the door opens and closes the door.

• Relay: It drives this motor by receiving control signals from the microcontroller.
CIRCUIT DIAGRAM:
SOFTWARE DESCRIPTION

 PROTEUS SOFTWARE is used for the simulation


of circuit

 CODING USED: Embedded C Language with the


implementation of Keil Software
Main Code:
#include<reg51.h> while(1)
#include"delay.h" {
#include"lcd.h" cmd(0x01);
#include"keypad.h" lcd_str(" ENTER YOUR");
cmd(0xc0);
sbit a1=P2^0; lcd_str(" PASSWORD");
sbit a2=P2^1; for(i=0;i<5;i++)
sbit a3=P2^2; {
sbit a4=P2^3; keypad1();
void motor(); ar[i]=c;
unsigned char ar[5]; if(i==0)
unsigned char {
com[5]={"12345"}; cmd(0x01);
unsigned int f,m=1,p; lcd_display(' ');
}
void main() lcd_display('*');
{ }
unsigned int i;
lcd_ini();
if(ar[0]==com[0] &&
ar[1]==com[1] && else if(m==0)
ar[2]==com[2] && {
ar[3]==com[3] && p++;
ar[4]==com[4]) cmd(0x01);
{ lcd_str(" WRONG PASSWORD");
m=1; cmd(0xc0);
} lcd_str(" ACCESS DENIED");
else delay_fv(1000,100);
{ delay_fv(1000,100);
m=0; m=1;
} if(p==3)
if(m==1) {
{ cmd(0x01);
cmd(0x01); lcd_str(" PLEASE CONTACT");
lcd_str(" PASSWORD MATCHED"); cmd(0xc0);
cmd(0xc0); lcd_str(" SECURITY...");
lcd_str(" ACCESS GRANTED"); while(p==3);
motor(); }
p=0; }
delay_fv(1000,100); } }}
void motor()
for(i=0;i<10;i++)
{
{
unsigned int i;
a2=a3=a1=0;
for(i=0;i<10;i++)
a4=1;
{
delay_ff();
a2=a3=a4=0;
a1=a2=a4=0;
a1=1;
a3=1;
delay_ff();
delay_ff();
a1=a3=a4=0;
a1=a3=a4=0;
a2=1;
a2=1;
delay_ff();
delay_ff();
a1=a2=a4=0;
a4=a2=a3=0;
a3=1;
a1=1;
delay_ff();
delay_ff();
a1=a2=a3=0;
}
a4=1;
}
delay_ff();
}
delay_fv(1000,100);
ADVANTAGES
• No need for carrying keys around.
• Automatic door opening .
• Gives an indication for unauthorized entry.
• Cost efficient.
• Can give you a tally of how many employees
have accessed the door.

DISADVANTAGES
• The door cannot be unlocked in case the password
has been forgotten.
• It may not function properly in the case of a power
failure.
FUTURE SCOPE
•We can send this data to a remote location
using mobile or internet.

•We can add fingerprint sensor so entry will be


allowed for the authorized person using their
fingerprints.

•We can add fire, wind and LPG sensors so that


in case of accident, the doors will automatically
open.
CONCLUSION
PASSWORD BASED DOOR LOCKING SYSTEM
It is used in places where there is additional
security is needed. The system comprises of a
number keypad which is connected to an 8-bit
microcontroller AT89C51. The microcontroller will
monitor the keypad and when someone enters the
correct password, it will activate the switch
connected to the motor, thereby opening the door.
In the case of an unauthorized entry, the system
will inform the security office after 3 incorrect trials.
REFERENCES
Book References:
 Fundamentals of Embedded Software: Where C and
Assembly Meet by Lewis Daniel
 8051 using Assembly and C by Muhammad Ali Mazidi.

Web References:
 www.atmel.com
 www.electronicshub.org
 www.keil.com
 http://www.edgefxkits.com/password-based-circuit-
breaker

S-ar putea să vă placă și