0% found this document useful (0 votes)
34 views43 pages

Bipin Iiot Project Report

This document presents a project report on an IoT-based smart door lock system using Arduino. The system uses an Arduino Uno, ESP32 with integrated camera, fingerprint sensor, solenoid lock, and relay to wirelessly operate and unlock the door lock. The door lock is powered by a 12V DC supply and can be controlled remotely using the Blynk application. The project aims to develop a smart and cost-effective door lock system using biometrics for authentication. The report includes the system block diagram, working principle, hardware components, programming and coding details.

Uploaded by

tahaashraf160
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)
34 views43 pages

Bipin Iiot Project Report

This document presents a project report on an IoT-based smart door lock system using Arduino. The system uses an Arduino Uno, ESP32 with integrated camera, fingerprint sensor, solenoid lock, and relay to wirelessly operate and unlock the door lock. The door lock is powered by a 12V DC supply and can be controlled remotely using the Blynk application. The project aims to develop a smart and cost-effective door lock system using biometrics for authentication. The report includes the system block diagram, working principle, hardware components, programming and coding details.

Uploaded by

tahaashraf160
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

IOT BASED SMART DOOR LOCK

SYSTEM USING ARDUINO


APROJECT REPORT
SUBJECT: -INDUSTRIALINTERNETOFTHINGS &

AUTOMATION
Name Reg.No
md.Iftekhar ansari Submited 220101110019
Manish kumar 220101110011
Sandeep kumar 220101110002
Bipin kumar 220101110020
Rahul kumar 220101110012

In partial fulfilment for the award of


Bachelor Of
Technology In

Civil Engineering

CENTURION UNIVERSITY OF TECHNOLOGYAND


MANAGEMENT, ODISHA
November 2023
2022 - 2026

1 | Page
DEPARTMENT OF CIVIL ENGINEERING
CENTURION UNIVERSITY OF TECHNOLOGY &
MANAGEMENT

PARALAKHEMUNDI -762001
BONAFIDE CERTIFICATE
CERTIFIED THAT THIS PROJECT REPORT ENTITLED
“ Iot based door lock system using
Arduino “is the bonafide work of
:- Reg.No
Name
md.Iftekhar ansari 220101110019
Manish kumar 220101110011
Sandeep kumar 220101110002
Bipin kumar 220101110020
Rahul kumar 220101110012

who carried out the project work under my supervision. This is to further certify to the
best of my knowledge, that this project has not been carried out earlier in this
institute and the university.

Signature of the Supervisor


(Mrs. N.Jeevaratnam)

Assistant professor of Electronics Engineering


Certified that the above-mentioned project has been duly carried out as per the norms of
the college and status of the university.

SIGNATURE
(Dr. Prafulla panda) HEAD OF THE DEPARTMENT
Civil Engineering

2 | Page
Acknowledgements

We wish to express our profound and sincere gratitude to Mrs. N.Jeevaratnam, (Department
of Electronics and Communication Engineering), CUTM Paralakhemundi, who guided
me into the intricacies of this project non-chalantly with matchless magnanimity.

We thank Dr. Prafulla panda Head of the Department of civil Engineering, and Dr. Ashish
Ranjan Dash, DEAN of SOET, CUTM, Paralakhemundi for extending their support during
Course of this investigation.

We would be failing in my duty if I don’t acknowledge the co-operation rendered during


various stages of image interpretation by Mrs. N. Jeevaratnam.

We are highly grateful to Mrs. N. Jeevaratnam who evinced keen interest and invaluable
support in the progress and successful completion of our project work.

We are indebted to all for their constant encouragement, co-operation, and help. Word of
gratitude are not enough to describe the accommodation and fortitude which they have shown
throughout our endeavour.

3 | Page
Abstract
IoT is global network of things. In IoT things refers to devices like sensors, actuators
and these things are connected together to generate some meaningful results. In IoT
each of these “things” has independent identities and can be connected over a
network for data sharing. This paper proposes a water monitoring and control system
for water utility to reduce the current water wastage problem. This approach will help
utilities controllers improve lot based smart door lock system by using Arduino and IoT
is one among them. The Internet of Things (IoT) could convince be one among the
foremost important methods for developing more utility-proper systems and for
creating the consumption of water resources more efficient

4 | Page
CONTENTS

1. Introduction
1. Background of Study and Mova on
1.2 Project Objective
1.3 A brief outline of report
2: Literature Review
3: Theory
3.1. Smart Door Lock
3.2 Hardware Architecture
3.3 Schematic Diagram
4: Hardware Implementation of the Project

4.1 Main features of Prototype


Model
4.2 Photographs of Prototype Model
4.3 Step by step operation of prototype Model
4.4 Components required
4.5 Hardware Interface
4.6 Results
5 : Coding for the Project
Logic and Operation of the Hardware Model

