🛠 Mur de LEDs et panneaux HUB75 : OctoWS2811, WS2812Serial et SmartMatrix sur le 4.1

Teensy 4.1 · avance · Schéma : le Teensy 4.1 pilotant à gauche une matrice de rubans WS2812 sur plusieurs broches parallèles via OctoWS2811, à droite un panneau HUB75 64x64 branché sur un SmartLED Shield v5 ; les flèches DMA soulignent la quasi-absence de charge CPU.

Objectives

The Teensy 4.1 is the reference for LED walls thanks to three DMA engines: OctoWS2811 (refreshes 1,920+ LEDs at 30 Hz and, specific to the 4.1, on any number of parallel pins — the 8-pin limit of Teensy 3.x is removed), WS2812Serial (up to 8 non-blocking DMA instances on serial ports) and SmartMatrix (HUB75 panels from 32x16 up to 128x64 with the SmartLED Shield v4/v5). All this with a CPU that remains largely free for animation.

Hardware

Key Points

Procedure (OctoWS2811)

  1. Install the library via the Library Manager or https://www.pjrc.com/teensy/td_libs_OctoWS2811.html.
  2. Declare OctoWS2811 leds(ledsPerStrip, displayType, octoPins) with your parallel pins.
  3. leds.begin then draw with leds.setPixel(index, color) and leds.update — a single DMA update refreshes all strips.
  4. For the complete video example (1920 LEDs), follow the OctoWS2811 page on PJRC.

Procedure (SmartMatrix)

  1. Mount the SmartLED Shield v4/v5, set the panel resolution in SM_config.h (the 4.1 accepts up to 128x64).
  2. GIF animation examples and FastLED compatibility provided by the library.

Expected Verification

Entire strips animate at 30 Hz or more without glitches while Serial and your sensors keep running: this is the signature of DMA transfers. The die temperature remains reasonable (see the memory tutorial to monitor it).

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials