Professional Documents
Culture Documents
3اردينو فتح الباب بالبصمه
3اردينو فتح الباب بالبصمه
Shiite Endowment
by
Supervisor
مقدم من قبل
كرار علي عذاب
قصي شياع خصاف
حسين قاسم الزم
إشراف
م.م ريام باسم
Signature:
Date:
i
األهداء
إىل من شجعين على املثابرة طوال عمري ،إىل الرجل االبرز يف حياتي {والدي العزيـز} إىل من بـــــــها أعلو،
وعليها أرتكز ،إىل القـــــــلب املعطاء ){والدتي احلـبيـبة} إىل من بذلوا جهًدا يف مساعدتي وكانوا خري
سند {إخــواني وأخواتي} إىل أسرتي إىل أصدقائي وزمالئي ....إىل كل من ساهم ولو حبرف يف حياتي
الدراسية .إىل كل هؤالء :أهدي هذا العمل ،الذي أسال اهلل تعاىل أن يتقبله خالصا.
ii
ABSTRACT
This project includes a smart and affordable door lock enhanced
with a fingerprint interface. For implementing this project, we will be
using Arduino, Fingerprint sensors, Servo MG995 and LCD 2*16.
The latches will be installed inside the door panel, so that the thickness of
the door can help the strength of the latch. We'll be using a few latches
inside the board to split the force between them if you try to force it. The
fingerprint sensor will take the user's fingerprint and forward it to the
microcontroller to match its records. Fingerprints of the microcontroller's
memory, the microcontroller will lock or unlock the latch, based on its
current state.
iii
List of Contents
Subject Page
List of Contents iv
List of figure v
CHAPTER ONE 1
INTRODUCTION
1.1 Introduction 2
1.2 Literature Review 2
1.1 Aim of Project 5
CHAPTER TWO 6
THEOREM BACKGROUND REQUIREMENT
2.1 Introduction 7
2.2 Hardware tools 7
2.2.1 Arduino UNO 7
2.2.1.1 Definition of Arduino UNO 7
2.2.1.2 Arduino board 8
2.2.2 Breadboard 11
2.2.3 Jumper wires m-f & m-m 11
2.2.4 Fingerprint [10] 12
2.2.5 Servo MG995 12
2.2.6 LCD 2*16 13
2.2.7 LEDs 14
2.3 Software tools 14
2.3.1 Arduino IDE 14
2.3.1.1 Work of Arduino IDE 14
2.3.1.2 Functions of Arduino IDE 15
2.3.1.3 Programming 16
CHAPTER THREE 19
PRACTICAL PART
3.1 Introduction 20
3.2 Tools of project 20
3.3 Connect the parts of the project 20
3.4 Resolution 21
3.5 Code of project 22
CHAPTER FOUR 25
CONCLUSION& RECOMMENDATIONS
4.1 Conclusion 26
4.2 Recommendations 26
Reverences 27
iv
List of figure
v
CHAPTER ONE
INTRODUCTION
1
1.2 Introduction
Project 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. In case 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.[1]
2
place or to keep their precious things, important papers in a secured
way. Hence this project can be understand by the audience and will
be helpful for the future work. Numerous mechanization and
modernization can be done in this project. This project can be again
build by different microcontroller and various methods. [2]
3
sensor, R305 uses unique biological features to take images and can
store up to 128 images which reduces fraud and saves time. This device
provides better security by raising alarm and indication for an
emergency condition. This system can be installed in defence
offices, intensive care units (ICUs), child care units (CCUs) and
research laboratories, etc.
In this paper finger print processing includes two parts finger point
enrolment and finger print matching. when enrolling, user needs to
enter the finger image two time. The system will process the finger
images, generate a template of the finger images based on processing
results and store the template. When matching user enters the finger
through optical sensor and system will generate a template of the
finger image and compare it with templates present in the finger
library.[4]
4
display (LCD) is used in this design to show the operating status of
this embedded embedded security system. By default it displays a
welcome message requesting that the user should enter a finger print.
And when a match is made it displays “ACCESS GRANTED”
otherwise it displays “ACCESS DENIED” . The implementation of this
project was done on the breadboard. The power supply was first
derived from a bench power supply in the electronics laboratory. To
confirm the workability of the circuits before the power supply
stage was soldered. The implementation of the project on bread
board was successful and it met the desired design aims with each
stage performing as designed.[5]
5
CHAPTER TWO
THEOREM BACKGROUND REQUIREMENT
6
2.1 Introduction
This chapter talks about the components that were used in this project.
For this kind of project we need Arduino UNO, Breadboard, servo
MG995 and LCD 2*16.
7
2.2.1.2 Arduino board [7]
The Arduino platform has become well acquainted with people into
electronics. Unlike most previous programmable circuit boards, the
Arduino does not have a separate piece of hardware in order to load new
code onto the board, you can simply use a USB cable to upload, and the
software of the Arduino uses a simplified version of C++, making it
easier to learn to program, and it provides you with an easier environment
that bypass the functions of the micro-controller into a more accessible
package. [7]
The pins on your Arduino are the places where you connect wires to
construct a circuit (probably in conjuction with a breadboard and some
wire. They usually have black plastic ‘headers’ that allow you to just plug
a wire right into the board. The Arduino has several different kinds of
pins, each of which is labeled on the board and used for different
functions.
GND (3): Short for ‘Ground’. There are several GND pins on the
Arduino, any of which can be used to ground your circuit.
5V (4) & 3.3V (5): As you might guess, the 5V pin supplies 5 volts
of power, and the 3.3V pin supplies 3.3 volts of power. Most of the
simple components used with the Arduino run happily off of 5 or
3.3 volts.
8
Analog (6): The area of pins under the ‘Analog In’ label (A0
through A5 on the UNO) are Analog In pins. These pins can read
the signal from an analog sensor (like a temperature sensor) and
convert it into a digital value that we can read.
Digital (7): Across from the analog pins are the digital pins (0
through 13 on the UNO). These pins can be used for both digital
input (like telling if a button is pushed) and digital output (like
powering an LED).
PWM (8): You may have noticed the tilde (~) next to some of the
digital pins (3, 5, 6, 9, 10, and 11 on the UNO). These pins act as
normal digital pins, but can also be used for something called
Pulse-Width Modulation (PWM). We have a tutorial on PWM, but
for now, think of these pins as being able to simulate analog output
(like fading an LED in and out).
AREF (9): Stands for Analog Reference. Most of the time you can
leave this pin alone. It is sometimes used to set an external
reference voltage (between 0 and 5 Volts) as the upper limit for the
analog input pins.
Reset Button
Just like the original Nintendo, the Arduino has a reset button (10).
Pushing it will temporarily connect the reset pin to ground and restart any
code that is loaded on the Arduino. This can be very useful if your code
doesn’t repeat, but you want to test it multiple times. Unlike the original
Nintendo however, blowing on the Arduino doesn't usually fix any
problems.
Just beneath and to the right of the word “UNO” on your circuit board,
there’s a tiny LED next to the word ‘ON’ (11). This LED should light up
whenever you plug your Arduino into a power source. If this light doesn’t
turn on, there’s a good chance something is wrong. Time to re-check your
circuit!
9
TX RX LEDs
Main IC
The black thing with all the metal legs is an IC, or Integrated Circuit (13).
Think of it as the brains of our Arduino. The main IC on the Arduino is
slightly different from board type to board type, but is usually from the
ATmega line of IC’s from the ATMEL company. This can be important,
as you may need to know the IC type (along with your board type) before
loading up a new program from the Arduino software. This information
can usually be found in writing on the top side of the IC. If you want to
know more about the difference between various IC's, reading the
datasheets is often a good idea.
Voltage Regulator
The voltage regulator (14) is not actually something you can (or should)
interact with on the Arduino. But it is potentially useful to know that it is
there and what it’s for. The voltage regulator does exactly what it says --
it controls the amount of voltage that is let into the Arduino board. Think
of it as a kind of gatekeeper; it will turn away an extra voltage that might
harm the circuit. Of course, it has its limits, so don’t hook up your
Arduino to anything greater than 20 volts.
10
2.2.2 Breadboard
A breadboard is a rectangular plastic board with a bunch of tiny holes in
it. These holes let you easily insert electronic components to prototype an
electronic circuit. [8]
Features:
Multiple colours
30cm long
Female Sockets at each end
11
2.2.4 Fingerprint [10]
Fingerprint sensors play a vital role in security systems and at access
points. Fingerprint application has existed for the identification purpose.
Every person has a unique fingerprint, so it is the best way to identify an
accessible person for a system.
The fingerprint is classified into five types: whorl, right loop, left loop,
tented, and arch. Features of the fingerprint recognition system are faster
speed, lower cost. Also, consistency is more significant than other
systems.
Features:
12
Figure 2.6: Servo MG995
13
2.2.7 LEDs
Visible LEDs are used in many electronic devices as indicator lamps, in
automobiles as rear-window and brake lights, and on billboards and signs
as alphanumeric displays or even full-colour posters. [15]
When a user writes code and compiles, the IDE will generate a Hex file
for the code. (Hex file are Hexa Decimal files which are understood by
Arduino) and then sent to the board using a USB cable. Every Arduino
14
board is integrated with a microcontroller, the microcontroller will
receive the hex file and runs as per the code written.[13]
WindowBar: The window bar consists the name of File and the
Arduino IDE software version.
MenuBar: The menu bar consists of:
File
Edit
Sketch
Tools
Help
Shortcut Buttons
Text Editor
Output Panel: This output panel is used to give comments about
the code
1. if the code is successfully compiled or any error occurs.
2. If the code has been successfully uploaded to the board.[13]
15
2.3.1.3 Programming
First of all a short explanation for possible error reports that can appear
while working with the Arduino software. The two most common ones
are:
16
2) There is a mistake in the sketch. For example, a word is misspelled
or a bracket is missing. In the example on the left the last
semicolon in the sketch is missing. In this Case the error report
often starts with “excepted..”. This means that the program is still
expecting something that is missing.
1. Name variable: In the first part elements of the program are named (
This will be explained in program no. 3). This part is not absolutely
necessary.
Defined as Output: The pin should put out a voltage. For example:
With this pin a LED is meant to light up.
Defined as an Input: The board should read out a voltage. For
example: A switch is actuated. The board recognized this, because it
gets a voltage on the Input pin.
17
3. Loop (absolutely necessary for the program): This loop part will be
continuously repeated by the board. It assimilates the sketch from
beginning to end and starts again from the beginning and so on.
18
CHAPTER THREE
PRACTICAL PART
19
3.1 Introduction
This project is designed to open the door by fingerprint to be more secure
and safe.
3. And the fingerprint Also, power is connected to 5V and GND, and pin
TX is connected to the Arduino with pin 2, and pin RX is connected to
the Arduino with pin 3.
20
Figure 3.1: Connect the project
3.4 Resolution
21
Figure 3.3: Insert your fingerprint
#include <SoftwareSerial.h>
#include<Servo.h>
#include <Wire.h>
#include <hd44780.h>
#include <hd44780ioClass/hd44780_I2Cexp.h>
hd44780_I2Cexp lcd;
Servo servo;
int getFingerprintIDez();
void setup()
Serial.begin(9600);
lcd.init();
22
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(3,0);
lcd.setCursor(5,1);
lcd.print("finger ");
finger.begin(57600);
servo.attach(8);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
getFingerprintIDez();
digitalWrite(6,HIGH);
digitalWrite(7,LOW);
int getFingerprintIDez() {
uint8_t p = finger.getImage();
23
p = finger.image2Tz();
p = finger.fingerFastSearch();
if(finger.fingerID=2){
servo.write(10);
lcd.clear();
lcd.setCursor(4,0);
lcd.print("Welcom ");
digitalWrite(7,HIGH);
digitalWrite(6,LOW);
delay(5000);
servo.write(120);
lcd.clear();
lcd.setCursor(3,0);
lcd.setCursor(5,1);
lcd.print("finger ");
return finger.fingerID;
24
CHAPTER FOUR
CONCLUSION& RECOMMENDATIONS
25
4.1 Conclusion
Fingerprint door locks are great investment for home or business. It
provides great security by providing restrictions to unwanted access. This
device increases level of security by adding unique biological features of
authorized person. For anyone who wants more security to their homes,
fingerprint door locks are best choice.
4.2 Recommendations
This design can be improved through extensive development and
additional features such as more locks can be added to the system. Thus
we don't need to spend a lot for just one lock if this can be used to control
many entrances. It would have been possible to create a system for
preserving the prints without the use of a computer, but it would require
more parts than the ones we used. In order to properly maintain security,
the entire mechanism must be placed inside the door panel or on the other
side of the door. A system can also be made of batteries or even solar
energy. One of the main advantages of this system is its flexibility. Many
other systems can be implemented with this system. This system is very
safe. Fingerprints are unique and the sensor can recognize all fingerprints
during the test.
26
Reverences
[1] Fingerprint Based Door Access System using Arduino by Malabika
Sarma,Amlanjyoti Gogoi,Rahul Saikia and Dibya jyoti Bora (August
2020).
[4] Anu, Bhatia D. A smart door access system using finger print
biometric system. International Journal of Medical Engineering and
Informatics 2. 2014 Jan 1;6(3):274-80.
27
[11] Servo MG995: https://www.makeblock.com/project/mg995-
standard-servo
[15]LEDs: https://en.wikipedia.org/wiki/Light-emitting_diode_physics
28