LED Driver 14 Click Board
LED Driver 14 Click Board
Key Features:
- Built-in energy sharing control, high reliability, PWM or analog dimming control, license lamp mode, protection features, and more
- Based on the BD18337EFV-M - four-channel constant current LED driver from Rohm Semiconductor
- Can be used for LED rear lamps (turn/stop), fog lamps, and turn signals for automotive applications
- mikroBUS: I2C and PWM Interfaces
The LED Driver 14 Click Board™ is a compact add-on board that simplifies the control of multiple LEDs. This board features the BD18337EFV-M, a reliable four-channel constant current LED driver from Rohm Semiconductor. It is powered by an external power supply in the range of 5.5V to 20V, providing a maximum output current of 150mA per channel. The BD18337EFV-M also comes with the possibility for up to 3 LEDs in series on its output OUTx pin and built-in energy sharing control, selectable operational mode, and multiple built-in protection functions that protect the circuit during abnormalities. This Click board™ is ideal for LED rear lamps (turn/stop), fog lamps, and turn signals for automotive applications.
The LED Driver 14 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the LED Driver 14 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the LED Driver 14 Click Board™ driver.
Key functions
-
leddriver14_set_rset
This function sets the resistance of the selected rset channel. -
leddriver14_get_int_pin
This function returns the int pin logic state. -
leddriver14_set_duty_cycle
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ).
Example Description
This example demonstrates the use of the LED Driver 14 Click Board™ by controlling the brightness of LEDs by changing the PWM Duty Cycle.
void application_task ( void )
{
static int8_t duty_cnt = 1;
static int8_t duty_inc = 1;
float duty = duty_cnt / 10.0;
leddriver14_set_duty_cycle ( &leddriver14, duty );
log_printf( &logger, "> Duty: %d%%rn", ( uint16_t )( duty_cnt * 10 ) );
if ( 10 == duty_cnt )
{
duty_inc = -1;
}
else if ( 0 == duty_cnt )
{
duty_inc = 1;
}
duty_cnt += duty_inc;
if ( !leddriver14_get_int_pin ( &leddriver14 ) )
{
log_info ( &logger, " Abnormality such as LED Open or the OUTx pin short circuit occured " );
}
Delay_ms( 500 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The 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.LEDDriver14
Additional Notes and Information
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 MikroElektronika compilers.
MIKROSDK
The LED Driver 14 Click Board™ is supported with mikroSDK - MikroElektronika 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.
LED Driver 14 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.