MAX7219 Matrix Message Board / Stage 3 of 3
Timing policy
Change animation interval and pause independently.
Compiled 2026-10-19 (historical) · electrical review required
Download stage 3 PlatformIO projectRead code & run steps ↓
What changes now?
Change animation interval and pause independently.
Expected after hardware review: Scroll speed and end pause have visibly different effects.
Builds on stage 2: Scrolling message.
What you need
Check availability and exact module markings before starting.
Connections / current hardware gate
Before connecting power. Confirm the four-module chain type, orientation, logic compatibility and current budget. A successful build does not establish safe matrix power.
- Read the module markings and verify the chain input/output direction.
- Review supply capacity, common ground and the actual control-signal connections.
- Begin at the authored low intensity only after electrical review; use the pattern to investigate orientation rather than rewiring under power.
Conditional connection table and full module facts
Electrical review is incomplete. Conditional references require confirmation; unresolved pins or rails are not wiring instructions. Power off before changing connections.
| From device / pin | To device / pin | Signal / voltage | Connection status and notes |
|---|---|---|---|
Four-module MAX7219 LED matrixDIN | ELEGOO Mega 2560 R3 boardD51 / MOSI | serial data 5 V | Conditional reference Verify IN direction and module labels; regulated module supply/current reviewed separately. |
Four-module MAX7219 LED matrixCLK | ELEGOO Mega 2560 R3 boardD52 / SCK | clock 5 V | Conditional reference Verify IN direction and module labels; regulated module supply/current reviewed separately. |
Four-module MAX7219 LED matrixCS/LOAD | ELEGOO Mega 2560 R3 boardD53 | latch/select 5 V | Conditional reference Verify IN direction and module labels; regulated module supply/current reviewed separately. |
display/peripheralGND | controllerGND | Signal reference 0 V | Conditional reference Unpowered wiring check; use correct common-ground topology and keep high-current panel returns out of thin signal paths. |
display/peripheralVCC | verified supplyPin unresolved | Peripheral power Voltage unresolved | Conditional reference Supply voltage/current unknown at carrier level until reviewed; no assumed 5 V or 3.3 V instruction. |
Access describes the source of a requirement. Check availability, the exact revision and the complete power/driver/harness system before starting. Inventory quantities are expected purchase/BOM quantities, not live stock.
- Four-module MAX7219 LED matrixClub-owned
product family verified · preflight required
- ELEGOO Mega 2560 R3 boardClub-owned
product family verified · preflight required
Use this complete project
Target: megaatmega2560 · Environment: checkpoint3 · Stage branch: DISPLAY_STAGE=3
- Open the complete project. Download the stage ZIP, extract it and open the folder containing
platformio.iniandsrcin VS Code. Keep its supporting headers and libraries together. - Build stage 3. Select
checkpoint3in PlatformIO Project Tasks → General → Build, or use a PlatformIO terminal:
A successful Build compiles the program; it does not upload it or approve electrical connections.pio run -e checkpoint3 - Stop at the hardware gate. The supplied electrical-review flag remains false. Have a qualified reviewer complete the actual module, wiring and power checks before using an approved configuration for hardware operation.
As supplied, Serial at 115200 baud reports
STOP: complete wiring/power review in guide before enabling hardware.and initialization stops.
After electrical review: Upload and Monitor
Only with the actual setup reviewed and the configuration explicitly approved, choose this stage's Upload task. Close any monitor using the board first.
pio run -e checkpoint3 -t uploadOpen the matching Monitor at 115200 baud, then compare the expected result with what actually happens.
pio device monitor -b 115200Record Build, Upload and physical observations separately.
Complete source
The viewer starts at src/main.cpp. Use Source file for the board profile, PlatformIO configuration and supporting code. Keep the complete ZIP together.
workspaces/max7219-message-board/src/main.cpp
#include <Arduino.h>
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include "board_profile.h"
MD_Parola text(MD_MAX72XX::FC16_HW,53,4);bool ready=false;
void setup(){Serial.begin(115200); if(!kElectricalReviewComplete){Serial.println("STOP: complete wiring/power review in guide before enabling hardware.");return;}text.begin();text.setIntensity(1);text.displayClear();
#if DISPLAY_STAGE == 1
text.displayText("CLUB",PA_CENTER,80,1000,PA_PRINT,PA_NO_EFFECT);
#elif DISPLAY_STAGE == 2
text.displayText("Engineering Club",PA_LEFT,80,1000,PA_SCROLL_LEFT,PA_SCROLL_LEFT);
#else
text.displayText("Build, measure, explain",PA_LEFT,55,700,PA_SCROLL_LEFT,PA_SCROLL_LEFT);
#endif
ready=true;}
void loop(){if(ready&&text.displayAnimate())text.displayReset();}
Source integrity · SHA-256
b4b2feeab77665576701e681bf9dfce414a7c9221b28cbff74d4391065884392Raw downloads and standalone ZIPs retain the canonical bytes and supporting files. Copy follows the selected Comments setting.
Check the result
Scroll speed and end pause have visibly different effects.
As supplied, the false electrical-review flag prevents this hardware result. After qualified review, record what actually happens; the text above is an expected result, not a bench transcript.
Original verification checklist
- Build the exact selected environment; distinguish dependency resolution from source compilation.
- Observe the stated output and record actual behavior; expected result is not an observed transcript.
- Test the named failure mode before proceeding.
Troubleshooting
Mirrored modules or scrambled text
Run the animation/pixel diagnostic and verify module topology and data direction. Change library profile only with evidence.
Only one module responds
Confirm device count, chain connections and IN versus OUT. Check each supply connection without assuming data chaining distributes adequate power.
Resets on bright text
Measure supply droop, connector polarity and current budget. Do not respond by powering the matrix from an MCU GPIO or regulator.
Technical explanation / original guide
Read the complete original stage guide
Original source/research wording is preserved. The stage's dated build evidence above supersedes earlier blanket compile-status wording; no physical results are implied.
Build it
Change animation interval and pause independently.
Open workspaces/max7219-message-board in VS Code/PlatformIO. Select checkpoint3 and run pio run -e checkpoint3. This is FIRMWARE_SOURCE_AUTHORED with embedded compilation unverified. Review the electrical flag and canonical conditional wiring before any upload.
Understand it
MD_MAX72XX provides hardware/topology access; MD_Parola adds text effects, font handling and animation state. The constructor uses Mega hardware SPI with CS53 and four devices. The FC16 profile is an explicit candidate to verify using pixel/topology tests, not an identification of the owned PCB. displayAnimate advances when its internal timing allows; displayReset restarts the effect after completion. Repeated long delay calls would stall that cooperative model.
Expected result and verification
Scroll speed and end pause have visibly different effects.
This is expected after a correct build and electrical review, not a captured bench transcript.
Check the selected source branch and named failure conditions. Record actual build or software output separately from future physical observations.
Likely failures
Mirrored modules or scrambled text: Run the animation/pixel diagnostic and verify module topology and data direction. Change library profile only with evidence.
Only one module responds: Confirm device count, chain connections and IN versus OUT. Check each supply connection without assuming data chaining distributes adequate power.
Resets on bright text: Measure supply droop, connector polarity and current budget. Do not respond by powering the matrix from an MCU GPIO or regulator.
Build evidence, target and remaining verification
Original status: unverified.
Successful checkpoint3 build recorded 2026-10-19 for megaatmega2560; 158 warnings recorded.
No compile was attempted in this pass under the user's testing limit. Upload and physical bench observation remain untested.
atmelavr@5.1.0 · arduino
Diagnostics before integration
- Module topology fixture Environment: checkpoint1