Electronic – Piezo buzzer giving faint clicks instead of loud buzz

gpiopiezo-buzzerraspberry pi

Please note: Even though this question involves a Raspberry Pi, I really think its an essential electronics question at its heart, and that the fact that I'm dealing with a Pi is secondary.


I have the following piezo buzzer wired up to my Raspberry Pi 1 Model A (hereafter RPi) as follows:

enter image description here

When my software (which uses wiringPi under the hood) sends an output signal to GPIO output pin, which is the pin driving the buzzer, it just makes a faint clicking noise, not a big booming buzzzzzz like I expected. I'm trying to figure out why.

My thoughts:

  • Perhaps its not as simple as just sending a HIGH signal to the buzzer…perhaps there's a more sophisticated signal I need to send it
  • Perhaps the buzzer is junk, however I ordered 3 of them from DigiKey and all three produce the same faint clicking sound
  • Perhaps something else isn't wired correctly

I have confirmed that my software is sending an output signal to the correct GPIO pin, namely because the buzzer does click when the software sets this pin HIGH.

Any idea how I can troubleshoot here and begin diagnosing?

Best Answer

As I suspected the buzzer you linked to does not have a built-in oscillator. It must be externally driven with a square wave per the datasheet. You can do this by switching the GPIO pin on and off repeatedly at the frequency you want your buzzer to "buzz" at.