Piezo buzzers are simple devices that can generate basic beeps and tones. They work by using a piezo crystal, a special material that changes shape when voltage is applied to it. If the crystal pushes against a diaphragm, like a tiny speaker cone, it can generate a pressure wave that the human ear picks up as sound. Simply change the frequency of the voltage sent to the piezo and it will start generating sounds by changing shape very quickly!

This page will explain configuring a piezo buzzer using Adafruit IO and WipperSnapper, making the piezo "buzz", and changing its sound.

Piezo Buzzer Location

The Piezo buzzer is located on the right side of the FunHouse, highlighted in pink.

Create a Piezo Buzzer Component

On the device page, click the New Component (or "+") button to open the component picker.

Under PWM Components, select the Piezo Buzzer.

On the Create Piezo Buzzer form, under the Piezo Buzzer pin, select "Speaker/Piezo".

WipperSnapper matches musical notes to frequencies, in Hertz (there's a handy hertz-to-note table on this website). 

Select a musical note you'd like the Piezo to play when it's activated. Then, click Create Component.

The device page displays a new piezo buzzer component. Toggling the piezo buzzer component's switch "on" causes the Piezo buzzer to play the selected note. Toggling the switch "off" stops the Piezo buzzer.

Modify the Note

Is your buzzer's tone too high-pitched or too quiet? To modify the note played by the buzzer, click the cog on the top-right of the Wippersnapper piezo component.  Select a new tone from the dropdown labeled Note.

This guide was first published on Apr 20, 2021. It was last updated on Feb 14, 2023.

This page (Piezo Speaker) was last updated on Feb 24, 2023.

Text editor powered by tinymce.