A Scarf That Plays 4 Different Melodies From Circuit Playground Express, and Changes Colour!

by 103929 in Circuits > Wearables

319 Views, 2 Favorites, 0 Comments

A Scarf That Plays 4 Different Melodies From Circuit Playground Express, and Changes Colour!

Screenshot 2023-01-17 at 15.08.13.png

It is a scarf that is made of old fabric, and a CPX is sewn on that can play different melodies depending on the button you press. I made this project because I think it is a fun combination of simple elements.

Supplies

unnamed.jpg
unnamed.jpg
0.jpg
IMG-8117.jpg
Screenshot 2023-01-17 at 14.39.46.png
  • 2 old or new tee-shirts or sweaters of your choice, be able to cut into them (we will be using tee-shirts)
  • CPX
  • CPX wire adaptable to your laptop
  • CPX battery holder + batteries that match 
  • Download + set up MakeACode
  • a pair of Scissors
  • Sewing machine + supplies 
  • 1 Marker 
  • Needle + thread
  • Conductive thread

Make a Code

Screenshot 2022-11-11 at 13.39.26.png

This is the Java Script for the "Make A code" program in order for the CPX to be able to play the melodies. You can jus copy-paste into the button that says Java Script

Java script:

music.setVolume(255)

light.setBrightness(162)

forever(function () {

while (input.pinA2.isPressed()) {

light.showRing(

`pink green pink green pink green pink green pink green`

)

for (let i = 0; i < 2; i++) {

music.playMelody("E F - G A - B C5 ", 120)

}

}

while (input.pinA3.isPressed()) {

light.showRing(

`blue purple blue purple blue purple blue purple blue purple`

)

for (let i = 0; i < 2; i++) {

music.playMelody("C5 G B A F A C5 B ", 120)

}

}

while (input.pinA7.isPressed()) {

light.showRing(

`orange red orange red orange red orange red orange red`

)

for (let i = 0; i < 2; i++) {

music.playMelody("B A G A G F A C5 ", 120)

}

}

})

Make a Scarf

0.jpg
  • Lay out your tee shirt so the bottom area is available to work with, as shown above

Make a Scarf

0-1.jpg
0-2.jpg
  • With your marker, mark it from the armpit area, then measure it 35cm down the side and mark it
  • Then from the line you've marked, mark it 17.5cm down(half of the area you've marked)

Make a Scarf

IMG-8029.jpg
0.jpg
  • Take your scissor and cut this out
  • You should end up with 2 long strips of fabric
  • Repeat this process with your second tee shirt, you should end up with 4 strips total

Make a Scarf

IMG-8031.jpg
  • Measure the length of the strip, and divide them into three spots
  • Mark the spots

Make a Scarf

IMG-8032.jpg
0.jpg
  • Now, with your scissor, cut it out into three equal squares
  • Repeat this process with the other strips

IMG-8111.jpg
IMG-8112.jpg
IMG-8113.jpg
  • Now take two of the square pieces of fabric that have the same color
  • On the shorter side, sew them together (only sew them together on one side)
  • Make sure that you sew on the inside of the fabric to give it a cleaner look

IMG-8116.jpg
IMG-8114.jpg
  • Now take two pieces of the same color(not the same as the previous one) and sew them together on the shorter side
  • After this sew it together on the shorter side with the previous color
  • Repeat this process until you end up with a long strand of alternate colors

IMG-8118.jpg
Step 9.jpg
Step 9 .jpg
  • Now lay out the long piece of fabric on the floor, and fold it in half so the shorter side of each end piece meets (make sure the inside side of the fabric is facing upward)
  • Now on the long side of the folded-together fabric, pin it together with sewing pins.

step 10.jpg
Screenshot 2023-01-17 at 14.37.00.png
  • Now sew it all together on the sides where you pinned
  • Make sure to leave a little pocket for a battery holder

Screenshot 2023-01-17 at 14.37.27.png
  • Now from that small pocket you left, turn it inside out

Screenshot 2023-01-17 at 14.42.51.png
Screenshot 2023-01-17 at 14.42.58.png
  • Get a battery packet for the CPX
  • Cut out 2 small pieces of fabric the size of the battery holder
  • bow sew these together but only on 3 sides

Screenshot 2023-01-17 at 14.43.59.png
Screenshot 2023-01-17 at 14.44.07.png
Screenshot 2023-01-17 at 14.44.14.png
  • Now hand sew this pocket into the hole you have in your scarf
  • Make sure to sew it into the inside of the lobes to make it look cleaner

Screenshot 2023-01-17 at 14.48.26.png
Screenshot 2023-01-17 at 14.48.50.png
Screenshot 2023-01-17 at 14.48.58.png
Screenshot 2023-01-17 at 14.49.08.png
Screenshot 2023-01-17 at 14.49.15.png
  • Now cut out a small skinny piece of fabric as in the photo (around 5cmx0.5cm)
  • Now cut this in half, and sew each piece to the opposite side of the battery pocket
  • Now if you tie this together you have a closable pocket for your battery holder

Screenshot 2023-01-17 at 14.53.55.png
Screenshot 2023-01-17 at 14.54.02.png
Screenshot 2023-01-17 at 14.54.08.png
  • now for extra stability of the CPX, sew it onto the battery pocket through the holes that you aren't using in your code (just used normal thread and sewed it by hand)

Screenshot 2023-01-17 at 15.07.46.png
  • now use conductive thread and a needle
  • use the 3 buttons that you have in your coding
  • take the first button and sew around it
  • then sew a straight 4 cm line away from the CPX (you can use any stitching you want, I will use back stitching)
  • Then to finish it off, make a french knot to imitate a button
  • Do this with all 3 buttons until there is a row of french knots
  • Make sure each french knot has a different song
  • Make sure that when you touch it is changes color and plays a song (if not make sure to check that none of the conductive thread is touching)

Thank you so much for doing this project!

Enjoy!!!