karlee theodore
Published © GPL3+

Tunetoids!

Ever wonder just how much electricity is running through something? Buy Tunetoids!, a portable device that turns voltage into tunes.

BeginnerShowcase (no instructions)1 hour457
Tunetoids!

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Alligator Clips
Alligator Clips
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Li-Polymer Battery, 150mAh
Li-Polymer Battery, 150mAh
×1
Altoids tin
Altoids tin
×1

Hand tools and fabrication machines

Multitool, Screwdriver
Multitool, Screwdriver
Had a regular one
Plier, Wire Twisting
Plier, Wire Twisting

Story

Read more

Code

Tunetoids!

JavaScript
Read voltage from knob to A2 out Tones
pins.A2.setPull(PinPullMode.PullUp)
forever(function () {
    if (!(pins.A2.digitalRead())) {
        music.playTone(pins.A2.analogRead(), music.beat(BeatFraction.Half))
    } else {
        music.stopAllSounds()
    }
})

Credits

karlee theodore
5 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.