Extension board · Controls and displays

8x8 LED matrix

A square of 64 red LEDs for icons, a progress bar or an error code visible across a workshop. A driver chip refreshes the display, so the controller only sends eight bytes. Showing something needs your own driver.

Top view of the LED matrix board: the 8x8 matrix in the upper area, driver and buffer chips below and a socket on the left and right edges.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
8 × 8red 1088AS matrix
MAX7219refreshes and dims
3 wiresload, data, clock
≈ 20 mApeak per segment
≈ 200 mAestimated, all lit
70 × 80millimetres, four M3 holes

Tech specs

PurposeSmall pictures and codes. Not a safety indicator
Matrix1088AS type, 32 mm, common-cathode rows; 1088BS types do not work
DriverMaxim MAX7219 with a 28 kΩ current-set resistor
InterfaceLoad on contact 6, data on 7, clock on 9, 10 MHz maximum; buffered to 5 V by an SN74AHCT125. No data returns
Supply5 V from the socket, up to about 200 mA
SocketsTwo Gadgeteer type S sockets (Samtec SHF-105, 1.27 mm)
Size70 × 80 mm, four M3 holes on a 60 × 70 mm pattern
Works withSmoothieboard V2 Prime header GE electrically; no firmware driver
LicenceOpen hardware, CERN-OHL-S-2.0

Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.

Board tour

The numbers on the drawing match the list below it. The board is shown from the component side.

  1. 1
    LED matrix (DS1) — Fit with its pin 1 at the lower left.
  2. 2
    Input socket S IN (J1) — Load 6, data 7, clock 9, 5 V on 2.
  3. 3
    Chain socket CHAIN (J2) — Data and clock continue.
  4. 4
    Display driver (U1) — MAX7219.
  5. 5
    Level buffer (U2) — Turns 3.3 V signals into 5 V.
  6. 6
    Brightness resistor (R1) — Sets the peak LED current.
  7. 7
    Load pull-up (R2) — Keeps chip select idle while the controller starts.
  8. 8
    Supply capacitors (C1 to C3) — On 5 V.
  9. 9
    Chain links — Load open; data and clock closed.
  10. 10
    Mounting hole — One of four M3 holes.
Point at a number, or tap it, to read what the part is; the same text is in the list. On a small screen, scroll the drawing sideways.

Pinout

Check the purchased matrix against the 1088AS pin diagram in the data sheets: sellers differ.

J1: input socket (S IN)

ContactSignalUsePrime header GE
13.3 VPull-up supply3.3 V
25 VDisplay supply5 V
3 to 5Passed throughNot usedPE8, PJ7, PJ8
6CSLoad (latches on rising edge)PD15
7MOSIDataPB5 (SPI1_MOSI)
8Passed throughNo data returnsPA6 (SPI1_MISO)
9SCKClockPA5 (SPI1_SCK)
10GNDGroundGND

What you need

A 1088AS matrix32 × 32 mm, 16 pins.
An SPI portPrime header GE.
A ten-way cable1.27 mm Gadgeteer ribbon cable.
Your own driverNone is supplied.

Get started

Minimum wiring: contact 1 to contact 1, 3.3 V; contact 2 to contact 2, 5 V; PD15, contact 6 to contact 6, load; PB5, contact 7 to contact 7, data; PA5, contact 9 to contact 9, clock; contact 10 to contact 10, ground. Prime header GE (J36) Matrix J1 contact 1contact 13.3 V contact 2contact 25 V PD15, contact 6contact 6load PB5, contact 7contact 7data PA5, contact 9contact 9clock contact 10contact 10ground
Six connections.
  1. Fit the matrix

    Check type and pin 1 position.

  2. Connect with the power off

    Plug J1 into header GE.

  3. Initialise the driver

    Set decode mode off (register 0x09 = 0), scan limit 7 (0x0B = 7), a low intensity (0x0A = 1), display test off (0x0F = 0), then leave shutdown (0x0C = 1).

  4. Draw

    Write one byte to each of registers 1 to 8.

    By design each byte lights one row, most significant bit on the left.

Configuration

You wantModuleExample
Show a pictureNoneNo SmoothieV2 driver for the MAX7219

There is nothing to add to config.ini.

How it works

Buffered SPI data goes to a driver that multiplexes the matrix. J1 SPI3.3 V U2 bufferto 5 V U1 MAX7219multiplex DS164 LEDs
One signal path.

The driver stores the eight bytes and lights one row after another fast enough that the picture looks steady. The resistor R1 sets the current, and the intensity register dims it further. The buffer is a logic family that reads 3.3 V as high while driving 5 V, which the driver needs.

Solder links

The driver has no data output wired onward, so matrices cannot be daisy-chained into one long display. A second board needs its own load signal.

