Carte de commande LED 9 Click
Carte de commande LED 9 Click
Key Features
- 16 pilotes LED programmables, courant de sortie ajusté via une résistance externe, prend en charge l'insertion à chaud, la gradation et le clignotement de groupe programmables, et bien plus encore.
- Basé sur le pilote LED 16 canaux contrôlé par bus I2C TLC59116 optimisé pour le mélange de couleurs rouge/vert/bleu/ambre (RGBA) et l'application de rétroéclairage de Texas Instruments
- Peut être utilisé pour le mélange de couleurs RGBA et l'application de rétroéclairage pour les produits de divertissement, la signalisation d'état des LED, les projets de domotique, les équipements industriels et bien d'autres.
- mikroBUS : interface I2C
Le LED Driver 9 Click Board™ est une carte complémentaire compacte qui simplifie le contrôle de plusieurs LED. Cette carte comprend le pilote LED TLC59116 à 16 canaux contrôlé par bus I2C optimisé pour le mélange de couleurs rouge/vert/bleu/ambre (RGBA) et l'application de rétroéclairage de Texas Instruments. Chaque sortie LED à 16 canaux possède sa résolution 8 bits (256 étapes), sa fréquence fixe, son contrôleur PWM individuel qui fonctionne à 97 kHz, avec un cycle de service réglable de 0 % à 99,6 %. Le contrôleur PWM permet de régler chaque LED sur une valeur de luminosité spécifique et d'atténuer ou de faire clignoter toutes les LED ayant la même valeur. Ce Click Board™ convient au mélange de couleurs RGBA et à l'application de rétroéclairage pour les produits de divertissement, la signalisation d'état des LED, les projets domotiques, les équipements industriels et bien d'autres.
Le pilote LED 9 Click Board™ est pris en charge par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette Click Board™ est un produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
How Does The LED Driver 9 Click Board™ Work?
The LED Driver 9 Click Board™ as its foundation uses the TLC59116, an I2C bus controlled 16-channel LED driver optimized for red/green/blue/amber (RGBA) colour mixing and backlight application from Texas Instruments. It operates within a VCC supply voltage range where its outputs are 17V tolerant. Each LED output, 16 LED drivers presented on two 2x5 male headers, with a maximum output current of 120mA per channel, is programmable at OFF and ON state, has programmable individual LED brightness with group dimming and blinking.
Each LED output has its individual PWM controller, which allows each LED to be set at a specific brightness value. An additional 8-bit resolution (256 steps) group PWM controller has a fixed frequency of 190Hz and an adjustable frequency between 24Hz to once every 10.73 seconds, with an adjustable duty cycle from 0% to 99.6%.
The LED Driver 9 Click Board™ communicates with MCU using standard I2C 2-Wire interface, with a clock frequency up to 100kHz in the Standard, 400kHz in the Fast, and 1MHz in the Fast Mode Plus. The Software Reset feature allows the MCU to perform a reset of the TLC59116 through the I2C bus, identical to the Power-On Reset (POR) that initializes the registers to their default state, causing the outputs to be set high, which means that the LEDs are OFF. This allows an easy and quick way to reconfigure all device registers to the same condition. Also, this Click board™ has a Reset pin routed to the RST pin on the mikroBUS™ socket, which holds registers in their default states until the RST pin is set to a logic high state.
At the top of this Click board™, there is also a terminal labelled Rext used to connect an external resistor to set the LED current. The TLC59116 scales up the reference current set by the external resistor to sink the output current at each output port.
The LED Driver 9 Click Board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before use with MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | LED Drivers |
Applications | Can be used for RGBA colour mixing and backlight application for amusement products, LED status signalization, home automation projects, industrial equipment, and many more. |
On-board modules | TLC59116 - I2C bus controlled 16-channel LED driver optimized for red/green/blue/amber (RGBA) colour mixing and backlight application from Texas Instruments |
Key Features | 16 LED programmable drivers, output current adjusted through an external resistor, supports hot insertion, programmable group dimming and blinking, and many more. |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout on the LED Driver 9 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
Reset | RST | 2 | RST | INT | 15 | NC | |
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
J1-J2 | HM2x5 | Populated | LED Driver Channels |
LED DRIVER CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 3.3 | - | V |
Maximum Output Current | - | - | 120 | mA |
Maximum Output Voltage | - | - | 17 | V |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the LED Driver 9 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 Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
This library contains API for the LED Driver 9 Click Board™ driver.
Key Functions
leddriver9_cfg_setup
- Config Object Initialization function.leddriver9_init
- Initialization function.leddriver9_default_cfg
- Click the Default Configuration function.
Example Description
The application is composed of three sections :
void application_task ( void ) { float duty_cnt = min_duty; while ( duty_cnt <= max_duty ) { leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL0, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL1, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL2, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL3, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL4, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL5, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL6, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL7, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL8, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL9, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL10, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL11, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL12, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL13, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL14, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL15, duty_cnt ); duty_cnt += duty_gradient; Delay_ms( breathing_speed ); } while ( duty_cnt > min_duty ) { leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL0, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL1, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL2, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL3, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL4, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL5, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL6, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL7, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL8, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL9, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL10, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL11, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL12, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL13, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL14, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL15, duty_cnt ); duty_cnt -= duty_gradient; Delay_ms( breathing_speed ); } }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LEDDriver9
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 9 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.
Software Support
We provide a library for the LED Driver 9 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 Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
This library contains API for the LED Driver 9 Click Board™ driver.
Key Functions
leddriver9_cfg_setup
- Config Object Initialization function.leddriver9_init
- Initialization function.leddriver9_default_cfg
- Click the Default Configuration function.
Example Description
The application is composed of three sections :
void application_task ( void ) { float duty_cnt = min_duty; while ( duty_cnt <= max_duty ) { leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL0, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL1, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL2, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL3, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL4, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL5, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL6, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL7, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL8, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL9, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL10, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL11, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL12, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL13, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL14, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL15, duty_cnt ); duty_cnt += duty_gradient; Delay_ms( breathing_speed ); } while ( duty_cnt > min_duty ) { leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL0, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL1, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL2, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL3, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL4, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL5, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL6, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL7, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL8, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL9, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL10, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL11, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL12, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL13, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL14, duty_cnt ); leddriver9_set_pwm( &leddriver9, LEDDRIVER9_CHANNEL15, duty_cnt ); duty_cnt -= duty_gradient; Delay_ms( breathing_speed ); } }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LEDDriver9
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 9 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.
Carte de commande LED 9 Click
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.