Introduction to Logic
5.1 Flow Chart
5.2 Principle and Operation
5.3 Advantages of Smart Door Lock
5.4 Cost Estimation of Project
5.5 Photographs of Prototype
Chapter6: Conclusion & Future scope
6.1 Conclusion 6.2 Future Scope

Appen6d|iPxaAge: Hardware Description


| Pa g e 5
LIST OF PICTURES

Topic
1. Concept of the Lock
2. Concept of Lock working with Smartphone over Wi-fi
3. Arduino Uno
4. ESP32 with CAM
5. Fingerprint sensor R307
6. Solenoid Lock
7. Relay
8. Overview of Project
9. Circuit diagram
10. Main prototype
11. Step by Step operation of Prototype
12. Fingerprint Interfacing
13. Esp32 Interfacing
14. ESP32 Pinout
15. Programing of ESP32 using FTDI adapter
16. Installing Library-Arduino_ESP32
17. Flow Chart
18. Picture of Protoype
19 Appendix A-Hardware Pictures

6|P a g e
Abstract

A smart lock is a new line in home security, and along with the likes of Amazon’s
Alexa and Google Home, it’s the next step towards creating the smart homes of the
future. Put simply, it’s an electronic lock that can be locked or unlocked remotely
using your smartphone or by using your fingerprint. Removing the need for
physical keys, which can be easily lost or forgotten, smart locks secure your home
with a biometric system. The expected outcome of this project is to make a smart
door lock using Arduino and ESP32 module and a camera integrated with ESP32
to wirelessly operate the door lock and also to integrate fingerprint sensor to unlock
the door lock. The door lock will get power from 12 Volt DC supply. The door
lock is wirelessly controlled by Blynk application. This is smart and cost-effective
approach to make a smart door lock system. This progress report contains the block
diagram and working principle of the smart door lock.

7|P a g e
Introduction

1.1 Background of Study and Mova on


These days office/corporate environment security is a major threat faced by every individual when away from
home or at the home. When it comes to security systems, it is one of the primary concerns in this busy
competitive world, where human cannot find ways to provide security to his/her confidential belongings
manually. Instead, he/she finds an alternative solution which provides better, reliable and atomized
security. This is an era where everything is connected through network, where anyone can get hold of
information from anywhere around the world. Thus chances of one’s info being hacked are a serious issue.
Due to these risks it’s very important to have some kind of personal identification system to access one’s own
information. Now a day, personal identification is becoming an important issue all around. Among mainstream
personal identification methods, we mostly see password and identification cards techniques. But it is easy to
hack password now and identification cards may get lost, thus making these methods quite unreliable.

There are certain situations which are very annoying like when a person locks himself out of his house or
office or he leaves his key inside or sometimes when a thief just breaks the lock and steals everything. These
kinds of situations always trouble people who use manual door lock with keys. Although in some places
people use smart cards, there might arise a situation when someone loses the card or keeps the card inside.
Then in other scenarios there are caretakers for locking houses or offices and keeping the keys safe. But then
again there are times when a person in charge of the keys might not be available or has gone to some
emergency routine, which can cause unwanted delay for people who need the key straightaway. These are
some of the hassles that people might face when using keys or smart cards. That is when our system,
fingerprint door lock system comes into play. Our design is implemented to provide better securities as users
don’t need to remember passwords and don’t need any sort of keys or cards that often get lost. If someone’s
fingerprint is authorized in the systems he/she would not face any sort of delays to enter a room. Fingerprint
recognition is one of the most secure systems because a fingerprint of one person never matches with others.
Therefore, unauthorized access can be restricted by designing a lock that stores the fingerprints of one or
more authorized users and unlock the system when a match is found. Bio-metrics authorization proves to be
one of the best traits because the skin on our palms and soles exhibits a flow like pattern of ridges on each
fingertip which is unique and immutable. This makes fingerprint a unique

8|Page
identification for everyone. The popularity and reliability on fingerprint scanner can be easily guessed from
its use in recent hand-held devices like mobile phones and laptops.

This paper is about solving the problem regarding security of unauthorized people trespassing in our home,
shops or offices. Security issues can be fixed using traditional locks but there is always possibility of someone
opening the lock even without breaking it with the use of duplicate key. Using these kinds of locks also create
problem if we lose keys and also we have to carry keys along with us always. Again, using patterns in the locks
can increase security but again it can be opened if somehow the passwords or patterns are known. So, leaving
every system in this project we will implement a system using biometrics. Incase-of biometrics, the pattern
which will be used as key will be unique. Here, to implement the project we will use fingerprint as the key
This Arduino project will make use of different devices for the implementation of the security lock where there
will be different features to increase the security level. In simple words, we can say that we are implementing
a door access system using Arduino which make use of fingerprints to identify whom to allow and who not to
allow inside our homes, offices, shops, etc. We are trying to implement it using a normal and simple door lock
which is fitted in every home so as to minimize the cost of the device as a product.

