How does it work?
UT-S 7-SEG B 2 Click is based on the TLC5947, a constant-current sink LED driver from Texas Instruments, alongside six ultra-thin blue single-digit numeric displays, the JSS-3011BUB-21. This high-intensity and reliable blue source color device is made with Indium-Gallium-Nitride light-emitting diode conducting material. It features low current operation, high light output, excellent character appearance, and is mechanically rugged. The display can work on 5V and 3.3V and has a common anode as its internal design. It consists of seven blue LED segments that form an 8 number and the eighth segment as a decimal point, or DP.
The communication between the host MCU and the UT-S 7-SEG B 2 Click is established via two TLC5947s, 24-channel 12-bit constant-current sink LED drivers from Analog Devices. This driver has a 4-wire serial interface using four inputs and a data output. The output-enable input (BLK) gates to all 24 outputs ON and OFF and is fast enough to be used as a PWM input for LED intensity control. The constant-current outputs are programmed together to around 12mA using a single external resistor.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this 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 Segment,LED Drivers
Applications
Can be used for the development of many applications requiring a visible display or others that display numerical/textual information
On-board modules
TLC5947 – constant-current sink LED driver from Texas Instruments
Key Features
0.39-inch digit height, 7 blue segments and eighth decimal point, light intensity control, low current operation, excellent character appearance, displays letters, numbers, and symbols, and more
Interface
SPI
Feature
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 UT-S 7-SEG B 2 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 | Power/Logic Voltage Level Selection 3V3/5V: Left position 3V3, Right position 5V |
UT-S 7-SEG B 2 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Software Support
We provide a library for the UT-S 7-SEG B 2 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for UT-S 7-SEG B 2 Click driver.
Key functions
-
uts7segb2_display_number
This function displays the desired number and brightness on the selected segments. -
uts7segb2_display_character
This function displays the desired characters and brightness on the selected segments. -
uts7segb2_set_led_output
This function sets the LED driver output.
Example Description
This example demonstrates the use of the UT-S 7-SEG B 2 Click board by writing and displaying the desired numbers on the screen.
void application_task ( void )
{
for ( uint16_t num_cnt = 0; num_cnt <= UTS7SEGB2_HEXADECIMAL_NUM_MAX; num_cnt++ )
{
number.num_top = num_cnt;
number.num_bottom = UTS7SEGB2_HEXADECIMAL_NUM_MAX - num_cnt;
if ( UTS7SEGB2_OK == uts7segb2_display_number( &uts7segb2, number ) )
{
log_printf( &logger, " %.3Xrn", number.num_top );
log_printf( &logger, " %.3Xrnn", number.num_bottom );
Delay_ms( 100 );
}
}
log_printf( &logger, " --------------rnn" );
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.UTS7SEGB2
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. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.