Site Guide

Find your way around the Engineering Club.

Know what you need? Search for a component, concept or project.

Around the site

Start

Labs

TestingExperimental

Build

Club

LearnExperimental

Go a little deeper

Entry points to larger collections. Use Search for individual records.

Learning paths & reference

Inside PiCrawlerExperimental

Inside Inventory

64×32 RGB Matrix Fundamentals / Stage 3 of 3

Geometry fixture

Draw border, corner marker and dimensions.

Firmware source authored · compile not attempted in this pass

Download stage 3 PlatformIO projectRead code & run steps ↓

What changes now?

Draw border, corner marker and dimensions.

Expected after hardware review: All 64×32 logical coordinates map correctly.

Builds on stage 2: Row/scan fixture.

What you need

Check availability and exact module markings before starting.

Connections / current hardware gate

Before connecting power. The panel-rated supply/harness and compatible high-speed logic buffer are missing requirements. Connector orientation, scan mapping and power budget remain unqualified; do not wire the panel directly from this reference.

  • Identify the exact P5 64×32 panel connector, driver and scan arrangement.
  • Obtain and review a panel-rated supply/harness and compatible logic buffer; panel power must not pass through MCU GPIO or its regulator.
  • Verify signal mapping and grounding through the reviewed interface before enabling the electrical flag.
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 / pinTo device / pinSignal / voltageConnection status and notes
ELEGOO ESP-WROOM-32 development board
GPIO25
P5 Indoor RGB LED Matrix Panel, 64×32
R1
HUB75 R1
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO26
P5 Indoor RGB LED Matrix Panel, 64×32
G1
HUB75 G1
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO27
P5 Indoor RGB LED Matrix Panel, 64×32
B1
HUB75 B1
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO14
P5 Indoor RGB LED Matrix Panel, 64×32
R2
HUB75 R2
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO13
P5 Indoor RGB LED Matrix Panel, 64×32
G2
HUB75 G2
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO18
P5 Indoor RGB LED Matrix Panel, 64×32
B2
HUB75 B2
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO23
P5 Indoor RGB LED Matrix Panel, 64×32
A
HUB75 A
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO19
P5 Indoor RGB LED Matrix Panel, 64×32
B
HUB75 B
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO21
P5 Indoor RGB LED Matrix Panel, 64×32
C
HUB75 C
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO22
P5 Indoor RGB LED Matrix Panel, 64×32
D
HUB75 D
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO17
P5 Indoor RGB LED Matrix Panel, 64×32
LAT
HUB75 LAT
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO32
P5 Indoor RGB LED Matrix Panel, 64×32
OE
HUB75 OE
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

ELEGOO ESP-WROOM-32 development board
GPIO16
P5 Indoor RGB LED Matrix Panel, 64×32
CLK
HUB75 CLK
3.3 V
Conditional reference

Controller reference through an appropriate verified buffer; connector position/polarity not established by this table. This row identifies the 3.3 V MCU signal assignment, not a direct-wire approval: route through missing:hub-buffer after its voltage, speed and connector review; keep panel power separate.

P5 Indoor RGB LED Matrix Panel, 64×32
VCC/GND
Verified panel-rated 5 V supply and harness
reviewed output/harness
Separate panel power
5 V
Conditional reference

Exact amperage and wire/connector/protection budget unresolved. Never through MCU regulator/GPIO.

display/peripheral
GND
controller
GND
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.

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.

  • product family verified · preflight required

    Compatibility and unresolved details
    • Resolution: 64 × 32
    • Module size: 320 × 160 mm
    • Pixel pitch: 5 mm / P5
    • Scan mode: 1/16 scan
    • LED package class: SMD2121 class
    • Input voltage: 5 V class
    • Construction: Indoor full-color RGB, black mask
    • Interface class: HUB75-style; verify actual connector pinout before wiring
  • product family verified · preflight required

    Compatibility and unresolved details
    • Headers/USB bridge: Exact carrier count and bridge unverified
  • Verified panel-rated 5 V supply and harnessAdditional hardware needed

    identity blocked · not established

    Compatibility and unresolved details
    • Panel amperage, connectors, protection and source capability are not established.
  • Compatible high-speed panel logic buffer/adapterAdditional hardware needed

    identity blocked · not established

    Compatibility and unresolved details
    • Select from verified panel thresholds and chosen controller/clock; generic I²C shifter is not a HUB75 solution.

Use this complete project

