0% found this document useful (0 votes)
170 views

Major Project Report Final

This document is a major project report on a "Secured and Integrated Locking System with Remote Monitoring" submitted by four students to fulfill the requirements for a Bachelor of Technology degree in Electronics and Communication Engineering. It includes a certificate signed by the students and guide, an acknowledgement, the vision and mission statements of the Electronics and Communication Engineering department, and an abstract summarizing the project on developing a microcontroller-based secure locking system using Arduino and GSM technology.

Uploaded by

Rommel Ledesma
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)
170 views

Major Project Report Final

This document is a major project report on a "Secured and Integrated Locking System with Remote Monitoring" submitted by four students to fulfill the requirements for a Bachelor of Technology degree in Electronics and Communication Engineering. It includes a certificate signed by the students and guide, an acknowledgement, the vision and mission statements of the Electronics and Communication Engineering department, and an abstract summarizing the project on developing a microcontroller-based secure locking system using Arduino and GSM technology.

Uploaded by

Rommel Ledesma
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/ 42

MAJOR PROJECT REPORT

ON
“SECURED AND INTEGRATED LOCKING
SYSTEM WITH REMOTE MONITORING”

Submitted in partial fulfillment of the requirements


For the award of the degree of

BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND COMMUNICATION ENGINEERING

Submitted By
Shubham Rajput Hritik Ramuka

Mohd Danish Khan Mohit Keserwani

Under the guidance of


Mr. Manoranjan Kumar, Assistant Professor, ECE department

Department of Electronics & Communication Engineering


Dr. Akhilesh Das Gupta Institute of Technology &
Management
(Guru Gobind Singh Indraprastha University, Dwarka, Delhi.)
New Delhi-110053.
MAY - 2022.
i
CERTIFICATE

We hereby certify that the work that is being presented in the project report entitled
Secured And Integrated Locking System With Remote Monitoring to the partial
fulfillment of the requirements for the award of the degree of Bachelor of Technology
in Electronics & Communication Engineering from Dr. Akhilesh Das Gupta
Institute of Technology &Management, New Delhi. This is an authentic record of
our own work carried out during a period from Feb, 2022 to May, 2022 under the
guidance of Mr. Manoranjan Kumar, Assistant Professor in ECE department.

The matter presented in this project has not been submitted by us for the award of any
other degree elsewhere.

Shubham Rajput Hritik Ramuka

Mohd Danish Khan Mohit Keserwani

This is to certify that the above statement made by the candidates is correct to the best
of my knowledge. They are permitted to appear in the Major Project External
Examination.

Mr. Manoranjan Kumar Prof. (Dr.) Niranjan Bhattacharya


Assistant Professor, ECE HOD, ECE

The B. Tech Major Project Viva-Voce Examination of Shubham Rajput


Hritik Ramuka Mohd Danish Khan
Mohit Keserwani has been held on
……………………………….

Mr. Devraj Gautam (Signature of External Examiner)


Project Coordinator, ECE Deptt.

ii
ACKNOWLEDGEMENT

We would like to acknowledge the contributions of the following persons, without


whose help and guidance this report would not have been completed.
We acknowledge the counsel and support of our project guide Mr. Manoranjan
Kumar, Assistant Professor, ECE department, with respect and gratitude, whose
expertise, guidance, support, encouragement, and enthusiasm has made this report
possible. Their feedback vastly improved the quality of this report and provided an
enthralling experience. We are indeed proud and fortunate to be supervised by him.
We are thankful to Prof. (Dr.) Niranjan Bhattacharya, H.O.D. ECE department,
Dr. Akhilesh Das Gupta Institute of Technology & Management, New Delhi for his
constant encouragement, valuable suggestions and moral support and blessings.
We are immensely thankful to our esteemed, Prof. (Dr.) Sanjay Kumar, Director,
Dr. Akhilesh Das Gupta Institute of Technology & Management, New Delhi for his
never-ending motivation and support.
We shall ever remain indebted to Mr. Devraj Gautam, Project Coordinator ECE
department and faculty and staff members of Dr. Akhilesh Das Gupta Institute of
Technology & Management, New Delhi.
Finally, yet importantly, we would like to express our heartfelt thanks to God, our
beloved parents for their blessings, our friends/classmates for their help and wishes for
the successful completion of this project.

Shubham Rajput Hritik Ramuka

Mohd Danish Khan Mohit Keserwani

iii
Dr. Akhilesh Das Gupta Institute of Technology
& Management
Electronics and Communication Engineering

Vision Of Department: To produce World class Electronics & Communication


