Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 45

DESIGN AND CONSTRUCTION OF SMART DOOR SECURITY SYSTEM USING

ARDUINO UNO AND SECURITY PASSCODE

OCTOBER, 2023

1
DESIGN AND CONSTRUCTION OF SMART DOOR SECURITY SYSTEM
USING ARDUINO UNO AND SECURITY PASSCODE

By

SAID, SANI IBRAHIM (MAAUN/21/CS/10002)

MALAMI, MUHAMMAD ALIYU (MAAUN/21/CS/10072)

AMINU, HAYATU TAFIDA (MAAUN/21/CS/10089)

2
A Project Report submitted to the department of Computer Science, Maryam Abacha

American University of Niger (MAAUN) in partial fulfillment of the requirement for the

award of Bachelor of Science (BSc.) Degree in Computer Science.

Department of Computer Science,

Faculty of Computer Science and Information Technology.

2023

3
APPROVAL

This project has been approved for acceptance by the Computer Science department, Maryam

Abacha American University of Niger (MAAUN), and meets the regulations governing the

award of Bachelor of Science of MAAUN.

PROJECT SUPERVISOR HEAD OF DEPARTMENT

NAME: ABBAS SULAIMAN NAME: Dr. M J MUSA

SIGNATURE: ………………...…… SIGNATURE: ………………...……

DATE: ………………………...…… DATE: ………………………….…...

4
ABSTRACT

The Smart Security Door Lock System is an innovative solution designed to enhance

home security through advanced technology integration. This project focuses on

developing a secure and convenient door lock system that incorporates smart features

for remote access, user authentication, and real-time monitoring. The system employs

passcode entry to ensure smooth user experience and tightened security. The

implementation involves hardware integration, software development, and encryption

protocols to safeguard user data and prevent unauthorized access. Through rigorous

testing and evaluation, the Smart Security Door Lock System demonstrates its

effectiveness in providing a robust defense against intrusions while offering a user-

friendly interface for homeowners. This project underscores the importance of

leveraging smart technologies to ensure domestic security measures in a connected

world.

5
TABLE OF CONTENTS

Page

Title page -----------------------------------------------------------------------------------------------1

Approval ----------------------------------------------------------------------------------------------- 4

Abstract -------------------------------------------------------------------------------------------------5

Table of Contents ------------------------------------------------------------------------------------- 6

List of Figures ------------------------------------------------------------------------------------------


8

List of Plates --------------------------------------------------------------------------------------------


9

List of Appendices -------------------------------------------------------------------------------------


9

6
CHAPTER ONE

1.0 INTRODUCTION ----------------------------------------------------------------------10

1.1 Background Information---------------------------------------------------------------10

1.2 Background of the Study ---------------------------------------------------------------12

1.3 Problem Statement ----------------------------------------------------------------------12

1.4 Aim and Objectives ---------------------------------------------------------------------13

1.5 Scope of the Project ---------------------------------------------------------------------14

CHAPTER TWO

2.0 LITERATURE REVIEW AND THEORETICAL BACKGROUND ------------15

2.1 Introduction ------------------------------------------------------------------------------15

2.2 Review of Relevant Literatures --------------------------------------------------------15

2.3 Justification -------------------------------------------------------------------------------16

2.4 Theoretical Background -----------------------------------------------------------------16

2.4.1 Smart door ---------------------------------------------------------------------------------17

2.4.2 Keypad -------------------------------------------------------------------------------------18

2.4.3 Arduino Uno R3 Board ------------------------------------------------------------------18

2.4.4 RGB LCD Display ----------------------------------------------------------------------- 21

2.5 Servo Motor -------------------------------------------------------------------------------22

CHAPTER THREE

3.0 DESIGN AND IMPLEMENTATION ------------------------------------------------


25

7
3.1 Introduction -------------------------------------------------------------------------------
25

3.2 Methodology -----------------------------------------------------------------------------26

3.2.1 Input unit ----------------------------------------------------------------------------------27

3.2.2 Receiver unit ------------------------------------------------------------------------------


27

3.2.3 Processing unit ---------------------------------------------------------------------------27

