Maker.io main logo

Night Sky Halloween Costume

2017-10-30 | By SparkFun Electronics

License: See Original Project Wearables

Courtesy of SparkFun

Introduction

In this project, we'll create a wearable costume using conductive thread to connect LilyPad LEDs to a LilyTiny, powered by LilyPad battery holders. Make your own by following the step-by-step instructions below.

Heads up! This project is designed for advanced sewers who have experience working with LilyPad products.

Design and build time: 3-5 Weeks

Completed Preview

 

Suggested Reading

If this is your first sewable electronics project, we recommend you read our LilyPad Basics tutorial.

Materials and Tools

Let's go over all of the things you'll need to sew your project together.

Note: To make the LEDs a little bit more bright, you could use a LiPo battery and a LilyPad Simple Power in place of the two LilyPad battery holders. This can reduce the amount of battery holders and coin cells attached to the project. Additionally, the project can be recharged.

You Will Also Need:

  • Cape Pattern (or any garment pattern of your liking)
  • Denim Fabric for Lining (yardage based on pattern requirements)
  • Galaxy Printed Fabric (yardage based on pattern requirements)
  • Sewing Machine
  • Navy or Black Thread
  • Hot Glue Gun w/ Extra Hot Glue Sticks
  • Scissors
  • Pins
  • Sewing Needles
  • Glow-in-the-Dark Puff Paint
  • Iron-on Adhesive
  • Clothing Iron
  • Colored Pencils in White, Red, and Yellow

Understanding Your Circuit

In this project, you will be sewing several of the same circuits. The cape that we have made includes 10 circuits. Let's take a few minutes to understand what these look like and how they work before we get started.

Notice that the silver sew tabs on your LilyPad LEDs and battery holders are labeled either positive or negative. Many electronic components like these have polarity, meaning electric current can only flow through them in one direction.

Notice the silver sew tabs on your LilyPad LEDs

If hooked up incorrectly, they will not light up. Batteries 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.

If hooked up incorrectly, they will not light up

The following diagram illustrates the circuit you will be following in order to add twinkling LEDs to your garment. The number of constellations will determine how many LEDs you will need, as well as how many circuits you will be building. I will be including 18 - 21 LEDs per circuit, meaning 6-7 LEDs per I/O pin, as seen below.

the circuit to add twinkling LEDs to your garment

Notice how the LEDs have been grouped into three sets. No matter how many LEDs are included in your circuit, you will want to divide them into three groups as shown. The '-' tab of every single LED in your circuit connects to the rest with conductive thread, as well as the '-' tab on the LilyTiny and the '-' tab for power.

The '+' tabs will be treated differently. For each group of LEDs, you will connect all the '+' tabs inside that group together with conductive thread, and then connect them to either pins 0, 1, or 3 on the LilyTiny. We are not using pin 2 in this project as the pre-programmed animation is not ideal for the design. This circuit configuration is an example of LEDs in a parallel circuit. For power, you will need two LilyPad battery holders per circuit also wired in parallel in order to boost the longevity of power for a long night out. Connect the '+' tab of one of the battery holders to the '+' tab of the LilyTiny, and then the '-' tab of the same holder to the '-' tab of the LilyTiny. Then connect the '-' tab of the second holder to '-' of the first holder, and '+' on the second holder to '+' on the first holder.

Notice that the battery holder is dulled out in our circuit diagram. That is because it will lie on the opposite side of the fabric to LEDs and LilyTiny. The LEDs and LilyTiny should lie face-up on the backside of the fabric, or the side that will not be against your body. The battery holders should be on the other side of the liner, which will be against your body and remains exposed, allowing for access to replace batteries and switch on/off.

Preparing your Garment

Before we start sewing the circuits, there are a few steps we need to take to prepare our garment.

STEP 1:

Iron your fabric. Before cutting out the pattern it is important to remove creases and wrinkles.

Iron your fabric

STEP 2:

Following the pattern instructions, cut the lining out of the denim fabric. All LilyPad components will be sewn onto the lining. We are using denim because it is a heavier fabric with a strong structure, making it ideal for adding sewable electronics. A flimsier fabric will be much more difficult to work with.

Cut the outer layer of the garment from the cotton night sky fabric and set aside for later.

