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() {}
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.
If your sensor has all the same-color wires, The first wire from the left is ground, then the two data pins, then power. You'll have to cut, strip and solder the wires.
RX is the same as the White wire |
|
If your sensor has different wires, The first wire from the left should be the black wire ground, then the two data pins, RX is the white wire, TX is the green wire then the red power wire. You'll have to cut, strip and solder the wires. |
On success you will get a notice.