Make a beautiful beaded necklace that will be the talk of your Holiday Party with the Circuit Playground Express.
I have never been good at wearable projects - mostly because I'm terrible at sewing, and conductive thread hates me. So for this project, I used the much more forgiving material of copper wire and beads instead of fabric, conductive thread and needles.
It still takes time, but if I can do it, then anyone can!
Duration: 2 hours
Note – I also use a piece of fabric on top of my working surface so my beads don’t roll around too much
With the wire cutters, cut the following pieces of copper wire:
Loop the ends of 4 of the long pieces of wire around the following pins on the Circuit Playground Express. When looking at the board with the battery port at the top:
When you’re looping the ends around the pins, wrap them around securely at least twice to form a good connection. Use the pliers to pull the ends tight and twist any extra length around the wire.
Now loop the ends of 2 of the short pieces of wire around the following pins on the Circuit Playgrounds Express:
Use the pliers to loop the wire around the pin holes at least twice tightly to form a secure connection
Note: Bend the wires so your beads don’t fall off while you’re working
Now, attach the wires to the Flora NeoPixels.
Now is a good time to test that your lights are connected correctly and working.
Note – Be careful not to touch the wires while the Circuit Playground Express is plugged in, and make sure your wires aren’t crossed over each other.
You should see all your lights turn pink. If you don’t, check the connections to make sure the wires are securely looped around the pin holes. Also check that the right pins are connected.
This time, use the wire cutters to cut off the excess wire from the Ground and Power wires as well
Your finished electrical circuit necklace should look like this:
Attach the lipo battery cable to the battery port on the Circuit Playground Express. Note that the battery connection does fit in one way – with the groove at the top.
Using a piece of tape, tape down the battery cable to the back of the Circuit Playground Express so the battery cable doesn't show too much from the front
Using a piece of double-side sticky tape, affix the lipo battery to the back of the Circuit Playground Express, positioning it to hide the wires
Back of the Necklace:
Phew! Hardest part is done! Now let's code our light animations.
With the Necklace Test example code above, we simply turned on all the lights of our necklace to one color. There are many different ways we can program our necklace lights. The loudness necklace (https://makecode.adafruit.com/tutorials/loudness-necklace) is one example where you can change the lights based on the sound level. In this project, we’ll program a few different animations to show on our necklace.
First, we need to set up our 4 Flora NeoPixel lights as 2 strips of lights – connected to A1 on the left side, and connected to A6 on the right side.
Now let’s set up 3 different light animations that will play when we press button A, button B, and buttons A and B together on our Circuit Playground Express.
Let’s add some logic to be able to play and stop our animations. We’ll use the value of the switch to determine this – when we move the switch to the right our animations will play, but when the switch is moved to the left we’ll stop the animations and turn off the lights.
Your final program should look something like this.
[ Solution program - https://makecode.com/_aiH5gihqxUfo ]
Test your program in the Simulator by pressing the A button, the B button and the A+B button to see the different animations play, and then moving the Switch to the left to turn off all the lights. Once you’re happy with your program, download it onto your necklace!
That's it! You're done!