Build it

A piezo transducer can play a tone when supplied with a square wave signal. Using one of Flora's PWM pins, we can supply a square wave of varying frequency and duration to play melodies-- a wearable music machine!

You can also adapt this tutorial for Gemma, check out our singing hat tutorial:

Insert the legs of the piezo into holes marked D9 (or any PWM-capable pin) and GND on the Flora.
Solder the leads of the piezo and clip off the extra wire with flush snips.
Peel off the adhesive protection and affix the metal bar from the magnetic pin back to your Flora. Now you can easily affix it to your clothes! Use a JST extension cable to lengthen your battery pack's wires so you can tuck the power pack in your pocket.
Last updated on 2015-05-04 at 04.27.44 PM Published on 2013-01-23 at 12.12.02 PM