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.

Search for the component name by entering BUZZER into the text box on the component picker, the list of components should update as soon as you stop typing.

Filtering and searching for components

WipperSnapper supports such a large number of components we added filtering!
Try searching for various keywords, like:

  • component names: aht20servobuzzerbutton, piezo, etc
  • sensor types: lighttemperaturepressurehumidity, etc
  • interface: i2cuartds18x20pin, etc (also I2C addresses e.g. 0x44)
  • vendor: AdafruitASAIRInfineonBosch, Honeywell, Sensirion, etc

We’ve also added product and documentation links to every component, follow the links beneath the component descriptions to be taken to the appropriate product page or Learn-Guide.

Select the Piezo Buzzer from the list of results to go to the component configuration page.

There will be a back button if you select the wrong component, and you can use the Edit component icon (⚙️) on the device page to update the component configuration in the future.

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 Jul 20, 2024.

This page (Piezo Speaker) was last updated on Mar 22, 2024.

Text editor powered by tinymce.