Cut the outer layer of the garment

STEP 3:

Sew the lining together according to the pattern instructions.

Sew lining together according to pattern instructions

STEP 4:

Download the design file provided.

DOWNLOAD CAPE CONSTELLATION DESIGN HERE

Using it as a guide, draw the constellations on the side of the lining that will not be against your body with a white colored pencil.

Note: For this project, it is important to plan the approximate design of constellations on your garment. If you're making a cape garment, you can use our design file (provided in the link above) as a guide. You can also design your own constellation map for a garment of a different shape. You will use this document as a roadmap as you move forward in the project. No matter the style of your garment or the pattern of constellation, the steps to complete the project will be the same.

draw the constellations on the side of the lining

STEP 5:

Using a Sharpie, make a small dot on each star in the constellations you drew on the fabric. The white pencil tends to fade as you work, so these Sharpie dots will help you along the way.

make a dot on each star in the constellations

Arranging Your Circuit

Warning: Don't put batteries in while you are arranging and sewing your circuit.

Each dot you marked with the Sharpie represents where a single LilyPad LED will live. Almost 200 LEDs have been included on our cape. That translates to 10 circuits. Count the number of dots you drew and divide that by 18-21 to figure out how many circuits you will be breaking the constellations into. It is OK if some circuits have a few more LEDs than others.

Do not worry about LEDs in a given constellation being part of separate circuits, as the wiring will be hidden upon completion.

While working on this project, we found it to be best practice to work on one circuit at a time. The following steps describe how to make a single circuit. Repeat until all the LEDs on your garment are sewn into a circuit.

STEP 6:

Find a set of 18-21 dots on your garment and place LilyPad LEDs over them. Place the LilyTiny somewhat centered among the LEDs and two LilyPad coin cell battery holders upside down, as they will ultimately be placed on the opposite side of the garment.

place LEDs, LilyTiny, and LilyPad battery holders

STEP 7:

Using the circuit diagram provided above and a white pencil, start to draw out the circuit design on the fabric. Keep in mind that traces cannot cross each other as that will cause a short.

When you have figured out the general arrangement of LilyTiny to LEDs, that will allow you to sew the circuit together as expressed in the diagram and start to hot glue the electronic components down in place. Make sure that the '+' and '-' tabs are arranged properly. The battery holders will live on the opposite side of the garment, so do not glue them down just yet but rather keep them in place for reference by leaving them upside down.

Remember: Glue is great for keeping your components in place, but it can interfere with your circuit. Try to keep glue clear of sew tabs.

start to draw out the circuit design on the fabric

STEP 8:

Using a red colored pencil, draw lines from I/O pins 0, 1, and 3, past the '+' tabs to the LEDs that they will connect to.

Note: Notice that pin 2 is not being used. This pin has a built-in blink animation when connected to an LED. While a lovely animation, it doesn't suit the purpose of this project, so we are sticking to pins 0, 1, and 3.

Then use a yellow colored pencil (or any color other than red) to draw a ground line connecting all '-' tabs according to the diagram.

use a yellow colored pencil to draw a ground line

You will use these drawn lines as a guide on the sewing machine, so they should be straight and pass by all the sew tabs they will eventually be connected to.

Once the circuit has been drawn, flip the garment over and hot glue the two battery holders into place.

Stitching It Together

If you need help sewing with conductive thread, this tutorial covers the basics.

STEP 9:

Place a bobbin of conductive thread into your sewing machine, keeping the regular sewing thread on top. Sew along the lines drawn with the two colored pencils. These will act like rails on a breadboard as we move forward. Leave long tails of thread at the beginning and end of each sewn path.

Sew along the lines drawn with the two colored pencils

STEP 10:

Connect the individual sew tabs on your components to the conductive thread paths that are acting as rails. For components near the end of the path, thread your needle with the conductive thread tail left at the end of the path and sew it around the tab. For the rest of the components, tie a new piece of conductive thread around the conductive thread on the rail, making sure it is secured tightly and that there is physical connection between the two threads. Then sew it around the sew tab of your component. In this step, it is most important to make sure you are making strong connections. This usually means sewing over the tabs and knotting around the thread rails many times over. Also, do not forget to connect the battery holders on the opposite side of the fabric to the circuit!

