LED Driver 5 Click Board
LED Driver 5 Click Board
The LED Driver 5 Click Board™ is a Click Board™ capable of driving an array of high-power LEDs with constant current, up to 1.5A. This Click Board™ features the TPS54200, a highly integrated LED driver IC, with many useful features. It consists of a synchronous, fixed-frequency buck converter which operates at 600kHz, providing an excellent size/efficiency ratio.
The LED Driver 5 Click Board™ can use both analog and PWM control signal for dimming the connected LED array.
Software Support
We provide a library for the LED Driver 5 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
You can find all the functions for controlling LED lighting in the file Click_LED_Driver5_pwm
Key Functions
uint32_t leddriver5_pwmInit(uint16_t freq)
- PWM init function
void leddriver5_pwmSetDuty(uint16_t duty)
- PWM set duty function
void leddriver5_pwmStart()
- PWM start function
void leddriver5_pwmStop()
- PWM stop function
Example Description
The application is composed of the three sections :
- System Initialization - Sets PWM pin as OUTPUT
- Application Initialization - Initialization driver init and pwm init
- Application Task - (code snippet) - Controls the brightness of the LED using PWM
void applicationTask() { _dutyCycle += 250; leddriver5_pwmSetDuty(_dutyCycle); if (_dutyCycle > 10000 ) { _dutyCycle = 0; leddriver5_pwmSetDuty(_dutyCycle); Delay_ms(2000); } Delay_ms( 100 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
PWM
Additional Notes and Information
Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The LED Driver 5 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 5 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.