A Scarf That Plays 4 Different Melodies From Circuit Playground Express, and Changes Colour!
by 103929 in Circuits > Wearables
360 Views, 2 Favorites, 0 Comments
A Scarf That Plays 4 Different Melodies From Circuit Playground Express, and Changes Colour!
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
- 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
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
- Lay out your tee shirt so the bottom area is available to work with, as shown above
Make a Scarf
- 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
- 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
- Measure the length of the strip, and divide them into three spots
- Mark the spots
Make a Scarf
- Now, with your scissor, cut it out into three equal squares
- Repeat this process with the other strips
- 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
- 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
- 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.
- Now sew it all together on the sides where you pinned
- Make sure to leave a little pocket for a battery holder
- Now from that small pocket you left, turn it inside out
- 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
- 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
- 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
- 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)
- 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!!!