Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
74 views25 pages

PSWD Based Door Lock System 2

The document describes a password-based door lock system project using an Arduino microcontroller and a solenoid lock. The system allows users to enter a predefined password via a keypad to gain access through the door. If the correct password is entered, the Arduino verifies it and sends a signal to the solenoid lock to unlock the door. This provides secure access control while improving convenience over traditional key-based locks. The objectives of the project are to enhance security, offer a user-friendly interface, automate the locking/unlocking process, and allow flexibility through customizable passwords.

Uploaded by

Lucky Kotresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views25 pages

PSWD Based Door Lock System 2

The document describes a password-based door lock system project using an Arduino microcontroller and a solenoid lock. The system allows users to enter a predefined password via a keypad to gain access through the door. If the correct password is entered, the Arduino verifies it and sends a signal to the solenoid lock to unlock the door. This provides secure access control while improving convenience over traditional key-based locks. The objectives of the project are to enhance security, offer a user-friendly interface, automate the locking/unlocking process, and allow flexibility through customizable passwords.

Uploaded by

Lucky Kotresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI

Mini Project Report


ON
“Password based door lock system using arduino”
Submitted in the partial fulfilment of the requirement for the award of degree of Bachelor of
Engineering during the Academic year 2022-23

Mini Project Associates

NAME USN
1. Deepika.A.R 3VC20EE009
2. Bhumika.K.R 3VC20EE008
3. G.Bhuvaneshwari 3VC20EE011

Mini Project Guide Mini Project In-charges


Mrs.Deepa.B, Asst.Prof Mr. Aladalli Sharanabasappa ,Asst.
Prof.
Mrs.Gayathri, Asst. Prof.

Mini Project Coordinator & HOD Principal


Dr. S. Kotresh Dr. T. Hanumantha
Reddy

DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING


RAO BAHADUR Y. MAHABALESWARAPPA ENGINEERING COLLEGE
CANTONMENT, BALLARI-583104, KARNATAKA
AFFILIATED TO VISVESVARAYA TECHNOLOGICAL UNIVERSITY,
BELAGAVI APPROVED BY AICTE, NEW DELHI
2022-23
VEERASHAIVA VIDYAVARDAHKA SANGHA’S
RAO BAHADUR Y MAHABALESHWARAPPA ENGINEERING COLLEGE
ACCREDITED BY NAAC WITH B++
(AFFILIATED TO VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI&
APPROVED BY AICTE, NEW DELHI)
BALLARI – 583104, KARNATAKA
DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING

CERTIFICATE

This is to certify that mini project work entitled “Password based door lock system
using arduino” is bonafied Work carried out by Deepika.A.R(3VC20EE009),
Bhumika.K.R (3VC20EE008), G.Bhuvaneshwari (3VC20EE011) of 6thSemester in Partial
fulfillment for the award of degree of Bachelor of Engineering in Electrical& Electronics
Engineering of the Visvesvaraya Technological University, Belgaum during the year 2022-2023.
It is certified that all corrections / suggestions indicated for internal assessment have been
incorporated in the report. The mini project report has been approved as it satisfies the
academic requirement in respect of mini project work prescribed for the Bachelor of
Engineering Degree.

Signature of guide Signature of Mini Project In-Charges


Mrs.Deepa.B, Asst.Proff Mr. Aladalli Sharanabasappa, Asst. Prof.
Mrs. Gayathri, Asst. Prof.

Signature of Mini Project Coordinator & HOD Signature of Principal


Dr.S.Kotresh Dr. T. Hanumantha Reddy
Name of Examiners: Signature with Date
1)
2)
ACKNOWLEDGEMENT
I would like to express our regards and acknowledgement to all those who helped in making this
Mini Project work possible.

I am grateful to our beloved Principal Dr. T. Hanumantha Reddy for providing facilities and
untiring zeal, which constantly inspired me towards the attainment of everlasting knowledge
throughout the course.
I am deeply indebted to Dr.S.Kotresh Professor & HOD of Electrical &Electronics
Engineering department for the valuable suggestions and constant encouragement provided for
the successful completion of the Project.