3.2.4 Output unit --------------------------------------------------------------------------------28

3.3 Flowchart ---------------------------------------------------------------------------------29

3.4 Power supply unit ------------------------------------------------------------------------


30

3.4.1 Transformer section ----------------------------------------------------------------------


31

3.4.2 Rectification section ---------------------------------------------------------------------31

3.4.3 Voltage regulation section --------------------------------------------------------------32

3.4.4 Voltage Regulation Test -----------------------------------------------------------------


33

3.5 Soldering ----------------------------------------------------------------------------------34

CHAPTER FOUR

4.0 TESTS, RESULTS AND DISCUSSION ---------------------------------------------


35

4.1 Introduction -------------------------------------------------------------------------------35

4.2 Test ----------------------------------------------------------------------------------------35

4.3 Power Supply Unit ---------------------------------------------------------------------35

4.4 Results -------------------------------------------------------------------------------------35

8
4.5 Discussion -------------------------------------------------------------------------------- 36

CHAPTER FIVE

5.0 SUMMARY, CONCLUSION AND RECOMMENDATION --------------------37

5.1 Summary -----------------------------------------------------------------------------------37

5.2 Conclusion -------------------------------------------------------------------------------------37

5.3 Recommendation -----------------------------------------------------------------------------38

Reference ------------------------------------------------------------------------------------44

LIST OF FIGURES

Figure 1: Block Diagram -------------------------------------------------------------------26

Figure 2: Flowchart -------------------------------------------------------------------------29

Figure 3: Supply Block Diagram ----------------------------------------------------------


30

Figure 4: Power Supply Circuit ------------------------------------------------------------


30

Figure 5: Voltage Regulator ----------------------------------------------------------------


32

LIST OF PLATES

Plate 1: Pin Input Keypad ------------------------------------------------------------------17

Plate 2: Arduino Uno R3 Board -----------------------------------------------------------20

Plate 3: RGB LCD Display ----------------------------------------------------------------22

Plate 4: Servo Motor -------------------------------------------------------------------------23

LIST OF APPENDICES

APPENDIX A: Circuit Diagram ----------------------------------------------------------39

APPENDIX B: Program Code ------------------------------------------------------------40

9
CHAPTER ONE

1.0 Introduction

1.1 Background Information

A smart door lock system that utilizes passcodes is a convenient and

secure method of controlling access to a property. This technology combines traditional

keyless entry with modern digital security measures. Here’s some background information

about such systems as stated by reynaerus.com:

Key Features:

 Passcode Entry: Users can unlock the door by entering a predetermined passcode
on a keypad or touchscreen. This eliminates the need for physical keys and
provides a quick and easy way to gain access.
 Customizable Passcodes: Many smart door lock systems allow users to create and
manage multiple passcodes. This is useful for granting access to different
individuals, such as family members, guests, or service providers.
 Temporary Passcodes: Users can generate temporary passcodes that are valid for a
specific period. This is particularly handy for granting access to guests or
contractors for a limited time, after which the code becomes invalid.

10
 Security Alerts: The system can notify users when incorrect passcodes are entered
multiple times or when a door is unlocked. This helps enhance security by alerting
users to potential unauthorized access attempts.
 Backup Entry: In case the passcode is forgotten or the technology fails, many smart
lock systems offer a backup entry method, such as a physical key.

o Advantages:

 Convenience: Passcode-based smart locks eliminate the need to carry physical keys
and prevent the hassle of lost or misplaced keys.
 Enhanced Security: Passcodes are more resistant to physical theft than traditional
keys. Additionally, smart locks often implement encryption and other security
measures to protect against hacking attempts.
 Customization: Users can easily manage and tailor access permissions according to
their needs, granting different levels of access to different individuals.
 Remote Access: Users can grant access to guests even when they’re not physically
present at the property, which is particularly useful for Airbnb hosts or property
managers.
 Audit Trails: Some systems log entry times and passcode usage, providing an audit
trail that can be reviewed for security or record-keeping purposes.
o Considerations:

 Passcode Security: Users should choose strong and unique passcodes to prevent