Target: esp32dev · Environment: checkpoint3 · Stage branch: DISPLAY_STAGE=3

  1. Open the complete project. Download the stage ZIP, extract it and open the folder containing platformio.ini and src in VS Code. Keep its supporting headers and libraries together.
  2. Build stage 3. Select checkpoint3 in PlatformIO Project Tasks → General → Build, or use a PlatformIO terminal:
    pio run -e checkpoint3
    A successful Build compiles the program; it does not upload it or approve electrical connections.
  3. 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 upload

Open the matching Monitor at 115200 baud, then compare the expected result with what actually happens.

pio device monitor -b 115200

Record 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/rgb-matrix-fundamentals/src/main.cpp

main.cpp
#include <Arduino.h>
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
#include <DisplayCore.h>
#include "board_profile.h"
MatrixPanel_I2S_DMA* panel=nullptr;uint32_t lastFrame=0;
void setup(){Serial.begin(115200); if(!kElectricalReviewComplete){Serial.println("STOP: complete wiring/power review in guide before enabling hardware.");return;}HUB75_I2S_CFG cfg(64,32,1);
 cfg.gpio.r1=25;cfg.gpio.g1=26;cfg.gpio.b1=27;cfg.gpio.r2=14;cfg.gpio.g2=13;cfg.gpio.b2=18;
 cfg.gpio.a=23;cfg.gpio.b=19;cfg.gpio.c=21;cfg.gpio.d=22;cfg.gpio.e=-1;
 cfg.gpio.lat=17;cfg.gpio.oe=32;cfg.gpio.clk=16;
 cfg.double_buff=true;panel=new MatrixPanel_I2S_DMA(cfg);if(!panel->begin()){Serial.println("DMA allocation/init failed");delete panel;panel=nullptr;return;}
 panel->setBrightness8(16);panel->clearScreen();}
void loop(){if(!panel)return;const uint32_t now=millis();if(!displaylab::elapsed(now,lastFrame,33))return;lastFrame=now;panel->fillScreen(0);

 #if DISPLAY_STAGE == 1
 panel->fillRect(0,0,21,32,panel->color565(255,0,0));panel->fillRect(21,0,21,32,panel->color565(0,255,0));panel->fillRect(42,0,22,32,panel->color565(0,0,255));
 #elif DISPLAY_STAGE == 2
 for(int y=0;y<32;y+=4)panel->drawFastHLine(0,y,64,panel->color565(16*y,255-7*y,64));
 #else
 panel->drawRect(0,0,64,32,panel->color565(100,100,100));panel->drawPixel(0,0,panel->color565(255,255,255));panel->setCursor(3,12);panel->print("64x32");
 #endif
 panel->flipDMABuffer();}
Source integrity · SHA-2568dc950d7185a74ac3a403c3362b44e7d12ee291e395c739c95a88468c3b83d56

Raw downloads and standalone ZIPs retain the canonical bytes and supporting files. Copy follows the selected Comments setting.

Check the result

All 64×32 logical coordinates map correctly.

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
  1. Build the exact selected environment; distinguish dependency resolution from source compilation.
  2. Observe the stated output and record actual behavior; expected result is not an observed transcript.
  3. Test the named failure mode before proceeding.

Troubleshooting

Repeated rows or wrong scan

Compare the address/scan configuration and driver IC against matching documentation. Do not conflate a wrong scan mapper with an application drawing bug.

Wrong colors

Use isolated channel regions, verify labeled signal order and cable direction, then investigate panel driver initialization.

Flicker or reset

Measure supply and ground behavior during updates; inspect DMA allocation/refresh and signal integrity separately. Do not raise brightness during an unresolved power problem.

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

Draw border, corner marker and dimensions.

Open workspaces/rgb-matrix-fundamentals 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

The classic ESP32 reference assigns each signal explicitly and uses the HUB75 DMA library, which keeps time-sensitive scan work away from ordinary loop updates. The authored pin assignment is a controller-side reference pending comparison with the actual board and panel connector. double_buff requests separate drawing/visible buffers; flipDMABuffer changes the presented frame after composition. A begin failure is checked, and an initialization/allocation failure prevents drawing through a null pointer.

Expected result and verification

All 64×32 logical coordinates map correctly.

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

Repeated rows or wrong scan: Compare the address/scan configuration and driver IC against matching documentation. Do not conflate a wrong scan mapper with an application drawing bug.

Wrong colors: Use isolated channel regions, verify labeled signal order and cable direction, then investigate panel driver initialization.

Flicker or reset: Measure supply and ground behavior during updates; inspect DMA allocation/refresh and signal integrity separately. Do not raise brightness during an unresolved power problem.

Build evidence, target and remaining verification

Original status: unverified.

No successful build for this stage is recorded in the dated embedded compile ledger.

No compile was attempted in this pass under the user's testing limit. Upload and physical bench observation remain untested.

espressif32@6.12.0 · arduino