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.

PCB Design

For removing messy wiring and give a clean look, I designed a PCB prototype for this project. It is also helpful for troubleshooting that runs great without any errors. To design this PCB board, I used EasyEDA as it is too easy to use. For ordering PCB for this, I prefer PCBWay.

Gerber file for Arduino Based Door Lock System Gerber.

You can view the Gerber file from here Gerber File Viewer.

PCB View

Arduino Based Door Lock System 2D View
2D View
Arduino Based Door Lock System 3D View
3D View

Order PCB From PCBWay

There are so many forums or communities for electronics online in today’s technical world, and one of the famous ones for PCB manufacturing is the PCBWay. PCBWay is a place that brings manufacturers and customers together. They have more than a decade of experience in this field of fabrication, prototyping and assembling PCBs. PCBWay have proved their focus to their customers’ needs in terms of cost-effectiveness, delivery, and quality.

Monthly Submission for PCBWay

Great opportunity for showing your creativity in electronics right now. PCBWay’s Open Source Community is a platform for sharing creative electronic projects and insightful knowledge for global project makers.

You can express your own ideas about electronics and also receive feedback from the community that is ready for you! Whenever you have some useful and practical ideas on how to design or develop an electronic project, or anything that you think should be discussed at PCBWay. By writing articles on your own unique ideas, you can earn reward points basis on your project as well as earn money. You are always welcome to post articles about electronic projects in their community. For detailed information just check out this link and start a fresh beginning. Monthly Submission for PCBWay.

How PCB Manufacturing Process Done in PCBWay

Standard quality for any product needs to be maintained using some parameters. PCBWay gives that opportunity by quality control in designing and manufacturing. At first, they ensure accuracy, clarity, validity of the PCB files that we sent to them.

Then all the boards will go through the most stringent tests other than the basic visual check. They adopt most of the testing and inspecting equipment used in the industry, such as Flying Probe Tester, X-Ray Inspection Machine, Automated Optical Inspection (AOI) Machine. PCBWay are having 50+ new engineers on the daily basis around the world using PCBs for their work, who trust for their reliable quality. They produce high-quality pink, orange, grey, even transparent solder mask. Moreover, according to people needs, they can also provide Black core PCB. Check it out for a High-Quality PCB solder mask. There are some pictures below of the new colours of solder musks.

Features of PCBWay

PCB Prototyping & Manufacturing: PCBWay produces FR-4 and Aluminum boards and advanced PCBs like Rogers, HDI, Flexible and Rigid-Flex boards, at a very reasonable price. Just check this Instant Quote to order premium PCBs for your hobby projects.

PCB Assembly: It not only offers PCB Prototyping but also offers PCB Assembly service. You can order a full PCB board with attached components by uploading your file. SMT & THT assembly starts from only 30$ including free stencil and worldwide shipping. The components can be sourced and provided by PCBWay, or by clients themselves.

Open Source Community: It not only offers PCB Prototype & Assembly service but also gives opportunities to students for sponsorships. I think this is so great. They feature their projects on the website also.

3D Printing & CNC: It also produces Rapid Prototyping like 3D printing, CNC Machining, Sheet Metal Fabrication, and Injection Molding. The quality of the product is too premium and reliable. And also the best part is that you will receive your order within a minimum of 3 days.

PCBWay Store: More boutique gift modules are waiting for you to discover, giving your creativity wings. You can order all types of electronic equipment, components and many more with exciting offers. Go with the link and buy your needs, PCBWay Store.

Services: PCBWay offers great servicing of their products. It takes only 3 to 15 days according to courier service to deliver your products. Also, it has a live support facility. Whenever you have any problems, you can always reach a live customer service person to respond to your emails or messages. They have the “Return and Refund” principle, for every unusable board caused by PCBWay, they will rebuild and refund the order soon.

Guide for Ordering PCB From PCBWay

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.

Output Video

Leave a Comment