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: https://learn.adafruit.com/close-encounters-hat/prepare-sensor-and-piezo-buzzer

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.

This guide was first published on Jan 23, 2013. It was last updated on Jan 23, 2013.

This page (Build it) was last updated on Jan 23, 2013.

Text editor powered by tinymce.