You are on page 1of 27

CHAPTER-1

INTRODUCTION
Here we will be Interfacing Fingerprint Sensor with Arduino to design Fingerprint
Sensor Based Self Bike Starter using Arduino. The type of fingerprint module we are using is the
R305 Fingerprint Scanner Module. Security is a major concern in our day to day life, and digital
locks have become an important part of these security systems. Fingerprint sensor-based is one
of the safest bike starting systems as it has the ability to identify and distinguish every person
individually without making any error. Also, the module is very small that it can be kept
anywhere, and with the portability feature and less power consumption, you can carry it to any
place as well.While biometrics and fingerprint identification has been existing for well over 100
years in some basic form, it is the growth of maker community that made the R305 Fingerprint
Module so popular. R305 is a common module used fingerprint scanners, with the aid of a
powerful DSP in its core. We can communicate with it using a packet of hex codes in a specific
format[2:49 pm, 16/12/2021] Sneha:
LITERATURE REVIEW
1.Design and development of a fingerprint-based vehicle starting system by C. O
Folorunso, L.A. Akinyemi, A.A. Ajasa and Oladipupo Kazeem.
The goal of this project is to design and develop a finger print based vehicle ignition system in
order to reduce vehicle theft and deter unauthorized users. Modern security solutions are required
to protect vehicles from theft and unauthorized use.
2.Vehicle starting system using fingerprint by Dr.V. Nandagopal, Dr.V. Maheswari, C. Kannan.
This paper discusses how the problem of car hijacking caused by easy access to the vehicle's
functional system can be mitigated by employing a biometric system. In the future, the proposed
r will detect the presence of a fingerprint and scan it automatically with an RFID scanner.
3. Arduino and RFID-based fingerprint-based vehicle ignition systemThis paper describes how
an RFID sensor and RFID reader are used to restrict access to only authorised individuals in a
vehicle
CHAPTER-2
COMPONENTS DETAIL
2.1 LIST OF COMPONENTS
LIST OF COMPONENTS:
 Arduino UNO
 R307 Fingerprint Sensor
 EM18 RFID Reader
 Relay
 L7805 Voltage Regulator
2.2 ARDIUNO UNO:
The Arduino Uno is a microcontroller board based on the ATmega328 (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, 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.
The Uno differs from all preceding boards in that it does not use the FTDI USB to- serial
driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to version R2) programmed as
a USB-to-serial converter. The Uno board has a resistor pulling the 8U2 HWB line to ground,
making it easier to put into DFU mode.

The board has the following new features:


 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins
placed near to the RESET pin, the IOREF that allow the shields to adapt to the voltage
provided from the board. In future, shields will be compatible with both the board that
uses the AVR, which operates with 5V and with the Arduino Due that operates with
3.3V.T
 Stronger RESET circuit.
 Atmega 16U2 replace the 8U2.

"Uno" means one in Italian and is named to mark the upcoming release ofArduino The
Uno and version 1.0 will be the reference versions of Arduino, moving forward. The Uno is the
latest in a series of USB Arduino boards, and the reference model for the Arduino platform.
ARDUINO UNO PIN DIAGRAM

Overview
The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). It
has14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16
MHz ceramic resonator, 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. The Uno differs from
all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it
features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial
converter.
Revision 2 of the Uno board has a resistor pulling the 8U2 HWB line to ground, making it easier
to put into DFU mode.
Revision 3 of the board has the following new features:
 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins
placed near to the RESET pin, the IOREF that allow the shields to adapt to the
voltageprovided from the board. In future, shields will be compatible both with the
boardthat use the AVR, which operate with 5V and with the Arduino Due that operate
with 3.3V. The second one is a not connected pin, that is reserved for future purposes.
 Stronger RESET circuit.
 Atmega 16U2 replace the 8U2.

"Uno" means one in Italian and is named to mark the upcoming release of Arduino 1.0. The
Unoand version 1.0 will be the reference versions of Arduino, moving forward. The Uno is
thelatest in a series of USB Arduino boards, and the reference model for the Arduino platform;
for a comparison with previous versions, see the index of Arduino boards.

