Finger print scanner

Hallo guys, I need some help in programming a finger print scanner.

product: Fingerprint Scanner - 5V TTL (GT-511C1) - SEN-11836 - SparkFun Electronics

I connected the scanner to arduino UNO pins 4 and 5.

but, when I tested the enrol sketch, I am not getting any information on the serial monitor.

Also, when I tested the blink sketch, the LED of the scanner did not blink. The scanner is ON with a blue light only, but it does not blink.

I tried this with two scanners, and got the same thing,

I connected the black wire - wire 1 - to pin 4 on arduino
white wire next to the black wire - wire 2- to pin 5 on arduino
white wire - wire 3- to gnd
white wire - wire 4- to VCC

I am not sure what I am doing wrong, please help.

Thanks.

I am having a similar problem to the one described in the thread.

https://forum.arduino.cc/index.php?topic=324828.0

I don't have one of these but the documentation seems a bit suspect. From the example sketches on Github...

// Hardware setup - FPS connected to:
// digital pin 4(arduino rx, fps tx)
// digital pin 5(arduino tx - 560ohm resistor fps tx - 1000ohm resistor - ground)
// this brings the 5v tx line down to about 3.2v so we dont fry our fps

that seems to say the device is only 3.3V compatible but the datasheet says 3.3V-6V operating voltage.

Try swapping over the RX/TX wires just in case you have then the wrong way round.

When I disconnect the scanner and uploaded the blink sketch,
and after reconnecting the scanner again it's LED blinked every one second.

However, when I tried the same thing with the enrol sketch, I did not get any thing in the serial monitor.

Please help !!

Regarding your point that the device is only 3.3V compatible. I am using a voltage divider (1k and 560k) on the receiver pin of the scanner.

If it is retired how did you get it???

I did not mention in my thread that it's retired!!

Please any reply to my thread !!

So you have the "blink" example working but not "enrol"?

Can you get it to do even the very first part of the "enrol" program? Is there any response you expect to get from it when that starts?

Check your wiring again.

FutureEngineer:
I did not mention in my thread that it's retired!!

FutureEngineer:
product: https://www.sparkfun.com/products/**retired**/11836

There is no response at all with the Enrol sketch, below is the sketch. I added one serialprint("testing"); in the setup and it appeared at the monitor, but nothing from the scanner. I reviewed the connection several times. Attached is the connection.

FutureEngineer:
There is no response at all with the Enrol sketch, below is the sketch. I added one serialprint("testing"); in the setup and it appeared at the monitor, but nothing from the scanner. I reviewed the connection several times. Attached is the connection.

There is nothing attached.

The image is very big to attach, please check the code of the enrol sketch

Also, I am actually using this version of the scanner which is not retired

Product: Fingerprint Scanner - TTL (GT-521F32) - SEN-14518 - SparkFun Electronics

/* 
 FPS_Enroll.ino - Library example for controlling the GT-511C3 Finger Print Scanner (FPS)
 Created by Josh Hawley, July 23rd 2013
 Licensed for non-commercial use, must include this license message
 basically, Feel free to hack away at it, but just give me credit for my work =)
 TLDR; Wil Wheaton's Law
*/


#include "FPS_GT511C3.h"
#include "SoftwareSerial.h"

// Hardware setup - FPS connected to:
//  digital pin 4(arduino rx, fps tx)
//  digital pin 5(arduino tx - 560ohm resistor fps tx - 1000ohm resistor - ground)
// this brings the 5v tx line down to about 3.2v so we dont fry our fps

FPS_GT511C3 fps(4, 5);

void setup()
{ 
  Serial.begin(9600);
  Serial.print("testing");
 delay(100);
 fps.Open();
 fps.SetLED(true);

 Enroll();
}


void Enroll()
{
 // Enroll test

 // find open enroll id
 int enrollid = 0;
 bool usedid = true;
 while (usedid == true)
 {
 usedid = fps.CheckEnrolled(enrollid);
 if (usedid==true) enrollid++;
 }
 fps.EnrollStart(enrollid);

 // enroll
 Serial.print("Press finger to Enroll #");
 Serial.println(enrollid);
 while(fps.IsPressFinger() == false) delay(100);
 bool bret = fps.CaptureFinger(true);
 int iret = 0;
 if (bret != false)
 {
 Serial.println("Remove finger");
 fps.Enroll1(); 
 while(fps.IsPressFinger() == true) delay(100);
 Serial.println("Press same finger again");
 while(fps.IsPressFinger() == false) delay(100);
 bret = fps.CaptureFinger(true);
 if (bret != false)
 {
 Serial.println("Remove finger");
 fps.Enroll2();
 while(fps.IsPressFinger() == true) delay(100);
 Serial.println("Press same finger yet again");
 while(fps.IsPressFinger() == false) delay(100);
 bret = fps.CaptureFinger(true);
 if (bret != false)
 {
 Serial.println("Remove finger");
 iret = fps.Enroll3();
 if (iret == 0)
 {
 Serial.println("Enrolling Successfull");
 }
 else
 {
 Serial.print("Enrolling Failed with error code:");
 Serial.println(iret);
 }
 }
 else Serial.println("Failed to capture third finger");
 }
 else Serial.println("Failed to capture second finger");
 }
 else Serial.println("Failed to capture first finger");
}


void loop()
{
 delay(100000);
}/code]

Edit your post to use code tags. Please read the two posts

How to use this forum - please read.
and
Read this before posting a programming question ...

The code tags make the code look

like this

when posting source code files. It makes it easier to read, and can be copied with a single mouse click. Also, if you don't do it, some of the character sequences in the code can be misinterpred by the forum code as italics or funny emoticons.

While you're at it, please auto-format the code with a ctrl-T. You should know this all by now, you've been told before.

aarg:
While you're at it, please auto-format the code with a ctrl-T. You should know this all by now, you've been told before.

I don't understand what is auto-format and I tried clicking ctrl-T after selecting the code, but nothing changed.

Please any reply to my thread ?

It's an urgent university project

thanks.

I tried the windows demo software that comes with the sensor.

First, I uploaded a 'blank sketch'

After uploading the blank sketch, I connected the sensor directly to the USB/Serial converter in the Arduino;

TX wire of the sensor to pin 0 on arduino and RX wire of the sensor to pin 1 on arduino

I followed the steps on the tutorial linked below:

But the COM port of arduino in the demo software did not open. There is no serial communication between the two devices.

// 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() {}

Any success with the scanner ? attached is the connection.

Try connecting the yellow & green patch wires to pins 0 & 1 of the arduino instead of pins 4/5 and use another patch wire to to connect RST to GND on the arduino. Then try the PC demo software, if it still does not work then try swapping the yellow/green wires on pins 0/1.

EDIT:
What value are the resistors? One looks like 1K but the colours on the other are undetermined.

the resistors values are 1k and 560.

What is RST ? and is it located on arduino or the scanner ?