Engineers through academic excellence and innovations, who would be competent
Technocrats with work ethics to meet the needs of the society
Mission of Department Program Educational
Objectives (PEOs)
M1. To impart quality education for PEO1: Graduates shall excel in the
excelling in the field of Electronics field of electronics and communication
& Communication Engineering to engineering by applying their acquired
face real world challenges in knowledge and skills to develop
existing and emerging domains. feasible and viable solutions to
engineering challenges of the country.
M2. To provide a creative platform PEO2: Graduates shall be adaptive to
for promotion of innovations in the innovations and new technologies
field of Electronics & which shall lead them to professional
Communication Engineering by excellence.
keeping close proximity to industry.

M3. To provide conducive PEO3: Graduates shall manage


environment for development of resources skillfully and practice the
work ethics and prepare socially profession with ethics, integrity and
responsible citizens. social responsibility.

iv
ABSTRACT

In this report, we are presenting the development of a microcontroller based secure and
integrated locking system with remote monitoring using GSM and Arduino technology.
Nowadays, conventional locks are not so secure that they can be used especially in
place like banks or ATMs or lockers. By using this system, we can have security and
peace of mind as this system is more secure and can be used everywhere. In places like
banks and lockers and ATMs it can be used as filtering system by sharing OTP or RFID
tags to certain people like managers or some specific staff members.

v
TABLE OF CONTENTS

Title Page……………………………………………………………………………… i
Certificate………………………………………………………………………………ii
Acknowledgement………………………………………...……………………….….iii
Vision Mission…………………………………………………...……………………iv
Abstract…………………………………………………………………………...……v
Table of Contents…………………………………………………………………..vi-vii
List of Figure…………………………………………………………………............viii
List of Tables………………………………………………………………………..…ix

CHAPTER 1: INTRODUCTION AND LITERATURE REVIEW

1.1. Introduction………………………………………………………….....1
1.2. Basic terms of project………………………………………………..…2
1.3. Literature Overview………………………………………………........3
1.3.1“Fingerprint Based Door Lock Using Arduino”…………………………………3
1.3.2 “Password Based Door Locking System Using Arduino………………………..3
1.3.3 “Password Protected GSM based Device”………………………………………3
1.4. Motivation……………………………………………………….……..3
1.5. Organization of Project Report…………………………………..…….3

CHAPTER 2: METHODOLOGY ADOPTED

2.1 System and Overview……………………………………………………..5


2.2 Objective…………………………………………………….…………….5
2.3 Detailed Description of Components………………………………..........6
2.3.1 Arduino Uno R3……………………………………………………………………..6
2.3.2 SIM900A GSM Module.…………………………………………………………….6
2.3.3 20x4 LCD Display……………………………………………..................................7
2.3.4 4X4 Keypad……………………………………….…………………………………7
2.3.5 Solenoid Lock……………………………………….……….……………………...8
2.3.6 RFID MFRC522……………………………………….……………………………..9
2.3.7 Fingerprint Sensor R307…………………………….………………………….……10
2.3.8 Single Channel Relay….…………………………….……………………………….10

vi
2.3.9 LEDs.……………….….…………………………….……………………………11
2.3.10 BUZZER……………….….…………………………….…………………….....11
2.4 Description of Software Used………………………………………….12
2.4.1 Arduino IDE…………………………………………………………………....12
2.4.2 Fritzing………………………………………………………………………….13

CHAPTER 3: DESIGNING AND RESULT ANALYSIS


3.1 Designing……………………………………………………………..14
3.2 Result Analysis……………………………………………………….15

CHAPTER 4: MERITS, DEMERITS AND APPLICATIONS


4.1 Merits………………………………………...………………………..18
4.2 Demerits…………………………………………………………….....18
4.3 Applications……………………………...……………………………18

CHAPTER 5: CONCLUSIONS AND FUTURE SCOPE


5.1 Conclusion……………………………………………………………19
5.2 Future Scope………………………………………………………….19

REFERENCES…………………………………………………………………20
APPENDIX………………………………………………………………………22

vii
List of Figures

Figure No. Title of Figure Page No.


1.1 Overview of Project 1
2.1 Block Diagram of the System 5
2.2 Arduino Uno R3 6
2.3 SIM900a 7
2.4 20x4 LCD Display 7
2.5 4x4 Keypad 8
2.6 Solenoid Lock 9
2.7 MFRC522 9
2.8 Fingerprint Sensor R307 10
2.9 Single Channel Relay 11
2.10 LEDS 11
2.11 Buzzer 12
2.12 Arduino IDE 12
2.13 Fritzing 13
3.1 Circuit Diagram 14
3.2 Setup of System 15
3.3 Authorizing Fingerprint 15
3.4 Authorizing RFID 16
3.5 Remote Alert Sent to Mobile 16
3.6 Entering PIN 17

viii
List of Tables

Table No. Title of Table Page No.


1.1 Hardware used 2
1.2 Software used 2

ix
CHAPTER 1
INTRODUCTION AND LITERATURE REVIEW

