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!
- Flora main board
- Flora RGB Smart Neo Pixel
- Battery holder
- Piezo transducer
- JST extension cable
Magnetic pin back
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.