Summary:
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) of which 0.5 KB used
by bootloader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz

POWER
The Arduino Uno can be powered via the USB connection or with an external power supply.
Thepower source is selected automatically. External (non-USB) power can come either from
anAC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm
center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd
and Vin pin headers of the POWER connector. The board can operate on an external supply of 6
to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts
and the board may be unstable. If using more than 12V, the voltage regulator may overheat and
damage the board. The recommended range is 7 to 12 volts. The power pins are as follows:

 VIN. The input voltage to the Arduino board when it's using an external power source (as

opposed to 5 volts from the USB connection or other regulated power source). You can supply
voltage through this pin, or, if supplying voltage via the power jack, access it through this pin.

 5V.This pin outputs a regulated 5V from the regulator on the board. The board can be
supplied
with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of
the board (7-12V). Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can
damage your board. We don't advise it.

 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50
mA.
 GND. Ground pins.

MEMORY
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also has 2 KB of SRAM
and 1 KB of EEPROM (which can be read and written with the EEPROM library).

Input and Output


Each of the 14 digital pins on the Uno can be used as an input or output, using pinMode(),
digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin can provide or
receivea maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of
2050 kOhms. In addition, some pins have specialized functions:

 Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data.
These pins are connected to the corresponding pins of the ATmega8U2 USB-to-TTL
Serial chip.
 External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a
low value, a rising or falling edge, or a change in value. See the attachInterrupt() function
for details.
 PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite()
function.
 SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI
communication using the SPI library.
 LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH
value, the LED is on, when the pin is LOW, it's off.
The Uno has 6 analog inputs, labeled A0 through A5, each of which provide 10 bits of resolution
(i.e. different values). By default they measure from ground to 5 volts, though is it possible to
change the upper end of their range using the AREF pin and the analogReference()
function.Additionally, some
pins have specialized functionality:

 TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using the Wire
library. There are a couple of other pins on the board:
 AREF. Reference voltage for the analog inputs. Used with analogReference().
 Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset
button to shields which block the one on the board.
See also the mapping between Arduino pins and ATmega328 ports. The mapping for the
Atmega8, 168, and 328 is identical.

communication
The Arduino Uno has a number of facilities for communicating with a computer, another
Arduino,or other microcontrollers. The ATmega328 provides UART TTL (5V)
serialcommunication, which is available on digital pins 0 (RX) and 1 (TX). An ATmega16U2
onthe board channels this serial communication over USB and appears as a virtual com port
tosoftware on the computer. The '16U2 firmware uses the standard USB COM drivers, and no
external driver is needed. However, on Windows,
a .inf file is required. The Arduino software includes a serial monitor which allows simple
textual data to be sent to and from the Arduino board. The RX and TX LEDs on the board will
flash when data is being transmitted via the USB-to-serial chip and USB connection to the
computer (but notfor serial communication on pins 0 and 1). A SoftwareSerial library allows for
serial communication on any of the Uno's digital pins. The ATmega328 also supports I2C (TWI)
and SPI communication. The Arduino software includes a Wire library to simplify use of the I2C
bus; see the documentation for details. For SPI communication, use the SPI library.
Programming
The Arduino Uno can be programmed with the Arduino software (download). Select "Arduino
Unofrom the Tools > Board menu (according to the microcontroller on your board). For details,
see the reference and tutorials. The ATmega328 on the Arduino Uno comes preburned with a
bootloader that allows you to upload new code to it without the use of an external hardware
programmer. It communicates using the original STK500 protocol (reference, C header files).
You can also bypass the bootloader and program the microcontroller through the ICSP (In-
Circuit Serial Programming) header; see these instructions for details. The ATmega16U2 (or
8U2 in the rev1 and rev2 boards) firmware source code is available . The ATmega16U2/8U2 is
loaded with a DFU bootloader, which can be activated by:

 On Rev1 boards: connecting the solder jumper on the back of the board (near the map of
Italy) and then resetting the 8U2.
 On Rev2 or later boards: there is a resistor that pulling the 8U2/16U2 HWB line to