1.1 INTRODUCTION
In our daily lives, safety is a major concern. Every person requires a sense of safety.
Our security pattern includes an access control system for doors. Traditional locks are
no longer as secure as they once were; anyone can gain access by breaking these locks.
We need to create a system that will assist 24 hours a day, seven days a week. Only
authorized individuals have access to restricted areas thanks to a password-based door
lock system. Arduino is in charge of the entire system. A keypad can be used to enter
the password. The door opens if the password matches the password entered in Arduino.
This password-based bolt structure will provide clients with a more secure and low-
effort locking-opening mechanism. Mechanical door locks will be replaced by
electronic door locks in the future, thanks to the security door lock automation system.

Figure 1.1: Overview of Project

1
1.2 BASIC TERMS OF PROJECT

Table -1.1: Hardware Used

S.No. Hardware Role

1. Arduino UNO Read the data from sensors and send data to cloud
R3 and mobile through Esp8266 and Gsm module.

2. Solenoid Lock A latch for electrical locking and unlocking.

3. Sim900a Sends data to Mobile Phone using SMS.

4. RFID It id a wirelesss system comprised of two


MFRC522 components tags and readers.

5. Fingerprint It optically reads the fingerprint of the user.


Sensor R307

6. 20X4 Lcd Display the data.


Display

7. 4x4 Keypad To Enter the password and OTP.

8. Single Channel It opens or closes the circuit of solenoid lock


Relay depending on the signal received from arduino.

9. LEDs Display status of lock.

10. Buzzer It is used as warning.

Table 1.2: Software Used


S. No. Software Role
1. Arduino IDE Used to program the primary and secondary
Arduino.
2. Fritzing Used to create circuit diagram.

2
1.3 LITERATURE OVERVIEW
1.3.1 “Fingerprint Based Door Lock Using Arduino”
This paper focuses to solve the security matters in door lock by bringing the concepts
of biometric fingerprint with the door lock. This Arduino NANO project will make use
of different devices to the implementation of the advanced security lock where there
are different features to maximize the security levels. [1]

1.3.2 “Password Based Door Locking System Using Arduino”


In this paper the author focuses on creating a Password based locking system which
will be more efficient for the people in the field of security like Houses, Institutions and
Banks. The door if and only if correct password is entered and for an incorrect
password, then message will be display and door will not be open. [2]

1.3.3 “Password Protected GSM based Device”


In this paper the work mainly focuses on the security of home when the user is out from
the place. GSM based technology proposed to keep updated owner about house
security. The security system is SMS based and uses GSM technology to send SMS to
the owner. Normally the aim of this type of system is to keep secure home from
intruders. [3]

1.4 MOTIVATION
➢ The motivation for doing this project was primarily an interest in solving real
life issues, as we see problem with traditional key lock that there is need of key
to unlock it. So, we come up with solution of smart lock
➢ This lock can be unlocked by various means and it is more secure than
traditional lock. There is no need to carry keys and no worries of losing the key.

1.5 ORGANISATION OF PROJECT REPORT


➢ In the Chapter One there is a general overview of our major project on Secured
& Integrated Locking System with Remote Monitoring build by our team.
➢ In Chapter Two there is detailed description of technology implemented and
the hardware and software component used for coding and to create the circuit
diagram of our project

3
➢ In Chapter Three there is some explanation related to project and how the
project is managed and designed and it also discuss about the results and output
of our project
➢ In Chapter Four there are some advantages, drawbacks and applications of
Secured & Integrated Locking System with Remote Monitoring and the
challenges which are faced during building this project.
➢ In Chapter Five we have discussed the conclusion and the future scope of our
project and different fields in which our project can be useful and implemented.

4
CHAPTER 2
METHODOLOGY ADOPTED

2.1 System and Overview


➢ The Solenoid lock is unlocked through various methods like, fingerprint,
password, RFID and OTP.
➢ The OTP is sent to owner through GSM900a Module, Figure 2.1 shows the
general overview of the proposed system.

Figure 2.1: Block Diagram of the System

2.2 Objective
➢ To build a smart and secure multipurpose locking system using Arduino UNO,
RFID, GSM, IoT technology which will be easy to use and more convenient.
➢ It will be a key less model which will reduce the threats like burglary or
misplacing of keys by owner.

5
2.3 Detailed Description of Components
2.3.1. Arduino Uno R3
Arduino Uno is a microcontroller board based on the ATmega328P (datasheet). It has
14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs,
a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a power jack,
an ICSP header and a reset button. It contains everything needed to support the
microcontroller; simply connect it to a computer with a USB cable or power it with a
AC-to-DC adapter or battery to get started.

