LED Driver 6 Click Board
LED Driver 6 Click Board
The LED Driver 6 Click Board™ is a high brightness LED or LED strip driver, designed to be used in tunable Smart Connected Lighting (SCL) applications. It is based on the AL1781, a single-channel PWM dimmable linear LED driver. By utilizing a high-frequency E-flicker free technology with Deep Dimming capability, it can be used in single-channel tunable white SCL applications.
The AL1781 IC features the Adaptive Thermal Management scheme, reducing power dissipation. It also integrates an abundance of protection features for increased reliability: under-voltage, open or short circuit at the output, and thermal protection.
Software Support
We provide a library for the LED Driver 6 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
The library provides full control of the LEDs illumination. PWM functions are used to control the brightness temperature of the LEDs. The library also offers reading the current PG voltage score that serves to regulate lights and alerts.
Key Functions
uint16_t leddriver6_getPGVoltage()
- Reads PG output voltageuint32_t leddriver6_pwmInit(uint16_t freq)
-void leddriver6_pwmSetDuty(uint16_t duty)
- PWM set duty cycle
Example Description
The application is composed of the three sections :
- System Initialization - Initialization I2C module, sets INT pin as INPUT and PWM pin as OUTPUT
- Application Initialization - Initialization driver init and pwm init for LED
- Application Task - Waits for valid user input and executes functions based on set of valid commands
Commands : '+' - Increase LED light '-' - Decrease LED light 'v' - Display current PG voltage
void applicationTask() { uint8_t dataReady_; char receivedData_; dataReady_ = UART_Rdy_Ptr( ); if (dataReady_ != 0) { receivedData_ = UART_Rd_Ptr( ); switch (receivedData_) { case '+' : { _increase(); break; } case '-' : { _decrease(); break; } case 'v' : { _currentPGVoltage(); break; } } } }
Additional Functions :
void _increase( )
- Increase LED's lightvoid _decrease( )
- Decrease LED's lightvoid _currentPGVoltage( )
- Reads and logs PG voltage
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
I2C
PWM
UART
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 6 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 6 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.