The WS2812 LED Matrix 32x8 is a versatile and vibrant display module consisting of 256 individually addressable RGB LEDs arranged in a 32x8 grid. Each LED can be controlled independently to display a wide range of colors, making this matrix ideal for creating dynamic and colorful displays, animations, and visual effects. The matrix is controlled via a single data line, simplifying the wiring and control process.
Parameter | Value |
---|---|
LED Type | WS2812B |
LED Count | 256 (32x8) |
Voltage | 5V DC |
Current (max) | ~15A (at full brightness) |
Power Consumption | ~75W (at full brightness) |
Communication | Single-wire (data line) |
Color Depth | 24-bit (8 bits per color) |
Dimensions | 320mm x 80mm |
Pin Name | Description |
---|---|
VCC | Power supply (5V) |
GND | Ground |
DIN | Data input |
DOUT | Data output (for chaining) |
#include <Adafruit_NeoPixel.h>
// Define the pin connected to the DIN of the matrix
#define DATA_PIN 6
// Define the number of LEDs in the matrix
#define NUM_LEDS 256
// Create an instance of the Adafruit_NeoPixel class
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, DATA_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin(); // Initialize the strip
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
// Example: Fill the matrix with red color
for (int i = 0; i < NUM_LEDS; i++) {
strip.setPixelColor(i, strip.Color(255, 0, 0)); // Set pixel to red
}
strip.show(); // Update the strip to show the color
delay(1000); // Wait for 1 second
// Example: Turn off all LEDs
for (int i = 0; i < NUM_LEDS; i++) {
strip.setPixelColor(i, strip.Color(0, 0, 0)); // Turn off pixel
}
strip.show(); // Update the strip to turn off LEDs
delay(1000); // Wait for 1 second
}
LEDs Not Lighting Up:
Flickering or Incorrect Colors:
Matrix Overheating:
By following this documentation, users can effectively utilize the WS2812 LED Matrix 32x8 in their projects, creating stunning visual displays and animations.