The LilyPad Pixel Board is a versatile and innovative electronic component designed for integrating lighting effects into wearable textiles and e-textiles. It features a 20x20 grid of individually addressable RGB LEDs, providing a canvas for a wide array of colorful patterns and animations. This board is particularly suitable for fashion designers, hobbyists, and educators looking to add an interactive and visual element to their projects.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V) |
2 | GND | Ground connection |
3 | DIN | Data input from microcontroller |
4 | CIN | Clock input from microcontroller |
5 | DOUT | Data output to the next Pixel Board |
6 | COUT | Clock output to the next Pixel Board |
#include <Adafruit_NeoPixel.h>
#define PIN 6 // The pin connected to the DIN on the LilyPad Pixel Board
#define NUMPIXELS 400 // Total number of pixels on the board (20x20)
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // Initialize the pixel board
}
void loop() {
for(int i = 0; i < NUMPIXELS; i++) {
pixels.setPixelColor(i, pixels.Color(0,150,0)); // Set color to green
pixels.show(); // Update the board with set color
delay(50);
}
}
Q: Can I wash the LilyPad Pixel Board? A: The board itself is not waterproof. It should be removed from the fabric before washing, or the fabric should be hand-washed with care to avoid getting the board wet.
Q: How many LilyPad Pixel Boards can I chain together? A: This depends on the power supply's capability and the microcontroller's memory. Each additional board increases the power and memory required to control the LEDs.
Q: What is the maximum brightness for the LEDs? A: The maximum brightness is achieved by setting the color to (255, 255, 255), but this will also increase power consumption. It's important to manage power requirements when using all LEDs at full brightness.