1.2 Project Objectives


The goal of this project is to research and analyze a suitable collection of components for developing a
smart door lock using Arduino that provides excellent security and quick access.

The following are the specific project goals:

• Familiarity with a smart door locking system based on a microcontroller.

• UsingArduino to create a simple and smart door locking system.

1.3 A brief outline of the report


This project is divided into 6 chapters.
Chapter 1 present the Introduction of this project. Chapter one also presents objectives and a brief outline.

Chapter 2 provides the literature review of this project.


Chapter 3 includes the Theory and introduces the project methodology and modeling like working principle,
process of work, component, implementation, testing and cost analysis.

Chapter 4 presents the Hardware Modelling


Chapter5 presents the Logic operation behind the system.

Chapter 6 Conclude the project

9|Page
Theory

Smart Door Lock


Smart Door lock is an electromechanical lock that is designed to perform locking and unlocking
operations on a door when it receives when it receives a prompt via an electronic keypad, biometric sensor,
access card, Bluetooth, or Wi-Fi from a registered mobile device. These locks are called smart locks
because they use advanced technology and Internet communication to enable easier access for users and
enhanced security from intruders. The main components of a smart lock include the physical lock, the key
(which can be electronic, digitally encrypted, or a virtual key to provide keyless entry), a secure Bluetooth
or Wi-Fi connection, and a management mobile app. Smart lock may also monitor access and send alerts in
response to the different events it monitors as well as other critical events related to the status of the device.
Smart locks can be considered part of a smart home. Most smart locks are installed on mechanical locks
(simple types of locks, including deadbolts) and they physically upgrade the ordinary lock. Recently, smart
locking controllers have also appeared at the market. Smart locks, like the traditional locks, need two main
parts to work: the lock and the key. In the case of these electronic locks, the key is not a physical key but a
smartphone or a special key card configured explicitly for this purpose which wirelessly performs the
authentication needed to automatically unlock the door. Smart lock controlled by a phone app Smart lock
allow users to grant access to a third party by means of a virtual key. This key can be sent to the recipient
smartphone over standard messaging protocols such as e-mail or SMS, or via a dedicated application. Once
this key is received the recipient will be able to unlock the smart lock using their mobile device during the
timeframe previously specified by the sender. Certain smart locks include a built-in Wi-Fi connection that
allows for monitoring features such as access notifications or cameras to show the person requesting
access. Some smart locks work with a smart doorbell to allow the user to see who and when someone is at
a door. Many smart locks now also feature biometric features, such as fingerprint sensors. Biometrics are
becoming increasingly popular because they offer more security than passwords alone. This is because they
use unique physical characteristics rather than stored information. Smart locks may use Bluetooth Low
Energy and SSL to communicate, encrypting communications using 128/256-bit AES.

10|Page
FIGURE-1
Smart Locks are Internet of Things
Smart locks are IoT-enabled keyless entry devices that allow users remote access to door locks through
their smartphone. Smart locks leverage IoT-enabled sensors to operate keyless entry devices that allow
users to access doors remotely, through a smartphone or other internetconnected device. Smart locks
provide users the ability to unlock their door without a key, from anywhere. The global smart lock market
reached a value of US$ 1.6 Billion in 2021. Looking forward, IMARC Group expects the market to reach
US$ 4.9 Billion by 2027, exhibiting at a CAGR of 21.8% during 2022-2027. There are two types of locks
available. One lock provides additional functionality to existing locking mechanisms and must be
retrofitted to the door lock already in place and the other completely replaces the locking mechanism on the
door. While smart locks must be powered, many also allow a physical key to serve as a backup in case of a
service or internet outage. Smart locks offer additional functionality through compatibility with other IoT
devices, smart assistants, or smart home management systems. These functions can include automating
processes, like turning on your lights and adjusting your thermostat when the door is unlocked, or
triggering the security system to record and send video if the door is unlocked outside of expected hours.

FIGURE-2

11|Page
Advantage of Smart Door Lock

• Check on the status of a door remotely, ensuring that it is locked no matter how far from home they are.
• Give and revoke remote access to visitors, enabling service providers to access the door only at specific
times, or to give unlimited access to trusted friends or family.
• Receive notifications whenever the door is opened – allowing users to be immediately alerted in case of
unexpected access.

3.1.3 TECHNOLOGIES USED

