A MAX7219 4-in-1 LED dot matrix module with four cascaded 8×8 red matrices (32 × 8 dots), driven by a 5-wire serial connection.
The ePartners MAX7219 4-in-1 dot matrix module joins four MAX7219-driven 8×8 red LED matrices on one board, so a microcontroller can scroll text, show numbers and draw simple animations over just five wires. It suits Arduino UNO and other 5 V boards directly, and ESP32 or Raspberry Pi Pico projects through a logic level converter.
Why choose it
- Four matrices, five wires — VCC, GND, DIN, CS and CLK drive all 32 × 8 dots.
- Built to chain — the module has an input header and an output header, so you can add more modules after it.
- Adjustable brightness — 16 intensity steps (0–15) set from your code.
Specifications
| Display | |
|---|---|
| Matrices | four 8 × 8 LED matrices, cascaded |
| Resolution | 32 × 8 dots (256 LEDs) |
| LED colour | Red |
| Driver | MAX7219 (one per matrix) |
| Brightness | 16 steps, set in software (0–15) |
| Electrical | |
| Module supply voltage | 5 V |
| MAX7219 supply range (datasheet) | 4.0 V to 5.5 V |
| Logic-high input (datasheet, 5 V supply) | 3.5 V minimum |
| Maximum serial clock (datasheet) | 10 MHz |
| Interface | |
| Input header (5 pins) | VCC, GND, DIN, CS, CLK |
| Chaining | Output header passes data on to the next module |
| Physical | |
| Dimensions | 12.8 × 3.2 × 1.3 cm |
Compatibility
| Platform | Works | Notes |
|---|---|---|
| Arduino UNO / Nano (5 V) | ✓ Yes | Connect directly. Hardware SPI uses D11 (DIN) and D13 (CLK). |
| ESP32 (3.3 V) | ◐ With adapter | Power the module from 5 V and use a logic level converter on DIN, CLK and CS. |
| Raspberry Pi Pico (3.3 V) | ◐ With adapter | Same as ESP32: power from VBUS (5 V) and use a logic level converter. |
| Software | ✓ Yes | Arduino IDE with MD_Parola + MD_MAX72XX libraries; MicroPython with the micropython-max7219 driver. |
In the box
- 1 × MAX7219 4-in-1 dot matrix module
- 1 × 5-pin Dupont cable
- 1 × 5-pin header strip
Applications
- Scrolling text signs and name badges
- Counters, scoreboards and countdown timers
- Clock and sensor read-outs (for example temperature)
- Pixel art and simple animations
Tutorial
What you’ll build: scroll the word “Hello!” across the 32 × 8 display. · About 20 minutes.
How it works
Each 8 × 8 matrix has its own MAX7219 chip. Your board sends the chips a stream of numbers that say which LEDs to light, and the chips switch the LEDs for you.
- GND — the return path for electricity; every GND must be joined.
- DIN and CLK — DIN carries the data and CLK is the clock that tells the chip when to read each bit.
- CS (chip select) — a wire that says “listen now”; the module only reads data while CS is low.
- Logic level — the voltage a pin treats as “on”. The MAX7219 needs a 5 V supply (4.0–5.5 V) and wants at least 3.5 V on its input pins to read a signal as “on”, which is why this tutorial uses the 5 V Arduino UNO.
You need: Arduino UNO R3, USB cable (data cable, not charge-only), this module with its 5-pin cable, and 5 × male-to-male jumper wires (the UNO sockets need male pins).
■ Power ■ GND ■ SPI data / clock ■ Chip select (CS) ⌒ = wires cross, not connected
| # | Arduino UNO pin | Module pin | Wire | Notes |
|---|---|---|---|---|
| 1 | D13 (SCK) | CLK | Blue | clock |
| 2 | D11 (MOSI) | DIN | Blue | data into the module |
| 3 | D10 | CS | Green | chip select (you can move it, then change CS_PIN in the code) |
| 4 | 5V | VCC | Red | the module runs from 5 V |
| 5 | GND | GND | Black | ground |
Watch out: Switch the UNO off (unplug USB) before you connect wires. Use the module’s input header, the one printed VCC GND DIN CS CLK. Check the pin labels printed on your module.
In the Arduino IDE open Sketch → Include Library → Manage Libraries. Search for MD_Parola by majicDesigns (MD_Parola) and click Install. When asked about dependencies, choose Install all so that MD_MAX72XX (MD_MAX72XX) is installed too.
Plug the 5-pin cable onto the module’s input pins, then connect each wire to the UNO as in the table above.
Plug in the UNO. In Tools → Board choose Arduino UNO, and in Tools → Port choose the new port.
Paste the sketch below into a new sketch and click Upload (the arrow button).
▸ Example 1 — Scrolling “Hello!”
// Wiring: VCC->5V, GND->GND, DIN->D11, CS->D10, CLK->D13
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW // you can change this (see Troubleshooting)
#define MAX_DEVICES 4 // four 8x8 matrices on this module
#define CS_PIN 10 // CS pin, same as the pin table
MD_Parola display = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES); // hardware SPI: DIN = D11, CLK = D13
char message[] = "Hello!"; // you can change this
void setup() {
Serial.begin(115200); // speed for the Serial Monitor
Serial.println("OK - epartners.co.nz test");
display.begin(); // start the display
display.setIntensity(3); // brightness 0-15, you can change this
display.displayText(message, PA_LEFT, 40, 1000, PA_SCROLL_LEFT, PA_SCROLL_LEFT); // you can change the speed (40)
}
void loop() {
if (display.displayAnimate()) { // true when the scroll has finished
display.displayReset(); // start the scroll again
}
}
✓ Check: Serial Monitor (115200 baud) prints “OK - epartners.co.nz test” once, and “Hello!” scrolls across the four matrices.
Troubleshooting
| Board | Problem | Likely cause | Fix |
|---|---|---|---|
| All | Nothing lights up | Wires on the output header, or DIN and CLK swapped | Use the input header printed VCC GND DIN CS CLK and compare every wire with the pin table. |
| All | Only some of the four matrices light | A matrix is not pushed fully into its socket | Unplug the power, then press each 8 × 8 matrix firmly into its socket. |
| All | Very dim display | Intensity is set low | Raise setIntensity() up to 15. |
| UNO | Text is mirrored, upside down or in the wrong order | The module type in the code does not match your module | Change FC16_HW to GENERIC_HW, PAROLA_HW or ICSTATION_HW, one at a time, and upload again. |
| UNO | Port is missing in the Tools menu | Charge-only USB cable | Use a USB data cable. |
Try next: change message to your own name, or make the text scroll the other way by swapping PA_SCROLL_LEFT for PA_SCROLL_RIGHT.
Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.
- Connect to the input header printed VCC GND DIN CS CLK; the header at the other end is the output for chaining more modules.
- Power the module from 5 V. The MAX7219 datasheet lists a 4.0–5.5 V supply and a 3.5 V minimum logic-high input, so use a logic level converter with 3.3 V boards.
- The matrices plug into sockets: unplug the power before pressing them in or removing them, and keep the brightness low unless you need it.
Datasheet
Key figures from the manufacturer's datasheet for the MAX7219, the LED driver chip on this module.
| MAX7219 LED display driver | |
|---|---|
| Function | Serially interfaced 8-digit LED display driver |
| Digits and segments | 8 digits, segments A–G and DP (64 LEDs); on this module it drives one 8 × 8 matrix |
| Supply voltage (V+) | 4.0 V to 5.5 V |
| Logic-high input (V+ = 5 V) | 3.5 V minimum |
| Logic-low input (V+ = 5 V) | 0.8 V maximum |
| Maximum serial clock | 10 MHz |
| Serial interface | 16-bit packet on DIN, CLK and LOAD; DOUT passes data to the next chip |
| Brightness control | 16 digital steps |
| Scan limit | 1 to 8 digits, set by register |
| Maximum recommended segment current | 40 mA |
| Operating temperature | 0 °C to +70 °C (C grade), −40 °C to +85 °C (E grade) |
Download the MAX7219 datasheet (PDF)
Source: Analog Devices (Maxim Integrated), MAX7219/MAX7221 datasheet, document 19-4452, Rev 6.
Resources
- MAX7219 / MAX7221 datasheet (PDF)
- MD_Parola library (Arduino)
- MD_MAX72XX library (Arduino)
- Arduino IDE
- ESP32 Arduino core installation guide
Which one should I choose?
| Product | Key difference | Best for |
|---|---|---|
| This product | Four 8 × 8 matrices in one board (32 × 8 dots), 12.8 × 3.2 × 1.3 cm | Scrolling text and simple animations |
| Dot Matrix Module (single) | One 8 × 8 MAX7219 matrix, 3.2 × 3.2 × 1.3 cm, 5 V, can be cascaded | Small icons, or building your own chain |
| 8 Digit 7 Segment LED Display | Eight 7-segment digits driven by a MAX7219, 82 × 15 × 12 mm | Numbers, clocks and counters |
FAQ
▸ Can I power the module from 3.3 V?
No, power it from 5 V. The MAX7219 datasheet specifies a 4.0 V to 5.5 V supply, and this module is a 5 V module.
▸ Will it work with an ESP32 or Raspberry Pi Pico?
Yes, with a logic level converter. The MAX7219 datasheet lists 3.5 V as the minimum logic-high input at a 5 V supply, which a 3.3 V pin does not reach.
▸ How many wires does it need?
Five: VCC, GND, DIN, CS and CLK. The included 5-pin cable plugs onto the input header.
▸ Can I chain more than one module?
Yes. Connect the output header of the first module to the input header of the next, then raise the number of matrices in your code (MAX_DEVICES).
▸ Which libraries should I use?
On Arduino or ESP32 use MD_Parola and MD_MAX72XX.
Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.
Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.
Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.
Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.