Arduino MD_Parola Matrix Text: Wiring, Code and Simulator

To build this Arduino MD_Parola Matrix Text project you need an Arduino Uno and a MAX7219 8x8 LED matrix. MD_Parola prints text with effects on a MAX7219 matrix over hardware SPI. Make the 5 connections in the wiring table, upload the Arduino C++ code, and change PA_PRINT to PA_SCROLL_LEFT and give it a longer message.

Open this circuit in the free Arduino Uno simulator

Parts list

QtyPartWhat it does
1Arduino Unothe microcontroller board
1MAX7219 8x8 LED matrixAn 8×8 red matrix. Shift 16 bits (register, data) into DIN on CLK with CS LOW, then raise CS. Rows are registers 1–8; write 0x0C=1 to switch it on.

Wiring

#FromTo
1Arduino Uno 5VMAX7219 8x8 LED matrix VCC
2Arduino Uno GNDMAX7219 8x8 LED matrix GND
3Arduino Uno pin 11MAX7219 8x8 LED matrix DIN
4Arduino Uno pin 10MAX7219 8x8 LED matrix CS
5Arduino Uno pin 13MAX7219 8x8 LED matrix CLK

Step by step

  1. Open the simulator. Open the BitForBytes Embedded Lab in your browser and start from the Arduino Uno. No install or account is needed.
  2. Add the parts. Add a MAX7219 8x8 LED matrix from the parts palette.
  3. Wire 1. Connect Arduino Uno 5V to MAX7219 8x8 LED matrix VCC.
  4. Wire 2. Connect Arduino Uno GND to MAX7219 8x8 LED matrix GND.
  5. Wire 3. Connect Arduino Uno pin 11 to MAX7219 8x8 LED matrix DIN.
  6. Wire 4. Connect Arduino Uno pin 10 to MAX7219 8x8 LED matrix CS.
  7. Wire 5. Connect Arduino Uno pin 13 to MAX7219 8x8 LED matrix CLK.
  8. Paste the Arduino C++ code. Paste the Arduino C++ code below into the code editor.
  9. Run it. Press Run. Change PA_PRINT to PA_SCROLL_LEFT and give it a longer message.

Arduino C++ code

// MD_Parola: text effects on a MAX7219 matrix (hardware SPI, CS on 10).
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>

MD_Parola display(MD_MAX72XX::FC16_HW, 10, 1);  // FC16: the common module type, text reads upright

void setup() {
  display.begin();
  display.setIntensity(4);
  display.displayText("8", PA_CENTER, 0, 0, PA_PRINT, PA_NO_EFFECT);
}

void loop() {
  display.displayAnimate();
}

What to try

Change PA_PRINT to PA_SCROLL_LEFT and give it a longer message.

Frequently asked questions

How do I wire the MD_Parola Matrix Text project on an Arduino Uno?

Make 5 connections: Arduino Uno 5V to MAX7219 8x8 LED matrix VCC; Arduino Uno GND to MAX7219 8x8 LED matrix GND; Arduino Uno pin 11 to MAX7219 8x8 LED matrix DIN; Arduino Uno pin 10 to MAX7219 8x8 LED matrix CS; Arduino Uno pin 13 to MAX7219 8x8 LED matrix CLK.

What parts do I need for this Arduino project?

An Arduino Uno and a MAX7219 8x8 LED matrix.

Can I simulate this Arduino project online for free?

Yes. The BitForBytes Embedded Lab runs this exact circuit and Arduino C++ code in your browser for free, with no install and no hardware. The sketch is compiled with the real Arduino toolchain and runs on an emulated ATmega328P.

What does the code do?

MD_Parola prints text with effects on a MAX7219 matrix over hardware SPI.

More Arduino Uno projects