Professional Documents
Culture Documents
A 4-digit display is represented by four seven-segment displays and control logic that are
mounted on a single board.
You may need a 4-digit display, for example, if you want to display the current time or the
readings from one of the sensors. It is easy to use: you need to connect it to a control circuit
board, such as Arduino, using only one three-wire ribbon cable.
void setup()
{
}
void loop()
{
// outputting an integer
displayInt(DISPLAY_PIN, 123);
delay(1000);
There are four seven-segment LEDs mounted on the top side of the board, and on its bottom
side, we can find the control logic that controls these displays.
Seven-segment Displays
A seven-segment display is represented by eight LEDs in one body: 7 segments + the dot.
Each of the four indicators has 10 pins. Eight pins are used to transfer the displayed
numbers and the dot, coded as a binary number; one output is responsible for power, and
another output is the ground.
Control logic
Individually, the control of all segments would require 8 × 4 = 32 microcontroller outputs.
This is much more than most of them are able to provide.
The idea is to use fewer outputs, that’s why the seven-segment displays are connected
through a chain of shift registers. There is one 74HC595 register for each of the four
displays.
Shift registers are controlled via the SPI-interface, and thus to communicate with the
microcontroller the following lines are required: MOSI, MISO, SCK, SS, Vcc and GND. In
total, there are 6 lines.
There is additional circuitry implemented on the QuadDisplay module, which reduces 6 lines
to three: signal, power and ground. This trick is called the 1-wire SPI.
Characteristics
Voltage supply From 3 to 5 V