The components should look like this when the tabs have been sewn:

should look like this when tabs have been sewn

The opposite side of the fabric with the conductive thread rails should look like this:

side of fabric with conductive thread rails

Repeat until all components in a single circuit are connected according to the diagram via conductive thread.

STEP 11:

The conductive thread can fray and easily cause an unnoticeable short, especially around the tails left from sewing and knotting around your connections. In order to protect these connections and avoid unnecessary shorts, lay your garment out with the battery holders up. Cut down the tails around your connections, and then immediately add a dab of hot glue to keep it both secure and insulated.

Conductive thread can fray and cause a short

STEP 12:

Once all of the loose thread has been either snipped away and/or insulated, you can test the circuit. Add batteries to the holders and switch them on. If an LED is not working, now is your time to figure out why and fix it. Issues usually include loose connections or shorts, and you may need to re-sew a component or two. Make sure to build in plenty of time for debugging your circuits.

test the circuit

Repeat steps 6-12 for the remainder of LEDs on your garment. We found that each circuit can take approximately 5-6 hours. So again, make sure you give yourself plenty of time to complete these steps.

Finishing the Garment

Once all your LEDs have been sewn into working circuits and you have tested/debugged them, you can finish sewing your garment together.

STEP 13:

Remove the conductive thread from your sewing machine and replace it with regular thread. Sew together your cotton fabric for the outer layer of the garment according to the pattern.

Sew together your cotton fabric

STEP 14:

Sew the lining (with your circuits) with the outer cotton fabric. The battery side of the lining and the outer side of the cotton should be touching while you do this. The LED/LilyTiny side and wrong side of the cotton should be facing out; kind of an inside-out situation. Make sure you leave 6-12 inches of unsewn hem to bring the right side out later.

Sew lining (with circuits) with outer cotton fabric

STEP 15:

Lay out the garment flat, with the lining face up, and iron on double-sided, iron-on adhesive to the areas around your circuit.

Lay garment flat and iron on adhesive around circuit

STEP 16:

Peel the paper off the iron-on adhesive.

Peel the paper off the iron-on adhesive.

STEP 17:

Using the area of unsewn hem, pull the right side out from the inside so that the LEDs and LilyTinys will now be inside, and the battery packs will be outside. Once completed, your garment should be right side out, and the raw edges of fabric hidden inside.

garment should be right side out

STEP 18:

Make sure the garment is fully right side out and begin to iron over the hems, making a clean, flat edge.

make a clean, flat edge

STEP 19:

Iron around your circuits to activate the iron-on adhesive against the cotton. This will keep the two fabrics from separating, thus making sure your LEDs can be visible at all times.

Iron your circuits to activate the iron-on adhesive

STEP 20:

Find the unsewn area on the hem. Fold the raw edges inward. Pin them together, and then sew along the edge.

Find unsewn area, Fold edges, pin together, and sew

STEP 21:

Sew on any notions (i.e., buttons or clasps).

Sew on any notions (i.e., buttons or clasps)

STEP 22:

Put batteries in all your battery holders and turn on all of the circuits. Lay the garment out with the cotton fabric side up. Using the constellation map, draw lines between stars using glow-in-the-dark puff paint.

draw lines between stars using puff paint

STEP 23:

Leave it overnight to dry.

Leave it overnight to dry

STEP 24:

Flip the cape over to the other side and cover all the conductive thread traces with the remainder of the puff paint. This will insulate all of your circuits and make the garment safer to wear. Let dry overnight.

Let dry overnight

STEP 25:

Once dry, turn on the switches for each battery holder to light up the LEDs.

Once dry, turn on switches to light up the LEDs

STEP 26:

Put on the cape and enjoy!

Put on the cape and enjoy!

Resources and Going Further

For more information related to the Night Sky Halloween Costume, check out the resources below:

制造商零件编号 DEV-13902
LED WHITE LILYPAD 5PCS
SparkFun Electronics
制造商零件编号 DEV-10899
LILYTINY
SparkFun Electronics
制造商零件编号 DEV-13883
DEV LILYPAD COIN CELL BATT HOLDR
SparkFun Electronics
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum