ASK AN ENGINEER is LIVE now! Click here to watch our weekly show with Ladyada!
0

DY50 fingerprint sensor issue
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

DY50 fingerprint sensor issue

by graghavan007 on Fri Oct 11, 2019 9:33 pm

I am connecting the DY50 to our own low power microcontroller. I am able to connect to the DY50 and able to run multiple commands such as Generate Random Number, Handshake etc.
However, when I run get image, it always return "Cant detect finger" even though I place my finger on it. Do i need to program it with other things such as templates or something before running the Get Image command ? Here is the packet output of the getImage command. Byte 9 (starting from 0 index) is always 0x2 and never returns 0x0 .

0xef 0x1 0xff 0xff 0xff 0xff 0x7 0x0 0x3 0x2 0x0 0xc

Appreciate any pointers. Thanks

graghavan007
 
Posts: 6
Joined: Fri Oct 11, 2019 9:26 pm

Re: DY50 fingerprint sensor issue

by adafruit_support_bill on Sat Oct 12, 2019 6:56 am

Are you able to run the enroll example in the library?

adafruit_support_bill
 
Posts: 76195
Joined: Sat Feb 07, 2009 10:11 am

Re: DY50 fingerprint sensor issue

by graghavan007 on Sat Oct 12, 2019 10:45 am

i did not try that. Do I have to enroll before I can grab a fingerprint image ?

graghavan007
 
Posts: 6
Joined: Fri Oct 11, 2019 9:26 pm

Re: DY50 fingerprint sensor issue

by adafruit_support_bill on Sat Oct 12, 2019 11:03 am

Not necessarily. But running enroll will verify if the device is operating correctly to start with.

adafruit_support_bill
 
Posts: 76195
Joined: Sat Feb 07, 2009 10:11 am

Re: DY50 fingerprint sensor issue

by graghavan007 on Sat Oct 12, 2019 11:15 am

Thanks will do and report back.

graghavan007
 
Posts: 6
Joined: Fri Oct 11, 2019 9:26 pm

Re: DY50 fingerprint sensor issue

by graghavan007 on Tue Oct 15, 2019 12:13 am

Thanks it worked fine. I had a problem with adding delay between command and receive packet. I think it potentially overflows the Receive FIFO in the MCU.

graghavan007
 
Posts: 6
Joined: Fri Oct 11, 2019 9:26 pm

Re: DY50 fingerprint sensor issue

by adafruit_support_bill on Tue Oct 15, 2019 6:18 am

The getFingerprintEnroll() function in the Enroll example calls getImage(). So that must be working OK. Make sure that you are doing all the required initialization in setup() before making the call.

adafruit_support_bill
 
Posts: 76195
Joined: Sat Feb 07, 2009 10:11 am

Re: DY50 fingerprint sensor issue

by graghavan007 on Tue Oct 15, 2019 2:57 pm

Sorry was not clear. Everything is working fine including GetImage().

graghavan007
 
Posts: 6
Joined: Fri Oct 11, 2019 9:26 pm

Re: DY50 fingerprint sensor issue

by adafruit_support_bill on Tue Oct 15, 2019 3:17 pm

Excellent! Thanks for the update.

adafruit_support_bill
 
Posts: 76195
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.