0

Adafruit finger print sensor LED control and timer to exit o
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit finger print sensor LED control and timer to exit o

by dkanday on Tue Jun 22, 2021 5:38 pm

Hi,

I have the following fingerprint sensor: https://www.adafruit.com/product/4651 and I wanted to know how do I control the LEDs. In the description page/wiring page I do not see any code or explanation on how to wire or code in audrino for turn the LED on/off.

Also during the enrollment process, it keeps waiting till the user places the finger and completes the enrollment. Due to this piece of code : while (! getFingerprintEnroll() )
is there a way that I could put a timer for 60 seconds and if there is no enrollment within that time exit that function?

Can someone please help me with that.
Thanks!

dkanday
 
Posts: 41
Joined: Mon Jun 07, 2021 4:49 pm

Re: Adafruit finger print sensor LED control and timer to ex

by dkanday on Thu Jun 24, 2021 10:23 am

can someone help me with this?

dkanday
 
Posts: 41
Joined: Mon Jun 07, 2021 4:49 pm

Re: Adafruit finger print sensor LED control and timer to ex

by mikeysklar on Fri Jun 25, 2021 6:10 pm

@dkandday,

Our libraries off a set_led() function to managing the SETAURA 0x35 register.

There is a bit about LED control for this sensor in the datasheet.

DA47CC47-51E6-4B65-B93B-CA9D3B70EC83.jpeg
DA47CC47-51E6-4B65-B93B-CA9D3B70EC83.jpeg (533.59 KiB) Viewed 453 times


https://cdn-shop.adafruit.com/product-f ... manual.pdf

You can look at the Arduino lib for more specifics:

Code: Select all | TOGGLE FULL SIZE
#define FINGERPRINT_AURALEDCONFIG 0x35 //!< Aura LED control
#define FINGERPRINT_LEDON 0x50         //!< Turn on the onboard LED
#define FINGERPRINT_LEDOFF 0x51        //!< Turn off the onboard LED

#define FINGERPRINT_LED_BREATHING 0x01   //!< Breathing light
#define FINGERPRINT_LED_FLASHING 0x02    //!< Flashing light
#define FINGERPRINT_LED_ON 0x03          //!< Always on
#define FINGERPRINT_LED_OFF 0x04         //!< Always off
#define FINGERPRINT_LED_GRADUAL_ON 0x05  //!< Gradually on
#define FINGERPRINT_LED_GRADUAL_OFF 0x06 //!< Gradually off
#define FINGERPRINT_LED_RED 0x01         //!< Red LED
#define FINGERPRINT_LED_BLUE 0x02        //!< Blue LED
#define FINGERPRINT_LED_PURPLE 0x03      //!< Purple LED


https://github.com/adafruit/Adafruit-Fi ... gerprint.h

mikeysklar
 
Posts: 4968
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.