"Uno" means one in Italian and was chosen to mark the release of Arduino Software
(IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were the
reference versions of Arduino, now evolved to newer releases. The Uno board is the
first in a series of USB Arduino boards, and the reference model for the Arduino
platform; for an extensive list of current, past or outdated boards see the Arduino index
of boards.

Figure 2.2: Arduino Uno R3 [6]

2.3.2. Sim900a GSM Module


It is GSM/GPRS based module with 900/1800 MHz frequency. It is a dual band
module. It operates on 5V/2Amp DC power supply. It operates ideally at temperature
range of -40C to +85C.

Features
➢ Compatible with Arduino, raspberry pi, arm, avr, pic, 8051
➢ Use in the area of full signal strength.
➢ Perfect suited for GSM based Microcontroller Projects (better than SIM300 and

6
other GSM Modems)
➢ Option for connecting MIC and SPEAKER directly to GSM MODEM for calls
(LINE IN also available)
➢ Supports communication through RS232 with DB9 Connector, TTL Pins and
I2C Pins
➢ CALL SMS GPRS facility - MIC input, LINE input and SPEAKER output pins.

Figure 2.3: Sim900a [7]

2.3.3. 20x4 LCD Display


A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated
optical device that uses the light-modulating properties of liquid crystals combined with
polarizer.

Figure 2.4: 20x4 LCD Display


2.3.4. 4X4 Keypad
A 4X4 Keypad has eight terminals. In them four are rows of matrix and four are
columns of matrix. These 8 pins are driven out from 16 buttons present in the module.
Those 16 alphanumeric digits on the module surface are the 16 buttons arranged in

7
matrix formation. It is very easy to interface. Maximum voltages across buttons are
24V.

Figure 2.5: 4X4 Keypad

2.3.5. Solenoid Lock


This DC 12V Cabinet Door Lock Electric Lock Assembly Solenoid can be used for
locking sell-machine, storage shelf, file cabinet and etc. The hidden way of unlocking
can be used for an emergency. The lock works as the circuits disconnects, and it will
unlock as the instant power-on. It is steady, durable, and energy-saving and had a long
lifespan. In the anti-theft and shockproof design, the lock is better than other kinds of
locks. After connecting the wires and when the current is available, the electric lock
can control the door’s opening and closing.
Features:
➢ Iron Body Material
➢ High quality ultra-compact electric lock.
➢ Rustproof, durable, safe, convenient to use.
➢ Suction tightly sucks the iron, thus locking the door.
➢ Applicable for being installed in the escape door or fire door electronic
controlled system.
➢ Adopts the principle of electric magnetism, when the current through the silicon,
the electromagnetic lock will achieve a strong.

8
Figure 2.6: Solenoid Lock [8]

2.3.6. RFID MFRC522


This RC522 RFID Card Reader Module 13.56MHz is a low-cost MFRC522 based
RFID Reader Module is easy to use and can be used in a wide range of applications.
The MFRC522 is a highly integrated reader/writer IC for contactless communication at
13.56 MHz. RC522 is the highly integrated RFID card reader which works on non-
contact 13.56 MHz communication, is designed by NXP as low power consumption,
low cost and compact size read and write chip, is the best choice in the development of
smart meters and portable hand-held devices. MF RC522 use the advanced modulation
system, fully integrated at 13.56MHz with all kinds of positive non-contact
communication protocols. Support 14443A compatible answer signal. DSP deal with
ISO14443A frames and error correction. Furthermore, it also supports rapid CRYPTO1
encryption to validate Mifare series products. MFRC522 support Mifare series higher
speed non-contact communication, duplex communication speed up to 424 kb/s. As a
new family member in 13.56MHz RFID family, MF RC522 has many similarities to
MF RC5200 and MF RC530 and also has more new features. This module can fit
directly in handheld devices for mass production. The module uses the 3.3V power
supply and can communicate directly with any CPU board by connecting through SPI
protocol, which ensures reliable work, high reading distance.

Figure 2.7: MFRC522[9]

9
2.3.7. Fingerprint Sensor R307
This is the R307 Optical Fingerprint Reader Sensor Module. R307 fingerprint module
is a fingerprint sensor with a TTL UART interface for direct connections to
microcontroller UART or to PC through MAX232 / USB-Serial adapter. The user can
store the fingerprint data in the module and can configure it in 1:1 or 1: N mode for
identifying the person. The FP module can directly interface with a 3.3 or 5v
Microcontroller. A level converter (like MAX232) is required for interfacing with PC
serial port. Integrated image collecting and algorithm chip together, ALL-in-One
Fingerprint reader can conduct secondary development, can be embedded into a variety
of end products. Users can conduct secondary development, can be embedded into a
variety of end products, such as access control, attendance, safety deposit box, car door
locks. Low power consumption, low cost, small size, excellent performance,
Professional optical technology, precise module manufacturing technics. Good image
processing capabilities can successfully capture an image up to resolution 500 dpi
Finger detection function.

Figure 2.8: Fingerprint Sensor R307 [10]

2.3.8. Single Channel Relay


The Single Single-channel 5V 30A Relay Module power failure relay is a 1-channel
relay module board with LED indicators; it can be controlled by microcontrollers such
as Arduino, AVR, PIC, ARM any other microcontroller operating at 5V. The relay
module uses an authentic quality mechanical relay and the industry’s top quality
subminiature two-way isolation optical coupling which gives you the strong anti-
interference ability, and stable performance. The user can choose the relay control level,
can be a high level off, also can be low level and off. The Single-channel 5V 30A Relay
Module Power Failure Relay contains a limited flow resistance, can directly use the
power supply is negative control, you can also use the MCU I/O control. The relay

10
module equips a power indicator light (red), 1 road relay status indicator light (blue).
With this relay, you can easily control electrical appliances, lights, etc.

Figure 2.9: Single Channel Relay [11]

2.3.9. LEDs
A light-emitting diode (LED) is a semiconductor light source that emits light when
current flows through it. Electrons in the semiconductor recombine with electron holes,
releasing energy in the form of photons. The color of the light (corresponding to the
energy of the photons) is determined by the energy required for electrons to cross the
band gap of the semiconductor.[5] White light is obtained by using multiple
semiconductors or a layer of light-emitting phosphor on the semiconductor device.

Figure 2.10: LEDs [12]

2.3.10. Buzzer
An audio signaling device like a beeper or buzzer may be electromechanical or
piezoelectric or mechanical type. The main function of this is to convert the signal from
audio to sound. Generally, it is powered through DC voltage and used in timers, alarm
devices, printers, alarms, computers, etc. Based on the various designs, it can generate
different sounds like alarm, music, bell & siren.

11
Figure 2.11: Buzzer [13]

2.4 Description of Software Used


2.4.1 Arduino IDE
The Arduino Integrated Development Environment (IDE) is a cross-
platform application (for Windows, MacOS and Linux) that is written in functions
from C and C++. It is used to write and upload programs to Arduino compatible
boards, but also, with the help of third-party cores, other vendor development boards.
he Arduino IDE supplies a software library from the Wiring project, which provides
many common input and output procedures. User-written code only requires two basic
functions, for starting the sketch and the main program loop, that are compiled and
linked with a program stub main() into an executable cyclic executive program with the
GNU tool chain, also included with the IDE distribution. The Arduino IDE employs
the program avrdude to convert the executable code into a text file in hexadecimal
encoding that is loaded into the Arduino board by a loader program in the board's
firmware. By default, avrdude is used as the uploading tool to flash the user code onto
official Arduino boards.

Figure 2.12: Arduino IDE

12
2.4.2 Fritzing
Fritzing is an open-source hardware initiative that makes electronics accessible as a
creative material for anyone. We offer a software tool, a community website and
services in the spirit of Processing and Arduino, fostering a creative ecosystem that
allows users to document their prototypes, share them with others, teach electronics in
a classroom, and layout and manufacture professional PCBs.

Figure 2.13: Fritzing

13
CHAPTER 3

DESIGNING AND RESULT ANALYSIS


3.1.Designing

Figure 3.1: Circuit Diagram

i. Connect SCL and SDA pins of LCD 20x4 to Analog pins A5 and A4 of Arduino
UNO respectively.
ii. Connect TX and RX pins of Sim900a to Analog pins A0 and A1 of Arduino
UNO respectively.
iii. Connect SCL and SDA pins of Keypad I2C module to Analog pins A5 and A4
of Arduino UNO respectively.
iv. Connect positive and negative pins of green LED to Digital pin 4 and ground of
Arduino UNO respectively.
v. Connect positive and negative pins of green LED to Digital pin 5 and ground of
Arduino UNO respectively.
vi. Connect positive and negative pins of buzzer to Digital pin 2 and ground of
Arduino UNO respectively.
vii. Connect signal pin of single channel relay to Digital pin 3 of Arduino.
viii. Connect positive and negative pins of solenoid lock to positive of 9 volt power
supply and COM pin of single channel relay respectively.
ix. Connect NO of single channel relay to negative of power supply.

14
x. Connect TX and RX pins of fingerprint module R307 to Digital pins 6 and 7 of
Arduino UNO respectively.
xi. Connect SDA, SCK, MOSI, MISO, RST of MFRC522 to Digital pins 10, 13,
11, 12, 9 of Arduino UNO respectively.
xii. Connect one end of push button to GND and other end to Digital pin 8 of
Arduino Uno.

3.2 Result Analysis

Figure 3.2: Setup of System

Figure 3.3: Authorizing Fingerprint

15
Figure3.4: Authorizing RFID

Figure 3.5: Remote Alert Sent to Mobile

16
Figure 3.6: Entering PIN

➢ The Figure 3.2 shows the complete setup of our Project .


➢ In Figure 3.3 we are authorizing the fingerprint to unlock the solenoid lock.
➢ In Figure 3.4 we are authorizing the RFID tag to unlock the solenoid lock.
➢ In Figure 3.5 remote warning messages are sent to the owner mobile .
➢ In Figure 3.6 we are entering the pin to access the solenoid lock.

17
CHAPTER 4
MERITS, DEMERITS AND APPLICATIONS
4.1. Merits
➢ Convenience: Smart locking systems are more secure, convenient and easy to
use than regular locks.
➢ No more keys! You won't have to carry around a large set of keys and they will
be less likely to be lost or stolen
➢ Password sharing is not required because it has feature of OTP.

4.2. Demerits
➢ It requires continuous power supply which could be difficult in remote areas.
➢ It requires good network coverage to operate properly.

4.3. Applications
➢ Smart locking systems can be used at various places like banks, homes, ATMs,
etc.
➢ It can be used to provide special access to certain peoples like staff members.
➢ It can be used as attendance system in schools, colleges and universities.

18
CHAPTER 5
CONCLUSIONS AND FUTURE SCOPE

5.1 Conclusion
➢ The conclusion of our project is that it is very convenient locking system with
multiple modes of access like RFID card, Fingerprint and pin.
➢ With the help of IoT and GSM we can remotely monitor our lock and also get
warning alerts on mobile phone in case anyone tries to tamper with the lock

5.2 Future Scope


➢ As long as the password or OTP or RFID tag is not shared with anyone, this
system can provide perfect security.
➢ Users can introduce constraints to the password entry process to make it safer.
➢ The system can be equipped with a database which keeps the record of when
was the door unlocked along with details like method used to unlock, person’s
identity.

19
REFERENCES

[1] S. Gaikwad, S. Jamadar, R. Shelke, “Fingerprint Based Door Lock Using Arduino,”
International Research Journal of Modernization in Engineering Technology and
Science, vol. 03, no. 06, pp. 279-282, June 2021

[2] K. Manger, H. Gurung, S. Biswakarma, S Sharma, K Tamang, “Password Based


Door Locking System Using Arduino,” International Research Journal of Engineering
and Technology, vol. 08, no. 08, pp. 813-816, Aug 2021

[3] I. Mishra, M. Kumar, M. Mittal, “Password Protected GSM based Device,”


International Journal of Engineering Research & Technology, vol. 08, no. 04, pp. 533-
536, April 2019

[4] https;//www.arduino.cc/

[5] https://fritzing.org/

[6]http://nskelectronics.in/image/cache/catalog/ARDUINO/ArduinoUno_r2_front450
px-228x228.jpg

[7] https://www.electronicscomp.com/sim900a-gsm-gprs-module-india

[8] https://protosupplies.com/product/solenoid-electric-door-lock-12v-0-9a/

[9]https://www.electronicscomp.com/image/cache/catalog/rc522-rfid-reader-writer-
module-india-400x400.jpg

[10]https://www.electronicscomp.com/image/cache/catalog/r307-fingerprint-sensor-
module-india-2-400x400.jpg

[11] https://superbtech.in/product/5v-relay-module/

20
[12] https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/LEDs.jpg/1200px-
LEDs.jpg

[13]https://www.topnewscorner.com/wp-content/uploads/2021/09/Buzzer-
300x169.jpg

21
APPENDIX

/*
* Author-Shubham Rajput
* College-ADGITM, DELHI-110053
* BRANCH-BTECH-ECE
* ROLL NO-
*/

#include <SPI.h>
#include <MFRC522.h>
#include <Adafruit_Fingerprint.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include "Keypad_I2C.h"
#include <Keypad.h>

#define I2CADDR 0x21


#define pin_length 5
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
#define RELAY 3
#define BUZZER 2
#define ACCESS_DELAY 2500
You can Change
#define DENIED_DELAY 1000
lock_pin from here
#define lock_pin "4295"

char otp[5];

char data[pin_length];
byte data_count=0;
char customkey;
const byte ROWS = 4;
const byte COLS = 3;
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
byte rowPins[ROWS] = {0,1,2,4};
byte colPins[COLS] = {5,6,7};

22
SoftwareSerial SIM900A(A0,A1);
LiquidCrystal_I2C lcd(0x27,20,4);
SoftwareSerial mySerial(6, 7);
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
Keypad_I2C kpd( makeKeymap(keys), rowPins, colPins, ROWS, COLS,
I2CADDR, PCF8574 );
MFRC522 mfrc522(SS_PIN, RST_PIN);

int warning=0;

void setup()
{

randomSeed(analogRead(A1));
Wire.begin( );
kpd.begin( makeKeymap(keys) );
SIM900A.begin(9600);
Serial.begin(9600);

lcd.init();
lcd.backlight();
Display_menu();

while (!Serial);
delay(100);

SPI.begin();
mfrc522.PCD_Init();

pinMode(8,INPUT_PULLUP);
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY, OUTPUT);
pinMode(BUZZER, OUTPUT);
noTone(BUZZER);
digitalWrite(RELAY, HIGH);

finger.begin(57600);
finger.getTemplateCount();

23
}
long int delta = 0;