A. Arduino Uno the Arduino Uno is an open-source microcontroller board based on the Microchip
ATmega328P microcontroller and developed by Arduino.cc and initially released in 2010. The board is
equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to various expansion
boards (shields) and other circuits.[1] The board has 14 digital I/O pins (six capable of PWM output), 6
analog I/O pins, and is programmable with the Arduino IDE (Integrated Development Environment), via a
type B USB cable.[4] It can be powered by the USB cable or by an external 9-volt battery, though it
accepts voltages between 7 and 20 volts. It is similar to the Arduino Nano and Leonardo. The hardware
reference design is distributed under a Creative Commons Attribution Share-Alike 2.5 license and is
available on the Arduino website. Layout and production files for some versions of the hardware are also
available.

FIGURE-3
B. ESP32 with cam ESP32 is a series of low-cost, low-power system on a chip microcontroller with
integrated Wi-Fi and dual-mode Bluetooth. The ESP32 series employs either a Tensilica Xtensa LX6
microprocessor in both dual-core and single-core variations, Xtensa LX7 dual-core microprocessor or a
single-core RISCV microprocessor and includes built-in antenna switches, RF balun, power amplifier,
lownoise receive amplifier, filters, and power-management modules. ESP32 is created and developed
by Espressif Systems, a Shanghai-based Chinese company, and is manufactured by TSMC using their
40 nm process. It is a successor to the ESP8266 microcontroller.

12|Page
FiGURE-4

C. Fingerprint sensor (R307) R307 Fingerprint Module consists of optical fingerprint sensor,
D. highspeed DSP processor, high performance fingerprint alignment algorithm, high-capacity FLASH
chips and other hardware and software composition, stable performance, simple structure, with
fingerprint entry, image processing, fingerprint matching, search and template storage and other
functions.

FIHURE-5

D. Solenoid Lock
The solenoid lock denotes a latch for electrical locking and unlocking. It is available in unlocking in the
power-on mode type, and locking and keeping in the power-on mode type, which can be used selectively
for situations. The power-on unlocking type enables unlocking only while the solenoid is powered on.

FIGURE-6

E. Blynk Application Blynk is a full suite of software required to prototype, deploy, and remotely
manage connected electronic devices at any scale: from personal IoT projects to millions of commercial
connected products. With Blynk anyone can connect their hardware to the cloud and build a no-code iOS,
Android, and web applications to analyse real-time and historical data coming from devices, control them
remotely from anywhere in the world, receive important notifications, and much more

13|Page
FIGURE-7

14|Page
Hardware

Implementation of the Project

4.1 Main features of the prototype


• Fingerprint sensor (very secure)

• Wireless connectivity through Blynk

• Only accessible through Blynk app (very secure)

• 12-volt operation • Cost Effective solution

4.2 Photographs of the prototype

Main prototype
15|Page
4.3 Step by step operation of the prototype
1. Connect the 12 V supply and via adapter. Switch on the
Arduino by connecting the pin of adapter to board.

2.Now we will load the fingerprints on the fingerprint sensor and


load it to the fingerprint enrolment code on the laptop.

3.We are now connecting the circuit and here the black wire of fingerprint sensor (5V VCC Pin) is
connected to VIN pin on the Arduino. Now connect the brown wire of fingerprint sensor to the ground pin
of Arduino, white wire to pin 2 and yellow wire to digital pin 3 of Arduino, respectively. Now we will
connect the relay whose VCC is connected to the 5V. The ground pin of relay will be connected to the
ground pin of Arduino, And the signal pin will be connected to the 12 no pin of Arduino. Now the
fingerprint is loaded on the fingerprint sensor via the program. Refer Fig 2

4.The solenoid red wire will be connected to the common pin on the Arduino. After the whole circuit is
completed, we place the smart lock on the door and now we will give our fingerprint on the sensor which
will get checked with the previously enrolled fingerprints and if it matches any of it, the door is unlocked.

refer Fig 1.
5.We also have a camera module (ESP32) with our circuit to detect anyone through the camera. The camera
module is operated by the Blynk application where we can capture the picture or video of the person
currently standing outside the door. Refer Fig 3.

Fig . Solenoid Lock Fig 8. Arduino connection Fig9 . ESP32 connection

16|Page
Components required

4.5 Hardware interfacing

4.5.1 Fingerprint Interface

The R307 fingerprint module has two interface TTL UART and USB2.0, USB2.0 interface can be connected
to the computer; RS232 interface is a TTL level, the default baud rate is 57600, can be changed, refer to a
communication protocol; can and microcontroller, such as ARM, DSP and other serial devices with a
connection, 3.3V 5V microcontroller can be connected directly. Needs to connect the computer level
conversion, level conversion note, embodiments such as a MAX232 circuit.

17|Page
ESP32 INTERFACE

