How does it work?
LED Flash 3 Click is based on the KTD2691, an inductorless single-flash LED driver from Kinetic Technologies. While working in flash mode, you can program the LED current over the software, but you can also use a hardware strobe pin to control this mode. The software can only program the torch mode and on/off ramp. There are various additional functionalities that this LED driver provides. This includes low voltage protection (LVP), a flash time-out function that sets the maximum time of one flash event, under voltage lock-out (UVLO), thermal shutdown, LED short protection, LED open protection, and more.
The LED Flash 3 Click is equipped with the XPCWHT-L1-R250-00A01, an Xlamp XP-C LED. The LED combines proven lighting-class performance and reliability. It features a white LED with a wide viewing angle and low thermal resistance. In addition, you can add an external similar LED over the available connector. The LED selection can be made over the LED SEL jumper. You can also select the LED driver voltage supply between the 3.3V and 5V over the VCC SEL jumper.
LED Flash 3 Click uses a standard 2-wire I2C interface to communicate with the host MCU supporting standard and a fast mode with up to 400kHz clock frequency. The hardware strobe pin is available over the STB pin. If using the STROBE pin to control the flash mode, there is an option to select when the flash mode is deactivated.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VIO SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Specifications
Type
LED Segment
Applications
Can be used for the development of flash or torch lights for various hand-held devices, such as small camera lights, a cell phone flashlight, or a signal light, a bicycle light, a car taillight, and more
On-board modules
KTD2691 – inductorless single-flash LED driver from Kinetic Technologies
Key Features
I2C interface programming and hardware strobe control, single-channel programmable current source, flash and torch modes, input low voltage protection, flash time-out protection, LED open/short protection, external LED connection, and more
Interface
I2C
Feature
ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on LED Flash 3 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | VCC SEL | Left | Power Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2 | VIO SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP3 | LED SEL | Left | LED Selection INT/EXT: Left position INT, Right position EXT |
LED Flash 3 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Flash Current | – | – | 1.5 | A |
Torch Current | – | – | 376 | mA |
Software Support
We provide a library for the LED Flash 3 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for LED Flash 3 Click driver.
Key functions
-
ledflash3_write_reg
LED Flash 3 register writing function. -
ledflash3_set_flash_current
LED Flash 3 set flash current function. -
ledflash3_set_torch_current
LED Flash 3 set torch current function.
Example Description
This app demonstrate flash mode on LED Flash 3 Click.
void application_task ( void )
{
ledflash3_strobe_pin( &ledflash3 );
Delay_ms( 2000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LEDFlash3
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.