Ordered on weekdays before 14:00 = shipped the same day and delivered the next day in 98% of cases. Free returns 30-day reflection period 1-year warranty

Wiring diagram and code example

How to connect the 8x8 RGB 64 LED Matrix 5V WS2812b to an Arduino UNO or ESP32, with an example sketch you can upload straight away.

8x8 WS2812B RGB LED Matrix Demo

This project demonstrates an 8x8 WS2812B addressable RGB LED matrix connected directly to an Arduino Uno. The sketch initializes the 64 LEDs and displays a rotating color pattern across the matrix at a safe brightness level. Connect the 5V, GND, and DI pins as shown to test your matrix in minutes.

Wiring diagram: 8x8 RGB 64 LED Matrix 5V WS2812b on an Arduino UNO
Wiring diagram · Click to enlarge
Connection table: 8x8 RGB 64 LED Matrix 5V WS2812b on an Arduino UNO
Connection table · Click to enlarge
8x8_WS2812B_RGB_LED_Matrix_Demo.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : 8x8 WS2812B RGB LED Matrix Demo
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : 8x8 RGB 64 LED Matrix 5V WS2812b
 *  Libraries : Adafruit NeoPixel 1.15.5
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Adafruit_NeoPixel.h>

#define LED_PIN   6
#define LED_COUNT 64

Adafruit_NeoPixel matrix(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

// Converts (x, y) coordinates to pixel index (serpentine layout)
uint16_t getPixelIndex(uint8_t x, uint8_t y) {
  if (y % 2 == 0) {
    return y * 8 + x;
  } else {
    return y * 8 + (7 - x);
  }
}

void setup() {
  Serial.begin(115200);
  matrix.begin();
  matrix.setBrightness(30); // Keep brightness low when powered from Arduino 5V
  matrix.show();            // Turn off all pixels
  Serial.println(F("WS2812B 8x8 LED Matrix ready!"));
}

void loop() {
  static uint16_t hueOffset = 0;

  for (uint8_t y = 0; y < 8; y++) {
    for (uint8_t x = 0; x < 8; x++) {
      uint16_t pixelHue = hueOffset + ((x + y) * 65536L / 16);
      uint32_t color = matrix.gamma32(matrix.ColorHSV(pixelHue));
      matrix.setPixelColor(getPixelIndex(x, y), color);
    }
  }

  matrix.show();
  hueOffset += 500;
  delay(20);
}

Required libraries: Adafruit NeoPixel 1.15.5

Wiring diagram and example code generated by Codey.online — https://www.codey.online

WS2812B 8x8 RGB LED Matrix Rainbow Demo

This project drives an 8x8 WS2812B RGB LED matrix using an ESP32. It cycles colorful rainbow patterns across all 64 individual addressable LEDs. The brightness is set low to ensure safe operation directly via USB power.

Wiring diagram: 8x8 RGB 64 LED Matrix 5V WS2812b on an ESP32 DevKit V1
Wiring diagram · Click to enlarge
Connection table: 8x8 RGB 64 LED Matrix 5V WS2812b on an ESP32 DevKit V1
Connection table · Click to enlarge
WS2812B_8x8_RGB_LED_Matrix_Rainbow_Demo.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : WS2812B 8x8 RGB LED Matrix Rainbow Demo
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : 8x8 RGB 64 LED Matrix 5V WS2812b
 *  Libraries : Adafruit NeoPixel 1.15.5
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Adafruit_NeoPixel.h>

#define LED_PIN    4
#define LED_COUNT  64
#define BRIGHTNESS 30

Adafruit_NeoPixel matrix(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  Serial.begin(115200);
  matrix.begin();
  matrix.setBrightness(BRIGHTNESS);
  matrix.show();
  Serial.println("WS2812B 8x8 Matrix Initialized");
}

void loop() {
  // Rainbow cycle across the matrix
  for (long firstPixelHue = 0; firstPixelHue < 5 * 65536; firstPixelHue += 256) {
    for (int i = 0; i < matrix.numPixels(); i++) {
      int pixelHue = firstPixelHue + (i * 65536L / matrix.numPixels());
      matrix.setPixelColor(i, matrix.gamma32(matrix.ColorHSV(pixelHue)));
    }
    matrix.show();
    delay(15);
  }
}

Required libraries: Adafruit NeoPixel 1.15.5

Wiring diagram and example code generated by Codey.online — https://www.codey.online

8x8 RGB 64 LED Matrix 5V WS2812b

RGB LED Matrix with 64 WS2812b addressable LEDs.

Operates on 5V and can be controlled via Arduino, ESP8266 and ESP32.

 

Dimensions
Length: 6,5cm
Width: 6,5cm
Height: 0,3cm

  • RGB lighting
  • WS2812b LEDs
  • Addressable
  • 8x8 matrix

Why choose this product?

  • 64 addressable LEDs – For dynamic RGB display.
  • Operates on 5V – Connect with a 5V power supply.
  • Suitable for Arduino – Also usable with ESP8266 and ESP32.
  • Compact size – Only 6.5 x 6.5 x 0.3 cm.
Specifications
Power supply5 V
Width6,5 cm
Resolution8 x 8
Suitable forArduino, ESP8266 and ESP32
Length6,5 cm
TypeWS2812b
Height0,3 cm

Frequently bought together

Total: € 8,49

Reviews

★★★★★ 5,0/5 1 review
  • ★★★★★LBLM LBLMVerified purchase

    Conforms to my order

Write a review
Your rating

Shipping & returns

Shipping

  • Parcel with track & trace€ 7,70Within 24 hours
  • Pick up at PostNL location€ 7,40Within 24 hours
  • Letterbox parcel€ 3,70Within 2 business days
  • Letterbox parcel 24 hours€ 4,55Within 24 hours
  • Pick up in storeFree
All about shipping

Returns

Not satisfied? You have 30 days after delivery to return the product.

All about returns

Recently viewed