unauthorized access. Avoid using easily guessable codes like birthdates or
sequential numbers.
 Regular Updates: Smart lock manufacturers often release firmware updates to
address security vulnerabilities. Regularly updating the system’s software is
important to maintain its security.
 Battery Life: Smart locks are typically battery-powered. Users should monitor
battery levels and be prepared for replacements or recharging.

11
 Integration: Check if the smart lock system can integrate with other smart home
devices or platforms if desired.

 Passcode-based smart door lock systems offer a modern and convenient way to
secure properties while providing customizable access control and remote
management capabilities.
(www.iot.lifesmart.com/homesecurity) With this it is logical to say the emergence of smart

door lock systems utilizing passcodes as the primary method of authentication represents a

smooth integration of traditional security practices and modern technological

advancements. By eliminating the constraints of conventional key-based access, these

systems introduce the concept of keyless entry through digital passcodes. This innovation

offers an array of features and benefits that redefine access control for residential and

commercial properties. The key features of such passcode-based smart door lock systems

include passcode entry, where users input alphanumeric codes through keypads to swiftly

unlock doors. This negates the need for physical keys and simplifies the process of gaining

entry.

1.2 Background of The Study

Issues of theft and burglary increases with high rate as such door security is a necessity,

Door safety is now of upmost importance which triggers the need for project such as

“smart door security system” to provide a safe and secure environment in generally.

12
1.3 Problem Statement

Despite advancements in home security, traditional lock systems are increasingly prone to

security breaches, lost keys, and the inconvenience of physical key management. As a

result, there is a pressing need for an innovative and reliable solution that enhances smart

technology to integrate security and convenience. The problem at hand is to develop a

smart security door lock system that addresses these challenges by exploiting cutting-edge

authentication methods and robust encryption, ultimately providing homeowners with a

smooth, secure, and user-friendly access control solution.

1.4 Aim and Objectives

Aim:

The aim of the smart door lock system is to provide an advanced and secure access control

solution that exposes modern technology to enhance convenience and security for property

owners.

Objectives:

• Enhance Security: Develop robust authentication methods, such as passcodes, to

ensure a higher level of security compared to traditional lock systems.

• Convenience: Create a user-friendly interface that simplifies access management

for homeowners, eliminating the need for physical key management.

• Integration: Ensure compatibility with other smart home devices, ensuring smooth

integration within existing home automation setups.

13
• Durability and Reliability: Design a dependable lock mechanism that withstands

external factors and potential tampering, ensuring long-term functionality.

• User Education: Develop comprehensive user resources to guide homeowners

through setup, troubleshooting, and security practices.

• Battery Efficiency: Design energy-efficient components to prolong battery life and

reduce the frequency of replacements.

1.5 Scope of The Project

The project is about interacting with component and devices with the help of

Arduino Uno R3 Board (Microprocessor). The project is limited to performing the task of

locking and unlocking of doors precisely main entrance doors of a building. It is not

designed for the purpose of surveillance in a home or any building nor is it a burglar alarm

that alarms you in any case of perimeter bridging, it is only limited to performing the task

of opening and closing. The project aims to develop a smart door lock system that employs

passcode entry. The scope includes hardware design, software development for the lock,

encryption implementation, and user-friendly interfaces. The system will enhance security

and enable convenient access.

14
CHAPTER TWO

2.0 LITERATURE REVIEW AND THEORITICAL BACKGROUND

2.1 Introduction

This chapter encompasses of the literature review and theoretical background of the

project. The literature review deals with related project written by other researchers, the

difficulties they encountered, limitations and modifications that should be made.

Theoretical background explains in details some of the most important component used in

the project.

2.2 Review of Relevant Literature

Smart doors have been implemented using different methods such as Radio

frequency identification (RFID) and Biometric lock to unlock and lock door. Both the

RFID and biometric lock are real ideal and smart ways to make a door smart, due to

necessity and limitations such as cloning of biometric prints or card. The use of Passcode

Entry is much simpler and easier to adapt and use. It gives you more access to

communicate with the door and it also give access to physically challenged persons that

