Re: Fingerprint problem - Arduino UNO

by adafruit_support_bill on Wed Sep 26, 2012 12:18 pm

Not sure what else to try here. All the individual parts are working - just not together. :?

If you have a soldering iron, you can try soldering some header pins (or just heavier gauge wire) to the ends of the sensor wires. The thin wires do not always make a reliable connection in the breadboard.
User avatar
adafruit_support_bill
 
Posts: 28099
Joined: Sat Feb 07, 2009 9:11 am

Re: Fingerprint problem - Arduino UNO

by ABadDream on Thu Oct 18, 2012 8:38 pm

Hi

I downloaded the fingerprint library two days ago and happened the same.

What I found out is that in "Adafruit_Fingerpring.CPP" in line 49 col 32, there's a typo. It is a condition to be met and there's only one = character.

line goes

if ((len == 1) && (packet[0] = FINGERPRINT_ACKPACKET) && (packet[1] == FINGERPRINT_OK))

and must be

if ((len == 1) && (packet[0] == FINGERPRINT_ACKPACKET) && (packet[1] == FINGERPRINT_OK))


Also changed speed on SFGDemo from 115200 to 57600.

It worked well with fingerprint example, hope it helps.
ABadDream
 
Posts: 6
Joined: Thu Oct 18, 2012 8:23 pm

Re: Fingerprint problem - Arduino UNO

by adafruit_support_bill on Fri Oct 19, 2012 7:08 am

Thanks for reporting that. I've entered it as an issue on the Github repository.
User avatar
adafruit_support_bill
 
Posts: 28099
Joined: Sat Feb 07, 2009 9:11 am

Re: Fingerprint problem - Arduino UNO

by mxlukax on Fri Oct 26, 2012 6:09 am

Thanks for help me, now it's working. :D
User avatar
mxlukax
 
Posts: 10
Joined: Fri Sep 21, 2012 9:49 am
Location: Florianópolis, SC, Brazil

Re: Fingerprint problem - Arduino UNO

by ABadDream on Mon Oct 29, 2012 2:24 pm

Hey, It's me again.

Found now a problem on fingerprint example, So I got into the code again.

I was trying to get response if I entered a id that was not in the finger reader, but nothing happened. Only was able to get response when an enrolled fingerprint was entered. So I found this.

In the example says:

void loop()
{
getFingerprintIDez();
}

and must say:

void loop()
{
getFingerprintID();
delay(2000); //This was added by myself to have the reader waiting between readings.
}


It works now with all the messages and error messages.

Regards
ABadDream
 
Posts: 6
Joined: Thu Oct 18, 2012 8:23 pm