Creative Commons License
.

Hello guys, welcome back to another Arduino tutorial, in today’s tutorial, we will learn to use a Fingerprint sensor with any Arduino board, and we will possibly make a simple practical example of this sensor, so let’s learn together!

Supplies for arduino fingerprint sensor:

Components:

1. Fingerprint sensor

2. Arduino UNO

3. Male header

4. L.E.D

Tools:

1. Soldering iron

2. Soldering Wire

( Optional )

1. solenoid lock

Step 1: Watch the Video!

Step 2: Understanding the Working Principle

the fingerprint sensor we are using is an Optical Type ,there exists two more types of sensor like capacitive which can be found in smart phones and ultrasonic ones, which are yet in testing phase, and both these options are expensive, so we will focus on this optical type for this hobby electronics and similar projects.

The way this optical fingerprint sensor works is that it captures a photo of our finger ridges, and then it uses certain algorithm to match it with stored data and displays result of the same.

few features of this sensor are as following:

  • Power supply: DC 3.8V-7.0V
  • Operating current: 65mA (Typical)
  • Interface: UART (TTL logical level)
  • Average searching time: <1s (1:500, average)
  • Security level: 5(1,2,3,4,5(highest))
  • Working environment:Temp: -20°C to +60°
  • Touch area dimension: 14.5*19.4 mm
  • Outline dimension: 54*20*20.5 mm

Step 3: Solder Male Headers to Sensor

since the wires that come along with sensor are flexible and the ends of this wire are quite wiggly so we would add male headers ( or female headers in case if you use arduino nano) to connect those wires to female headers on arduino board.

you can use a helping hand or something to make your soldering task a lot easier since our header pins are small and we really don’t want to risk burning our hands with solder iron.

Step 4: Connect the Sensor With Arduino

the connections part is very very simple, this fingerprint sensor has 6 wires, out of which we only 4 wires are useful, for arduino interfacing, out of which 2 wires will be used for power and 2 for data.

connections:

  • red to 5v,
  • black to GND,
  • green to pin D2
  • white to pin D3

( you can also refer to connection diagram above)

Step 5: Include the Adafruits Finerprint Library

to complete this project or tutorial, we will need “Adafruits Finger print” library, which you can find attached in this step or google it,

to install that library, follow these steps:

  1. open arduino IDE
  2. add the library by selecting Add ZIP under SKETCH menu, INCLUDE Library options.
  3. now, select the .zip file from the location where we downloaded the file!

Step 6: Enroll the Finger Prints

first we need to enroll the fingers into the EPROM of our Sensor module, so we will follow these steps to enroll our fingerprints.

  1. open arduino IDE
  2. under the FILE menu, and Examples, find the adafruits finger print library.
  3. select the enroll example.
  4. upload the enroll example.
  5. open the Serial Monitor.
  6. select the baud rate to be 9600.
  7. Enter the Finger Print ID number when the serial monitor prompts to enter the fingerprint id number.
  8. place the finger you need to enroll on the sensor.
  9. place the finger again on the sensor once prompted by serial monitor.

Step 7: Upload the Main Code

since we enrolled the fingerprints in the last step, now we can test if this sensor works or may be check for match using this following code and steps.

  1. open arduino IDE
  2. under the FILE menu, and Examples, find the adafruits finger print library.
  3. select the fingerprint example.
  4. upload the fingerprint example.
  5. open the Serial Monitor.
  6. select the baud rate to be 9600.
  7. place the finger you need to test on the sensor.
  8. check for fingerprint id number for OUTPUT.

Step 8: Modify the Main Code to Interface LED ( or Solenoid)

now let’s add a led to indicate our Fingerprint match, to do so follow these steps:

  1. define the LED on pin 13 as output in void setup part
  2. find then on line 135 we see a fingerprint id match loop, where in we use if statements along with library definitions to find our fingerprint id.
  3. we will give a high pulse for 1 second and turn the LED off.
  4. use digitalWrite(13,HIGH); delay(1000); digitalWrite(13,LOW); “on line 144 to turn on and off the LED
  5. after this line and our code will turn on the LED every time sensor finds a match.
you can add a solenoid instead of this LED, and make a arduino fingerprint sensor door lock, which could be a brief tutorial for future, but for this tutorial, LED indication is our Eureka!

Step 9: Conclusion

setuping finger print sensor

so in this tutorial post, we learnt how to set up a Fingerprint sensor and how to use it with our Arduino, you can use this knowledge to control a Door lock, and LED or any apparatus that you want to control.

so if you made similar project, do let us know by posting your work under “i made it” section!

Step 10: Support Us!

we spend a lot of time making videos and tutorials for you guys! and you guys seem to like it, we really would appreciate your support by following us on social media or by supporting us via Patreon!

Patreon – https://www.patreon.com/missioncritical

Twitter @ akshaymomaya1

Instagram @officialmissioncritical

Facebook https://www.facebook.com/officialmissioncritical/

Write A Comment

Minov

A Market Place for your Innovations

0