Other Relevant Tutorials

Gather Materials

These are the parts you’ll need to construct this circuit. If you’re using the LilyPad Design Kit, you’ve already got them all.

You’ll also want to have felt (included in the kit), scissors, fabric, an embroidery hoop, and possibly a needle threader.

Go ahead and get your fabric prepped on the embroidery hoop and your needle threaded.

Positive trace

In making a switch, we’re trying to create a connection that we can engage that will stay engaged until we disengage it. Much like a light switch, we will turn it on, and it will stay on until we turn it off.

Start by cutting a small strip off of your felt, about half an inch wide and 2-3 inches long.

Place your battery holder where you’d like it, and stitch the positive pins to the fabric and each other with conductive thread. Continue the trace another inch or so in the direction you’d like your LED to go. Lay down the strip of felt you cut with one thin end next to your trace and the other thin end pointing towards your planned LED location. Sew a few stitches around the close edge of the felt, attaching it firmly to the fabric.

Continue the trace up the length of the felt, no longer stitching through the fabric. This should result in a strip of felt attached at one end to the fabric, free along the rest of its length, with a trace of conductive thread all the way up.

At the detached edge, where your trace stops, stitch the male (the one with the bump sticking out) side of the snap to the bottom of the felt strip. The bump should point towards the fabric. There are small holes around the edge of the snap to allow it to be sewn down. When it’s firmly attached, knot and cut the thread.

Beginning a new trace, sew the female side of the snap, with the hole facing up, to the fabric below the male side. This should allow the two snaps to mate when the felt strip is at full extension.

Stitch from the snap to where you’d like the positive pin of the LED to be, and sew the LED down. Knot and cut your thread.

Negative trace

Beginning with a new thread, sew down the negative pin of the LED.

From here, sew a trace back to the negative pins of the battery pack and stitch those down as well.

That’s it! Slide your battery into the battery holder, positive side up, and turn on the switch on the battery pack. Try snapping and unsnapping your felt switch a few times. When it’s snapped, the light will turn on, unsnapped, it will turn off!

In 2003, CU student Nate Seidle fried a power supply in his dorm room and, in lieu of a way to order easy replacements, decided to start his own company. Since then, SparkFun has been committed to sustainably helping our world achieve electronics literacy from our headquarters in Boulder, Colorado.

No matter your vision, SparkFun's products and resources are designed to make the world of electronics more accessible. In addition to over 2,000 open source components and widgets, SparkFun offers curriculum, training and online tutorials designed to help demystify the wonderful world of embedded electronics. We're here to help you start something.