A six-digit password based door lock system with improved security features

Published Jul 22, 2022
 36 hours to build
 Beginner

Tried introducing new features to the password based door lock systems which subsequently improves security and is more user friendly.This system can be used for both small-scale and industrial-grade security systems.

display image

Components Used

8051 AT89c51
8051 AT89c51
1
LCD 16x2 Display Module
LCD16x2 has two lines with 16 character in each line. LCD16x2 is generally used for printing values and string in embedded application.
1
4x3 Matrix Keypad
4x3 Matrix Keypad
1
LED 5mm
LED 5mm
2
Resistor 10K 0603
Resistor 10K 0603
1
Resistor 1K 0603
Resistor 1K 0603
8
Breadboard
Breadboard
1
L293D Driver
L293D Driver
1
26MHz Crystal
Crystals 26MHz 13pF -20C 70C
1
Capacitor 33 pF
Multilayer Ceramic Capacitors MLCC - Leaded 200V 33pF C0G 5% LS=2.54mm
2
Capacitor 1 µF
Aluminium Electrolytic Capacitors - Radial Leaded 100V 1uF 105C 1k Hour Radial
1
Tactile Switches
Tactile Switches 12 x 12 mm 12 mm 100 gf Short Crimped Black Through Hole SPST
1
Potentiometer 10Kohms
Potentiometers 10Kohms 10% 12.5mm Cermet Element
1
5VDC Adapters Power Supply
Wall Mount AC Adapters ac-dc, 5 Vdc, 2 A, SW, wall-plug, EU, P5 center pos, level VI, black
4
Description

Introduction

This project was created using Proteus software for design automation and Keil as the embedded IDE. This project adds more security and user friendly features to the password based door lock systems available in the market. While also using low-cost components to reduce the overall cost of project, so that it can be accessible to everyone more easily.

Objective

  • The objective of this project was to create a more robust, time-saving, safe and better solution to the traditional door locks(the keys and lock maneuver) that have high chances of burglary and therefore put the safety of the residents and goods at risk.
  • It reduces the headache of carrying physical keys with you all the time. Losing your keys would not be a headache anymore.
  • A smart password system accessible through a phone is better option. However, the smart password locks also come with many disadvantages of cyber attacks, wifi outages, battery problems or the worst case scenario a phone theft. Thus, this project was built on the grounds of basic password lock system with extra features.
  • These features include allowing users to change their passwords (only if the user remembers the previous one). This allows users to change their passwords frequently as using only one password for a long time will wear the surface of the buttons.
  • This also generates green and red led lights for every correct and incorrect password respectively.
  • These lights can be used as an indicator that a person is trying to access the door to the nearby people.
  • This project can ultimately be used by both residential and industrial groups.

Steps for Construction:

Step1: Determining the microcontroller

The microcontroller chosen for this project is Atmel 8051 - AT89C51. This application is fairly simple so there is no need for a 16/32 bit microcontroller. These costs low, use low power and the newer variants are more powerful. For a hardware just for checking passwords 8051 family is perfect.

Step2: Determining other components

This project uses 6-digits for ensuring high security of the passwords. A L293D is used since the 12V motors cannot be directly used with the microcontroller. A simple LM016L can be used as 16x2 LCD module for displaying messages. Other components like crystals, resistors and a toggle button improve the functionality of the whole system.

Step3: Working

  • The code for this project is written in embedded C. 
  • The default password for the device is taken as "123456" which can be changed by entering a reset code "**00##" which allows users to enter a reset mode, after which they will be prompted to enter the current pin for security reasons. 
  • If the users fail to do so they will be taken out of the reset mode by default. If they succeed, the users can enter a new custom password. 
  • After changing the password the user will be prompted with the password screen again where they will have to enter their new custom password.
  • For every wrong password, a red led lights glows whereas for every correct password a green light glows.

 

  • Default mode password - "123456", Reset mode - "**00##".

 

 

Downloads

project Download
Code Download

Institute / Organization

Manipal Institute of Technology, Manipal
Comments
Ad