Skip to content

How to Build a WiFi-Controlled LED Matrix for Under $100

Want a custom LED matrix on your wall but don’t want to spend hundreds? This guide walks you through building a 16×16 (256 pixel) WiFi-controlled matrix for under $100.

16x16 LED matrix display Addressable RGB LEDs on strip

What You’ll Need

ItemEst. CostNotes
WS2812B 16×16 panel$35-45Pre-assembled 16×16 flexible panel
ESP32 Dev Board$8-12Any ESP32 with USB
5V 10A Power Supply$15-20Mean Well or generic
Barrel jack + wires$5-85.5×2.1mm, 18 AWG
Jumper wires (female-female)$3-54-pin connector
Frame (optional)$10-203D printed or wood shadow box
Total$76-110

Step 1: Wire the Matrix

A 16×16 WS2812B panel has 4 pins: VCC (5V), GND, DIN (data in), and DOUT (data out).

Connect:

  • VCC → 5V power supply positive
  • GND → Power supply negative AND ESP32 GND (common ground!)
  • DIN → ESP32 GPIO2 (or any free pin)
Always connect ground between the ESP32 and the LED panel before connecting data. Without a common ground, the LEDs will behave erratically.

Step 2: Flash WLED

  1. Go to install.wled.com in Chrome or Edge
  2. Connect your ESP32 via USB
  3. Click “Install” and select the correct COM port
  4. Wait for the flash to complete
  5. Connect to the WLED-AP WiFi network and configure your home WiFi

Step 3: Configure the Matrix in WLED

  1. Open the WLED web UI (find the IP on your router)
  2. Go to Config → LED Preferences
  3. Set:
    • Total LEDs: 256
    • Type: Matrix
    • Panel: 16 columns × 16 rows
    • Start position: Bottom-Left (or your preference)
    • Direction: Row-major, serpentine
The “serpentine” setting alternates the direction of each row, matching the zigzag wiring pattern of most pre-assembled panels. If your animation looks like alternating rows are flipped, toggle this setting.

Step 4: Upload Animations (WLED v16)

WLED 16 supports GIF playback on matrices:

  1. In the WLED UI, go to 2D → Pixelforge
  2. Upload a GIF or use the built-in effects
  3. Adjust brightness (start low — 30% is plenty for indoor)

Step 5: Frame and Mount

A simple shadow box frame makes the matrix look professional:

  • 3D printed: Search Thingiverse for “WS2812B matrix frame”
  • Wood: Build a simple 8"×8" shadow box from craft plywood
  • Diffusion: Add a sheet of white acrylic or tracing paper over the LEDs for a soft glow

Next Steps