Solder links as delivered: JP6 open; JP7 closed; JP9 closed. JP6 · openchain load JP7 · closedchain data JP9 · closedchain clock
The links as delivered. Close one with a small blob of solder across both pads; open it by removing the solder or cutting the copper between the pads.
LinkWhat it doesAs delivered
JP6Joins load to the chainOpen
JP7Continues dataClosed
JP9Continues clockClosed

Chaining

Another SPI device can follow with its own chip select.

The controller's ribbon cable goes to the connector S IN of the LED matrix board. Inside the board each of the ten pins runs through a solder link to the connector CHAIN, where a second ribbon cable continues to the next board. A closed link passes its pin on, an open link stops it. Controller one ten-pin port LED matrix board S IN CHAIN pin 6, load stops here pin 7, data passed on pin 9, clock passed on one solder link per pin Next board sees what is passed on
Chaining: one port of the controller serves two boards. Pin 1 of S IN leads to pin 1 of CHAIN, pin 2 to pin 2, and so on, each through its own solder link. The three lines stand for the ten pins and show the links as delivered. Two boards must never drive the same pin, and a pin that one board uses for a signal is not free for the next. Data and clock continue; load stops here.
ContactSignalOn CHAIN
1, 2, 10Power and groundPassed on
3 to 5, 8FreePassed on
6LoadStopped by open JP6
7, 9Data, clockPassed on through closed links

Troubleshooting

SymptomLikely causeWhat to check
Dark displayDriver still in shutdown, or no 5 VInitialisation; test point +5V
All LEDs litDisplay test mode onWrite 0 to register 0x0F
Scrambled pictureWrong matrix type or orientationCompare with the 1088AS pin diagram
Random changesNoise or long cableShorten cable, lower SPI clock
Controller supply dipsFull brightness draws much currentLower the intensity
Light Meaning
Matrix LEDs Whatever the driver last wrote

Still stuck? Read how to ask for help or see the general troubleshooting guide.

Downloads

FileWhat it is
Schematic (PDF)The circuit diagram
Parts list (CSV)Every component with its value, footprint and part number where one is chosen
Board drawing (PNG)The top view used on this page
3D view, top (PNG)Rendered from the design files; the matrix model is approximate
3D view, angled (PNG)Rendered from the design files; the matrix model is approximate

Appendix: mounting dimensions

For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side.

Mounting drawing of the LED matrix board, component side: outline 70 by 80 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 70 80 0, 0 X Y 1 5.00, 5.00 2 65.00, 5.00 3 5.00, 75.00 4 65.00, 75.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 70 × 80 mm, corners rounded to a 1 mm radius, board thickness 1.6 mm. Drawn from the design files, component side up, in the same orientation as the board tour.
HoleX (mm)Y (mm)DiameterUse
15.005.003.2 mm, not platedMounting, M3 screw
265.005.003.2 mm, not platedMounting, M3 screw
35.0075.003.2 mm, not platedMounting, M3 screw
465.0075.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Every figure is a design value, a calculated or simulated value, or a manufacturer’s data sheet value, as the last column says. A dash means no figure is given.

ParameterApplies toLowerNominalUpperBasis
Supply5 V—5 V—Design
Peak segment currentLED—20 mA—MAX7219 data sheet table
Supply current, all lit5 V——200 mAEstimate
SPI clockJ1——10 MHzData sheet
Buffered high levelDriver inputs3.5 V5 V5.05 VSimulated
Buffered edge timeDriver inputs—1.4 ns5 nsSimulated

Component stress limits

PartLimitUse on this board
5 V supplyShared host regulatorAbout 0.2 A at full brightness
Capacitors10 V and 16 V5 V

Appendix: simulation

A buffered signal edge was simulated with ngspice.

Each simulated value (yellow mark) against its allowed range (green band). Edge from low to high threshold at the driver1.45 ns High level against 3.5 V minimum5 V
Simulated value (yellow) against the limit used for it (green). Each bar has its own scale.
ResultSimulated valueLimitOutcome
Edge from low to high threshold at the driver1.45 nsat most 5 nsWithin
High level against 3.5 V minimum5 V3.5 V to 5.05 VWithin

Not simulated: the matrix, driver temperature and brightness.

Appendix: datasheet

The first page of each data sheet. Click a page to open the PDF. The matrix drawings are reseller documents.

First page of the MAX7219 serial display driver datasheet
MAX7219 serial display driver — Maxim, 16 pages.
First page of the 1088AS matrix pin diagram datasheet
1088AS matrix pin diagram — reseller document, 1 pages.
First page of the 1088 matrix dimensions datasheet
1088 matrix dimensions — reseller document, 2 pages.
First page of the SN74AHCT125 quadruple buffer datasheet
SN74AHCT125 quadruple buffer — Texas Instruments, 41 pages.

See all boards on the extension boards page.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.