LED Driver 2 Click Board
LED Driver 2 Click Board
The LED Driver 2 Click Board™ carries the MCP1643 - LED constant current regulator, made by Microchip. It is a compact, high-efficiency, fixed frequency, synchronous step-up converter, optimised to drive one LED with the constant current. It can be powered by a two-cell alkaline/NiMH/NiCd battery (2.4V), or via the mikroBUS power supply pins. LED Driver 2 Click Board™ also features 3W high power LED by QT-Brightek. This LED can be dimmed by applying the variable duty cycle PWM signal to the EN pin of the MCP1643 regulator, through the PWM pin of the mikroBUS.
Thanks to its relatively high constant current driving capability and the over-voltage protection on the output, this integrated circuit is perfectly suited for high brightness/power LED applications: portable LED lighting products, LED Flashlight and Head Lamps, Rechargeable Torches, General LED constant current applications and so on.
Software Support
We provide a demo application for the LED Driver 2 Click Board™ on our LibStock page, developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards with minimal change to the code depending on the microcontroller used.
Examples Description
The application is composed of three sections :
- System Initialization - Initializes GPIO and duty cycle variable used for calculation
- Application Initialization - Initializes PWM module used for LED driver 2 click control
- Application Task - (code snippet) Sequentially changes the duty cycle of the PWM module which leads to LED brightness raising from the minimum to the maximum. When maximum brightness is reached, the operation is repeated from the beginning.
void LED_Driver_2_Task() { dutyCycle += 50; PWM_Set_Duty(dutyCycle, 1); if (dutyCycle > pwmPeriod) { dutyCycle = 0; } Delay_ms(10); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- PWM
LED Driver 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.