I am grateful to our beloved Faculties of EEE and Mini Project In-charges Mr. Aladalli
Sharanabasappa and Mrs. Gayathri for their valuable suggestions and constant support during
Mini Project work.
I would like to thank our guide, Mrs.Deepa.B, Asst.Proff, Electrical & Electronics Engineering
department for the constant guidance for the successful completion of Mini Project.
Finally, I would like to thank all the teaching and Non-teaching staff members of Electrical and
Electronics Engineering department for their guidance and support. I am also thankful to my
family members and friends for their extended support and encouragement.
Declaration
We hereby declare that the entire work embodied in this Mini Project work entitled
“Password based door lock system using arduino” has been carried out by us under
the guidance of ‘Mrs.Deepa.B’ at Electrical & Electronics Engineering Department,
Rao Bahadur Y.Mahabaleswarappa Engineering College, Ballari affiliated to
Visvesvaraya Technological University Belagavi.

1. Deepika.A.R 3VC20EE009
2. Bhumika.K.R 3VC20EE008
3. G.Bhuvaneshwari 3VC20EE011
CONTENTS

Abstract
1. Introduction
2. Literature survey.
3. Objective of the project.
4. Methodology (Include block diagram, circuit diagrams with neat explanation of each
component or block).
5.Program.
6.Working of circuit.
7. Advantages/Disadvantages/Applications.
8.Conclusion.
9. Future scope of project
ABSTRACT

The Password-Based Door Lock System is a secure and convenient solution for controlling
access to doors, combining the power of Arduino microcontroller and a solenoid block. This system
aims to enhance the traditional key-based door locks by replacing them with a digital password
entry mechanism.

1. The system utilizes an Arduino microcontroller board, a keypad for password input, and a
solenoid block for physical door lock control. The Arduino acts as the central processing
unit, responsible for managing the password verification and controlling the solenoid block.

2. Upon entering the correct password through the keypad, the Arduino compares it with the
stored password in its memory. If the input matches the stored password, the Arduino sends a
signal to activate the solenoid block, which mechanically unlocks the door. Conversely, if the
entered password is incorrect, access to the door remains denied.

3. To ensure system security, the password is securely stored in the Arduino's non-volatile
memory. Additionally, measures can be implemented to prevent brute force attacks, such as
temporary lockouts after a certain number of failed attempts.

4. The Password-Based Door Lock System offers several advantages over conventional lock
systems. It eliminates the need for physical keys, reducing the risk of lost or stolen keys. The
password can be easily changed by reprogramming the Arduino, providing flexibility and
improved security. Moreover, the system can be integrated with other security features, such
as alarms or surveillance systems, to enhance overall safety.

5. This project demonstrates the feasibility and effectiveness of a password-based door lock
system using Arduino and a solenoid block. By combining the power of digital technology
with mechanical locking mechanisms, it offers an efficient and secure solution for access
control in various applications, including homes, offices, and institutions.
INTRODUCTION

▪ The Password-Based Door Lock System is an innovative security solution that combines the
versatility of Arduino microcontroller boards and the reliability of solenoid locks to provide
an efficient and secure access control mechanism. This system eliminates the need for
traditional keys and replaces them with a user-defined password, enhancing convenience and
improving security measures.

▪ By employing an Arduino board and a solenoid lock, the project ensures a reliable
and customizable locking mechanism. The user enters a predefined password via a keypad,
which is then authenticated by the Arduino. Upon successful verification, the Arduino
activates the solenoid lock, granting access to the authorized individual .
BASIC OBJECTIVES

The basic objective of a password door lock system using a solenoid lock and Arduino is to
provide secure access control to a door by requiring the correct password input. The project aims
to:

Enhance Security: Implement a password-based authentication system to ensure that only


authorized individuals can gain access to the door. By requiring the correct password, the system
adds an extra layer of security to protect against unauthorized entry.

Convenience and Ease of Use: Provide a user-friendly interface for entering the password,
typically through a keypad. This allows authorized users to easily unlock the door without the
need for physical keys.

