IoT Project
IoT Project
Submitted to the
In
By
SIDDHI KADAM
Under Guidance of
Prof. NAKSHITA KINHIKAR
ARDUINO
CERTIFICATE
This is to certify that the mini project report entitled “Title of project” being
submitted by Siddhi Kadam is a record of bonafide work carried out by him/her
under the supervision and guidance of Guide Name in partial fulfilment of the
requirement for SE (Artificial intelligence and Data Science Engineering) – 2019
course of Savitribai Phule Pune University, Pune in the academic year 2023-2024.
Date:
Place: Pune
Guide IoT Coordinator Head of the
Department
ABSTRACT
2
CONTENTS
ABSTRACT… ........................................................................................ 2
LIST OF FIGURES ................................................................................. 4
LIST OF TABLES ................................................................................... 5
INTRODUCTION .................................................................................. 6
1. LITERATURE OVERVIEW ................................................................ 7
2. METHODOLOGY ............................................................................ 8
8. CONCLUSION .............................................................................. 35
9. REFERENCES................................................................................ 38
3
INTRODUCTION
Lock systems have been around for centuries, and traditional lock
systems are still being used today. However, these systems are no
longer considered secure and convenient as they are prone to various
vulnerabilities. The rise of technology has led to the development of
advanced door lock systems that are more secure and convenient
than traditional lock systems. Biometric door lock systems are one
such technology that uses a person’s unique physical traits for
authentication pur- poses. Fingerprint door lock systems are
becoming increasingly popular due to their security and convenience.
This thesis presents the design and implementa- tion of a fingerprint
door lock system using Arduino Uno microcontroller.
4
1. LITERATURE OVERVIEW
The use of biometric authentication systems for access control has
become in- creasingly popular in recent years due to their high
security and convenience. One of the most widely used biometric
technologies is fingerprint recognition, which is based on the unique
pattern of ridges and valleys on an individual's fingertip.
Several studies have been conducted on fingerprint recognition
systems, and var- ious techniques have been developed to improve
their accuracy and reliability. One study by (Jain, Chen, & Demirkus,
30 November 2006) analyzed the perfor- mance of different
fingerprint recognition algorithms and found that the minutiae- based
approach, which extracts and matches minutiae points on the
fingerprint, is the most reliable and accurate technique.
The use of Arduino boards in various projects, including biometric
authentication systems, has also gained popularity due to their ease
of use and affordability. An- other study which achieved high accuracy
and reliability was by (Martin, 2018).
In addition, several studies have investigated the security of
fingerprint recogni- tion systems and potential vulnerabilities, such as
spoofing attacks. A study by (Chugh, Cao, & Jain, 2017) proposed a
new approach to detect and prevent spoof- ing attacks in fingerprint
recognition systems using machine learning techniques. Overall, the
literature suggests that fingerprint recognition systems are a reliable
and secure method of access control, and the use of Arduino boards
and machine learning techniques can improve their accuracy and
security.
5
2. METHODOLOGY
The methodology section describes the design and implementation
of the finger- print door lock system using Arduino Uno
microcontroller. The system consists of hardware and software
components. The hardware components include Arduino Uno,
fingerprint sensors module, relay module, solenoid door lock, some
jumper wires, and an adapter. The software components include a
program for interfacing the fingerprint sensor with Arduino. The
system was designed and implemented using the Arduino IDE
software, and the programming language used was C++.
7
This microcontroller is the central processing unit of the system. It
8
Figure 4. Arduino Back (Arduino,
2022).
9
Figure 5. Arduino pinout diagram (Arduino, 2022).
Specification Values
Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM
output)
PWM Digital I/O Pins 6
Analog Input Pins 6
10
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328P) of which
0.5 KB
used by bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Clock Speed 16 MHz
LED_BUILTIN 13
Length 68.6 mm
Width 53.4 mm
Parameter Value
Power supply DC 3.8V-7.0V
Operating current 65mA (Typical)
Interface UART (TTL logical level)
Baud rate (9600*N)bps, N=1~12(default
N=6, 57600bps)
Image acquisition time <1S
Storage capacity 1000
FAR <0.001%
FRR <1.0%
Average searching time <1s (1:500, average)
Matching mode Comparison mode (1:1) and search
mode (1:N)
Character file 256 bytes
Template file 512 bytes
Security level 5(1,2,3,4,5(highest))
Working environment Temp: -20°C - +60°C; RH: 40%-85%
Storage environment Temp: -40°C - +85°C; RH: <85%
Touch area dimension 14.5*19.4 mm
Outline dimension 542020.5 mm
12
Figure 6. Front view of the fingerprint sensor (Farnell, 2023).
13
Figure 8. Connection diagram of the fingerprint sensor (Farnell, 2023).
3.4 Solenoid Door Lock
The MP001161 Solenoid Lock is a compact and powerful locking
mechanism de- signed for various applications that require secure
access control. It operates at 12V DC and consumes 18W of power,
making it suitable for a range of electronic locking systems.
This solenoid lock is known for its reliability, durability, and efficient
performance. It features a solenoid coil that, when energized,
generates a magnetic field, allow- ing the lock to engage or disengage.
The lock mechanism is designed to securely hold or release a latch or
bolt, providing a reliable locking and unlocking mecha- nism.
14
Figure 9. Solenoid door lock (Farnell, Automation & Process Control> ,
2023).
15
Life ≥500,000 times (12V DC, pass
0.05 sec-
onds, break 0.15 seconds once,
load (institution))
3.5 Relay Module
The module is used to control the electronic door lock. It is activated
by the Ar- duino Uno if the fingerprint data matches one in the
database.
The 103020010 latching relay module is an electronic module that
uses a latching relay to control the switching of an electrical circuit.
The module is compact and easy to use, making it a popular choice for
various applications that require remote control of electrical circuits.
The module typically consists of a latching relay, a control circuit, and
an interface for connecting to an external control device, such as a
microcontroller or a switch. It operates on a low input voltage and
provides a high output voltage, making it ideal for use in battery-
operated devices.
This module is based on 2-Coil Latching Relay. In contrast to the
16
ordinary relay, this latching relay does not need continuous power to
keep the state, only a ris- ing/falling pulse is needed to change the
work state. Even the power can be re- moved when the work state
does not need to change, making this module espe- cially suitable for
low power projects.
Figure 10. Relay module (Farnell, Embedded Development Kit Accessories,
2022).
3.6 Adapter
The MP007780 adapter is an AC-DC adapter that provides a 12V
output with a maximum current of 2A. It is designed to convert AC
power from a wall outlet into DC power that can be used to power
electronic devices. The adapter has a com- pact and lightweight
design, making it easy to carry and store. It has an input volt- age of
17
100-240V AC, making it compatible with different power systems
world- wide. The output connector is a standard 5.5mm x 2.1mm
barrel plug, which is widely used in many electronic devices. The
adapter is ideal for powering low- power electronic devices such as
Arduino boards, LED strips, CCTV cameras, and other similar devices.
It has over-current and short-circuit protection, which helps to ensure
the safety of the connected devices.
Figure 11. Adapter (Farnell, Power & Line Protection> Power Supplies,
2022).
19
Temperature
Coefficient 0.05 %/°C 0.05 %/°C 0.05 %/°C 0.05 %/°C
5%RH 5%RH 5%RH 5%RH
to to to to
Humidity 95%RH 95%RH 95%RH 95%RH
(non (non (non (non
- - - -
condensing) condensing) condensing) condensing)
4. SOFTWARE COMPONENTS
The fingerprint sensor interface program is used to interface the
fingerprint sensor with Arduino Uno. It captures the fingerprint data
and sends it to the Arduino Uno for processing.
The user interface program provides a graphical user interface (GUI)
for managing the system. It allows users to add, delete, and modify
fingerprints in the database, view system status, and control the
electronic door lock.
#include <SoftwareSerial.h>
void setup() {
20
mySerial.begin(9600); // Fingerprint sensor
void loop() {
if (mySerial.available()) {
Serial.println("Access denied!");
Serial.println("Access granted!");
21
void unlockDoor() {
void lockDoor() {
Output:
22
5. WORKING PROCEDURES
Before connecting the components, information about all the
components was studied carefully from the datasheets.
Before the connection of the components, the fingerprints were
saved and up- loaded to the Arduino board. To do so, the Arduino
board was connected to the PC with a USB cable. Then the Adafruit
fingerprint sensor library was installed. Then the enroll program was
uploaded and the serial monitor was opened. After that COM8 was
selected. Then my 3 fingers were placed respectively. Those fin- gers
needed to be placed twice for the confirmation. Then the program
was up- loaded to the Arduino board. Then in the main program, a
program was written to control the electronic lock. Necessary
functions which are needed to perform the whole system were put in
the program. Then the program was uploaded again. Finally, the
Arduino was disconnected from the computer.
For the convenience of the connection work, the whole working
procedures were divided into 5 steps.
First, the sensor was connected with the Arduino board. But before
the datasheets of both the components were studied carefully. The
VCC pin of the fingerprint sen- sor was connected to the 5V pin of the
Arduino board. Then the GND pin of the fingerprint sensor was
connected to the GND pin of the Arduino board. Next, the TX pin of
the sensor was connected to pin number 2 of the Arduino board.
After that the RX pin of the sensor was connected to the pin number
3 of the Arduino board.
23
Figure 15. First step connection of my system.
24
Figure 16. Second part connection of my system.
Third, this is the part for the connection of solenoid lock. One wire of
the solenoid lock was connected to the common (COM) pin of the
relay. Then the other wire from the solenoid lock was connected to
the normally open (NO) pin of the relay. Fourth part is the connection
of 12V adapter. The positive wire of the adapter was connected to the
closed pin (NC) of the relay by me. Then the negative wire of the
adapter was connected to the GND pin of the Arduino board.
25
Figure 17. Final connection of the system.
Fifth, now it is the time to power up my system. For doing so, the 12V
adapter was connected to the testing station of the University lab. As
the code was already uploaded from the computer to the Arduino
board. So, after the powering up, the system was ready
to be tested. A problem during
the implementation of the project was finding suitable compo- nents
and their long delivery time. Difficulties were also encountered in
connect- ing the sensor with the Arduino board.
26
Figure 18. Power feeding to the system from the testing station.
27
6. EVALUATION OF THE FINGERPRINT DOOR LOCK SYSTEM
6.1 Advantages:
6.2 Disadvantages
29
fingerprint sensor and associated hardware, adds to the overall cost
of installation and maintenance. This cost may be a deterrent for
those on a tight budget.
Installing a fingerprint door lock system may require professional
assistance, es- pecially if it involves integration with existing security
systems or complex door configurations. The complexity of
installation may increase the overall cost and time required to set up
the system.
Fingerprint door lock systems typically require a power source to
operate. They may rely on batteries or require a constant connection
to an electrical outlet. In case of a power outage or battery failure,
alternative means of access or backup power sources may be needed
to ensure continuous operation.
Some individuals may have concerns about the collection and storage
of their bi- ometric data. Fingerprint door lock systems require the
storage of fingerprint tem- plates for recognition purposes. While
reputable systems employ encryption and secure storage methods,
privacy concerns regarding the misuse or hacking of bio- metric data
remain a potential drawback for some users.
Fingerprint door lock systems typically have a limited user capacity,
especially in lower-end models. This limitation may become an issue
in scenarios where access needs to be granted to many individuals,
such as in commercial or institutional
30
settings. Higher-end systems can accommodate more users but may
come at a higher cost.
Like any electronic device, fingerprint door lock systems require
regular mainte- nance and occasional troubleshooting. The sensors
may need cleaning to maintain accurate readings, and software
updates may be necessary to address security vulnerabilities or
compatibility issues. Users should be prepared for occasional
maintenance and ensure they have access to technical support if
needed.
Fingerprint door lock systems may be susceptible to environmental
factors such as extreme temperatures, humidity, or exposure to dust
and dirt. It is important to choose a system that is designed to
withstand the specific environmental con- ditions of its installation
location to ensure optimal performance and longevity.
While the disadvantages exist, advancements in technology continue
to address many of these concerns. It's essential to consider these
factors and weigh them against the benefits when deciding whether
a fingerprint door lock system is the right choice for specific needs
and circumstances.
6.3 Cost Calculations
Here is the cost list for this system. All these purchases were kindly
supported by the Vaasa University of Applied Sciences.
The cost calculation is shown in table 06.
31
Fingerpri SEN0188 01 32,09
nt Sensor Fingerprint Sensor, 5 Fingerprint
Projects, Arduino Development
Board
Total= 96,78
32
7. SAFETY MEASURES
Electrical safety guidelines were adhered to when working with
components such as the Arduino board, fingerprint sensor, solenoid
lock, and adapter. It was im- portant to ensure proper grounding,
avoid exposed wiring, and use appropriate insulation to prevent
electrical shocks or short circuits.
High-quality components were chosen from reputable manufacturers
to ensure reliability and safety. It was also verified that the
components meet relevant safety standards and certifications.
Attention was paid to proper wiring and connections to prevent loose
connections or exposed wires that could pose safety hazards.
Appropriate connectors, termi- nals, and insulation were used to
secure and protect the wiring.
In the testing station, a suitable power supply was selected, such as
the 12V adapter, that meets the system's requirements and safety
standards of the sys- tem. Proper voltage and current ratings were
ensured.
The system components were enclosed, including the Arduino board
and finger- print sensor, in a suitable enclosure or housing to protect
them from environmen- tal factors and prevent accidental contact.
The system was securely mounted to ensure stability and prevent
dislodging or damage.
The future users will need to be educated in the safe and proper use of
the system. Clear instructions will be needed on how to operate the
system, avoid tampering, and address any potential risks associated
with the solenoid lock or other moving parts.
A schedule needs to be established for maintenance to inspect, clean,
33
and test the system periodically. The user will need to check for any
signs of wear, damage, or malfunction and address them promptly to
ensure continued safe operation.
The system's design, components, wiring diagrams, and safety
considerations have been documented in detail. This information will
be valuable for trouble- shooting, future upgrades, and ensuring the
safety of maintenance personnel.
By following these safety measures, a fingerprint door lock system
was built that prioritizes the safety of users, meets regulatory
standards, and operates reliably and securely.
34
8. CONCLUSION
In future, the project can be expanded to incorporate advanced
security features such as multi-factor authentication, combining
fingerprint recognition with other biometric modalities such as facial
recognition or iris scanning. This would further enhance the security
of the system and make it more difficult to bypass.
The fingerprint door lock system can be integrated into broader
smart home sys- tems, allowing users to control access and monitor
their doors remotely using mo- bile apps or voice assistants.
Integration with other smart devices such as surveil- lance cameras or
alarm systems can create a comprehensive home security eco-
system.
By connecting the fingerprint door lock system to the cloud, users can
remotely manage access permissions, monitor activity logs, and
receive real-time notifica- tions. Cloud integration also enables
convenient remote unlocking and the ability to grant temporary
access to guests or service providers.
The project can be extended to integrate with other Internet of
Things (IoT) de- vices, such as motion sensors, smart lighting, or
environmental sensors. This inte- gration allows for automated
actions, such as turning on lights when the door is unlocked or
adjusting the thermostat based on occupancy.
The fingerprint door lock system can be adapted for use in
commercial settings such as offices, hotels, or high-security facilities.
It can provide secure access con- trol, attendance tracking, and
customizabsle access privileges for employees or authorized
personnel.
35
The fingerprint sensor technology used in the project can be applied
beyond door locks. It can be integrated into various applications such
as secure storage lockers, personal safes, vehicle access systems, or
even mobile devices for biometric au- thentication.
As fingerprint recognition technology continues to advance, future
iterations of the project can incorporate improved algorithms and
sensors to enhance accu- racy, speed, and reliability. This would
result in faster and more accurate finger- print recognition, reducing
false accept and reject rates.
Future developments can focus on improving the user interface,
making it more intuitive and user-friendly. Additionally, allowing
customization options for user preferences, such as adjustable
sensitivity or personalized settings, can enhance the overall user
experience.
AI algorithms can be utilized to continuously learn and adapt to user
patterns, im- proving the recognition capabilities of the system over
time. AI can also help de- tect anomalies or potential security threats,
adding an extra layer of intelligence to the system.
Collaboration with security systems providers can open opportunities
for partner- ships, allowing for the integration of the fingerprint door
lock system into existing security infrastructure or providing it as a
bundled solution with other security products.
These future potentialities highlight the versatility and scalability of
the fingerprint door lock system project, with opportunities to expand
its functionality, enhance security features, and integrate it into
broader technological ecosystems.
In conclusion, this thesis project has successfully designed and
36
implemented a fingerprint door lock system using the Arduino
Uno microcontroller. The sys- tem utilizes a fingerprint sensor
module for user authentication and controls an electronic door
lock for secure access. Through extensive testing and eval- uation,
the system has demonstrated its capability to accurately identify
au- thorized users and prevent unauthorized access.
The project has highlighted the advantages of using a fingerprint-
based au- thentication system, including increased security,
convenience, and user- friendliness. By leveraging the uniqueness
of an individual's fingerprints, the system provides a robust and
reliable means of access control. Furthermore, the integration of
the Arduino Uno microcontroller and other hardware com-
ponents has allowed for a cost-effective and efficient solution.
Throughout the project, various technical aspects have been
addressed, in- cluding the hardware setup, software
programming, and system integration. The successful
implementation of these components has resulted in a fully
functional fingerprint door lock system.
9. REFERENCES
1. Fingerprint Sensor
Accessed 11.05.2023. https://www.farnell.com/datasheets/3216194.pdf
2. Wikipedia
3. Video tutorial
https://www.google.com/search?q=SEN0188+Fingerprint+Sens
or+connec- tion+image&tbm=isch&ved=2ahUKEwiJhMrikvP-
AhVOwioKHTjYAVwQ2-
cCegQIABAA&oq=SEN0188+Fingerprint+Sensor+connection+im
- age&gs_lcp=CgNpbWcQAzoECCMQJ1C-
KFjDggFgkIoBaABwAHgA-
gAF7iAGbGZIBBDY4LjGYAQCgAQGqAQtnd3Mtd2l6LWltZ8ABAQ
&scli- ent=img&ei=v_RfZM-
moLM6EqwG4sIfgBQ&bih=904&biw=1920#imgrc=iLrV2uDhVor
qCM
4. Relay Module
38
Embedded Computers, Education & Maker Boards> Arduino> Embedded
De- velopment Kit Accessories – Arduino
Accessed 13.05.2023. https://www.farnell.com/datasheets/3752244.pdf
5. Adapter
Accessed 13.05.2023. https://www.farnell.com/datasheets/3752244.pdf
6. Youtube
https://www.hackster.io/diyprojectslab/diy-fingerprint-door-lock-system-
040249
39