ground, making it easier to put into DFU mode.
You can then use Atmel's FLIP software (Windows) or the DFU programmer (Mac OS X and
Linux) to load a new firmware. Or you can use the ISP header with an external programmer
(overwriting the DFU bootloader). See this user-contributed tutorial for more information.

AUTOMATIC(SOFTWARE)RESET
Rather than requiring a physical press of the reset button before an upload, the Arduino Uno is
designed in a way that allows it to be reset by software running on a connected computer. One
ofthe hardware flow control lines (DTR) of the ATmega8U2/16U2 is connected to the reset line
of the ATmega328 via a 100 nanofarad capacitor. When this line is asserted (taken low), the
resetline drops long enough to reset the chip. The Arduino software uses this capability to
allowyou to upload code by simply pressing the upload button in the Arduino environment. This
means that the bootloader can have a shorter timeout, as the lowering of DTR can be well-
coordinated with the start of the upload. This setup has other implications. When the Uno is
connected to either a computer running Mac OS X or Linux, it resets each time a connection is
made to it from software (via USB). For the following halfsecond or so, the bootloader is
running on the Uno. While it is programmed to ignore malformed data (i.e. anything besides an
upload of new code), it will intercept the first few bytes of data sent to the board after a
connection is opened. If a sketch running on the board receives one-time configuration or other
data when it first starts, make sure that the software with which it communicates waits a second
after opening the connection and before sending this data. The Uno contains a trace that can be
cut to disable the auto-reset. The pads on either side of the trace can be soldered together to re-
enable it. It's labeled "RESET-EN".
You may also be able to disable the auto-reset by connecting a 110 ohm resistor from 5V to the
reset line; see this forum thread for details.

USB Overcurrent Protection


The Arduino Uno has a resettable polyfuse that protects your computer's USB ports from shorts
and overcurrent. Although most computers provide their own internal protection, the fuse
provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse
will automatically break the connection until the short or overload is removed.

Physical Characteristics
The maximum length and width of the Uno PCB are 2.7 and 2.1 inches respectively, with the
USB connector and power jack extending beyond the former dimension. Four screw holesallow
the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8
is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins

2.3 R307 FINGERPRINT SCANNER SENSOR MODULE


This is a fingerprint sensor module 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 Fingerprint module can be directly interfaced with any microcontroller as well as Arduino
Board. This optical biometric fingerprint reader with great features and can be embedded into a
variety of end products like access control system, attendance system, safety deposit box, car
door locking system. At first, you need to register the desired finger. The registration is done by
enrolling in the fingerprint. The enrolling is done by placing the finger on the top of the glass on
the basis of the command shown in the serial monitor.
FEATURES:
•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, selffingerprint
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.
SPECIFICATIONS
Supply voltage : DC 4.2 ~ 6.0V
•Supply current: Working current : 50mA (typical) Peak current: 80mA
•Fingerprint image input time : <0.3 seconds
•Window area : 14x18 mm
•Matching method : Comparison method (1: 1)
•Search method (1: N)
•Characteristic file : 256 bytes
•Template file : 512 bytes
•Storage capacity : 1000 pieces
•Security Level : Five (from low to high: 1,2,3,4,5)
•Fake rate (FAR) : <0.001%
•Refusal rate (FRR) : <1.0%
•Search time : <1.0 seconds (1: 1000 hours, mean value)
•Host interface : UART \ USB1.1
•Communication baud rate (UART) : (9600xN) bps Where N = 1 ~ 12 (default N = 6,
ie 57600bps)
•Working environment: Temperature : -20 ℃ - +40 ℃ Relative humidity: 40% RH-
85% RH (no condensation)
•Storage environment: Temperature : -40 ℃ - +85 ℃ Relative humidity: <85% H (no
condensation)

CODE FOR ENROLLING FINGERPRINT