Automation: Automate the process of unlocking and locking the door using a solenoid lock
controlled by the Arduino board. The system eliminates the need for manual unlocking and
locking, making it more convenient and efficient for users.

Flexibility and Customization: Allow for the programming of different passwords and the ability to
change them as needed. This flexibility enables users to adapt the system to their specific security
requirements.

Integration with Existing Infrastructure: Enable integration with existing door mechanisms by
using a solenoid lock. The solenoid lock can be connected to the existing door hardware, such as a
latch or bolt, to control the locking and unlocking actions.

Overall, the objective of this project is to create a reliable and secure access control system that
utilizes a solenoid lock, Arduino, and a password-based authentication mechanism. It aims to offer
convenience, flexibility, and enhanced security while integrating with existing infrastructure.
LITERATURE SURVEY

• Passwords aren't a novel concept when it comes to locking doors. However, as technology
advances, these systems have become more sophisticated.
• Akshaya Krishnadas Bhat et al. [1] This article illustrates how a password-protected door
lock can be used in a variety of settings, including the home, office, and desk. The system
will check the user's entered password for validity before unlocking it for the authorized
user. This method could be a less expensive alternative to expensive door lock systems that
use retina scans, iris scans, or fingerprints, among several other technologies.
• Prof.A.Y. Prabhakar et al. [2] - This article shows how an ARDUINO UNO-based password-
based door lock system is created, where the door is unlocked and the user who input the
right code is authorized to enter the zone. And the common individual can bid on such a
locking system for a low price in order to ensure the protection of their valuables.
• Dr. Manish kumar et al. [3] This study states how we may use an Android-based smart
door lock system to address the issues of unwanted access, trespassing, and instruction.
Also included in this concept is a bluetooth module that serves as a communication channel
between the Arduino Uno and a mobile phone. This application is simple to set up and
maintain.
• Shruti Jalpur et al. [4]– This paper depicts a secure and protected door lock system, with
network security supplied by the use of cryptographic algorithms such as SHA-128 and SHA-
512. The technology also allows the authorized user to access the information remotely.
The user input is encrypted and hashed using the algorithms AES-128 and SHA-512. If the
sensor detects unauthorized access, it will send a notification to the smart phone
application placed on the authorized user's smartphone.

• Aleksander IBRO et al. [5]- This article depicts a door lock system that allows users to unlock
the door using face recognition and data stored on the cloud via a camera installed on the
door. This work will be quite costly, and it will necessitate the installation and employment
of qualified experts. Shuhad Natashab Bint Mohd Zainot [6]- "The door entry system
utilizing Arduino is created to overcome cannot be replaced," according to this research. It
also saves time and provides a high level of security.
CIRCUIT COMPONENTS

1.ARDUINO

An Arduino kit can be used to create a password-based door lock system. The Arduino is a
popular microcontroller board that allows you to control electronic components and interact with
the physical world. Here's an explanation of the components and their roles in the system:

The heart of the system is an Arduino board, such as the Arduino Uno. It provides the processing
power and controls the other components based on the programmed instructions.

2.4*4 KEYPAD.

A 4x4 keypad is a commonly used input device in key password-based door lock systems. It
consists of a grid of 16 buttons arranged in a 4 by 4 configuration, with each button representing a
unique character or function.

The keypad is typically used for entering a numeric or alphanumeric password to gain access to
a secured area to a secured area.
3.5-VOLTS RELAY .

A 5-volt relay is an electromechanical device used for switching electrical circuits on and off using
a low-voltage control signal. It consists of a coil and one or more sets of contacts. When a current
passes through the coil, it generates a magnetic field that attracts a movable armature, causing
the contacts to change their position.

In the context of a password-based door lock system, a 5-volt relay can be used to control the
locking and unlocking mechanism of the door.

4.SOLENOID LOCK.

A solenoid is an electromechanical device that converts electrical energy into linear motion. It
consists of a coil of wire and a movable plunger or core. When a current flows through the coil, it
creates a magnetic field that attracts or repels the plunger, causing it to move.

In the context of a password-based door lock system, a solenoid can be used as the locking
mechanism.
5.5 AMPS VITO SMPS.