void loop()
{

if(digitalRead(8)==LOW){
digitalWrite(RELAY, LOW);
delay(ACCESS_DELAY);
digitalWrite(RELAY, HIGH);

}
Display_menu();

customkey=kpd.getKey();
if(customkey)
{
if(customkey=='#')
{
int index=0;
lcd.clear();
lcd.setCursor(3,1);
lcd.print("SENDING OTP TO");
lcd.setCursor(7,2);
lcd.print("OWNER");
tone(BUZZER, 500, 200);
delay(250);
tone(BUZZER, 500, 200);
for(index;index<4;index++)
{
otp[index]=random(49,57);
}
Serial.println(otp);
SendMessage("Your Smart lock OTP is "+String(otp));

lcd.clear();
data_count=0;
}
else if(customkey=='*')
{
tone(BUZZER, 500, 80);
lcd.clear();
data_count=0;
}
else
{

24
tone(BUZZER, 500, 80);
data[data_count]=customkey;
lcd.setCursor(16+data_count,3);
lcd.print("*");

data_count++;
}
}
if(data_count==pin_length-1)
{
delay(1000);
if(strcmp(data,lock_pin)==0)
{
Authorized_access("PIN");
data_count=0;
}
else if(strcmp(data,otp)==0)
{
Authorized_access("OTP");
data_count=0;
for(int index=0;index<4;index++)
{
otp[index]='A';
}
}
else
{
Access_denied("PIN/OTP");
data_count=0;
}
if(warning==3||warning==5)
{
Lock_timer();
}
}

if (millis() > delta + 10000){


delta = millis();
mfrc522.PCD_SoftPowerDown();
delay(10);
mfrc522.PCD_SoftPowerUp();
mfrc522.PCD_Init();
delay(4);
//resetFunc();
}

getFingerprintIDez();

25
delay(50);

if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
delay(20);

if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
delay(20);

String content= "";


byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{

content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" :


" "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}

content.toUpperCase();
if (content.substring(1) == "0A 93 D2 0B")
{

Authorized_access("RFID");
}

else
{
Access_denied("RFID");
}
if(warning==3||warning==5)
{
Lock_timer();
}

26
int getFingerprintIDez()
{
uint8_t p = finger.getImage();
if (p != FINGERPRINT_OK) return -1;

p = finger.image2Tz();
if (p != FINGERPRINT_OK) return -1;

p = finger.fingerFastSearch();
if (p != FINGERPRINT_OK)
{
Access_denied("FINGERPRINT");
if(warning==3||warning==5)
{
Lock_timer();
}

return -1;

{
Authorized_access("FINGERPRINT");

}
Add your own Mobile
Number in the
void SendMessage(String content) Blacked out part
{ Format :
+91XXXXXXXX29
SIM900A.println("AT+CMGF=1");
delay(1000);
SIM900A.println("AT+CMGS=\"+9 229\"\r");
delay(1000);
SIM900A.println(content);
delay(100);
SIM900A.println((char)26);
delay(1000);
}

void Display_menu()
{
lcd.setCursor(2,0);
lcd.print("WELCOME TO SMART ");
lcd.setCursor(5,1);
lcd.print("DOOR LOCK");
if(warning==0||warning==1||warning==2)

27
{
lcd.setCursor(0,2);
lcd.print("OTP : #");

}
if(warning==3||warning==4)
{
lcd.setCursor(0,2);
lcd.print(5-warning);
lcd.setCursor(2,2);
lcd.print("Attempts left");
}

lcd.setCursor(0,3);
lcd.print("ENTER PIN/OTP : ");

void Authorized_access(String mode)


{
lcd.clear();
lcd.setCursor(0,0);
lcd.print("MODE : "+mode);
lcd.setCursor(0,1);
lcd.print("ACCESS : AUTHORIZED");
if(mode=="FINGERPRINT")
{
if(finger.fingerID==2)
{

lcd.setCursor(1,3);
lcd.print("HI, SHUBHAM RAJPUT");
}
else
{
lcd.setCursor(6,3);
lcd.print("WELCOME");
}
}
if(mode=="RFID"||mode=="PIN"||mode=="OTP")
{
lcd.setCursor(6,3);
lcd.print("WELCOME");
}
digitalWrite(RELAY, LOW);
digitalWrite(LED_G, HIGH);
delay(ACCESS_DELAY);
digitalWrite(RELAY, HIGH);

28
digitalWrite(LED_G, LOW);
delay(1500);
warning=0;
lcd.clear();
}

void Access_denied(String mode)


{

lcd.clear();
lcd.setCursor(0,0);
lcd.print("MODE : "+mode);
lcd.setCursor(0,1);
lcd.print("ACCESS : DENIED");
if(mode=="RFID")
{
lcd.setCursor(2,3);
lcd.print("INVALID RFID TAG");
digitalWrite(LED_R, HIGH);
tone(BUZZER, 300);
delay(DENIED_DELAY);
digitalWrite(LED_R, LOW);
noTone(BUZZER);
}
else if(mode=="FINGERPRINT")
{
lcd.setCursor(0,3);
lcd.print("INVALID FINGERPRINT");
digitalWrite(LED_R, HIGH);
tone(BUZZER, 300);
delay(100);
noTone(BUZZER);
delay(50);
tone(BUZZER, 300);
delay(150);
digitalWrite(LED_R, LOW);
noTone(BUZZER);
}
else if(mode=="PIN/OTP")
{
lcd.setCursor(1,3);
lcd.print("INVALID PIN OR OTP");
digitalWrite(LED_R, HIGH);
tone(BUZZER, 300);
delay(100);
noTone(BUZZER);
delay(50);
tone(BUZZER, 300);

29
delay(150);
digitalWrite(LED_R, LOW);
noTone(BUZZER);
}

delay(2000);
warning+=1;
lcd.clear();
}

void Lock_timer()
{
byte timer=0;
if (warning==3)
{
timer=15;
lcd.setCursor(1,0);
lcd.print(warning);
lcd.setCursor(3,0);
lcd.print("INVALID ATTEMPTS");
lcd.setCursor(2,2);
lcd.print("LOCK IS DISABLED");
lcd.setCursor(3,3);
lcd.print("FOR");
lcd.setCursor(7,3);
lcd.print(timer);
lcd.setCursor(10,3);
lcd.print("SECONDS");
SendMessage("INTRUDER!!\n\nLock disabled for 15
Seconds");
delay(1000);
lcd.clear();
for(timer;timer>0;timer--)
{
lcd.setCursor(2,0);
lcd.print("LOCK IS DISABLED");
lcd.setCursor(2,1);
lcd.print("TRY AGAIN AFTER");
lcd.setCursor(9,2);
lcd.print(timer);
lcd.setCursor(6,3);
lcd.print("SECONDS");
delay(1000);
lcd.clear();
if(digitalRead(8)==LOW)
{
lcd.clear();
lcd.setCursor(2,1);

30
lcd.print("TIMER SUSPENDED");
lcd.setCursor(1,3);
lcd.print("ENABLING THE LOCK");
digitalWrite(RELAY, LOW);
delay(ACCESS_DELAY);
digitalWrite(RELAY, HIGH);
lcd.clear();
warning=0;
break;

}
else if (warning==5)
{
bool verify=true;
lcd.clear();
lcd.setCursor(1,0);
lcd.print(warning);
lcd.setCursor(3,0);
lcd.print("INVALID ATTEMPTS");
lcd.setCursor(2,2);
lcd.print("LOCK IS DISABLED");
lcd.setCursor(2,3);
lcd.print("VERIFY YOUR PIN");
SendMessage("Lock disabled,\n\nPin verification
needed");
delay(2000);
lcd.clear();
do{

lcd.setCursor(2,0);
lcd.print("VERIFY YOUR PIN");
lcd.setCursor(3,1);
lcd.print("TO ENABLE LOCK");
lcd.setCursor(0,3);
lcd.print("ENTER PIN : ");
customkey=kpd.getKey();

if(digitalRead(8)==LOW)
{
strcpy(data,lock_pin);
data_count=4;
}

31
if(customkey)
{
tone(BUZZER, 500, 80);
data[data_count]=customkey;
lcd.setCursor(13+data_count,3);
lcd.print("*");
data_count++;
}
if(data_count==pin_length-1)
{
if(strcmp(data,lock_pin)==0)
{
lcd.clear();
lcd.setCursor(4,1);
lcd.print("PIN VERIFIED");
lcd.setCursor(1,3);
lcd.print("ENABLING THE LOCK");
delay(1500);
digitalWrite(RELAY, LOW);
digitalWrite(LED_G, HIGH);
delay(ACCESS_DELAY);
digitalWrite(RELAY, HIGH);
digitalWrite(LED_G, LOW);
lcd.clear();
warning=0;
verify=false;
data_count=0;
for(int index=0;index<4;index++)
{
otp[index]='A';
}
}
else
{
delay(200);
lcd.clear();
lcd.setCursor(3,1);
lcd.print("INCORRECT PIN");

lcd.setCursor(5,3);
lcd.print("TRY AGAIN");
digitalWrite(LED_R, HIGH);
tone(BUZZER, 300);
delay(100);
noTone(BUZZER);
delay(50);
tone(BUZZER, 300);
delay(150);

32
digitalWrite(LED_R, LOW);
noTone(BUZZER);
lcd.clear();
data_count=0;
}
}

}while(verify);

33

You might also like