Download the library for the fingerprint sensor
https://github.com/adafruit/Adafruit-Fingerprint-Sensor-Library
and add it to your Arduino IDE libraries folder (mine is located: C:\arduino-1.6.12\libraries)
To use the fingerprint sensor with the PC (Windows system only), let’s start by connecting the power supply:
- Connect the 5V pin from the Arduino board to the red power rail
- The GND from Arduino the blue power rail on the breadboard.
- First, connect the power, by connecting the cables to their respective colors on the breadboard: Red to +5V rail, Black to GND rail
- Then, connect the yellow wire from the sensor to Arduino pin RX0
- & the green wire to pin TX1
NOTE: There are 2 variants of the Fingerprint sensors, if you get a sensor with all RED wires, look below for wiring details:
Wiring details for all redwire fingerprint sensor:
Yellow wire to Tx of fingerprint sensor
Green wire to Rx of fingerprint sensor
Black to Ground
Red to 5V
Open your Arduino IDE and upload the following sketch:
// this sketch will allow you to bypass the Atmega chip
// and connect the fingerprint sensor directly to the USB/Serial
// chip converter.
// Red connects to +5V
// Black connects to Ground
// Yellow goes to Digital 0
// Green goes to Digital 1
void setup() {}
void loop() {}
To work with the sensor,
Press OK and after few seconds you should see a blue success message and some device information.
The software will ask you to scan your finger.
When prompted, put the finger on the scanner, if the finger is the same finger, you should get a match with the ID#.
If it is not the same finger, you will get a failure notice.
Simple, right!