You are on page 1of 8

e-ISSN: 2582-5208

International Research Journal of Modernization in Engineering Technology and Science


( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com

DOOR LOCKING USING KEYPAD AND ARDUINO


Annmary Vadakkan*1, Athulya Babu V K*2, Christy Pappachan*3, Prof. Ani Sunny*4
*1,2,3Department of Computer Science and Engineering
Kothamangalam, Ernakulam – Kerala, India.
*4Assistant Professor, Department of Computer Science and Engineering
Kothamangalam, Ernakulam – Kerala, India.
ABSTRACT
Every individual needs to feel secure in their daily lives. In our security pattern, access control for doors plays
an essential role. Password-based door lock systems allow authorized persons to access restricted areas.
Conventional locks are not as secure as they once were; anyone can break in if they break these locks. We need
a framework that provides 24/7 benefit. It is controlled by an Arduino. The password is entered using a
keypad. The entered password is compared with the known password when setting a combination password
and by using 1-6 digits. A correct password opens the door and displays the status on the LCD. If the password
is wrong, the door remains closed and states "WRONG PASSWORD" on LCD. The buzzer will also activate when
password is entered incorrectly an indefinite number of times. By replacing mechanical door locks with
electronic door locks, the security door locking system promises to make a bold step for the future.
I. INTRODUCTION
Security is a means of defending against threats and assuring one's safety. Security has always been a big
concern in areas like homes, businesses, institutions, laboratories, and so on, in order to keep our resources
secure and prevent illegal access to them. In the past, there were fewer security procedures in place to prevent
unwanted access. For such sites and apps, a variety of security methods have been implemented in recent
years. Password-protected systems, RFID card technologies, biometric-protected systems, OTP-based,
cryptography-based, and other security solutions are currently available. Each system has its own set of
applications. As the number of thefts rises every day, security becomes a risk. As a result, a digital code lock can
easily safeguard your home or locker. It will only unlock your door if you input the correct password.
The ARDUINO UNO is used to create a password-based door lock system, in which the door is unlocked and the
concerned individual is granted entry to the secured area after the correct code or password is entered. The
Password Based Door Lock System with Arduino UNO is a simple project that uses a secure password to unlock
the door. The door is unlocked and the concerned individual is permitted entrance to the secured area once the
correct code or password is entered using an Arduino UNO. It will prompt you to input the password again if
another person arrives. If the password is incorrect, the door will remain locked, preventing the individual
from entering.
The main concept behind this project is to open a door using a keypad and a password. When the passcode is
entered incorrectly multiple times, the Buzzer will get trigger. Using a keypad, the user can customize this
password at any moment. The Arduino UNO is the main component in the circuit, and it is utilized to send a text
message to the home's owner informing them of the security breach. Passwords are inputted by using a 4*4
keypad. The entered password is compared to the password that has already been input. If the password is
right, the system uses a servo motor to open the door and displays the door's status on the LCD. If the password
is incorrect, the door will remain shut and the LCD will read "Incorrect Password" and “Door is close”.
II. MATERIALS
2.1 ArduinoUnoR3
An Arduino pin can be configured as an input or output by using the pin Mode () function. With the pin Mode ()
function, you can adjust a pin's behavior as an input or output. Using the mode INPUT_PULLUP, internal pull-up
resistors can be enabled. Additionally, the INPUT mode disables the internal pull-ups explicitly.

www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science


[780]
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com
Features
● Arduino boards can read analog or digital input signals from different sensors and convert them into
outputs, such as turning on or off a motor, switching LEDs on and off, connecting to the cloud, and
many other actions.
● It is possible to control the board functions by sending a set of instructions to the microcontroller on
the board via Arduino IDE (referred to as uploading software).
● The Arduino does not require extra hardware (called a programmer) to load new code onto the board.
All we need is a USB cable.
● Arduino's IDE also uses a simplified version of C++, making programming easier.
● Lastly, Arduino uses a standard form factor to break down the functions of the microcontroller into an
easier-to-use package.

Figure 1: Arduino Uno


2.2 Breadboard
Breadboards, or protoboards, are construction bases for prototyping electronics. The term was originally
referring to a literal breadboard, a polished board used for slicing bread.

Figure 2: Breadboard

www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science


[781]
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com
2.3 Piezo Buzzer
It works on the principle of piezo crystals and produces a beep sound on receiving an input.

Figure 3: Buzzer
2.4 Resistor
A resistor is a passive electrical component with two terminals that creates electrical resistance.

Figure 4: Resistor
2.5 Potentiometer
Potentiometers are voltage dividers that are three-terminal resistors with revolving or sliding contacts. It
operates as a variable resistor or rheostat when only two terminals, one end and the wiper, are employed.

Figure 5: Potentiometer

www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science


[782]
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com
2.6 Jumper Wires
The primary function of these components is to connect the various components of a circuit.

Figure 6: Jumper wires


2.7 4x4Keypad
This component's 4*4 matrix is used to insert input values into the project. The component has a total of 8
terminals, which are controlled by the module's 16 buttons.

Figure 7: Keypad
2.8 LCD16×2
Liquid crystal displays (LCD) are flat-panel displays or other modulated displays that use liquid crystals
combined with polarizers to modulate light. Liquid crystals don't emit light directly, but instead use a backlight
or reflector to produce color and monochrome images. In LCD displays, arbitrary images can be displayed (such
as in a general-purpose computer display) or fixed images can be displayed or hidden. The preset words, digits,
and seven-segment displays on digital clocks are all examples of devices using these displays.

Figure 8: LCD Display


www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[783]
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com
2.9 Servo Motor
Servomotors are rotary or linear actuators that enable for the accurate position, velocity, and acceleration
control. They are made consisting of an appropriate motor and a position feedback sensor. The servo is
operated by sending pulses of variable width through the control wire, often known as pulse width modulation
(PWM). There are three types of pulses: minimum, maximal, and repetition rate. A servo motor can rotate 90
degrees in either direction for a total of 180 degrees in either direction.

Figure 9: Servo Motor


2.10 Interfacing Components
2.10.1 Interfacing Arduino to Lcd Display
 The 16 pins of lcd is connected to different pins of the Arduino as shown
 Pin 1(VEE), pin5(RW), pin 16 (GND) are connected to the ground of Arduino
 Pin 3(Vo) to middle of potentiometer. Which is responsible for the contrast of lcd
 Pin6(E) to pin 8 of Arduino, indicate valid data in data pins
 Pin4(RS) to pin 9 used to select register
 Data pin 11,12,13,14 to 7,6,5,4 pins of the Arduino
 Pin 15 to VCC through 200 ohm resistor to change backlight LED brightness

Figure 10: Interfacing Arduino to Lcd Display


2.10.2 Interfacing Keypad with Arduino
 The matrix keypad used here follows an encoding method using 8 pin for 16 keys
 Pin 8 to pin 3 is connected to the analog i/p pins of Arduino i.e, A0 to A5
www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[784]
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com
 Pin 2 and pin1 are connected to pin3 and pin2 of Arduino respectively

Figure 11: Interfacing Keypad with Arduino


III. METHODOLOGY
In the past, locks were mechanically operated and these can now be replaced with modern electronic locking
systems, which are a combination of mechanical and electronic devices. In these systems, a secure password
acts as a means of unlocking a door. Old fashioned lock systems are mechanical, and these can be replaced by
new advanced techniques of locking systems. These techniques use both mechanical and electronic
components and are highly intelligent.

Figure 12: Flowchart


www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[785]
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com
The flow chart in the Figure 12 depicts the project's operation in detail. initially, the password is known. A
servo angle is reset when the device is turned on to secure the door. The password is then entered using a
keypad. The Arduino can read the passcode entered on a keypad and compare it to the known password. The
servo motor unlocks the door for 10 seconds if the entered password matches the known password, and the
status is displayed on the LCD. Otherwise, the beeper notifies the user that the password was incorrect, and the
door remains closed with the message "Door is closed." An Arduino UNO is included in the circuit, which sends
a text message to the circuit's owner.
IV. RESULTS AND DISCUSSION
In the below Figure 13, the LCD displays to the user, "ENTER PASSWORD." On the LCD, the entered password is
displayed as characters. The user has entered the right password in Figure 14, and the LCD displays "CORRECT"
and "Door is Open" on the LCD. The servo motor deflects, allowing the door to be unlocked.

Figure 13: Showing user to enter the password

Figure 14: Password is correct and the door is open


www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[786]
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:03/Issue:11/November-2021 Impact Factor- 6.752 www.irjmets.com
The user has typed an incorrect password in the figure, Figure 13, and the LCD displays "INCORRECT" and
"Door is Close." The servo motor stops deflecting, resulting the door being locked. The buzzer is also activated.

Figure 15: Password is incorrect and the door is close


V. CONCLUSION
This project designed and implemented a door locking system using a keypad and Arduino board. The
Arduino compares the password with the default password. A servo motor will be rotated according to the
password, and a corresponding message will be displayed on the LCD. The door opens when the password is
correct as of the default password that was set. A buzzer beeps when the user-provided input is incorrect or
invalid. It is very useful for people who are looking for more secure doors and lockers. Mechanical and
electronic components both are used in these techniques, making them highly efficient. The password-based
door lock system will provide maximum security so that users are able to fully satisfy their needs. Meanwhile,
an individual can afford to buy a door locking system at minimal cost in order to keep their valuables safe and
secure.
VI. REFERENCES
[1] Meera Mathew, R S Divya, Super secure door lock system for critical zones, International Conference on
Networks & Advances in Computational Technologies (NetACT) Global Journal of Computer Science and
Technology: C Software & Data Engineering, Volume 20, Issue 2, No. 2020, pp 12-20
[2] Shrajna Shetty, Shubham Shetty, Varsha Vishwakarma, Smita Patil, "Review Paper on Door Lock Security
Systems", Convergence to Digital World - Quo Vadis (ICCDW) 2020 International Conference on, pp. 1-4,
2020.Gyusoo Kim and Seulgi Lee, “2014 Payment Research”, Bank of Korea, Vol. 2015, No. 1, Jan. 2015.
[3] Aman Sharma, Anjana Goen “Smart Home Security System,” International Conference on Advanced
Computation and Telecommunication (ICACAT), 2018.
[4] http://arduino.cc/tutorial
[5] http://instructables.com

www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science


[787]

You might also like