A 5-amp VITO SMPS (Switched-Mode Power Supply) is a power supply unit that is designed to
deliver up to 5 amps of current output. SMPSs are widely used in various electronic devices to
convert incoming AC (alternating current) power from the main power source into DC (direct
current) power suitable for the device's operation.

6.JUMPER WIRES.

In a basic door lock system, a jumper wire can be used as a simple means of bypassing
the authentication or password mechanism. However, it's important to note that
using a jumper wire to bypass a door lock system's password is generally not
recommended for security reasons.
PROGRAM
#include<Keypad.h>
char*password = "1234";
int position =0;
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] = {13,12,11,10};
byte colPins[COLS] = {9,8,7,6};

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


int Lock = 5;

void setup()
{
pinMode(Lock, OUTPUT);
LockedPosition(true);
}

void loop()
{
char key=keypad.getKey();
if(key=='*'||key=='#')
{
position =0;
LockedPosition(true);
}
if(key==password[position])
{
position++;
}
if(position == 4)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if(locked)
{
digitalWrite(Lock,LOW);
}
else
{
digitalWrite(Lock,HIGH);
}
}
WORKING OF THE CIRCUIT
A circuit for a password-based door lock system using a solenoid and Arduino typically involves
the following components and working principles:

Wiring Connections:

Connect the 5V and GND pins of the Arduino to the positive and negative rails of the breadboard,
respectively.
Connect the keypad to the Arduino board using digital pins. Each key on the keypad will correspond
to a specific digital input pin.
Connect the solenoid lock to the Arduino board using a digital output pin. Make sure to use an
appropriate driver circuit (e.g., a transistor or relay) if the solenoid requires higher current than the
Arduino can provide directly.
Initialize Libraries:

Install the required libraries (e.g., Keypad library) in the Arduino IDE.
Include the necessary libraries in the Arduino sketch.

Define variables for storing the password, entered password, keypad pins, solenoid pin, etc.
Set up in program.
When a key is pressed on the keypad, read the corresponding value.
If the entered password matches the stored password, proceed to unlock the door.
Door Unlock:

Activate the solenoid lock by sending a signal to the digital output pin connected to the solenoid.
To lock the door now use the hash key in keypad and it process to lock the door.
This is a basic overview of how a password-based door lock system using a solenoid and Arduino can
be implemented. The actual code and specific circuit connections may vary depending on the
components used and the desired functionality.
ADVANTAGES
▪ Cost-effective: Password-based door lock systems using Arduino and solenoids are relatively
inexpensive compared to other advanced electronic locking systems.

▪ Easy implementation: Arduino boards are beginner-friendly and offer a user-friendly


environment for programming and connecting various components. Integrating a solenoid
with an Arduino for a password-based door lock system is straightforward.

▪ Customizable security: With an Arduino-based system, you have the flexibility to customize
the security features according to your requirements. You can easily change the password,
add multiple passwords, or incorporate additional security measures like biometric
authentication if needed.

▪ User-friendly operation: The password-based system eliminates the need for physical keys,
making it convenient for users. They can simply input the correct password to gain access,
eliminating the risk of losing or misplacing keys.

▪ Remote access and monitoring: Arduino systems can be connected to other devices or
networks, allowing for remote access and monitoring. This feature enables you to control and
monitor the door lock system from a distance, providing an additional layer of convenience
and security.

DISADVANTAGES
▪ Limited scalability: Arduino-based systems are typically designed for small-scale applications.
If you require a door lock system for a large-scale operation or multiple access points, you may
need to explore more advanced and scalable solutions.

▪ Reliability concerns: Arduino boards are generally reliable, but they may encounter issues like
power failures, software glitches, or component failures. These issues can potentially lead to
malfunctions or lockouts, necessitating regular maintenance and backup plans.

▪ Lack of redundancy: In case of system failure, such as a power outage or a malfunctioning


Arduino board, the door lock system may become inaccessible. It is important to have backup
power sources or alternative access methods to mitigate the risk of being locked out.

o Technical knowledge required: Implementing an Arduino-based door lock system


