7seg Click is a compact add-on board representing an easy solution for adding numeric or hexadecimal displays to your application. This board features a double pack of the , an 8-bit serial-in, parallel-out shift register modules from , as well as two seven-segment red displays, the JS1-5213AE from Ningbo Junsheng Electronics. This PWM-driven seven-segment display, measuring 17.5x12.4x8.4mm, comes with a decimal point and is characterized by a wide viewing range and ultra-segment intensity. This Click board™ is suitable for many applications requiring a visible display or others that display numerical/textual information.
7seg Click Click is supported by a compliant library, which includes functions that simplify software development. This comes as a fully tested product, ready to be used on a system equipped with the socket.
HOW DOES IT WORK?
7seg Click uses two seven-segment red LED displays, the JS1-5213AE from Ningbo Junsheng Electronics, driven by the SN74HC595D, an 8-bit serial-in, parallel-out shift register module from Texas Instruments. The JS1-5213AE display consists of seven LEDs arranged in a rectangular fashion, where each of the seven LEDs is called a segment because when illuminated, the segment forms part of a numerical digit (both decimal and hex) to be displayed. With dimensions of 17.5x12.4x8.4mm and a decimal point, these displays are also characterized by a wide viewing range and ultra-segment intensity. This board is suitable for numeric or hexadecimal displays, such as for a clock, timer, counter, or similar applications.
As mentioned before, this Click board™ communicates with MCU through a standard SPI interface across SN74HC595D with a maximum frequency of 5MHz. In addition to the SPI communication, the 7seg Click uses two additional pins for the direct shift register override function, and display activation routed to the RST and PWM pins of the mikroBUS™ socket. Setting the PWM pin to logic high state turns the displays ON. After that, users can see the functionality of the 7seg click by showing numbers or characters on the left and right displays.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the PWR SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the 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 | 7-segment,LED Segment |
Applications | Can be used for many applications requiring a visible display or others that display numerical/textual information |
On-board modules | JS1-5213AE - seven-segment LED display from Ningbo Junsheng Electronics SN74HC595D - 8-bit serial-in, parallel-out shift register module from Texas Instruments |
Key Features | Low power consumption, ultra segment intensity, wide viewing angle, red color, SPI interface, 0.52″ high characters, and more |
Interface | GPIO,PWM,SPI |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout on 7seg Click 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 | PWM | PWM Signal | |
Register Override | MR | 2 | RST | INT | 15 | NC | |
SPI Chip Select | LT | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | NC | |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | NC | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | PWR SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
7SEG CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Peak Wavelength | - | 625 | - | nm |
SOFTWARE SUPPORT
We provide a library for the 7seg Click as well as a demo application (example), developed using MikroElektronika . The demo can run on all the main MikroElektronika .
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our or found on .
Library Description
This library contains API for 7seg Click driver.
Key functions
-
This function sets display state for 7seg click.
-
This function writes left and right number on 7seg display.
-
This function writes left and right character on 7seg display.
Example Description
Example code consist of two sections: AppInit and AppTask, and shows number or character on 7seg display.
void application_task ( void )
{
uint8_t counter;
c7seg_display_mode( &c7seg, C7SEG_DISPLAY_ON );
Delay_ms ( 1000 );
for ( counter = 0; counter < 9; counter )
{
c7seg_write_data_number( &c7seg, counter, counter 1 );
Delay_ms ( 1000 );
}
Delay_ms ( 1000 );
for ( counter = 65; counter < 90; counter )
{
c7seg_write_data_character( &c7seg, counter, counter 1 );
Delay_ms ( 1000 );
}
Delay_ms ( 1000 );
c7seg_display_mode( &c7seg, C7SEG_DISPLAY_OFF );
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our or found on .
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.7seg
Additional notes and informations
Depending on the development board you are using, you may need , or to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika .
MIKROSDK
This Click board™ is supported with - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the and installed for the compiler you are using.