Glowing Pin a learn.sparkfun.com tutorial
Available online at: http://sfe.io/t580
Introduction
In this project, we’ll create a wearable pin using conductive thread to connect a LilyPad LED to a battery holder. Follow along by drawing your own design on a piece of fabric, or download and print one of SparkFun’s designs.
Design and build time: 30 minutes — 1 hour
Image may be NSFW.
Clik here to view.
This is Project 1 from the LilyPad Sewable Electronics Kit, take a look at the other projects in the kit:
- Project 2: Illuminated Mask
- Project 3: Light-Up Plush
- Project 4: Night-Light Pennant
Suggested Reading
If this is your first sewable electronics project, we recommend you read our LilyPad Basics tutorial.
LilyPad Basics: E-Sewing
December 17, 2016
Materials and Tools
Let’s go over all of the things you’ll need to sew your project together.
Items included in the LilyPad Sewable Electronics Kit:
- LilyPad Coin Cell Battery Holder
- 3V Coin Cell Battery
- 1 LilyPad LED (carefully snap out from the panel of five)
- Conductive Thread
- Needle
- Pin Template (1 piece) - see Planning Your Project for printable downloads
- White Felt (you will need at least 3 square inches)
- Pin Back
Image may be NSFW.
Clik here to view.
You Will Also Need:
- Pen, marker, or chalk
- Fabric to draw a design on or printable fabric (optional)
- Scissors
- Hot glue gun (with extra glue)
- Printer if you are downloading and printing one of SparkFun’s pin designs
Planning Your Project
Image may be NSFW.
Clik here to view.
Right-click and choose “Save Link As” or click image to download PDF
Printable Fabric Designs:
Image may be NSFW.
Clik here to view.Image may be NSFW.
Clik here to view.
Right-click and choose “Save Link As” or click image to download PDF
After downloading a design, follow the directions on the package of your printable fabric to print them out. Feel free to create a larger pin by scaling the downloadable designs, if you’d like more room to work with or for a real statement piece.
Trace the pin template on white felt and cut out. We’ll be building our circuit on the felt piece, then adding a decorative layer of fabric with designs on top of it. Trace and cut a slightly larger circle or SparkFun design out of thin fabric (or design your own out of felt) for the top layer of the pin.
Image may be NSFW.
Clik here to view.
Understanding Your Circuit
This project is an example of a basic circuit– an electrical loop that travels from a power source along a path (called a trace) to a component (or components) that uses the electricity to function, and then back to the power source. For our project, we’ll use an LED (Light-Emitting Diode). When this loop is completed by stitching the pieces together with conductive thread traces, electricity from the power source is able to flow from the positive (+) side of the battery through to the LED (lighting it up) and back to the negative (–) side of the battery. This electric flow is called current. As you build projects with LilyPad pieces, you will learn different ways to design conductive thread circuits and experiment with additional pieces that help control or use the flow of electricity.
Image may be NSFW.
Clik here to view.
Take a look at the LED and battery holder. Notice that the silver sew tabs are labeled either positive or negative. Many electronic components have polarity, meaning electric current can only flow through them in one direction.
Image may be NSFW.
Clik here to view.
If hooked up incorrectly, they will not light up. The batteries in this kit are also polarized; they have a positive and negative side. Always check the labels on LilyPad pieces to make sure they are correctly oriented before sewing together a circuit.
Image may be NSFW.
Clik here to view.
Arranging Your Circuit
Position the battery holder with the ON/OFF switch to the left side and the bottom two sew tabs close to the bottom edge of the felt. Use a small dot of hot glue in the center of the holder to attach it to the felt, as shown. Gluing the battery holder on this way leaves room for placing the LilyPad LED on the felt.
Image may be NSFW.
Clik here to view.
While planning the LED’s placement, note that it will need to be slightly above the center or toward the top half of the fabric so it doesn’t touch or overlap the battery holder.
If you are using one of SparkFun’s pre-made designs, hold the design over the felt, and use a fabric marker or chalk to mark where the LED should be placed to shine through. Gather one LED (snap off of an LED panel if needed).
Before attaching the LED, rotate it so the (+) and (–) symbols on the LED board align with the (+) and (–) symbols on the battery holder’s sew tabs. Use a small dab of hot glue on the center of the front of the board to secure to the felt. Be careful not to cover the holes with glue – we’ll need those to sew through later.
Image may be NSFW.
Clik here to view.
Stitching It Together
If you need help sewing with conductive thread, this tutorial covers the basics.
STEP 1:
Cut a long piece of conductive thread, thread the needle, and tie a knot at the end. Now, it’s time to connect the LED to the battery holder with the conductive thread. One line of stitching will connect the positive (+) side of the battery holder to the positive end of the LED. A second line of stitching will connect the negative (–) sides of the boards and complete the circuit.
Image may be NSFW.
Clik here to view.
STEP 2:
Finish your first line of stitching by tying a finishing knot on the sew tab and trimming your excess thread.
Image may be NSFW.
Clik here to view.
Don’t forget! You’ll need to tie a new knot at the end of your thread before you begin the next section of stitching.
STEP 3:
Repeat the process with a new piece of thread to connect the negative side of the battery holder to the negative end of the LED. Be careful not to let the stitches touch the path used for the positive connections, as that would cause a short circuit. Trim any thread tails before testing. Now, the circuit is complete!
Image may be NSFW.
Clik here to view.
Installing Your Battery and Testing
Insert the coin cell battery with the positive side facing up, labeled as (+), into the opening on the battery holder across from the ON/OFF switch. Turn on the switch to allow current to flow through the circuit. Turn off the switch when not in use to prolong battery life.
Image may be NSFW.
Clik here to view.
How to place a battery in a LilyPad Battery Holder..
Troubleshooting
With any electronics project, there are times you will have to troubleshoot if your circuit isn’t working. If your circuit isn’t lighting up, try a new battery or check that your project is switched on. Check your sewing for any loose threads or ends that may be touching other parts of your circuit and causing a short circuit. Learn more about troubleshooting your project in the LilyPad Basics: E-Sewing tutorial.
Finishing Touches
Image may be NSFW.
Clik here to view.
With the battery removed, use a hot glue gun or thread to attach your fabric design over your felt circle so the LED shines through. Draw a design on the fabric, if you’d like (or see design templates in the Planning Your Project step). Turn the project over, and attach an adhesive pin back to finish up your wearable art!
Image may be NSFW.
Clik here to view.
Here are a few examples of creative glowing pins:
Resources and Going Further
Looking for another project? Let’s move on to Project 2: Illuminated Mask in the LilyPad Sewable Electronics Kit.
Illuminated Mask
December 16, 2016
These tutorials will guide you through more advanced projects and concepts:
Insulation Techniques for e-Textiles
Planning a Wearable Electronics Project
Choosing a LilyPad Arduino for Your Project
learn.sparkfun.com |CC BY-SA 3.0 | SparkFun Electronics | Niwot, Colorado