MikroElektronika
LED Driver 3 click
LED Driver 3 click
SKU:MIKROE-2950
Couldn't load pickup availability
Share
LED Driver 3 click is an RGB LED driver, capable of driving RGB LEDs with up to 30mA per segment, via the digital I2C interface. It comes with an RGB LED onboard, and is capable of displaying a palette of 32768 colors. It features an integrated circuit with three independent LED driver sections and a programmable gradual dimming control, which gives a smooth dimming effect. Heat dissipation is taken to the minimum, due to a fact that the used driver IC works with up to 94% efficiency.
LED Driver 3 click can be used in a range of different applications: color backlight displays, backlit computer keyboards and mice, color-coded signalization, and in many decorative colored lighting applications, which can be controlled by an MCU.
How does it work?
The main component of LED Driver 3 click is the NCP5623B, a triple output RGB LED driver, controlled through the I2C protocol, from ON Semiconductors. This IC is equipped with an internal DC/DC converter, that works as a high-efficiency charge pump, providing the required DC voltage for all three LED segments. The current flow through each LED segment is regulated by an internal current mirror, associated with each of the channels.
The gradual dimming function allows an easy way of dimming RGB LED intensity. With a simple I2C command, it is possible to trigger either upward or downward dimming. Dimming will affect the current through the LED segments, but the internal current limiter takes care not to exceed the maximum allowed current, set by the onboard resistor.
The integrated PWM operates with five bits, having 32 steps to cover the full modulation (0 to 100%) of the associated LED channel. Having a value of 0x00h will turn the associated LED completely OFF, while 0x1Fh will set the LED to a programmed LED current value. The last three bits (MSB) are used to set the desired command register: PWM1, PWM2, PWM3, dimming direction, gradual dimming, LED current, etc. It should be noted that the gradual dimming function affects the illumination by changing the LED current intensity, while PWM affects the associated LED illumination by changing the pulse width - e.g. it is possible to set the desired color by setting the PWM modulation of each color component, and then gradually dim the brightness of the final color mix up or down by the gradual dimming option - affecting the current through all the LED segments simultaneously. It is also possible to set the fixed value for the current through the LED segments via the I2C interface, when gradual dimming is not needed.
More information about the registers and their usage can be found in the NCP5623B datasheet. However, the provided click library offers easy to use functions for setting up the RGB color of the LED and utilizing the smooth gradient functions. The included example application demonstrates the functionality and usage of these libraries. The example can be used as a reference for custom projects.
To allow operation on both 3.3V and 5V MCUs, LED Driver 3 click employs PCA9306, a dual bidirectional I2C/SMBUS voltage level translator from Texas Instruments. This IC allows the click board to be interfaced with both 3.3V and 5V MCUs. The logic voltage level shifting is done automatically, so no SMD jumpers are needed in this case. Both 3.3V and 5V rails are needed for this circuit to be operational.
The click board is also equipped with an RGB LED. This is a high brightness RGB LED with a wide viewing angle, that can get very hot and bright while operated with maximum current. For this reason, a care must be taken not to touch it or watch directly at the LED.
SCL1 and SDA1 lines from the I2C level shifter are routed to the standard mikroBUS™ I2C pins, labeled as SCL and SDA. The click board™ already contains pull-up resistors, so no additional parts are needed to work with the click board.
Specifications
Type | Boost |
Applications | LED Driver 3 click can be used for color backlight displays, backlit computer keyboards and mice, color-coded signalization, and in many decorative colored lighting applications, which can be controlled by the MCU. |
On-board modules | NCP5623B, a triple output RGB LED driver, controlled through the I2C protocol, from ON Semiconductors. |
Key Features | Led Driver 3 features an integrated circuit with three independent LED driver sections and a programmable gradual dimming control, which gives a smooth dimming effect. It can display 32768 different colors. |
Interface | I2C |
Input Voltage | 3.3V,5V |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on LED Driver 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 indication LED |
Software support
We provide a library for LED Driver 3 click on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
The library carries functions necessary to have complete control over all functionalities of the Click board™.
Key functions:
-
void leddriver3_setIntensity(uint8_t intensity)
- Set intensity of LED light. -
void leddriver3_setRGB_Color(uint8_t red, uint8_t green, uint8_t blue)
- Set color in RGB format. -
void leddriver3_setColor(uint32_t color)
- Set color using one of the predefined values.
Examples Description
The demo application is composed of three sections:
- System Initialization - Initializes I2C module used for LED Driver 3 click.
- Application Initialization - Driver initialization.
- Application Task - (code snippet) - Sequentially changes intensity and color of the LED light with delays of one second between each operation.
void applicationTask() { leddriver3_setIntensity(_LEDDRIVER3_INCREMENT | _LEDDRIVER3_INTENSITY_8); leddriver3_setTimer(_LEDDRIVER3_TIMER_8ms | _LEDDRIVER3_TIMER_16ms); // 24 ms leddriver3_setColor(_LEDDRIVER3_COLOR_RED); Delay_1sec(); leddriver3_setIntensity(_LEDDRIVER3_CONSTANT | _LEDDRIVER3_INTENSITY_16); leddriver3_setColor(_LEDDRIVER3_COLOR_YELLOW); Delay_1sec(); leddriver3_setColor(_LEDDRIVER3_COLOR_BLUE); Delay_1sec(); leddriver3_setRGB_Color(0x40, 0x7F, 0x80); Delay_1sec(); }
The full application code, and ready to use projects can be found on our Libstock page.
Other mikroE Libraries used in the example:
- I2C
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
This 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.




New Products
-
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / per -
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / per -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / per