The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

Optical Fingerprint

by pcollins on Fri Mar 15, 2013 11:28 am

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
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am

Re: Optical Fingerprint

by adafruit_support_bill on Fri Mar 15, 2013 1:29 pm

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.
User avatar
adafruit_support_bill
 
Posts: 27965
Joined: Sat Feb 07, 2009 9:11 am

Re: Optical Fingerprint

by pcollins on Sat Mar 16, 2013 4:04 pm

Soldered pins on to ensure a good contact was been made with the Arduino board.
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am

Re: Optical Fingerprint

by adafruit_support_bill on Sun Mar 17, 2013 6:26 am

Make sure you don't have any other programs using COM-15 (e.g. Serial Monitor or other terminal emulator program).
User avatar
adafruit_support_bill
 
Posts: 27965
Joined: Sat Feb 07, 2009 9:11 am

Re: Optical Fingerprint

by pcollins on Tue Mar 19, 2013 12:51 am

Port 15 clear only thing attached is the Arduino Board..........
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am

Re: Optical Fingerprint

by adafruit_support_bill on Tue Mar 19, 2013 7:23 am

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.
User avatar
adafruit_support_bill
 
Posts: 27965
Joined: Sat Feb 07, 2009 9:11 am

Re: Optical Fingerprint

by pcollins on Wed Mar 20, 2013 11:11 am

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
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am

Re: Optical Fingerprint

by adafruit_support_bill on Wed Mar 20, 2013 11:27 am

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.
User avatar
adafruit_support_bill
 
Posts: 27965
Joined: Sat Feb 07, 2009 9:11 am

Re: Optical Fingerprint

by pcollins on Wed Mar 20, 2013 5:35 pm

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 1056 times
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am

Re: Optical Fingerprint

by adafruit_support_bill on Thu Mar 21, 2013 6:04 am

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.
User avatar
adafruit_support_bill
 
Posts: 27965
Joined: Sat Feb 07, 2009 9:11 am

Re: Optical Fingerprint

by pcollins on Thu Mar 21, 2013 4:43 pm

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
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am

Re: Optical Fingerprint

by adafruit_support_bill on Thu Mar 21, 2013 6:41 pm

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 | TOGGLE FULL SIZE
  // set the data rate for the sensor serial port
  finger.begin(57600);
User avatar
adafruit_support_bill
 
Posts: 27965
Joined: Sat Feb 07, 2009 9:11 am

Re: Optical Fingerprint

by pcollins on Sun Mar 24, 2013 10:33 am

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.
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am

Re: Optical Fingerprint

by adafruit_support_rick on Sun Mar 24, 2013 10:58 am

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.
User avatar
adafruit_support_rick
 
Posts: 10753
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Optical Fingerprint

by pcollins on Sun Mar 24, 2013 4:59 pm

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
pcollins
 
Posts: 13
Joined: Fri Mar 15, 2013 11:15 am