This code is written by S. Keshava Purna Vardhancoping of this code or editing
ofthis code can not be done asthis code is compiled and encrypted in read-only
typeSo, if any modifications of this code may corrupt the complete codeand cause
malfunctioning of the electronic devices-------------------- Can be programmed only
with 5V Arduino --------------------
Note: You can add the two 10kOhm resistors in series for 20kOhms. =)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
------------ This code is written by S. Keshava Purna Vardhan ------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
***********************/

#include <Adafruit_Fingerprint.h>
char input[12];
int count = 0;
int a = 0;

#if (defined(_AVR) || defined(ESP8266)) && !defined(AVR_ATmega2560_)


// For UNO and others without hardware serial, we must use software serial...
// pin #2 is IN from sensor (GREEN wire)
// pin #3 is OUT from arduino (WHITE wire)
// Set up the serial port to use softwareserial..
SoftwareSerial mySerial(2, 3);
#else
// On Leonardo/M0/etc, others with hardware serial, use hardware serial!
// #0 is green wire, #1 is white
#define mySerial Serial1

#endif

Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);

void setup()
{
pinMode(7,OUTPUT);
digitalWrite(7,HIGH);
Serial.begin(9600);
}
void loop() // run over and over again
{
if (Serial.available())
{
count = 0;
while (Serial.available() && count < 12)
{
input[count] = Serial.read();
count++;
delay(5);
}
if (count == 12)
{
if ((strncmp(input, "09005BBE17FB", 12) == 0) && (a == 0))
{
a = 1;
fingerprint();
}
else
{
if (a != 1)
{
}
}
}
}
}
int getFingerprintID()
{
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) return -1;
return finger.fingerID;
}
void fingerprint()
{
finger.begin(57600);
while(a==1)
{
int fingerprintID = getFingerprintID();
delay(50);
if (fingerprintID == 1)
{
digitalWrite(7,LOW);
delay(1000);
digitalWrite(7,HIGH);
while(1);
}
else if (fingerprintID == 2)
{
digitalWrite(7,LOW);
delay(1000);
digitalWrite(7,HIGH);
while(1);
}
else if (fingerprintID == 0)
{
digitalWrite(7,LOW);
delay(1000);
digitalWrite(7,HIGH);
while(1);
}
else
{
}
}
}
2.4 EM18 RFID READER

The EM-18 RFID Reader module operating at 125kHz is an inexpensive solution for your RFID
based application. The Reader module comes with an on-chip antenna and can be powered up
with a 5V power supply. Power-up the module and connect the transmit pin of the module to
recieve pin of your microcontroller. Show your card within the reading distance and the card
number is thrown at the output. Optionally the module can be configured for also a weigand
output.

Typical Applications
 e-Payment
 e-Toll Road Pricing
 e-Ticketing for Events
 e-Ticketing for Public Transport
 Access Control
 PC Access
 Authentication
 Printer / Production Equipment

EM18 RFID READER PIN DESCRIPTION

This sensor has 9 pins:


VCC : Module power supply
GND : Ground
SEL : SEL=1 then o/p = RS232 SEL = 0 then o/p =
WEIGAND
TX : DATA is given out through TX
DATA0 : WEIGANG interface DATA LOW pin
DATA1 : WEIGAND interface DATE HIGH pin
BUZZER : Should be connected to BUZZER for alarm
NC : No connection
NC : No connection

FEATURES OF EM18 RFID READER


 Operating voltage of EM-18 +4.5 to +5.5v
 Current consumption 50mA
 Can operate on LOW power
 Operating frequency 125khz
 Communication parameter 9600bps
 Reading distance 10m,depending on TAG
 Integrated antenna
2.5 RELAY MODULES
RELAY WORKING IDEA
Relays consist of three pins normaly open pin , normaly closed
pin,common pin and coil. When coil powerd on magntic field is generated the
contacts connected to each other.
Relay modules 1-channel features
 Contact current 10A and 250V AC or 30V DC.
 Each channel has indication LED.
 Coil voltage 12V per channel.
 Kit operating voltage 5-12 V
 Input signal 3-5 V for each channel.
 Three pins for normally open and closed for each channel.

How to connect relay module with Arduino


