The easiest way to enroll a new fingerprint is to use the Windows software. The interface/test software is unfortunately windows-only and the fingerprint image preview section only seems to work with these sensors:

Fingerprint sensor with detection lens and cable
Secure your project with biometrics - this all-in-one optical fingerprint sensor will make adding fingerprint detection and verification super simple. These modules are typically used...
$49.95
In Stock
Fingerprint sensor with detection lens and socket cable
Secure your project with biometrics - this all-in-one optical fingerprint sensor will make adding fingerprint detection and verification super simple. It's easy to use and more...
$19.95
In Stock

but you only need to use it once to enroll, to get the fingerprint you want stored in the module.

First up, you'll want to connect the sensor to the computer via a USB-serial converter. The easiest way to do this is to connect it directly to the USB/Serial converter in the Arduino. To do this, you'll need to upload a 'blank sketch' this one works well for "traditional" Arduinos, like the Uno and the Mega:

// 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
// White goes to Digital 0
// Green goes to Digital 1

void setup() {}
void loop() {}
The "blank" sketch won't work for "native USB" based Arduinos like the Leonardo, Micro, Zero, etc! Use the Leo_passthru sketch instead!

If you're using a Leonardo, Micro, Yun, Zero, or other native-USB device like ATSAMD21 or ATmega32U4-based controller, use the Leo_passthru sketch instead of the "blank" sketch.

//Leo_passthru
// Allows Leonardo to pass serial data between fingerprint reader and Windows.
//
// Red connects to +5V
// Black connects to Ground
// Green goes to Digital 0
// White goes to Digital 1

void setup() {
  // put your setup code here, to run once:
  Serial1.begin(57600);
  Serial.begin(57600);
}

void loop() {
  
  while (Serial.available())
    Serial1.write(Serial.read());
  while (Serial1.available())
    Serial.write(Serial1.read());
}

Wire up the sensor as described in the sketch comments after uploading the sketch. Since the sensor wires are so thin and short, we stripped the wire a bit and melted some solder on so it made better contact but you may want to solder the wires to header or similar if you're not getting good contact. When you plug in the power, you may see the LED blink to indicate the sensor is working.

Check the Arduino wiring page for the different wire colors for each kind of sensor

You'll connect to the hardware RX / TX pins on the microcontroller:

Start up the SFGDemo software and click Open Device from the bottom left corner. Select the COM port used by the Arduino.
And press OK when done. You should see the following, with a blue success message and some device statistics in the bottom corner. You can change the baud rate in the bottom left hand corner, as well as the "security level" (how sensitive it is) but we suggest leaving those alone until you have everything running and you want to experiment. They should default to 57600 baud and security level 3 so set them if they're wrong
If you get an error when you Open Device, check your wiring, try swapping the RX and TX wires on the sensor, that's a common mixup!
Lets enroll a new finger! Click the Preview checkbox and press the Enroll button next to it (Con Enroll means 'Continuous' enroll, which you may want to do if you have many fingers to enroll). When the box comes up, enter in the ID # you want to use. You can use up to 162 ID numbers.
The software will ask you to press the finger to the sensor
You can then see a preview (if you cliecked the preview checkbox) of the fingerprint.
You will then have to repeat the process, to get a second clean print. Use the same finger!

On success you will get a notice.
If there's a problem such as a bad print or image, you'll have to do it again.

This guide was first published on Nov 05, 2012. It was last updated on Mar 17, 2024.

This page (Enrolling New Users with Windows) was last updated on Mar 17, 2024.

Text editor powered by tinymce.