Arduino Based Door Lock System With Password

An Arduino Based Door Lock System is a project where you can secure your doors with a password. Traditional lock systems which are using mechanical locks are replaced by modern technologies. These techniques are electrical and highly intelligent. These systems are also very efficient than older locks. We can use the door unlocking system as an automated room appliance. Like we open the door and the light and fan of the room turn on.

In this project, we are going to build an Arduino based door lock system with a password feature. This project also provides the control to actuating the load. This system is very easy to use like only with a keypad you can operate it.

In this present day, this system is used to protect secure areas. Where those people can only enter who have passwords or permission to enter. After anyone enters the room the doors locked again. When any other arrives, the system asks for a password. If this person enters the wrong password the doors remain closed.

Must Read 8051 Microcontroller Based Door Security System

Project

Arduino Based Door Lock System
Arduino Based Door Lock System

Circuit Diagram

Arduino Based Door Lock System Circuit Diagram
Arduino Based Door Lock System Circuit Diagram

Components Required

  • Arduino Nano
  • Servo Motor
  • 4×3 Keypad
  • 16×2 LCD Display
  • 10KΩ Potentiometer
  • Buzzer
  • Veroboard
  • 12V Battery

Connection of Arduino Based Door Lock System

Now we are going to explain the circuit diagram of the Arduino based door lock system. At first, we show you the connection between the keypad and Arduino. We used here a 4×3 keypad. Connect all the pins of the keypad to the D1, D2, D3, D4, D5, D6 and D7 pin of the Arduino respectively.

Then we take a servo motor and connect the PWM pin with the D9 pin (PWM Output) of the Arduino. Now the positive part of the buzzer needs to be connected to the D10 pin of Arduino and the negative part will be grounded.

After completing these connections, we started to connect the LCD. Connect pin 2 and pin 15 to the VCC. Then connect pins 4, 6, 11, 12, 13 and 14 of the LCD to the A0, A1, A2, A3, A4 and A5 pin of the Arduino. Connect pin 1, 3, 5, 16 of the LCD display to the ground.

Working Principle of Arduino Based Door Lock System

For my purpose, I used a random password like “1234” by using the keypad.

The working principle is so simple. You just need to enter the password through the keypad provided. If the password is matched with the Arduino, it sends a signal to the servo and the servo rotate 180 degrees and then the door will open. Also, the LCD display shows a message “Access Granted”.

But if the password does not match. The Arduino does not send any signal to the motor and the door remains closed. This time the LCD display shows “Password Incorrect, Dismiss”. The alarm is beep when any of the keys are pressed. You can change all these messages anytime from the code.

Applications of Arduino Based Door Lock System

  • This circuit can be used as a door lock like keylocks.
  • It can be used at highly secure places to secure important documents.
  • With some modifications, this project can be used as a password-based home appliances system.

Advantages of Arduino Based Door Lock System

  • This project is very simple.
  • The components are very common.
  • Less power consumption.
  • It is a very simple but good security system.

Disadvantages of Arduino Based Door Lock System

  • This circuit can not be used remotely.
  • By any chance you forget the password, the door can not be opened.
  • Can’t possible to manuall reset the password using keypad. You need to reupload the code with new password using Arduino IDE software.

Arduino Code

To compile the code to the Arduino, we need some libraries. Download the library for the keypad.h from the below.

2 thoughts on “Arduino Based Door Lock System With Password”

  1. It is hard coded to work for only 4-digit passwords. An improvement would be to allow longer passwords.
    Also, after say 3 failed attempts, set a long delay before being allowed to try again, which will deter brute force attempts to crack the code.

Leave a Comment