Projects / Scrolling message board

Scrolling message board

Beginner3 hGuided buildReviewed

Build it step by step

0 of 8 done
  1. NANO

    Chain the modules

    DOUT to DIN, CLK to CLK, CS to CS on each.

  2. NANO

    Connect the first module

    D11 to DIN, D13 to CLK, D10 to CS, plus power.

  3. NANO

    Wire the button

    D2 to GND.

  4. NANO

    Upload the sketch

    The message ElectroLark scrolls across.

  5. NANO

    Open the serial monitor

    Type a new message and press Enter.

  6. NANO

    Press the button

    The scroll speed changes.

  7. NANO

    Fix orientation

    Change the hardware type if text is flipped.

  8. NANO

    Lower the brightness

    setIntensity 0 to 3 for USB power.

In short

How do you build a scrolling message board?

A LED matrix scrolls a message you type over serial. You need Arduino Nano, MAX7219 8x8 LED matrix module × 4, Tactile push button 6 mm, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 8 steps and about 180 minutes.

Level
Beginner
Time
About 180 min
Parts
5

Parts list

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

Wiring

FromToWhy
Nano D11First module DINSPI data
Nano D13First module CLKSPI clock
Nano D10First module CSChip select
First module DOUT, CLK, CSNext module DIN, CLK, CSChain the modules, repeat for all four
Nano 5V and GNDFirst module VCC and GNDPower, keep brightness low on USB
ButtonNano D2 to GNDStep through speeds

Code

Each MAX7219 module drives an 8 by 8 grid of LEDs over SPI, and the modules chain by connecting each output to the next input, so four modules make a 32 by 8 display. The MD_Parola library handles fonts and scrolling for you: you give it a text and an animation, and displayAnimate() moves the text one step each time it is called, returning true when the message has finished so it can start again. New text typed in the serial monitor replaces the old message when you press Enter. The button steps through three speeds. The modules are bright and can pull a lot of current when many LEDs are lit, so keep the brightness low when powering from USB, and use a separate 5 volt supply of about 2 amps if you want full brightness, joining its ground with the board. The module type setting matters: if the text appears mirrored or upside down, change FC16_HW to GENERIC_HW or PAROLA_HW.

Runs on a virtual Arduino Nano 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_TYPE MD_MAX72XX::FC16_HW     // most four-in-one modules; try GENERIC_HW if text is flipped
#define MAX_DEVICES 4
#define CS_PIN 10
MD_Parola ticker = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);

const int SPEED_BTN = 2;
const int SPEEDS[] = {80, 50, 30};             // lower is faster, in milliseconds per step
int speedIndex = 1;

char message[64] = "ElectroLark";
char incoming[64];
int len = 0;

void setup() {
  pinMode(SPEED_BTN, INPUT_PULLUP);
  Serial.begin(9600);
  ticker.begin();
  ticker.setIntensity(2);                      // 0 to 15, keep low when powered from USB
  ticker.displayText(message, PA_LEFT, SPEEDS[speedIndex], 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
  Serial.println("Type a message and press Enter");
}

void loop() {
  if (ticker.displayAnimate()) ticker.displayReset();

  while (Serial.available()) {
    char c = Serial.read();
    if (c == '\n' || c == '\r') {
      if (len > 0) {
        incoming[len] = 0;
        strcpy(message, incoming);
        len = 0;
        ticker.displayText(message, PA_LEFT, SPEEDS[speedIndex], 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
      }
    } else if (len < 63) {
      incoming[len++] = c;
    }
  }

  if (digitalRead(SPEED_BTN) == LOW) {
    speedIndex = (speedIndex + 1) % 3;
    ticker.setSpeed(SPEEDS[speedIndex]);
    delay(300);
  }
}

Test checklist

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

CheckExpected
Power onElectroLark scrolls
New message typedReplaces the old one
Button pressedSpeed changes
Brightness at 2Display visible, low current
Wrong hardware typeMirrored text

If it does not work

Nothing lights

Check VCC, GND and the DIN side of the first module.

Text mirrored

Switch HARDWARE_TYPE to GENERIC_HW or PAROLA_HW.

Garbled text

Check CLK and CS wiring on every module.

Display dims or resets

Too much current from USB, lower the brightness.

Serial text does not appear

Set the monitor to newline and 9600 baud.

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 board?

Arduino Nano, MAX7219 8x8 LED matrix module × 4, Tactile push button 6 mm, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the scrolling message board take to build?

About 180 minutes for a beginner maker, in 8 steps.

How do I know the scrolling message board works?

Power on: ElectroLark scrolls. New message typed: Replaces the old one. Button pressed: Speed changes.

Nothing lights: what should I check?

Check VCC, GND and the DIN side of the first module.

Text mirrored: what should I check?

Switch HARDWARE_TYPE to GENERIC_HW or PAROLA_HW.

Garbled text: what should I check?

Check CLK and CS wiring on every module.

Display dims or resets: what should I check?

Too much current from USB, lower the brightness.