As shown in relay working idea it depends on magnetic field generated from the coil sothere is
power isolation between the coil and the switching pins so coils can be easilypowered from
Arduino by connecting VCC and GND bins from Arduino kit to therelay module kit after that we
choose Arduino output pins depending on the number ofrelays needed in project designed and set
these pins to output and make it out high (5 V) to control the coil that allow controlling of
switching process.

2.6 L7805 VOLTAGE REGULATOR

WORKING PRINCIPLE OF VOLTAGE REGULATOR


7805 is a three terminal linear voltage regulator IC with a fixed output voltage of 5V which is
useful in a wide range of applications. Currently, the 7805 Voltage Regulator IC is manufactured
by Texas Instruments, ON Semiconductor, STMicroelectronics, Diodes incorporated, Infineon
Technologies, etc. 

They are available in several IC Packages like TO-220, SOT-223, TO-263 and TO-3. Out of
these, the TO-220 Package is the most commonly used one (it is the one shown in the above
image). 

Some of the important features of the 7805 IC are as follows: 

 It can deliver up to 1.5 A of current (with heat sink). 


 Has both internal current limiting and thermal shutdown features. 
 Requires very minimum external components to fully function.

Working
The AC power supply from mains first gets converted into and unregulated DC and then into a
constant regulated DC with the help of this circuit. The circuit is made up of transformer, bridge
rectifier made up from diodes, linear voltage regulator 7805 and capacitors. 

If you observe, the working of the circuit can be divided into two parts. In the first part, the AC
Mains is converted into unregulated DC and in the second part, this unregulated DC is converted
into regulated 5V DC. So, let us start discussing the working with this in mind. 

Initially, a 230V to 12V Step down transformer is taken and its primary is connected to mains
supply. The secondary of the transformer is connected to Bridge rectifier (either a dedicated IC
or a combination of 4 1N4007 Diodes can be used). 

A 1A fuse is placed between the transformer and the bridge rectifier. This will limit the current
drawn by the circuit to 1A. The rectified DC from the bridge rectifier is smoothened out with the
help of 1000μF Capacitor. 

So, the output across the 1000μF Capacitor is unregulated 12V DC. This is given as an input to
the 7805 Voltage Regulator IC. 7805 IC then converts this to a regulated 5V DC and the output
can be obtained at its output terminals.
Important Points on 7805 Voltage Regulator IC 

 The first important point to note is that the input voltage should always be greater than
the output voltage (atleast by 2.5V). 
 The input current and output current are almost identical. This means that when a 7.5V
1A supply is given at input, the output will be 5V 1A. 
 The remaining power is dissipated as heat and hence a heat sink like the one shown
below must be used with 7805 IC 

Features
The main features of the IC 7805 voltage regulator include t following.
 It uses fewer components to work properly.
 It delivers the current up to 1.5 A.
 Thermal shut down & internal current limiting.
 Minimum & maximum input voltages are 7V & 25V.
 The operating current is 5mA.
 Protection of short circuit and thermal overload.
 The highest junction temperature is 125 degrees Celsius.
 It is available in KTE and TO-220 package.
Advantages
 This does not need any component to handle its output voltage.
 In includes built-in protection to protect from the overvoltage.
CHAPTER 3

CIRCUIT OPERATION AND WORKING

3.1 CIRCUIT DIAGRAM:

3.2 WORKING:

230V AC supply is being given to the 0-12V transformer which is the step-up transformer.
we have set the location press D/T button, then it will display Please wait and after that it will
show place the finger on the fingerprint sensor that is R305 sensor. Here all the process is
commanded by Arduino like taking an image of a fingerprint, convert it into templates, and
storing location, etc. After placing the finger, the vehicle is ignited. Another method is the
RFID. In this the RFID tag is put close to RFID reader and the RFID sensor will sense the
RFID tag. There are two cards one is valid and another is invalid. If RFID reader finds a
valid RFID tag, then the vehicle will get ignited. Our project's expected outcome is that the
vehicle will only start when the approved person scans his or her finger on the fingerprint
module. The biometric ignition system is designed to give the vehicle a high level of security
and protection. Only an approved user's fingerprint and an RFID card that is programmed to
ignite the vehicle will control the ignition circuit. The system verifies and unlocks the
ignition circuit in 0.3 seconds which makes the system robust.

