Optical Fingerprint

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Optical Fingerprint

Post by pcollins »

Hi,

Purchased a fingerprint scanner and using it with R3 UNO, I've uploaded the enroll sketch, have the SFG demo software running.
The sensor is hooked up Red to 5V, Black Gnd, White to digital 0 and green to digital 1. When I connect the Uno up to the laptop via USB port and start suppling voltage to the FP sensor, I can see one flash, thus thought it was function correctly. opened up SFG demo software and tried to open device to set it to the same comm port as the UnO, com15, but no sucess got the following message:

open device fail please check password and device address, is displayed on SFG demo applcation. Checked the voltage that is been inputted to the sensor to ensure it was making a good connection with the arduino and was measuring 4.8v at the connector on the optical sensor. is there anything that I'm overlooking.

Cheers

Pat

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Optical Fingerprint

Post by adafruit_support_bill »

Did you solder some header pins or solid core wire to the ends of the sensor leads? The wire on those leads is really thin and does not make reliable contact in an UNO header.

pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Re: Optical Fingerprint

Post by pcollins »

Soldered pins on to ensure a good contact was been made with the Arduino board.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Optical Fingerprint

Post by adafruit_support_bill »

Make sure you don't have any other programs using COM-15 (e.g. Serial Monitor or other terminal emulator program).

pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Re: Optical Fingerprint

Post by pcollins »

Port 15 clear only thing attached is the Arduino Board..........

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Optical Fingerprint

Post by adafruit_support_bill »

Can you post a photo?
I've uploaded the enroll sketch, have the SFG demo software running.
When using the SFGDemo utility, the Uno should be running an empty sketch - Any serial communication from the Uno will interfere.

pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Re: Optical Fingerprint

Post by pcollins »

The sketch that I'm running is:

void setup() {} \\ This code enables the ATmega chip to be bypassed so the FP sensor could be \\hooked up directly to PC
void loop() {}

Nothing else running, one thing that I want to confirm is the wiring of the sensor, from the Data sheet it indicates that the +5 pin is pin one,green pin 2 , white pin 3 and black pin 4,but the sensor I have pin 1 and 2 have no connection, pin 3 connected to red, pin 4 Green , pin 5 White and Pin 6 black. Can this be clarified. Thanks

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Optical Fingerprint

Post by adafruit_support_bill »

one thing that I want to confirm is the wiring of the sensor, from the Data sheet it indicates that the +5 pin is pin one,green pin 2 , white pin 3 and black pin 4,but the sensor I have pin 1 and 2 have no connection, pin 3 connected to red, pin 4 Green , pin 5 White and Pin 6 black.
That sounds different from the one I have here. Can you post a photo of that so we can identify what you have there?
Also post any model number you see printed on the sensor.

pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Re: Optical Fingerprint

Post by pcollins »

Sorry but there does not seem to be a serial number, I've attached an image of the sensor wiring, i hope
Cheers
Pat
Attachments
IMAG0049.jpg
IMAG0049.jpg (823.83 KiB) Viewed 2199 times

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Optical Fingerprint

Post by adafruit_support_bill »

OK. That has a couple more pins than the one I have here, but I'd go by the wire colors for hookup.
SFGDemo does seem to have difficulty connecting sometimes. Power cycling the Arduino & sensor often helps.

pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Re: Optical Fingerprint

Post by pcollins »

I've tried rebooting Board sensor and the application software more than a couple of times with the same result, just in case there maybe a slight setup difference, my operating system is windows7, is there any known issues with trying to hook up the sensor with windows 7.

Thanks

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Optical Fingerprint

Post by adafruit_support_bill »

It does work with Windows 7. That is what I mostly use here. The demo software can be a bit finicky though.

Have you had any luck using the example sketches on the Uno? You will need to re-wire the serial connection to pins 2 and 3 for that.

We have seen some sensors initialized with a different default baud-rate - typically 9600. You can try changing that in the example sketch:

Code: Select all

  // set the data rate for the sensor serial port
  finger.begin(57600);

pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Re: Optical Fingerprint

Post by pcollins »

Just want to verify something, in all the videos and tutorials it seems that when the FP sensor is connected to a voltage that it lights up contineously. But in my case it gives an initial flash and goes blank. This it seems would be an indication that the sensor is faulty due that I've tested it and it is receiving a constant 4.8 volts.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Optical Fingerprint

Post by adafruit_support_rick »

The sensor only lights up when it has been commanded by software to perform a read. Otherwise, the light flashes at power-up, and then remains off.

pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 12:15 pm

Re: Optical Fingerprint

Post by pcollins »

Folks,

Tried the enrol ketch with different baud rates when i go to upload get alot of errors see below:
enroll:35: error: 'Adafruit_Fingerprint' does not name a type
enroll.pde: In function 'void setup()':
enroll:43: error: 'finger' was not declared in this scope
enroll.pde: In function 'uint8_t getFingerprintEnroll(uint8_t)':
enroll:73: error: 'FINGERPRINT_OK' was not declared in this scope
enroll:74: error: 'finger' was not declared in this scope
enroll:76: error: 'FINGERPRINT_OK' cannot appear in a constant-expression
enroll:79: error: 'FINGERPRINT_NOFINGER' was not declared in this scope
enroll:82: error: 'FINGERPRINT_PACKETRECIEVEERR' was not declared in this scope
enroll:85: error: 'FINGERPRINT_IMAGEFAIL' was not declared in this scope
enroll:96: error: 'finger' was not declared in this scope
enroll:98: error: 'FINGERPRINT_OK' was not declared in this scope
enroll:101: error: 'FINGERPRINT_IMAGEMESS' was not declared in this scope
enroll:104: error: 'FINGERPRINT_PACKETRECIEVEERR' was not declared in this scope
enroll:107: error: 'FINGERPRINT_FEATUREFAIL' was not declared in this scope
enroll:110: error: 'FINGERPRINT_INVALIDIMAGE' was not declared in this scope
enroll:121: error: 'FINGERPRINT_NOFINGER' was not declared in this scope
enroll:127: error: 'FINGERPRINT_OK' was not declared in this scope
enroll:130: error: 'FINGERPRINT_OK' cannot appear in a constant-expression
enroll:133: error: 'FINGERPRINT_NOFINGER' was not declared in this scope
enroll:136: error: 'FINGERPRINT_PACKETRECIEVEERR' was not declared in this scope
enroll:139: error: 'FINGERPRINT_IMAGEFAIL' was not declared in this scope
enroll:152: error: 'FINGERPRINT_OK' was not declared in this scope
enroll:155: error: 'FINGERPRINT_IMAGEMESS' was not declared in this scope
enroll:158: error: 'FINGERPRINT_PACKETRECIEVEERR' was not declared in this scope
enroll:161: error: 'FINGERPRINT_FEATUREFAIL' was not declared in this scope
enroll:164: error: 'FINGERPRINT_INVALIDIMAGE' was not declared in this scope
enroll:175: error: 'FINGERPRINT_OK' was not declared in this scope
enroll:177: error: 'FINGERPRINT_PACKETRECIEVEERR' was not declared in this scope
enroll:180: error: 'FINGERPRINT_ENROLLMISMATCH' was not declared in this scope
enroll:189: error: 'FINGERPRINT_OK' was not declared in this scope
enroll:191: error: 'FINGERPRINT_PACKETRECIEVEERR' was not declared in this scope
enroll:194: error: 'FINGERPRINT_BADLOCATION' was not declared in this scope
enroll:197: error: 'FINGERPRINT_FLASHERR' was not declared in this scope

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”