This post is an introductory guide on how to use the Fingerprint Sensor Module with the Arduino. We’ll show you how to enroll a new fingerprint ID, and how to find a fingerprint match.Watch the Video DemonstrationIntroducing the Fingerprint Sensor ModuleFingerprint Sensor Module, like the one in the..
This post is an introductory guide on how to use the Fingerprint Sensor Module with the Arduino. We’ll show you how to enroll a new fingerprint ID, and how to find a fingerprint match.
Watch the Video Demonstration
Introducing the Fingerprint Sensor Module
Fingerprint Sensor Module, like the one in the following figure, made fingerprint recognition more accessible and easy to add to your projects. This means that is is super easy to make fingerprint collection, registration, comparison and search.
These modules come with FLASH memory to store the fingerprints and work with any microcontroller or system with TTL serial. These modules can be added to security systems, door locks, time attendance systems, and much more.
The sensor has six pins that are labeled in the figure below.
The fingerprint sensor module used in this project came with really thin wires, so soldering breadboard-friendly wires was needed. We recommend using different colors according to the pin function. In our case:
DNC – white wires
VCC – red wire
TX – blue wire
RX – green wire
GND – black wire
The following table shows how to wire the sensor to the Arduino.
5V (it also works with 3.3V)
RX (digital pin 2, software serial)
TX (digital pin 3, software serial)
Installing the Adafruit Fingerprint Sensor Library
The easiest way to control the fingerprint sensor module with the Arduino is by using the Adafruit library for this sensor. Follow the next instructions to install the library:
Unzip the .zip folder and you should get Adafruit-Fingerprint-Sensor-Library-master folder
Rename your folder from Adafruit-Fingerprint-Sensor-Library-master folder to Adafruit_Fingerprint_Sensor_Library folder
Move the folder to your Arduino IDE installation libraries folder
Finally, re-open your Arduino IDE
Enroll a New Fingerprint
Having the fingerprint sensor module wired to the Arduino, follow the next steps to enroll a new fingerprint. Make sure you’ve installed the Adafruit Fingerprint Sensor library previously.
1. In the Arduino IDE, go to File > Examples > AdafruitFingerprintSensorLibrary > Enroll.
2. Upload the code, and open the serial monitor at a baud rate of 9600.
3. You should enter an ID for the fingerprint. As this is your first fingerprint, type 1 at the top left corner, and then, click the Send button.
4. Place your finger on the scanner and follow the instructions on the serial monitor.
You’ll be asked to place the same finger twice on the scanner. If you get the “Prints matched!” message, as shown below, your fingerprint was successfully stored. If not, repeat the process, until you succeed.
Store as many fingerprints you want using this method.
Finding a Match
You now should have several fingerprints saved on different IDs. To find a match with the fingerprint sensor, follow the next instructions.