Play simple melodies with an Arduino and a piezo buzzer

Piezo buzzer background Piezo buzzers are simple devices that are commonly used to produce beeps and sounds in many electronic gadgets, like alarm clocks, toys, pc boards, etc. They consume very little current and have high impedance, which means that you can safely connect them directly to a micro-controller pin. Buzzers have a piezoelectric ceramic plate that generates electricity when a mechanical force is applied to it and vibrates (extend and shrink) when exposed to an electric field. The first property is often used to detect knocks and musical tones, while the second property is what we are going to use to play a simple tune from an Arduino micro-controller. ...

May 11, 2014 · 4 min · 646 words · Stan