3.3 PROGRAM:

#include <Adafruit_Fingerprint.h>
#include <LiquidCrystal.h>
char input[12];
int count = 0;
int a = 0;
const int rs = 6, en = 7, d4 = 2, d5 = 3, d6 = 4, d7 = 5;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
SoftwareSerial mySerial(12,11);
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
void setup()
{
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
Serial.begin(9600);
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print(" WELCOME TO ");
lcd.setCursor(0, 1);
lcd.print(" CIRCUIT DIGEST ");
delay(2000);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Please swipe ");
lcd.setCursor(0, 1);
lcd.print("Your License ");
}
void loop()
{
if (Serial.available())
{
count = 0;
while (Serial.available() && count < 12)
{
input[count] = Serial.read();
count++;
delay(5);
}
if (count == 12)
{
if ((strncmp(input, "3F009590566C", 12) == 0) && (a == 0))
{
lcd.setCursor(0, 0);
lcd.print("License Valid ");
lcd.setCursor(0, 1);
lcd.print("Welcome ");
delay(1000);
a = 1;
fingerprint();
}
else if ((strncmp(input, "0B0028883E95", 12) == 0) && (a == 0))
{
lcd.setCursor(0, 0);
lcd.print("License Valid ");
lcd.setCursor(0, 1);
lcd.print("Welcome ");
delay(1000);
a = 1;
fingerprint();
}
else
{
if (a != 1)
{
lcd.setCursor(0, 0);
lcd.print("License Invalid ");
lcd.setCursor(0, 1);
lcd.print("Try Again!!! ");
delay(2000);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Please swipe ");
lcd.setCursor(0, 1);
lcd.print("Your License ");
}
}
}
}
}
int getFingerprintID()
{
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) return -1;
return finger.fingerID;
}
void fingerprint()
{
Fingerprint based Car Ignition System using
Arduino and RFID
finger.begin(57600);
while(a==1)
{
int fingerprintID = getFingerprintID();
delay(50);
if (fingerprintID == 1)
{
lcd.setCursor(0, 0);
lcd.print("Access Granted ");
lcd.setCursor(0, 1);
lcd.print("Vehicle Started ");
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
while(1);
}
else if (fingerprintID == 2)
{
lcd.setCursor(0, 0);
lcd.print("Access Granted ");
lcd.setCursor(0, 1);
lcd.print("Vehicle Started ");
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
while(1);
}
else
{
lcd.setCursor(0, 0);
lcd.print("Pls Place a ");
lcd.setCursor(0, 1);
lcd.print("Valid Finger ")
}
}
}
CHAPTER 4
ADVANTAGES AND DISADVANTAGES

4.1 ADVANTAGES:

 This system can prevent the vehicle from being stolen.


 The fingerprint identification enhances the security of the vehicle and allows only an
authorised personnel to start the vehicle.
 High security compared to any other systems.
 Its processing rate is very fast and seamless for usage.

4.2 DISADVANTAGES:

 Distortion due to dirt or dust on biometrics of the personnel cannot be detected by the
sensor.
 Its accuracy and working of system is affected by skin conditions.

4.3 APPLICATIONS:
 It can be utilized for any of the vehicles.
 It can be utilized for home security systems.
CHAPTER 5
CONCLUSION

This project primarily focuses on vehicle ignition using sensors, which will benefit users in a
variety of situations. The use of fingerprint sensors allows legitimate and registered users to be
authenticated. We also used an RFID sensor for the car's ignition. If the fingerprint sensor fails,
the RFID tag can be used to start the car by simply scanning it. In the event that the fingerprint
sensor fails, this code will be stored in the RFID tag he/she is carrying. Fingerprint Sensor for
Vehicle Ignition There are several enhancements or functionalities that could be applied to the
current version of this framework to boost its protection and portability. If the registered user
finger is defaced, defective, or colored, the device will not allow the user to start the vehicle.

You might also like