might not have a finger to use for biometric lock or is crippled to use RFID but with

15
respect to this project physically challenged can simply open their door by simply entering

their passcodes. Adarsh V Patil et al (2008) did a similar project Android based smart door

locking system which employed the use of android phone which is also a smartphone and

also a GSM module to access the door. Also Agbo David et al (2017) did a somewhat

similar project based on door locking system using android application. Shafarana A.R.F et

al (2017) did android based automation and security system for smart homes. There are

many other projects done on smart door using various ways of access such as Fingerprint,

Passcode Entry, Mobile Apps etc. in different countries. They are all different from each

other in terms of designs, features, devices, and algorithm. They are mostly designed

according to specific needs and availability of components in the respective areas. Some of

them are cheap, some of them are very expensive. Availability of both hardware and

software is necessary to work. After a long searching, I have found a lot of articles.

Searching for security purpose articles, also found some projects done for door security.

These are mainly done in western countries. Many projects are done only for security

purpose with Arduino or Raspberry Pi. Again, the projects are done only for controlling

home Appliances using Arduino or Raspberry Pi. Most of the previous researches

encountered problems in their design especially in terms of cloning by other third party

and availability of components.

2.3 Justification

A passcode smart security door lock system project is justified due to its potential

to enhance home security, offer convenience, and integrate with modern technology. It

addresses the need for advanced security measures, reduces the risk of unauthorized

access, and provides users with remote control and monitoring capabilities. Moreover, as

smart home technology gains popularity, this project aligns with the trend toward

16
interconnected and intelligent living spaces, offering a valuable solution for both

homeowners and renters seeking to enhance their safety and peace of mind.

2.4.1 Smart door


Smart and door are two different words with different meanings. Advanced oxford

dictionary has given a clear and precise definition of both words smart meaning intelligent

while a door is any metal, glass, wood etc, that is opened and closed so that people can

gain access in and out of a room, building, car etc, by definition of smart and door smart

door can easily be referred to as doors that can be accessed easily without having to touch

it physically

2.4.2 Keypad

Implementing a 4x4 passcode keypad in a smart security door lock system provides

a secure and user-friendly way to access a property. This keypad can offer thousands of

possible combinations, making it difficult for unauthorized individuals to guess or gain

entry. Additionally, the compact design of a 4x4 keypad makes it easy to install and

integrate into various entry points, ensuring a seamless user experience while maintaining

the security of the premises.

17
PLATE 1: KEYPAD

2.4.3 Arduino Uno

The Arduino Uno R3 board is a popular microcontroller board used for various

electronics projects. It's based on the ATmega328P microcontroller and offers a range of

features that make it suitable for both beginners and experienced makers:

 Microcontroller: The heart of the board is the ATmega328P microcontroller, which

provides processing power and input/output capabilities.

 Digital and Analog I/O Pins: The board has a variety of digital and analog pins that

can be used to interface with sensors, actuators, and other components.

18
 USB Connection: The board can be connected to a computer via USB, allowing

you to upload code and communicate with the microcontroller.

 Integrated Development Environment (IDE): Arduino IDE, a user-friendly

programming environment, supports coding and uploading sketches (programs) to

the board.

 Open-Source: Arduino's open-source nature encourages a collaborative community

of makers who share code and projects.

 Shields: Arduino Uno is compatible with various "shields," which are expansion

boards that provide additional functionalities like WiFi, Bluetooth, motor control,

etc.

 Analog-to-Digital Converter (ADC): The ADC allows analog sensor readings and

is useful for measuring physical quantities.

 Power Options: The board can be powered via USB, an external power supply, or

through the VIN pin.

The Arduino Uno R3 is suitable for a wide range of projects, from basic LED blinking and

sensor interfacing to more advanced robotics, automation, and Internet of Things (IoT)

applications. Its simplicity and versatility make it an excellent choice for beginners and

experienced hobbyists alike.

19
PLATE 2: ARDUINO UNO R3 BOARD

20
Specification of Arduino Uno

Microcontroller ATmega328p

Operating Voltage 5V

Input Voltage (recommended) 7-12V

