LilyPad Buttons and Switches

Pages
Contributors: Gella
Favorited Favorite 3

LilyPad Slide Switch

The LilyPad Slide Switch has a small switch labeled ON/OFF. When moved to the OFF position, parts inside the switch move away from each other and open the circuit (disconnecting it). No current will flow through the switch to the components connected to its sew tabs. When the toggle switch is moved to the ON position, the two sew tabs on the switch are connected, allowing current to flow through and close the circuit.

Detail of using LilyPad Switch

Using a LilyPad Slide Switch on the LilyPad ProtoSnap Plus

Examples

Slide switches can be used to control individual LEDs in an e-sewing project. Here's an example of using three slide switches connnected with conductive thread to control each color channel on a LilyPad TriColor LED.

Tri-Color LED stitched with conductive thread to three LilyPad Switches and a LilyPad Battery Holder

Simple color mixing circuit using LilyPad Switches connected to each color tab of the tri-color LED.

A slide switch can also be used to turn off an element in a project, such as a buzzer or indicator while debugging or when you want a bit of peace and quiet. The example below shows a slide switch sewn in a LilyPad Buzzer. This allows the other features of the project to still function while disconnecting power to the buzzer.

Piezo buzzer sewn into a circuit with a slide switch

You can also connect the slide switch to a LilyPad Arduino and read its state in your programs. Here's an example of using a LilyPad Button and LilyPad Switch in a project on the LilyPad ProtoSnap Plus to control LEDs.

This wearable dice project tutorial utilizes seven slide switches to select from a 4, 6, 8, 10, 12, 20, and 100 side virtual dice for gaming.

Dungeons and Dragons Dice Gauntlet

August 13, 2013

A playful, geeky tutorial for a leather bracer that uses a LilyPad Arduino, LilyPad accelerometer, and seven segment display to roll virtual 4, 6, 8, 10, 12, 20, and 100 side dice for gaming.