

The LilyPad Slide Switch (Manufacturer Part ID: DEV-09350) is a compact, low-profile switch designed by SparkFun Electronics for use in wearable electronics. This switch allows users to easily turn devices on or off with a simple sliding motion. Its lightweight and sewable design make it ideal for e-textile projects and other applications where space and flexibility are critical.








The LilyPad Slide Switch is designed to integrate seamlessly into wearable projects. Below are its key technical details:
| Parameter | Specification |
|---|---|
| Manufacturer | SparkFun Electronics |
| Part Number | DEV-09350 |
| Operating Voltage | 3.3V to 5V |
| Current Rating | 300mA |
| Dimensions | 20mm x 8mm |
| Weight | 0.5g |
| Mounting Style | Sewable with conductive thread |
| Switch Type | SPDT (Single Pole Double Throw) |
The LilyPad Slide Switch has three connection points (sewable pads) for easy integration into circuits. The table below describes each pin:
| Pin Name | Description |
|---|---|
| Pin 1 | Common terminal (connects to the circuit's power source or signal input) |
| Pin 2 | Normally Open (NO) terminal (connected to Pin 1 when the switch is slid ON) |
| Pin 3 | Normally Closed (NC) terminal (connected to Pin 1 when the switch is slid OFF) |
The LilyPad Slide Switch is straightforward to use in circuits. Follow the steps below to integrate it into your project:
Sewing the Switch:
Connecting to a Circuit:
Testing the Switch:
The LilyPad Slide Switch can be used to control power or signals in Arduino projects. Below is an example of using the switch to toggle an LED:
// This code demonstrates how to use the LilyPad Slide Switch to control an LED.
// When the switch is ON, the LED will light up.
const int ledPin = 13; // Pin connected to the LED
const int switchPin = 2; // Pin connected to the switch
void setup() {
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
pinMode(switchPin, INPUT); // Set the switch pin as an input
}
void loop() {
int switchState = digitalRead(switchPin); // Read the state of the switch
if (switchState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn the LED on if the switch is ON
} else {
digitalWrite(ledPin, LOW); // Turn the LED off if the switch is OFF
}
}
The switch does not turn the circuit on or off.
The circuit behaves erratically when the switch is used.
The switch feels stuck or does not slide smoothly.
Q: Can the LilyPad Slide Switch handle higher voltages or currents?
A: No, the switch is rated for a maximum of 5V and 300mA. Exceeding these limits may damage the switch.
Q: Can I use the switch in non-wearable projects?
A: Yes, the switch can be used in any low-power circuit where a compact, SPDT switch is required.
Q: How do I sew the switch securely onto fabric?
A: Use multiple loops of conductive thread through each pad to ensure a strong connection. Knot the thread securely to prevent it from unraveling.
By following this documentation, you can effectively integrate the LilyPad Slide Switch into your wearable or electronic projects!