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!
For this quick project you'll need:
As for tools, you'll need a
USB cable,
soldering iron and
flush diagonal cutters.
Helpful tutorials:
|
|
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 2013-01-23 at 05.27.23 PM