

The LilyPad Button Board (Manufacturer Part ID: DEV-08776) is a flexible, sewable button module designed by SparkFun Electronics. It is part of the LilyPad Arduino ecosystem, which is tailored for wearable electronics and e-textile projects. This button board allows users to easily integrate tactile input into their designs, making it ideal for interactive garments, accessories, and other creative projects.








The LilyPad Button Board is designed for simplicity and ease of use in wearable projects. Below are its key technical details:
| Specification | Details |
|---|---|
| Manufacturer | SparkFun Electronics |
| Part Number | DEV-08776 |
| Operating Voltage | 2.7V to 5.5V |
| Current Rating | Minimal (acts as a simple switch) |
| Dimensions | Diameter: 20mm (0.79 inches) |
| Mounting Style | Sewable with conductive thread or solderable |
| Button Type | Momentary push button |
| Connection Points | 4 sewable pads (2 for power, 2 for signal) |
| Material | Flexible PCB with gold-plated sewable pads |
The LilyPad Button Board has four connection pads, as described below:
| Pad Name | Description |
|---|---|
| + | Positive connection for the button (connect to power or signal input) |
| - | Negative connection for the button (connect to ground) |
| SW1 | Signal output when the button is pressed (connect to microcontroller input) |
| SW2 | Alternate signal output (can also be connected to microcontroller input) |
The LilyPad Button Board is straightforward to use and can be integrated into circuits with conductive thread, solder, or alligator clips. Below are the steps and best practices for using the button board:
Connect the Button Board to Power and Ground:
Connect the Signal Pads:
Write Code to Detect Button Presses:
Test the Button:
Below is an example of how to use the LilyPad Button Board with an Arduino UNO to detect button presses and turn on an LED:
// Define the pin connected to the button
const int buttonPin = 2; // Digital pin 2 connected to SW1 or SW2
const int ledPin = 13; // Built-in LED on Arduino UNO
void setup() {
pinMode(buttonPin, INPUT_PULLUP); // Set button pin as input with internal pull-up resistor
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
int buttonState = digitalRead(buttonPin); // Read the button state
if (buttonState == LOW) { // Button is pressed (LOW due to pull-up resistor)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
INPUT_PULLUP mode enables the internal pull-up resistor, simplifying the circuit.LOW.Button Not Responding:
Button Presses Register Multiple Times:
Microcontroller Not Detecting Button Press:
Short Circuits:
Q: Can I use the LilyPad Button Board with other microcontrollers?
A: Yes, the button board is compatible with any microcontroller that can read digital input, such as Arduino, ESP32, or Raspberry Pi.
Q: How do I clean the button board if it gets dirty?
A: Use a dry cloth or a slightly damp cloth to clean the board. Avoid using water or cleaning solutions.
Q: Can I use multiple button boards in one project?
A: Absolutely! Each button board can be connected to a separate input pin on your microcontroller.
Q: Is the button board washable?
A: The button board is not washable. If used in wearable projects, ensure it is removable or protected from moisture.
This concludes the documentation for the LilyPad Button Board. Happy crafting!