

The LilyPad Tri-Color LED is a flexible and compact light-emitting diode module designed specifically for e-textile and wearable projects. It features three individual LEDs (red, green, and blue) that can be combined to produce a wide range of colors. Its sewable design and compatibility with conductive thread make it ideal for integrating into fabric-based projects. This component is perfect for creating dynamic lighting effects, color-changing patterns, and interactive designs in wearable electronics.








The LilyPad Tri-Color LED consists of three LEDs (red, green, and blue) mounted on a sewable PCB. Each LED can be controlled individually to create custom colors and effects.
| Parameter | Specification |
|---|---|
| Operating Voltage | 2.0V (Red), 3.2V (Green/Blue) |
| Forward Current | 20mA per LED |
| Dimensions | 20mm diameter |
| PCB Material | Flexible, sewable fabric PCB |
| Connection Type | Sewable pads for conductive thread or wires |
The LilyPad Tri-Color LED has four sewable connection pads:
| Pin Name | Description |
|---|---|
| R | Positive terminal for the red LED |
| G | Positive terminal for the green LED |
| B | Positive terminal for the blue LED |
| - | Common ground for all LEDs |
R, G, and B pads to the positive terminals of your power source or microcontroller pins. Connect the - pad to the ground of your circuit.R, G, and B pads, you can control the brightness of each LED and mix colors.Below is an example of how to connect and control the LilyPad Tri-Color LED using an Arduino UNO:
R, G, and B pads to Arduino digital pins 9, 10, and 11, respectively.- pad to the Arduino GND pin.// Define pins for the RGB LEDs
const int redPin = 9; // Pin connected to the red LED
const int greenPin = 10; // Pin connected to the green LED
const int bluePin = 11; // Pin connected to the blue LED
void setup() {
// Set the RGB pins as outputs
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop() {
// Example: Cycle through red, green, and blue colors
setColor(255, 0, 0); // Red
delay(1000); // Wait 1 second
setColor(0, 255, 0); // Green
delay(1000); // Wait 1 second
setColor(0, 0, 255); // Blue
delay(1000); // Wait 1 second
setColor(255, 255, 0); // Yellow (Red + Green)
delay(1000); // Wait 1 second
}
// Function to set the color of the LED
void setColor(int redValue, int greenValue, int blueValue) {
analogWrite(redPin, redValue); // Set brightness of red LED
analogWrite(greenPin, greenValue); // Set brightness of green LED
analogWrite(bluePin, blueValue); // Set brightness of blue LED
}
LEDs Not Lighting Up:
Incorrect Colors or No Color Mixing:
R, G, and B pads.analogWrite values.Short Circuits:
Dim LEDs:
Q: Can I use the LilyPad Tri-Color LED without a microcontroller?
A: Yes, you can connect the R, G, and B pads to a power source with appropriate resistors to light up the LEDs. However, a microcontroller is required for dynamic color control.
Q: What type of thread should I use for sewing?
A: Use conductive thread designed for e-textiles. Ensure it has low resistance for better performance.
Q: Can I wash the fabric with the LilyPad Tri-Color LED attached?
A: The module is not waterproof. Remove it before washing or use protective measures to shield it from water.
Q: How do I create custom colors?
A: Adjust the PWM values for the R, G, and B pins in your code to mix colors. For example, equal values for all three LEDs produce white light.