The power consumption of the ESP32-CAM varies depending on what you’re using it for.It ranges from 80
mAh when not streaming video to around 100~160 mAh when streaming video; with the flash on, it can
reach 270 mAh.

18|Page
Operation mode: Power Consumption

Stand by: 80 mAh

In streaming: 100~160 mAh

In streaming with flash: 270 mAh

ESP32-CAM Pinout
The ESP32-CAM has 16 pins in total. For convenience, pins with similar functionality are grouped
together.
The pinout is as follows:

FIGURE-10

Power Pins There are two power pins: 5V and 3V3. The ESP32-CAM can be powered via the 3.3V or 5V
pins. Since many users have reported problems when powering the device with 3.3V, it is advised that the
19|Page
ESP32-CAM always be powered via the 5V pin. The VCC pin normally outputs 3.3V from the on-board
voltage regulator. It can, however, be configured to output 5V by using the Zero-ohm link near the VCC
pin.

GND is the ground pin.

GPIO Pins The ESP32-S chip has 32 GPIO pins in total, but because many of them are used internally for
the camera and the PSRAM, the ESP32-CAM only has 10 GPIO pins available. These pins can be assigned
a variety of peripheral duties, such as UART, SPI, ADC, and Touch.

UART Pins The ESP32-S chip actually has two UART interfaces, UART0 and UART2. However, only the
RX pin (GPIO 16) of UART2 is broken out, making UART0 the only usable UART on the ESP32-CAM
(GPIO 1 and GPIO 3). Also, because the ESP32-CAM lacks a USB port, these pins must be used for
flashing as well as connecting to UART-devices such as GPS, fingerprint sensors, distance sensors, and so
on.

MicroSD Card Pins are used for interfacing the microSD card. If you aren’t using a microSD card, you can
use these pins as regular inputs and outputs.

ADC Pins On the ESP32-CAM, only ADC2 pins are broken out. However, because ADC2 pins are used
internally by the WiFi driver, they cannot be used when Wi-Fi is enabled.

Touch Pins The ESP32-CAM has 7 capacitive touch-sensing GPIOs. When a capacitive load (such as a
human finger) is in close proximity to the GPIO, the ESP32 detects the change in capacitance.

SPI Pins The ESP32-CAM features only one SPI (VSPI) in slave and master modes.

PWM Pins The ESP32-CAM has 10 channels (all GPIO pins) of PWM pins controlled by a PWM
controller.
The PWM output can be used for driving digital motors and LEDs.

Programming the ESP32-CAM


Programming the ESP32-CAM can be a bit of a pain as it lacks a built-in USB port. Because of that design
decision, users require additional hardware in order to upload programs from the Arduino IDE. None of
that is terribly complex, but it is inconvenient.

To program this device, you’ll need either a USB-to-serial adapter (an FTDI adapter) or an ESP32-
CAMMB programmer adapter.

Using the FTDI Adapter


20|Page
If you’ve decided to use the FTDI adapter, here’s how you connect it to the ESP32-CAM module.

FIGURE-11
Many FTDI programmers have a jumper that lets you choose between 3.3V and 5V. As we are
powering the ESP32-CAM with 5V, make sure the jumper is set to 5V.

GPIO 0 pin is connected to Ground. This connection is only necessary while programming the
ESP32CAM. Once you have finished programming the module, you must disconnect this connection.

4.6 RESULTS
The prototype was made according to the circuit diagram and the results were as expected. The solenoid
worked that is it unlocked when the user used the registered finger in the fingerprint sensor and while the
user clicked the click picture button in the blynk app the esp32 clicked the picture and upon clicking on
the unlock door button the solenoid lock unlocked.

21|Page
delay(100);

Serial.println(“\n\nFingerprint sensor enrollment”);

// set the data rate for the sensor serial port finger.begin(57600);

