MikroElektronika
LED Flash click
LED Flash click
SKU:MIKROE-2479
Couldn't load pickup availability
Share
LED Flash click functions as a high power LED flash, and carries the CAT3224 flash LED driver. The click is designed to run on a 5V power supply. It communicates with the target microcontroller over the following pins on the mikroBUS™ line: AN, RST, PWM, and INT.
Note: Please be careful - do not look into the LEDs while they are on, it may be harmful to your eyesight.
CAT3224 features
The CAT3224 is a very high−current integrated flash LED driver which also supports the charging function for a dual−cell supercapacitor applications. Ideal for Li−ion battery−powered systems, it delivers up to 4A LED flash pulses, far beyond the peak current capability of the battery.
Dual−mode 1x/2x charge pump charges the stacked supercapacitor to a nominal voltage of 5.4 V, while an active balance control circuit ensures that both capacitor cell voltages remain matched.
The driver also features two matched current sources. External resistors provide the adjustment for the maximum flash mode current (up to 4 A) and the torch mode current (up to 400 mA). A built−in safety timer automatically terminates the flash pulse beyond a maximum duration of 300 ms.
The CAT3224 has a shutdown mode that is so low that ON Semiconductor can safely call it "zero" mode. In this mode, it typically uses only 1μA.
Information about the LED indicators
On the LED Flash click there are three different LED indicators, here is how they operate:
CHARGE — When this LED is on the driver is in charge mode.
READY — When this LED is on it indicates that the supercapacitor is fully charged.
PWR — Indicates if power is present.
Additional information about the pins
FLAG is an active−low open−drain output that notifies the microcontroller that the supercapacitor is fully charged by pulling the output low (pin 15 in the mikroBUS). When using FLAG, this pin should be connected to a positive rail via an external pull−up resistor.
TORCH is the torch mode enable pin. When high, the LED current sources are enabled in torch mode.
FLASH is the flash mode enable pin. When high, the LED current sources are enabled in flash mode. If FLASH is kept high for longer than 300 ms typical, the LED channels are automatically disabled.
LEDA, LEDB are connected internally to the current sources and must be connected to the LED anodes. Each output is independently current regulated. These pins enter a high−impedance ‘zero’ current state whenever the device is placed in shutdown mode or FLASH and TORCH are low.
Specifications
Type | LED Segment |
Applications | Applications that require a high power LED flash |
On-board modules | CAT3224 flash LED driver |
Key Benefits | Flash mode and Torch mode |
Interface | GPIO |
Input Voltage | 5V,5V |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on LED Flash click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Programming
Code examples for LED Flash click, written for MikroElektronika hardware and compilers are available on Libstock.
Code snippet
The demo is realised as FSM (Finite State Machine). It has four states for contolling output signals (TORCH, FLASH, CHRG).
The demo starts in charge state which enables charge mode. It waits for FLAG signal (active low) from LED driver to switch to ready state. When in ready state, user can press specified button to drive LEDs in flash mode, burst current for short duration of time. After flash state is over (300 ms), it returns to charge state. User, aslo can press specified button to switch between torch or flash states. When in torch state, the program puts LED driver in torch mode, which allows the LEDs to run for extended time.
01 void main() 02 { 03 MCU_Init(); 04 05 state = STATE_CHARGE; 06 next_state = STATE_CHARGE; 07 08 while(1) 09 { 10 switch(state) 11 { 12 case STATE_CHARGE: 13 Write_Mode_Text(1, CL_GRAY, 1, CL_BLACK, 1, CL_GRAY); 14 TORCH = 0; 15 FLASH = 0; 16 CHRG = 1; 17 18 if(!FLAG) 19 next_state = STATE_READY; 20 21 if(Button_Pressed(&GPIO_PORT_64_66, 0, &buttonstate_up)) 22 next_state = STATE_TORCH; 23 24 break; 25 26 case STATE_READY: 27 Write_Mode_Text(0, 0, 0, 0, 1, CL_BLACK); 28 if(Button_Pressed(&GPIO_PORT_64_66, 1, &buttonstate_center)) 29 next_state = STATE_FLASH; 30 31 if(Button_Pressed(&GPIO_PORT_64_66, 0, &buttonstate_up)) 32 next_state = STATE_TORCH; 33 34 break; 35 36 case STATE_FLASH: 37 Write_Mode_Text(0, 0, 0, 0, 1, CL_GRAY); 38 CHRG = 0; 39 40 FLASH = 1; 41 Delay_ms(300); 42 FLASH = 0; 43 44 next_state = STATE_CHARGE; 45 break; 46 47 case STATE_TORCH: 48 Write_Mode_Text(1, CL_BLACK, 1, CL_GRAY, 1, CL_GRAY); 49 TORCH = 1; 50 FLASH = 0; 51 CHRG = 0; 52 53 if(Button_Pressed(&GPIO_PORT_64_66, 0, &buttonstate_up)) 54 next_state = STATE_CHARGE; 55 56 break; 57 } 58 59 state = next_state; 60 Delay_ms(POLLING_PERIOD); 61 } 62 }




New Products
-
Sold out
OAK 4 D Auto Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Fixed Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Wide
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / per -
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / per