Piano Glove
This glove will play a note if you touch any finger to the thumb. The initial idea was inspired by Amit (103377), Be Aware of Me Glove.
Supplies
Supplies:
- Paper
- Scissors
- 1 - 4 different Fabrics
- Needle
- Thread
- Conductive thread
- Circuit Playground Express
- Wire
- Adapter - if needed
- Battery pack for Circuit Playground
- AAA batteries
- Adafruit Circuit Playground Express - to make the code
Make the Code
You can tweak the code to your preference or change it all together. This website has a lot of tutorials for Circuit Playground.
- Search for "makecode.adafruit.com"
- Create a new project
- Copy the code from above
- Test if the code works correctly on the left-hand side
- Once it's done download the code and follow the instructions that appear
- Plug in the Circuit Playground with the wire (you might need an adapter depending on your computer)
- Test the Circuit Playground to make sure it works
Java Script
You can copy & paste the script below on the Java side of the program:
input.touchA3.onEvent(ButtonEvent.Click, function () {
light.showRing(
`yellow white yellow white yellow white yellow white yellow white`
)
music.playTone(440, music.beat(BeatFraction.Whole))
})
input.touchA4.onEvent(ButtonEvent.Click, function () {
light.showRing(
`green white green white green white green white green white`
)
music.playTone(392, music.beat(BeatFraction.Whole))
})
input.touchA5.onEvent(ButtonEvent.Click, function () {
light.showRing(
`blue white blue white blue white blue white blue white`
)
music.playTone(349, music.beat(BeatFraction.Whole))
})
input.touchA6.onEvent(ButtonEvent.Click, function () {
light.showRing(
`purple white purple white purple white purple white purple white`
)
music.playTone(330, music.beat(BeatFraction.Whole))
})
music.setVolume(255)
light.setBrightness(16)
Preperations for the Glove
Now leave the code for a bit because it's time to start making the glove. You can either use an already existing glove, if you want to you can skip this and the next step. If you want to make a glove from scratch follow the steps below:
- Trace your hand on a piece of paper
- Add some space for the stitching
- Cut out the template
- Use the template to cut out some scrap fabric 2 times
- Either hand sew or use a sewing machine
- Try it on and make adjustments if necessary
Sewing the Actual Glove
Now that you got the feel for it you can start making the actual glove with nicer fabric. The steps are are similare as the ones in the previous step.
- Use the template you had from the previous step to cut out the fabric 2 times
- Either hand sew or use a sewing machine
Additional Sewing
This additional sewing piece will help since you need your battery to be near the circuit.
- Cut a rectangle out of fabric rightly double the size of the battery
- Sew the ends together
- Flip it over and make sure it fits
Adding All Together
Now we just put it all together!
- Sew the battery pocket in the previous step
- Use conductive thread to make touchable pads on the fingers
- Sew on the circuit on the back of the glove (use regular thread)
- Connect the finger pads to the circuit with more conductive thread
Final Step
Now load the code from your laptop and watch it glow!