if (finger.verifyPassword()) {

Serial.println(“Found fingerprint sensor!”);

} else {

Serial.println(“Did not find fingerprint sensor :(“); while (1) {

delay(1); }

uint8_t readnumber(void) { uint8_t num = 0;

while (num == 0) { while (!

Serial.available()); num =

Serial.parseInt();

} return num;

void loop() // program wil repeat this part (loop here)

Serial.println(“Ready to enroll a fingerprint!”);

22|Page
Serial.println(“Please type in the ID # (from 1 to 127) you want to save this finger as…”); id =

readnumber(); if (id == 0) {// ID #0 not allowed, try again!

return;

Serial.print(“Enrolling ID #”);

Serial.println(id);

while (! getFingerprintEnroll() );

uint8_t getFingerprintEnroll() {

int p = -1;

Serial.print(“Waiting for valid finger to enroll as #”); Serial.println(id);

while (p != FINGERPRINT_OK) {

p = finger.getImage(); switch (p) {

case FINGERPRINT_OK:

Serial.println(“Image taken”); break;

case FINGERPRINT_NOFINGER:

Serial.println(“.”); break;

case FINGERPRINT_PACKETRECIEVEERR:

Serial.println(“Communication error”); break;

case FINGERPRINT_IMAGEFAIL:

Serial.println(“Imaging error”); break;

default:

23|Page
Serial.println(“Unknown error”); break; }

// OK success!

p = finger.image2Tz(1); switch (p) {

case FINGERPRINT_OK:

Serial.println(“Image converted”); break;

case FINGERPRINT_IMAGEMESS:

Serial.println(“Image too messy”); return p;

case FINGERPRINT_PACKETRECIEVEERR:

Serial.println(“Communication error”); return p;

case FINGERPRINT_FEATUREFAIL:

Serial.println(“Could not find fingerprint features”); return p;

case FINGERPRINT_INVALIDIMAGE:

Serial.println(“Could not find fingerprint features”); return p;

default:

Serial.println(“Unknown error”); return p;

24|Page
Serial.println(“Remove finger”); delay(2000);

p = 0;

while (p != FINGERPRINT_NOFINGER) {

p = finger.getImage();

Serial.print(“ID “); Serial.println(id); p = -1;

Serial.println(“Place same finger again”);

while (p != FINGERPRINT_OK) {

p = finger.getImage(); switch (p) {

case FINGERPRINT_OK:

Serial.pr…

case FINGERPRINT_PACKETRECIEVEERR:

Serial.println(“Communication error”); break;

case FINGERPRINT_IMAGEFAIL:

Serial.println(“Imaging error”); break;

default:

Serial.println(“Unknown error”); break; }

// OK success!

25|Page
p = finger.image2Tz(2); switch (p) {

case FINGERPRINT_OK:

Serial.println(“Image converted”); break;

case FINGERPRINT_IMAGEMESS:

Serial.println(“Image too messy”); return p;

case FINGERPRINT_PACKETRECIEVEERR:

Serial.println(“Communication error”); return p;

case FINGERPRINT_FEATUREFAIL:

Serial.println(“Could not find fingerprint features”); return p;

case FINGERPRINT_INVALIDIMAGE:

Serial.println(“Could not find fingerprint features”); return p;

default:

Serial.println(“Unknown error”); return p;

// OK converted!

Serial.print(“Creating model for #”); Serial.println(id); p =

finger.createModel(); if (p == FINGERPRINT_OK) {

Serial.println(“Prints matched!”);

} else if (p == FINGERPRINT_PACKETRECIEVEERR) {

26|Page
Serial.println(“Communication error”); return p;

} else if (p == FINGERPRINT_ENROLLMISMATCH) {

Serial.println(“Fingerprints did not match”); return p;

} else {

Serial.println(“Unknown error”); return p;

Serial.print(“ID “); Serial.println(id); p =

finger.storeModel(id); if (p ==

FINGERPRINT_OK) { Serial.println(“Stored!”);

} else if (p == FINGERPRINT_PACKETRECIEVEERR) {

Serial.println(“Communication error”); return p;

} else if (p == FINGERPRINT_BADLOCATION) {

Serial.println(“Could not store in that location”); return p;

} else if (p == FINGERPRINT_FLASHERR) {

Serial.println(“Error writing to flash”); return p;

} else {

27|Page
Serial.println(“Communication error”); return p;

} else if (p == FINGERPRINT_ENROLLMISMATCH) {

Serial.println(“Fingerprints did not match”); return p;

} else {

Serial.println(“Unknown error”); return p;

Serial.print(“ID “); Serial.println(id); p =

finger.storeModel(id); if (p ==

FINGERPRINT_OK) { Serial.println(“Stored!”);

} else if (p == FINGERPRINT_PACKETRECIEVEERR) {

Serial.println(“Communication error”); return p;

} else if (p == FINGERPRINT_BADLOCATION) {

Serial.println(“Could not store in that location”); return p;

} else if (p == FINGERPRINT_FLASHERR) {

Serial.println(“Error writing to flash”); return p;

} else {

28|Page
}

finger.getTemplateCount();

Serial.print(“Sensor contains “); Serial.print(finger.templateCount); Serial.println(” templates”);

Serial.println(“Waiting for valid finger…”);

void loop() // run over and over again

{ getFingerprintIDez(); delay(50);

//don’t ned to run this at full speed.

digitalWrite(12, LOW); digitalWrite(11, LOW);

uint8_t getFingerprintID() { uint8_t p =

finger.getImage(); switch (p) {

case FINGERPRINT_OK:

Serial.println(“Image taken”); break;

case FINGERPRINT_NOFINGER:

Serial.println(“No finger detected”); return p;

29|Page
case FINGERPRINT_PACKETRECIEVEERR:

Serial.println(“Communication error”); return p;

case FINGERPRINT_IMAGEFAIL:

Serial.println(“Imaging error”); return p;

default:

Serial.println(“Unknown error”); return p; }

// OK success!

p = finger.image2Tz(); switch (p) {

case FINGERPRINT_OK:

Serial.println(“Image converted”); break;

case FINGERPRINT_IMAGEMESS:

Serial.println(“Image too messy”); return p;

case FINGERPRINT_PACKETRECIEVEERR:

Serial.println(“Communication error”); return p;

case FINGERPRINT_FEATUREFAIL:

Serial.println(“Could not find fingerprint features”); return p;

case FINGERPRINT_INVALIDIMAGE

30|Page
Logic and Operation of Hardware Model

INTRODUCTION-
After assembling the system, what remains is to observe its operation and efficiency of the system.
Thetotal system is divided in several sub systems, like

• Fingerprint Sensor section


• Arduino Section
• ESP32 Cam section
• Blynk App section
• Relay Section
• Solenoid Section

The operation of the whole circuit is depending on every section’s performance.

5.1 FLOW CHART

31|Page
2. PRINCIPLEAND OPERATION
According to the flow chart there is two ways to unlock the solenoid lock system that is by biometric system
and wirelessly by Blynk app. To use the wireless system, we need to ensure that the ESP32 is connected to
a wi-fi network. If the user clicks the unlock button in the Blynk app then the ESP32 send signal to the
solenoid lock and the lock opens. The lock can also be opened by the fingerprint sensor. The user needs to
put the finger in the sensor and if the database matches with the user’s fingerprint, then the relay is triggered
and the solenoid lock opens. Below is the complete flow chat of the above discussed matter.

Blynk app uses token to confirm the identity of the network as well as the device because we burn the
code which consists the token from Blynk app to be able to run properly.

#include <BlynkSimpleEsp32.h>
#define BLYNK_TEMPLATE_ID "TMPLomUBVNpw"

#define BLYNK_TEMPLATE_NAME "Quickstart Template"

#define BLYNK_AUTH_TOKEN "YGjWJdQ8lEXXI1RLrpYUsXRXyTrS1rsx"

This is an example of the token and other necessary lines of code to run the Blynk environment properly.

3. ADVANTAGES OF SMART DOOR LOCK


• Fingerprint Sensor: It consists a fingerprint sensor to unlock the door so only the registered
fingerprints have access to open the door, so it is a very secure solution.
• Wireless connectivity through Blynk: It uses esp32 cam which can be remotely connected
through Wi-Fi with Blynk app to unlock the door. It is the most easy and effective way and also very
safe because the Blynk app uses

• 12-Volt Operation: This system requires very less power to operate so any power outlet can
handle the power that needs to be delivered.
• Cost Effective solution: This door lock requires very less power to operate and the maintenance
cost is very low and provides maximum level of security and is also future proof solution.

5.4 COST ESTIMATION OF THE PROJECT

32|Page
SL. NO. COMPONENTS QUANTITY COST(INR)

1 ESP32 Microcontroller 1 250

2 Relay Module 1 40

3 BC547 NPN Transistor 1 5

4 220-ohm Resistor 1 5

5 1 K ohm Resistor 1 2

6 10 k ohm Resistor 1 2

7 LED 1 2

8 FTDI 232 USB to serial 1 120

interface board

9 12 Volt DC Supply 1 100

10 Arduino Uno 1 600

11 Arduino Cable 1 30

12 Finger print Sensor 1 900

13 Jumper wire As Required 50

14 Solenoid Lock 1 300

15 Micro SD Card 1 200

16 Bread Board 1 60

TOTAL 2666/-

Table: Cost of the Project

5.5 PHOTOGHAPHS OF THE PROTOTYPE

33|Page
Fingerprint
Sensor ESP32 Cam

Arduino uno

Solenoid Lock

Relay

Figure-12

34|Page
Blynk Mobile App configuration

35|Page
Hardware Despriction

1. ESP32 CAMERAMODULE
The ESP32-CAM is a small size, low power consumption camera module based on ESP32. It comes with
an OV2640 camera and provides onboard TF card slot.
The ESP32-CAM can be widely used in intelligent IoT applications such as wireless video monitoring,
WiFi image upload, QR identification, and so on. The ESP32-CAM suit for IOT applications such as:
• Smart home devices image upload
• Wireless monitoring
• Intelligent agriculture
• QR wireless identification
• facial recogniti

Figure-13

ARDUINO UNO
The Arduino UNO SMD is frequently used microcontroller board in the family of an Arduino. This is
the latest third version of an Arduino board and released in the year 2011. The main advantage of this
board is if we make a mistake, we can change the microcontroller on the board. The main features of this
board mainly include, it is available in DIP (dual- inline-package), detachable and ATmega328
microcontroller. The programming of this board can easily be loaded by using an Arduino computer
program. This board has huge support from the Arduino community, which will make a very simple way
to start working in embedded electronics, and many more applications Fig 1: ARDUINO UNO.

36|Page
Figure-14
FTDI CHIP-
FTDI CHIIP Original FT232R chips are one of the newer chips manufactured by FTDI (Future Technology
Devices International). Apart from being an USB to serial UART, it has an integrated EEPROM and optional
clock generator output. The chip also incorporates FTDI Chip- ID functionality (giving each chip a unique
identifier for security) and USB termination resistors. Cloned boards (with a cloned chip) will likely exclude
the unique ID functionality and does not include an EEPROM, meaning that signals cannot be inverted

37|Page Figure-15
RELAY MODULE-
A Relay is a device that opens or closes an auxiliary circuit under some pre-determined condition in the
Main circuit. The object of a Relay is generally to act as a sort of electric magnifier, that is to say, it
enables a comparatively week current to bring in to operation on a much stronger current. It also provides
complete electrical isolation between the controlling circuit and the controlled circuit. Relays are the
switches which aim at closing and opening the circuits electromechanically.

Figure-16
PUSH BUTTONS-
remains in off state or normally open state but when it is pressed, it allows the current to pass through it
or we can say it makes the circuit when pressed. Normally their body is made up of plastic or metal in
some types.

.
Figure-17

38|Page
mage processing, fingerprint matching, search and
storage and other functions.

•Perfect function: independent fingerprint collection, fingerprint registration, fingerprint comparison


(1: 1) and fingerprint search (1: N) function.

•Small size: small size, no external DSP chip algorithm, has been integrated, easy to install, less
fault.

•Ultra-low power consumption: low power consumption of the product as a whole, suitable for low-
power requirements of the occasion.

• Anti-static ability: a strong anti-static ability, anti-static index reached 15KV above.
•Application development is simple: developers can provide control instructions, self fingerprint
application product development, without the need for professional knowledge of fingerprinting.

• Adjustable security level: suitable for different


applications, security levels can be set by the user to
adjust.

• Finger touch sensing signal output, low


effective, sensing circuit standby current is very low,
less than 5uA

Solenoid Electric Door Lock


Figure-18

Figure-19
39|Page
12V Solenoid lock are basically electromagnets: they are made of a big coil of copper wire with an
armature (a slug of metal) in the middle.
When the coil is energized, the slug is pulled into the center of the coil. This makes the solenoid able
to pull from one end. This solenoid lock in particular is nice and stron and has a slug with a slanted
cut and a good mounting bracket. It’s basically an electronic lock, designed for a basic cabinet or safe
or door. Normally the lock is active so you can’t open the door because the solenoid slug is in the way.
It does not use any power in this state. When 9-12VDC is applied, the slug pulls in so it doesn’t stick
out anymore and the door can be opened. The solenoid lock come with the slanted slug as shown
above, but you can open it with the two Phillips-head screws and turn it around so its rotated 90, 180
or 270 degrees so that it matches the door you want to use it with. To drive a solenoid lock with an
Arduino you will need a relay module fairly good power supply, as a lot of current will rush into the
solenoid to charge up the electro-magnet, about 500mA, so don’t try to power it with a 9V battery.

40|Page
6.1 CONCLUSION
The proposed system allows remote access to lock or unlock the door without physical user interaction. The
system fulfils the requirements of supporting autonomous locking device and easy fingerprint sensing
compared to physical keys. The system has minimum requirements for hardware and supports customization
of keys. The prototype-built shows that the design consumes minimal power and the locking/unlocking of
the door happens in 2 seconds on an average. Thus, the system proposed is feasible.

41|Page
1.9. REFERENCES

ASSESSMENT

Internal:

SL FULL MARKS REMAR


RUBRICS
NO MARK OBTAINED KS

Understanding the relevance, scope


1 10
and dimension of the project

2 Methodology 10

3 Quality of Analysis and Results 10

4 Interpretations and Conclusions 10

5 Report 10

Total 50

Date: Signature of the Faculty

1
COURSE OUTCOME (COs) ATTAINMENT

➢ Expected Course Outcomes (COs):


(Refer to COs Statement in the Syllabus)

➢ Course Outcome Attained:


How would you rate your learning of the subject based on the specified COs?

1 2 3 4 5 6 7 8 9 10

LOW HIGH

➢ Learning Gap (if any):

➢ Books / Manuals Referred:

Date: Signature of the Student

➢ Suggestions / Recommendations:
(By the Course Faculty)

Date: Signature of the Faculty

You might also like