Flashing Sweater

by EvaW22 in Circuits > LEDs

638 Views, 1 Favorites, 0 Comments

Flashing Sweater

Sweater with LED

In this project I knitted a traditional sweater with the typical star image in a Nordic style. It's a small sweater so it doesn't take long time to knit. If you find it hard to knit with two colors you can just use one.

After the knitting I sewed a LED inside the sweater and together with a Lilypad Mainboard I programmed it to blink in 8 different colors. The Lilypad Tri-color LED have a red, a green and a blue light and by mixing these three colors you can have any colors you like. In this project the LED is programmed to show all of the possible colors: " black", red, yellow, green, cyan, blue, magenta, and white.

Materials

113AEE57-0F09-4F46-B752-8A6C80EEFE13.jpeg
CD8EB1AA-F4F0-4573-9DE9-BD34314ECF5E.jpeg
176BED32-F366-47BA-B33B-4FFD470449BC.jpeg

Materials

For the knitting

  • Yarn, I used acrylic yarn
  • Knitting pattern from Save the children
  • Knitting pins, 3 mm

For the LED

  • Lilypad Mainboard
  • Tri-Color LED
  • Lilypad Battery holder
  • 2 Cell Battery CR 2016
  • Conductive thread
  • 4 Alligator clips (not on the picture)
  • FTDI Basic 5 V programmer with USB/Usb mini cable (not on the picture)
  • 6 connection cables (not on the picture)



Knitting

902D11FD-9DF9-4310-B6C9-EAA3386F7E0B.jpeg
DEB7136C-7ED1-470D-BFC5-E8ACDDFFF05A.jpeg
671AF172-0DD2-4F72-95D6-5259C45C4D0E.jpeg

Knit a sweater by following the pattern from Save the Children.

(I knitted it bigger with 31 stitches instead of 17 and made the arms and sweater longer.)

Connecting the Mainboard With the Computer

IMG_2635 - kopia - kopia.jpg
IMG_2637 - kopia - kopia.jpg
Ladda upp en kod till Lilypad Mainborad och tricolor.jpg
  1. Connect the FTDI to the Lilypad Mainboard with the cables lines. See instructions on Thngs
  2. Put the USB in the computer and the mini USB in to the FTDI
  3. Connect the Tri-color LED with the Lilypad Mainboard using the alligator clip. + to +, green pin to port 9, blue pin to port 10, red pin to port 11

With the alligator clip you can try the code before sewing the led into your project.

Code With Arduino

IMG_2638 - kopia (2).jpg
IMG_2639.jpg
  1. Open Arduino or download it for free here
  2. Copy the code from Sparkfun and paste in into a new sketch in Arduino
  3. Select Board type: Tool->Board->LilyPad Arduino
  4. Select Processor: Tool->Processor->ATmega328
  5. Select correct Serial port: Tool -> Serial Port-> COM+the number that you're using
  6. Select Programmer: Tool->Programmer->USBasp
  7. Click on Upload

Sew the Components Into the Sweater

IMG_2641.jpg
IMG_2642.jpg
  1. Turn the sweater inside out
  2. Follow the instructions in the pictures
  3. Start with the Tri-Color LED and put it upside down in the middle of the star.
  4. Cut a peace of the conductive thread and attach the plus on the Tri-Color LED with at least four stitches, close to the pin and sew to the plus on the battery holder.
  5. Connect plus on the Tri-Color to the plus on Lilypad Mainboard
  6. Continuing sewing everything together with no lines crossed, otherwise the circuit wont work.

Sewing advice

  • Make sure you have shorted the threads so the circuit will work
  • Use nail polish at the ends of the conductive thread
  • I used stem stitch but you can use any stitches as long as it's a good connection
  • Make sure the thread have a good contact with the pins. Sew a lot of stitches around the pin.
  • No lines must be crossed