7 Segment 4-Digit I2C Display Breakout

Four red 0.56 in digits on two wires. The driver chip, the level shifter and the supply protection sit on the back, on a board the same size as the display: 50.4 × 19.0 mm (1.98 × 0.75 in).

Coming soon

Assembled and tested. You solder five wires.

Try the display

A dot lights the point of the character before it. You can also click any segment on the display.

12 mA is the default. 15 mA has to be switched on in the library.

Address jumper

Arduino library call

disp.showText("1064");

On the wire

  1. 70address
  2. 00register
  3. 47control
  4. 06digit 1
  5. 3Fdigit 2
  6. 7Ddigit 3
  7. 66digit 4

Seven bytes in one I2C write. Send these from any platform and the display shows the same thing.

Why this board exists

In February 1991 Philips published the data sheet for the SAA1064, a chip that drives four LED digits over I2C and sets their brightness in software. It is no longer manufactured, and a ready-made display board built on it has become hard to find.

So this one was designed from scratch: the original chip behind two current 0.56 in display modules, with a level shifter added so 3.3 V boards can use it too. If you remember red digits glowing on a clock radio, a tuner or a bench meter, this is the same light, wired to whatever you are building now.

What the 1991 design still does well

  • A set current, not a resistor

    Each segment is driven at a constant current that you choose in software, from 3 to 15 mA in 3 mA steps. There are no series resistors to fit or get wrong.

  • Each digit is lit about half the time

    The chip alternates between two pairs of digits, so each one is on for 48.4 % of the time. A driver that scans eight positions lights each one for an eighth of the time or less.

  • Real I2C, four addresses

    It is an ordinary I2C device. Up to four boards share two wires with your sensors, clock chip or anything else on the bus.

  • It reports power dips

    A power-reset flag tells the library when the supply dipped, and the library redraws the display by itself.

Because the chip is out of production, boards are finished by hand in small batches, and each chip is tested on its board before the displays are soldered in. See how it compares with current display modules.

What is on the board

Displays on the front, everything else on the back. Both drawings are to scale.

Front: two dual-digit modules

Two ARKLED SN450561N modules sit side by side, which puts all four digits on an even 12.7 mm (0.5 in) pitch. Red, common anode, black face, 14.2 mm (0.56 in) digit height. Every digit has its own decimal point; there is no colon.

The board is 50.4 × 19.0 mm (1.98 × 0.75 in), the footprint of a standard 0.56 in four-digit display, so nothing sticks out past the display.

Back: everything else

The back of the board. Choose a part in the list to find it.

Wire it up

Five wires. Choose your board to see where each one goes.

Arduino Uno
Display padConnect to
5V5V
VIO5V
GNDGND
SDAA4
SCLA5

USB power is fine. Do not run the Uno from its barrel jack at 9 to 12 V for this: the on-board regulator would run hot.

  • The 5V pad powers the LEDs. Give it 4.75 to 5.25 V from a supply that can deliver 0.3 A.
  • VIO is your board's logic voltage. 5V on a 5 V board, 3V3 on a 3.3 V board. The display shifts SDA and SCL to match.
  • Power 5V and VIO together. With VIO present and 5V missing, the bus does not work.

Arduino library

SAA1064_4Digit is an MIT-licensed library written for this board. One call shows a number, a decimal, hex or a short word. It keeps the segment current inside the board's limits and redraws the display after a power dip.

Install

  1. Download the library as a ZIP file.
  2. In the Arduino IDE choose Sketch > Include Library > Add .ZIP Library and pick the file.
  3. Open File > Examples > SAA1064_4Digit and start with Numbers.

Examples included

Numbers
Counters, decimals, hex, short text and raw segments.
Brightness
Steps through the segment current settings.
MultiBoard
Up to four displays on one bus.
BringUpTest
A menu-driven check of the chip, the digits and every address.

Other platforms

Libraries for MicroPython, Raspberry Pi (Python) and ESP-IDF are coming soon. Until then, the seven bytes shown under the demo are all any platform needs to send.

A complete sketch

#include <Wire.h>
#include <SAA1064_4Digit.h>

// Arduino Uno
SAA1064Display disp;       // address 0x38

void setup() {
  Wire.begin();            // SDA = A4, SCL = A5
  Wire.setClock(100000);   // standard mode, 100 kHz
  disp.begin();
  disp.showText("1064");
}

void loop() {
  disp.poll();             // restores it after a power dip
}

This sketch follows the demo at the top of the page and the board chosen under Wire it up: your pins, address, brightness and text.

Up to four on one bus

Give each board its own address with the solder jumper and wire them in parallel. Sixteen digits on the same two wires.

  • SAA1064Display(0x38)
  • SAA1064Display(0x39)
  • SAA1064Display(0x3A)
  • SAA1064Display(0x3B)
  • One address each. Close a different jumper on every board: 38, 39, 3A, 3B.
  • Pull-ups on one board only. Leave the VIO PU jumper closed on one board and cut it on the others.
  • Budget 0.3 A per board. Four boards need about 1.2 A, more than a USB 2.0 port gives. Use a separate 5 V supply and join its ground to your board's ground.

Compared with current display modules

TM1637, HT16K33 and MAX7219 modules are the usual choices today. The figures are for the driver chip on each one, from its maker's data sheet.

This boardSAA1064T TM1637Titan Micro HT16K33Holtek MAX7219Analog Devices
Connection I2C, on the same two wires as your other I2C parts Two wires of its own. Like I2C, but without an address I2C Three wires: data, clock and load
Several displays Four addresses, set by solder jumper No address Up to eight addresses on the 28-pin chip No address. Chained one into the next
Segment current Regulated by the chip, set in software No setting No setting One resistor sets the peak for all segments
Brightness By current: 3 to 15 mA in five steps By pulse width, 8 steps By pulse width, 16 steps By pulse width, 16 steps
Time each digit is lit 48.4 % Not given in the data sheet One ninth (11 %) One quarter with four digits, one eighth with eight
Display it drives Common anode, 4 digits Common anode, up to 6 digits Common cathode, up to 16 × 8 LEDs Common cathode, up to 8 digits
3.3 V boards Level shifter on the board, 3.0 to 5.5 V Logic high from 3.5 V on a 5 V supply Logic high from 3.5 V on a 5 V supply Logic high from 3.5 V on a 5 V supply
Supply 4.75 to 5.25 V 5 V 4.5 to 5.5 V 4.0 to 5.5 V
Chip still sold new No. Discontinued Yes Yes Yes

Scroll the table sideways to see the other three.

Choose one of the others if you need more than four digits, finer dimming, or a chip you can still buy new. The HT16K33 also gives you eight addresses.

Data sheets: TM1637, V2.4 HT16K33, Rev. 1.20 MAX7219, Rev 6

Specifications

DisplayFour red digits with decimal points, common anode, black face
Digit height14.2 mm (0.56 in)
Digit pitch12.7 mm (0.5 in)
Board size50.4 × 19.0 mm (1.98 × 0.75 in), 1.6 mm circuit board
DriverPhilips/NXP SAA1064T, multiplexed
InterfaceI2C, standard mode, 100 kHz
Addresses0x38 as shipped; 0x39, 0x3A or 0x3B by solder jumper
Logic voltage (VIO)3.0 to 5.5 V
Supply (5V)4.75 to 5.25 V, up to 0.3 A
Segment current3, 6, 9, 12 or 15 mA, set in software. 12 mA by default
I2C pull-ups4.7 kΩ to VIO on the board, removable by jumper
ProtectionReverse polarity on the 5V supply
ConnectionFive solder pads, 2.54 mm (0.1 in) pitch: 5V, VIO, GND, SDA, SCL
MountingNo mounting holes
Revisionr1

Good to know before you buy

  • You need to solder. The board has five bare pads and no header or connector.
  • It needs 5 V. A 3.3 V board can control it, but the LEDs run from a 5 V supply that can deliver 0.3 A.
  • There are no mounting holes. Plan how it will be held in your enclosure.
  • Red only, and no colon. Four digits with decimal points. A clock reads 12.34.
  • It runs warm. With many segments lit the board warms up. Use the lowest current that reads well.
  • The driver chip is no longer made. Boards are built in small batches from chips that have been tested one by one.

Questions

Does it work with 3.3 V boards such as the ESP32?
Yes. Connect VIO to 3V3 and the board shifts SDA and SCL to match. The 5V pad still needs 5 V.
Do I need resistors?
No. The chip regulates the current through each segment, and you choose the current in software.
How many can share one bus?
Four, at addresses 0x38 to 0x3B. Keep the pull-up jumper closed on one board only and allow 0.3 A per board.
Which boards does the library support?
Arduino Uno and Nano, ESP32-C3 Supermini and Zero, ESP32-S3-Zero, XIAO ESP32-S3 and XIAO SAMD21.
Can I use it without the library?
Yes. One I2C write of seven bytes sets everything: address, register 0, the control byte and four digit bytes. The demo at the top shows them for anything you type.
Can it show letters?
Those with a seven-segment shape: A b C c d E F G H h I i J L n O o P q r S t U u y, plus minus, underscore, equals and a degree sign. K, M, V, W, X and Z have none and stay blank.
Can it show the time?
Yes, as 12.34. There is no colon, so the decimal point between hours and minutes does the blinking.
How is brightness set?
By segment current, in 3 mA steps from 3 to 15 mA. The default is 12 mA; 15 mA is an explicit opt-in in the library.
Why use a chip that is no longer made?
Because it still does this job well, and nothing current is a drop-in match. The short story is above.

Open source

The board's design files are released under the CERN Open Hardware Licence Version 2 - Permissive (CERN-OHL-P v2), and the Arduino library under the MIT licence. Study the schematic, build your own, or change it.

Get one

Coming soon

The first boards are being finished. The link to the listing will appear here.

What you get

One assembled board, tested before shipping.

Not included

Wires, pin header, microcontroller board.