How does it work?
LED Driver 10 Click as its foundation uses the TLC59283, an SPI bus controlled, 16-channel, constant-current sink light-emitting diode (LED) driver with pre-charge FET from Texas Instruments. It operates within a VCC supply voltage range where its outputs are 10V tolerant. Each LED output, 16 LED drivers presented on two nine position spring terminals, with a maximum output current of +50mA per channel, is programmable at OFF and ON state with a programmable individual LED brightness.
The internal pre-charge FET prevents the ghosting of multiplexed LED modules. One cause of this phenomenon is the parasitic capacitance charging current of the constant-current outputs and PCB wiring connected to LED pins of the TLC59283 through the external LED.
The TLC59283 communicates with MCU using the standard SPI serial interface with a maximum frequency of 35MHz. It has a 16-bit shift register and an output ON/OFF data latch. The shift register and data latch are 16 bits long and used to turn the constant-current outputs ON/OFF. When the serial data buffer is loaded, a LAT pin of the mikroBUS™ socket rising edge transfers the data to the LED outputs. When the TLC59283 is initially powered on, the data in the 16-bit shift register and output ON/OFF data latch are not set to default values. Therefore, the output ON/OFF data must be written to the data latch before turning ON the LED output.
PWM pin of the mikroBUS™ socket should be set to a high logic state when powered on because the constant-current may be turned on due to random data in the output ON/OFF data latch. When the PWM pin is in a low logic state, the corresponding LED output is turned ON if data in the ON/OFF control data-latch are ‘1’ and remains off if the data are ‘0’. When the PWM pin is high, all LED outputs are forced OFF.
The LED Driver 10 Click also possesses the adjustable potentiometer labeled as VR1 that adjusts the constant-current value of all 16 channels. The constant-current value of all 16 channels is set by a single external resistor placed between the IREF pin, the constant-current value setting pin of the TLC59283, and the ground. Selection can be performed by onboard SMD jumper labeled as CURRENT to an appropriate position marked as L and H.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the SPI communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
LED Drivers
Applications
Can be used for color mixing and backlight application for amusement products, LED status signalization, home automation projects, and many more
On-board modules
TLC59283 – SPI bus controlled, 16-channel, constant-current sink light-emitting diode (LED) driver with pre-charge FET from Texas Instruments
Key Features
Low power consumption, 16 channels, ON/OFF LED channels control, pre-charge FET for ghosting reduction, switching delay for noise reduction, channel-current setting, and more
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on LED Driver 10 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 LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2 | CURRENT | Left | Constant-Current Resistor Selection L/H: Left position L, Right position H |
VR1 | VR1 | – | Current Adjustment Potentiometer |
LED Driver 10 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Maximum LED Channel Output Voltage | – | – | 10 | V |
Maximum LED Channel Output Current | – | – | 45 | mA |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the LED Driver 10 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for LED Driver 10 Click driver.
Key functions:
leddriver10_cfg_setup
– This function initializes click configuration structure to initial values.leddriver10_init
– This function initializes all necessary pins and peripherals used for this click board.leddriver10_pwm_start
– This function starts the PWM module output.
Examples description
This example demonstrates the use of LED Driver 10 Click board.
The demo application is composed of two sections :
void application_task ( void ) { static int16_t duty_cnt = 1; static int8_t duty_inc = 1; float duty = duty_cnt / 10.0; leddriver10_set_duty_cycle ( &leddriver10, duty ); log_printf( &logger, "> Duty: %u%%rn", ( uint16_t )( duty_cnt * 10 ) ); Delay_ms( 500 ); if ( 10 == duty_cnt ) { duty_inc = -1; } else if ( 0 == duty_cnt ) { duty_inc = 1; } duty_cnt += duty_inc; }
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 Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LEDDriver10
Additional notes and informations
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.
For more information about mikroSDK, visit the official page.