requires some technical knowledge and programming skills. If you are not familiar with
electronics or programming, you may need assistance or additional resources to set up
and maintain the system effectiveness.
APPLICATIONS
Home Security: You can use the password-based door lock system to enhance the security of your
home. It allows authorized individuals to enter by entering the correct password while keeping
unauthorized individuals out.

Office Access Control: In an office environment, you can use the system to control access to
restricted areas such as server rooms or executive offices. Only employees with the correct
password can gain entry.

Shared Spaces: Password-based door locks can be used in shared spaces such as dormitories,
hostels, or shared apartments. Each resident can have their own password to access the common
areas.

Locker Rooms: The system can be implemented in locker rooms of gyms, schools, or workplaces,
ensuring that only authorized individuals can access the lockers.

Laboratories: Password-based locks can be used in research laboratories or other secure areas to
prevent unauthorized access and ensure the safety of sensitive equipment and materials.

Hotel Rooms: Instead of traditional key-based systems, password-based door locks can be
installed in hotel rooms, providing guests with a unique password for the duration of their stay.

Storage Units: Password-based locks can be used in storage units or warehouses to secure
valuable items. Only individuals with the correct password can gain access.

Restricted Areas: In high-security environments such as military installations or government


facilities, password-based door locks can be used to control access to classified areas.

Remember to implement necessary security measures, such as using strong passwords and
regularly changing them, to ensure the effectiveness of the system and minimize the risk of
unauthorized access.
CONCLUSION

The password-based door lock system using a solenoid and Arduino can provide a secure and
convenient way to control access to a door. Here are some potential conclusions about this
system:

▪ Enhanced Security.
▪ Ease of Use.
▪ Flexibility and Customization.
▪ Integration with Existing Infrastructure.
▪ Limitations and Considerations.
▪ Maintenance and Reliability.

In conclusion, a password-based door lock system using a solenoid and Arduino offers an effective
and convenient method of securing access to a door. While it provides enhanced security and
customization options, it is essential to remain vigilant about potential vulnerabilities and
implement appropriate security measures to ensure its effectiveness.
FUTURE SCOPE OF PROJECT

The future scope of a password-based door lock system using a solenoid and Arduino can be
quite promising. Here are a few potential advancements and applications that could be explored:

▪ Enhanced Security Features.


▪ Integration with Smart Home Systems.
▪ Cloud Connectivity.
▪ Internet of Things (IoT) Integration.
▪ Machine Learning and Artificial Intelligence.
▪ Energy Efficiency and Sustainability.
▪ Integration with Security Systems.
▪ Customization and Personalization.

These are just a few potential avenues for the future development of a password-based door lock
system using a solenoid and Arduino. As technology continues to advance, the possibilities for
enhancing security, convenience, and integration with other systems are virtually limitless.
DEEPIKA.A.R G.BHUVANESHWARI
3VC20EE009 3VC20EE011

BHUMIKA.K.R
3VC20EE008
BLOCK DIAGRAM

Block diagram of password based door lock system using arduino and solenoid lock

Keypad: A 4x4 keypad is used to input the password. It consists of 16 buttons arranged in a 4x4 grid.

Arduino: The Arduino board acts as the main control unit of the system. It receives input from the keypad,
processes the password, and controls the solenoid lock accordingly.

Solenoid Lock: A solenoid lock is an electromechanical device that can be used to lock and unlock a door. The
Arduino sends a signal to the solenoid lock to either engage or disengage the lock mechanism based on the
entered password.

The system flow would generally involve the following steps:

The user enters the password on the keypad.

The Arduino reads the input from the keypad and compares it with the stored password.

If the entered password matches the stored password, the Arduino sends a signal to the solenoid lock to unlock
the door.

If the entered password does not match the stored password, the Arduino does not send a signal to the solenoid
lock, and the door remains locked.

Note that this is a simplified block diagram, and in a real-world implementation, additional components like a
power supply, display module, and other peripheral devices may be required. Additionally, proper programming
and security considerations must be implemented to ensure the system's reliability and protect against
unauthorized access.
CIRCUIT DIAGRAM OF PASSWORD BASED
DOOR LOCK SYSTEM USING ARDUINO

You might also like