← Back

LED matrix display

Built on XDAI built this beautiful LED matrix display with an ESP32 for $30By Adam Conway
ESP32-DevKitC V4

Waveshare RGB LED Matrix P2.5 64x32 (HUB75)

AGPIO23BGPIO22EGPIO32R1GPIO25G1GPIO26CGPIO5B1GPIO27DGPIO17R2GPIO14CLKGPIO16G2GPIO12LATGPIO4GNDGNDB2GPIO13OEGPIO15VCC5V supply

Compatibility checks

1 warning

  • Waveshare RGB LED Matrix P2.5 64x32 needs its own 5V supply.

Wiring steps

  1. 1

    Plug the 5V supply into the screw terminal adapter. Connect its ground to GND on Waveshare RGB LED Matrix P2.5 64x32.

  2. 2

    Waveshare RGB LED Matrix P2.5 64x32

    • GNDtoGND
    • VCCtothe 5V supply
    • R1toGPIO25
    • G1toGPIO26
    • B1toGPIO27
    • R2toGPIO14
    • G2toGPIO12
    • B2toGPIO13
    • EtoGPIO32
    • AtoGPIO23
    • BtoGPIO22
    • CtoGPIO5
    • DtoGPIO17
    • CLKtoGPIO16
    • LATtoGPIO4
    • OEtoGPIO15
  3. 3

    Plug in the USB cable last.

ESPHome config

Paste into ESPHome Device Builder.

esphome:
  name: led-matrix-display

esp32:
  board: esp32dev

logger:
api:
  encryption:
    key: !secret api_encryption_key  # make one at esphome.io/components/api
ota:
  - platform: esphome
    password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

font:
  - file: "gfonts://Roboto"
    id: font_main
    size: 14

time:
  - platform: homeassistant
    id: ha_time

display:
  - platform: hub75
    panel_width: 64
    panel_height: 32
    r1_pin: GPIO25
    g1_pin: GPIO26
    b1_pin: GPIO27
    r2_pin: GPIO14
    g2_pin: GPIO12
    b2_pin: GPIO13
    a_pin: GPIO23
    b_pin: GPIO22
    c_pin: GPIO5
    d_pin: GPIO17
    e_pin: GPIO32
    clk_pin: GPIO16
    lat_pin: GPIO4
    oe_pin: GPIO15
    lambda: |-
      it.strftime(it.get_width() / 2, it.get_height() / 2, id(font_main), TextAlign::CENTER, "%H:%M", id(ha_time).now());

Some board drawings are from Wokwi and Seeed Studio.