Projects / Scrolling message display with MAX7219

Scrolling message display with MAX7219

Beginner1 hGuided buildReviewed

Build it step by step

0 of 4 done
  1. UNO

    Chain the modules

    Line them up with the input side on the right as you look at the front. Join each module's output pins to the next one's input pins.

  2. UNOUSB

    Wire to the Uno

    First module: VCC, GND, DIN to D11, CLK to D13, CS to D10.

  3. UNO

    Upload

    The welcome message scrolls from right to left.

  4. UNO

    Change the text

    Open the serial monitor (9600, newline), type a message and press Enter.

In short

How do you build a scrolling message display with MAX7219?

Four chained MAX7219 8x8 LED matrices scroll a message you type into the serial monitor, like a shop sign. You need Arduino Uno R3, MAX7219 8x8 LED matrix module × 4, 5 V 2 A USB adapter, USB A to B cable (Uno / Mega) and Jumper wires female to female (40 pcs). It takes 4 steps and about 60 minutes.

Level
Beginner
Time
About 60 min
Parts
5

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Module 1 VCC / GNDUno 5V / GNDPower (about 300 mA at low brightness)
Module 1 DINUno D11 (MOSI)Data
Module 1 CLKUno D13 (SCK)Clock
Module 1 CSUno D10Chip select
Module 1 DOUT, CLK, CS, VCC, GNDModule 2 inputs, and so onChain the four modules

Code

Arduino IDE, board "Arduino Uno". Install "MD_Parola" and "MD_MAX72XX" by majicDesigns.

Runs on a virtual Arduino Uno in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>

#define HARDWARE MD_MAX72XX::FC16_HW    // try GENERIC_HW if letters look scrambled
MD_Parola sign(HARDWARE, 10, 4);        // CS pin, number of 8x8 modules
char message[80] = "Welcome to ElectroLark";
char incoming[80]; byte n = 0;

void setup() {
  Serial.begin(9600);
  sign.begin();
  sign.setIntensity(2);                  // 0-15: low brightness keeps the current down
  sign.displayText(message, PA_CENTER, 50, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
  Serial.println("Type a new message and press Enter");
}

void loop() {
  while (Serial.available()) {
    char c = Serial.read();
    if (c == '\n' || c == '\r') {
      if (n) { incoming[n] = 0; strcpy(message, incoming); n = 0; sign.displayReset(); }
    } else if (n < sizeof(incoming) - 1) incoming[n++] = c;
  }
  if (sign.displayAnimate()) sign.displayReset();   // loop the scroll forever
}

What the serial monitor should show

Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Uno with its sensors at their default values. Your numbers will follow your real readings, but the format should match.

Type a new message and press Enter

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
After upload"Welcome to ElectroLark" scrolls smoothly across all four modules
New message typedThe new text starts scrolling after the current one finishes
Brightness 2Readable indoors without dazzling

If it does not work

Letters are mirrored or rotated

Change FC16_HW to GENERIC_HW (or PAROLA_HW).

Only the first module works

Check DOUT of module 1 goes to DIN of module 2, and the chain count is 4.

Random dots

Use short wires and power the modules from a 2 A supply.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the scrolling message display with MAX7219?

Arduino Uno R3, MAX7219 8x8 LED matrix module × 4, 5 V 2 A USB adapter, USB A to B cable (Uno / Mega) and Jumper wires female to female (40 pcs). MAX7219 8x8 LED matrix module × 4: Or one 4-in-1 module.

How long does the scrolling message display with MAX7219 take to build?

About 60 minutes for a beginner maker, in 4 steps.

How do I know the scrolling message display with MAX7219 works?

After upload: "Welcome to ElectroLark" scrolls smoothly across all four modules. New message typed: The new text starts scrolling after the current one finishes. Brightness 2: Readable indoors without dazzling.

Letters are mirrored or rotated: what should I check?

Change FC16_HW to GENERIC_HW (or PAROLA_HW).

Only the first module works: what should I check?

Check DOUT of module 1 goes to DIN of module 2, and the chain count is 4.

Random dots: what should I check?

Use short wires and power the modules from a 2 A supply.