Input Voltage (limit) 6-20V

Digital I/O Pins 14 (of which 6 provide PWM output)

PWM Digital I/O Pins 6

Analog Input Pins 6

DC Current per I/O Pin 20 mA

DC Current for 3.3V Pin 50 mA

Flash Memory 32 KB (ATmega328P)

SRAM 2 KB (ATmega328P)

EEPROM 1 KB (ATmega328P)

Clock Speed 16 MHz

IO with built-in LED 1 (on pin #13)

Length 68.6 mm

Width 53.4 mm

Weight 25 g

2.4.4 RGB LCD Display

An RGB LCD display, also known as a color LCD, is a vibrant screen that employs

a combination of red, green, and blue light to generate a wide spectrum of colors. The

display is made up of pixels, each consisting of three sub-pixels for the primary colors. By

21
varying the intensity of these sub-pixels, the display can reproduce countless colors and

shades. These displays commonly feature a backlight that illuminates the pixels from

behind, making the content visible. They find application in devices where visual output is

essential, such as smartphones, tablets, computer monitors, digital cameras, and more. To

work with an RGB LCD display, you'd typically use software libraries or code to control

individual pixels' colors and brightness levels. This allows you to display images, graphics,

and text on the screen. Moreover, some displays come with touch-sensitive capabilities,

enabling users to interact with the content directly.

PLATE 3: RGB LCD DISPLAY

Factors like resolution, refresh rate, viewing angles, and power consumption

influence the display's performance and user experience. The ability to render dynamic

content with rich color makes RGB LCD displays a cornerstone of modern visual

technology.

2.4.5 Servo Motor

A servo motor is an electrical device that can be used to push or rotate an object

with great precision. If you want to rotate an object at some specific angle or distance, then

22
servo motor can be used easily for that purpose. Servo motor can rotate ninety degrees in

both directions. They can be used to move many equipment that require moving at any

angle

Servo mechanism;

It consists of three parts

• Controlled device

• Output sensor

• Feedback system

It is a closed loop system where it uses positive feedback system to control motion and

final position of the shaft. Here the device is controlled by a feedback signal generated by

comparing output signal and reference input signal. The reference input signal is compared

to reference output signal and the third signal is produced by feedback system. And the

third signal acts as input signal to control device. This signal is present as long as feedback

signal is generated or there is difference between reference input signal and reference

output signal. So the main task of servo-mechanism is to maintain output of a system at

desired value.

Controlling servo motor

All motors have three wires coming out of them. Out of which two will be used for supply

(positive and negative) and one will be used for signal that is sent from the

microcontroller. Servo motor is controlled by PMW (pulse width modulation) which is

provided by control wires. There is a maximum pulse and a repetition rate. Servo motor

can turn 90 degrees from either direction from its neutral position. The servo motor expects

23
to see a pulse every 20 milliseconds (ms) and the length of the pulse will determine how

the motor turns.

Plate 4: Servo Motor

Specification of Servo Motor

• Weight: 9g

• Dimension: 22.2 x 11.8 x 31 mm approx.

• Stall torque: 1.8 kgf cm

• Operating speed: 0.1 s/60 degree

• Operating voltage: 4.8 V (~5V)

• Dead band width: 10μs

• Temperature range: 0 ºC – 55

24
CHAPTER THREE

3.0 DESIGN AND IMPLEMENTATION

3.1 Introduction

This chapter explains in details the various stages involved in this research, the

stages are explaining in form of units such as input unit, receiver unit, processor unit and

output unit. According to the proposed system, I designed a system structure shown in

the block diagram in this chapter. The model was designed in such a way that it can be

kept at a safe place within. This is done in the easiest and lowest cost possible. However,

the system is flexible and can be customized for future enhancement. Changing one of

the components setup has to be compatible with the right software available. Every

component used in this system was Programmed and tested separately for safety

measures and matching with the right driver. Each component was programmed

separately with Arduino UNO using different Arduino IDE. Also they were run in

different computers. Later on all were combined in a single Arduino IDE.

25
26
3.2 Methodology

Power supply

LCD RGB Display

Smart door

Microcontroller Servo Motor


(Arduino Uno)

Figure 1: Block Diagram

27
3.2.1 Input Unit

This is the unit in which command is given to start the execution of a program and

in this project the Keypad is the component that serves the purpose of sending command as

input. The Keypad sends signal when connection is established between the Servo motor

and the smart Lock. The Keypad sends the input command through a series of unique

numbers which can either send lock (which is close) or unlock (which is to open) the

respective door. The input command can only be executed when and only when the

passcode is being entered.

3.2.2 Receiver Unit


This unit deals primarily with the receiving of command signals sent from the

input. The command sent by the Keypad is received in this unit with the help of the RGB

LCD module. The module also serves as a link to establish connection between the Keypad

and the Arduino microcontroller.

3.2.3 Processing Unit


The processing unit of a passcode smart security door lock system typically

consists of a microcontroller or a microprocessor that manages the authentication and

access control functions. It processes the entered passcodes, verifies them, and controls

the locking and unlocking mechanisms of the door. This unit is the brains and work of

this project. This unit determines the output of the project, it determines what command

to execute, how to execute, when to execute and where to execute it. The Arduino

microcontroller serves the purpose of processing the command of this project. The

Arduino receives the command from the Keypad on what command to execute RGB

LCD module and then the microcontroller determines what function to perform and how

28
to perform the particular task and give the required output of the given task. The

Arduino that serves as the main processing unit has two units the hardware (which is the

Arduino board) and the IDE (integrated development environment) which comprises of

software program that runs the whole operation and how the circuit basically works.

3.2.4 Output Unit


This is the final stage of the methodology on receiving the command from the

microcontroller. The task to be performed could either be to open or close the door. Servo

motor is the device used in this unit to perform the task. When the servo motor receives the

command from the microcontroller to open it moves its position to ninety degrees which

moves up and opens the slider while when the command is to close the servo motor moves

to one hundred and eighty degrees which moves the slider to lock position which locks the

door in turn. All this action is performing and written in form of a computer code in the

Arduino integrated development environment (IDE) and how the task will be performed.

29
START

ENTER PASSCODE ON
KEYPAD

NO

IS PASSCODE
CORRECT?
YES

DISPLAY ON RGB LCD


MODULE

OPEN DOOR

NO

IS DOOR
OPEN?
YES

CLOSE DOOR

YES NO
IS DOOR
CLOSED?

Figure 2: Flowchart

30
3.4 Power Supply Unit

240V 50HZ 12V/5V


input regulator DC
Transformer rectifier

Figure 3: Supply Block Diagram

The total power requirement of this project is 5V.

The power supply unit consists of a 240v/12v step down transformer, rectifiers, filters and

a voltage regulator

Figure 4: Power Supply Circuit

31
3.4.1 Transformer Section
The 240v ac is stepped down to 12v ac using a transformer. The resultant output is given
by

3.4.2 Rectifier Section


A full wave bridge rectifier of 5A is chosen for the capacity to a load up to 2A using IN4001 diodes.

The DC value of the rectified voltage is given by;

= (2/π) × 16.97

The maximum load current can be obtained from;

Hence the Average load current is given by;

Hence, due to standard and transformer size, the final transformer specification chosen was

transformer.

32
3.4.3 Voltage Regulation Section
LM317T Rating

• Input voltage range 7V- 35V

• Current rating

• Output voltage range VMax = 5.2, VMin = 4.8

Figure 5: Voltage Regulator

33
3.4.4 Voltage Regulation Test

Pin Pin Function Description

No.

1 INPUT Input voltage (7V-35V) In this pin of the IC


positive unregulated
voltage is given in
regulation.

2 GROUND Ground (0V) In this pin where the


ground is given. This
pin is neutral for
equally the input and
output.

3 OUTPUT Regulated output; 5V (4.8V- The output of the


regulated 5V volt is
taken o
5.2V)

34
3.5 Soldering Process

Soldering is a method to join metals by melting a filler metal (solder) that cools and solidifies in
the joint. It's widely used in electronics, plumbing, and metalwork. Soldering typically involves
metals like copper, brass, or electronic components, using solder made of alloys like tin and lead
or lead-free alternatives. Essential tools for soldering include a soldering iron, solder wire or
paste, flux, and a heat-resistant surface. The process involves cleaning the surfaces, applying
flux, heating with a soldering iron, and letting the solder melt to create a secure connection.
Soldering is used in electronics, plumbing, and jewelry making, among other applications. Safety
precautions include proper ventilation, eye protection, and choosing lead-free solder for health
and environmental concerns. Common soldering issues include cold joints, solder bridges, and
component overheating, which can be avoided with practice and proper technique.

De-soldering is the process of removing or replacing components by melting and removing


existing solder. Soldering is a valuable skill for various fields, from DIY projects to professional
applications.

35
CHAPTER FOUR

4.0 RESULTS AND DISCUSSION

4.1 Introduction

This chapter discusses mainly about the tests carried out in the process of bringing about

this project. There has been a series of tests conducted from which various results were

obtained. And there is also a brief discussion about the project itself and the processes

involved in bringing about the project.

4.2.1 Power Supply Unit

The output of the LM317T Voltage regulator was connected to a 5W 7.5Ω chalk resistor as

load. The output of Voltage Regulator before (no load) and after connection (on load) was

evaluated and presented in a table.

4.3 Result

Below is the description of all the tests conducted during this project. The tests were

carried out in various sections of the project. The tests were carried out to determine the

amount of load that can be carried and the detection of the load.The program for the

Arduino Uno microcontroller was written in C language and was then compiled into an

executable file using the Arduino IDE. The process began by importing the executable file

into the Proteus Design Suite, which was used to create and simulate the hardware circuit

portrayed. After successfully simulating the software, the physical hardware was

assembled on a breadboard, and the Arduino microcontroller was programmed using the

Arduino IDE.

36
DESCRIPTION INPUT VOLTAGE WITH WOLTAGE

LOAD WITHOUT LOAD

Transformer 220V 23.8

Load Current 30.9V 5.07V 4.02V

4.4 Discussion

This project solely aims at controlling doors. Locking and unlocking of doors without

using the traditional tangible key method. This project employs the use of passcodes to

unlock and lock doors. It also provides a safe and secure environment for those who

employ this project, you no longer have to worry about lost keys and the possible threat of

someone finding your key and potentially using it to gain access to your home or building.

This project was made using Arduino Uno and passcode keypad which are both open to the

public. So, the implementation rate is inexpensive and it is reasonable by a common

person. Accomplishment of RGB LCD display with microcontroller permits the system

installation in more easy way. The system has been successfully designed to control the

door condition using Passcode entry.

37
CHAPTER FIVE

5.0 SUMMARY, CONCLUSION AND RECOMMENDATION

5.1 Summary

This research project is centered around a door locking system that operates on a

password-based mechanism, distinguishing itself from biometric, smartphone-

controlled, and RFID technologies. It relies on the Arduino Uno board and a Servo

motor for door access control. This approach provides a practical and economical

security solution, as users simply input a password to gain entry. The integration of the

Arduino Uno and Servo motor ensures an effective and reliable door locking system for

various security applications, making it a promising alternative to more complex and

expensive security technologies.

5.2 Conclusion

In summary, this research project has centered on the creation of a password-

based door locking system, integrating the Arduino Uno board and a Servo motor. By

doing so, we've introduced a straightforward, cost-effective, and user-friendly

alternative to more advanced security methods such as biometrics, smartphone control,

and RFID technologies. The implemented system demonstrated its feasibility and

reliability, showcasing its potential for effectively guarding various environments. This

approach aligns with the evolving landscape of security needs, offering a practical

solution that combines accessibility and affordability. In a world where technology

constantly advances, the password-based door locking system stands as a testament to

the enduring significance of simplicity and efficiency in the realm of security. Its

adaptability makes it a compelling choice for enhancing security.

38
5.3 Recommendation

During this research some of the problems I came across were the malfunction that occurs

when you input the unlock password twice. The Smart-door lock system then fails to

recognize any command given to it until the Arduino Uno board is manually reset. And

another problem I encountered was the non-stop rotation of the servo motor, that was then

reprogrammed and worked perfectly. I strongly recommend that future research to be made

on this project takes very cautious measures in trying to avoid iteration of such problems.

39
APPENDIX A

Circuit Diagram

40
APPENDIX B

Program Code

#include <Servo.h> //nicludes servo library

#include <Keypad.h> //includes keypad library

#include <LiquidCrystal_I2C.h> //includes lcd library

LiquidCrystal_I2C lcd(0x27, 16, 2); // description of the type of LCD

Servo servo;

const byte ROWS = 4;

const byte COLS = 4;

char keys[ROWS][COLS] = {

{'1', '2', '3', 'A'},


{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};

byte rowPins[ROWS] = {10, 9, 8, 7};

byte colPins[COLS] = {6, 5, 4, 3};

Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);


//Accept keys pressed on the keypad

String password = "";

bool isLocked = true;

41
String unlock = "1234"; //PASSCODE TO UNLOCK

String lock = "4321"; //PASSCODE TO LOCK

void setup()

servo.attach(11); //pin where servo was attached on arduino

Serial.begin(9600);

lcd.begin(); //turn on lcd

lcd.backlight(); //turn on lcd background light

lcd.setCursor(1, 0);

lcd.print("Input Passcode");

void loop()

char key = keypad.getKey();

if(key != '*' && key != NO_KEY){

password += key;

} else if(key == '*' && password.length() == 4){

checkPassword();

password = "";

} else if(key == '*' && password.length() < 4){

42
password = "";

} else if(key == '*' && password.length() > 4){

password = "";

void checkPassword(){

if(unlock == password){ //checks if passcode is correct

isLocked = false;

Serial.println(password);

servo.write(45); //servo command to unlock

delay(365);

servo.write(90);

lcd.setCursor(1, 0);

lcd.print("Door Unlocked!");

lcd.setCursor(2, 1);

lcd.print("WELCOME!");

delay(3000);

lcd.clear();

lcd.setCursor(1, 0);

43
lcd.print("ENTER PASSCODE");

lcd.setCursor(2, 4);

lcd.print("TO LOCK");

if(lock == password) { //check if passcode is correct

isLocked = true;

servo.write(140);

delay(365);

servo.write(90);

lcd.begin();

lcd.backlight();

lcd.setCursor(1, 0);

lcd.print("Door Locked!");

delay(3000);

lcd.clear();

44
REFERENCE

Automated Intelligent relay coupled door control system using technology. By A. Rajesh

B.M.O. Al-thobaiti, I.I.M. Abosolaiman, M.H.M. Alzahrani, S.H.A. Almalki, M.S.

Soliman, “Design and Implementation of a Reliable Real-Time Home Automation System

Based on Arduino Uno Single-Board Microcontroller”, Vol. 3, No. 3, pp 11-15, July 2014.

D. Javale, M. Mohsin, S. Nandanwar, M. Shingate, “Home Automation and Security

System Using Android ADK”, Vol. 3, Issue 2, pp 382-385, March 2013.

D. Saxena, P. Bisen and S. Bhoyerkar. 2012. Development of Intelligent Security and

Automation System, International Journal of Advanced Research in Computer Science and

Electronics Engineering (IJARCSEE). 1: 139- 143.

http://circuitdigest.com https;//www.reynaerus.com http://electronics.howstuffworks.com

http://www.creativeworld9.com/2011/04/ahttps://en.wikipedia.org/wiki/androiddevelopers

https:// www.bluetooth.com/whatisbluetooth

Kumar , C. Dinesh , R. Aravind Vol 4, 16th May 2015

S. Kumar, 2014. Ubiquitous Smart Home System Using Android Application.

International Journal of Computer Networks and Communications (IJCNC). 6: 33-43.

Shafana A.R.F.1, Aridharshan A. International Journal of Computer Science and

Information Technology Research ISSN 2348-120X (online) Vol. 5, Issue 3, pp: (26-30),

Month: July - September 2017.

45

You might also like