nm embedded project smart lock system
nm embedded project smart lock system
Submitted by
NAVIN KARTHICK V
SAKTHIVEL I
YOGESHWARAN M
BACHELOR OF ENGINEERING
IN
Submitted by
PONMATHANKUMAR T
REJOY A
BACHELOR OF ENGINEERING
IN
i
ANNA UNIVERSITY : CHENNAI 600 025
BONAFIDE CERTIFICATE
Certified that this mini project report “SMART LOCK SYSTEM” is the bonafide work of
“V.NAVINKARTHICK(950521106013),I.SAKTHIVEL(950521106018),
M.YOGESHWARAN (950521106030)” who carried out the mini project work under my
supervision.
SIGNATURE SIGNATURE
Dr. A. BENO Dr. S. DARWIN
HEAD OF SUPERVISOR
THE DEPARTMENT
Associate Professor Associate Professor
Department of Electronics and Department of Electronics and
Communication Engineering Communication Engineering
Dr.Sivanthi Aditanar College of Dr.Sivanthi Aditanar College of
Engineering Engineering
Tiruchendur - 628 215 Tiruchendur - 628 215
This project report is submitted for the Mini Project Work (ET3491) Lab Examination of Anna
University, Chennai, May 2024, conducted at Dr. Sivanthi Aditanar College of Engineering,
Tiruchendur on
ii
ACKNOWLEDGEMENT
We express our sincere gratitude to the Almighty God for his unwavering
blessings throughout this project. We would like to thank our Parents for their
invaluable moral support and encouragement.
We extend our heartfelt thanks to our Principal, Dr. G. Wiselin Jiji, M.E.,
Ph.D., for her continuous encouragement during this project.
iii
ABSTRACT
This project proposes the development of a smart lock system using an Arduino
microcontroller, a solenoid valve relay, and a 4x3 keypad. The system aims to provide a
secure and convenient way to control access to a door or any other locking mechanism. The
proposed system integrates a keypad for user input and an Arduino microcontroller for
processing the input and controlling the solenoid valve relay, which in turn locks or unlocks
the door. The user interface is based on a 4x3 keypad, allowing users to input a predefined
code to unlock the door. The Arduino microcontroller processes the input from the keypad
and compares it with the predefined code. If the input matches the code, the microcontroller
activates the solenoid valve relay to unlock the door. Otherwise, the door remains locked.
This smart lock system offers an efficient and reliable solution for access control, suitable for
both residential and commercial applications. Additionally, it provides flexibility for users to
iv
TABLEOFCONTENTS
ABSTRACT iv
LIST OF FIGURES vi
1. OBJECTIVE 1
2. COMPONENTS REQUIRED 1
3. WORKING PRINCIPLE 2
3.2 EXPLANATION 3
4. OUTPUT 6
5. RESULT 7
1 Block Diagram 2
v
FIGURES
vi
vii
OBJECTIVE:
The objective of this project is to create a smart lock system using an Arduino, a 4x3 keypad,
and a solenoid valve relay. The system should allow users to input a passcode via the keypad,
and if the correct passcode is entered, the solenoid valve relay should unlock the door. The
system should also have the ability to manage multiple passcodes and provide feedback to the
user indicating whether the input was successful or not
COMPONENTS REQUIRED:
1. Personal Computer
2. Arduino UNO
3. LCD Display (16 x 2)
4. Solenoid valve
5. Bread Board
6. 12 V Relay
7. Keypad 4x3
8. Connecting Wires
9. 12V DC Adapter
1
WORKING PRINCIPLE:
3.1BLOCK DIAGRAM:
2
3.2 WORKING EXPLANATION :
Smart Lock System using Ardiuno UNO the 4X3 keypad is used to enter the password on 4x3
matrix and lcd display with i2c is used to display the password and enter the password to
demonstrate on digital logic input relay module is used to trigger the solenoid valve if the
password is correct the solenoid valve is open if incorrect solenoid valve is not open
wires. Arduino has many different types of pins, each labeled on the board and used for
different functions.
Arduino Uno: Arduino is an opensource gadgets stage based on easy-to-use equipment and
computer program. Arduino sheets are able to studied inputs - light on sensor, finger on button
LCD Display: LCDs (Liquid Crystal Displays) are used in embedded system applications for
displaying various parameters and status of the system.16×2 LCD is named so because; it has
4*4 Keypad: The 4 x 4 Network Keypad Module may be a non-encoded network keypad
comprising of 16 keys in parallel. The keys of each push and column are associated through
the pins exterior – stick R1-R4 as labeled adjacent to control the lines, when C1-C4, the
columns.
3
Relay Module: A 5V hand-off module may be a single or multi-channel transfer module that
works with a low-level trigger voltage of 5V DC. The input voltage before
System Design:
User Input: When a user approaches the door, they are prompted to enter a passcode using
Authentication: The entered passcode is compared with the predefined passcode stored in the
Arduino's memory.
If the entered passcode matches the stored one, the system proceeds to the next step.
If the entered passcode is incorrect, the system denies access and notifies the user with an
Unlocking Mechanism: Upon successful authentication, the Arduino sends a signal to the
Solenoid Valve Relay to unlock the door. The solenoid valve is activated, allowing the user
Status Indication: LED indicators provide visual feedback to indicate the system's status.
Implementation Steps:
Hardware Setup:
4
Connect the Solenoid Valve Relay to the Arduino board.
Connect LEDs and a buzzer for status indication and audible feedback.
Code Implementation:
Write code to handle user input and compare the entered passcode with the stored one.Control
Testing:
Expected Outcome:
Upon entering the correct passcode, the Smart Lock System will unlock the door by activating
the Solenoid Valve Relay. The system will provide visual and audible feedback to the user
indicating the status of the system. If an incorrect passcode is entered, the system will deny
access and provide appropriate feedback. Overall, the system will provide a secure and
system will provide a secure and reliable method for controlling access to the secured area
5
OUTPUT:
6
OUTPUT:
7
RESULT:
Thus the Smart Lock System Using Arduino is Working and executed Successfully
8
APPENDIX
PROGRAM:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
#define Password_Length 5
char Data[Password_Length];
char hexaKeys[ROWS][COLS] = {
};
void setup() {
pinMode(relayPin, OUTPUT);
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Enter Password:");
void loop() {
if (customKey) {
10
if (strncmp(Data, Master, Password_Length - 1) == 0) { // Compare entered password with
master password
lcd.clear();
lcd.print("Correct Password");
if (!isPasswordCorrect) {
isPasswordCorrect = true;
lcd.clear();
lcd.print("Enter Password:");
clearData();
} else {
lcd.clear();
lcd.print("Incorrect Password");
lcd.clear();
lcd.print("Enter Password:");
11
clearData();
lcd.setCursor(data_count - 1, 1);
void clearData() {
Data[i] = '\0';
data_count = 0;
12
13