Electronic – Interface Piezoelectric wafer buzzer with microcontroller

audiopiezo-buzzerpiezoelectric-effectspeakers

Can piezo-buzzer be interfaced with MCU same as normal 5V continuous buzzer?

I am talking about the flat thinnest buzzer like this.

enter image description here

We need to feed PWM to this to create different tones right? If yes, do we need to provide PWM at audio frequency or any other resonant frequency?

I can't find any proper datasheet for such parts, so finding exact parameters are difficult.

Best Answer

No, what you show needs to be driven differently than a "buzzer". It's not a buzzer, just a piezo transducer. These things don't oscillate on their own. You have to drive it with the signal you want to emit, not just apply power as with a buzzer.

To know how to drive this buzzer, read it's datasheet. The supplier you bought these from should be able to supply a datasheet. If not I wouldn't trust them.

If you can't get hold of a datasheet for these parts, look around on web sites of reputable suppliers for something similar. At least that will give you a rough idea.

Piezo elements look mostly capacitive to the driving circuit, but can also exhibit kickback like inductors and can generate high voltages when subjected to mechanical shocks.

For starters, connect one of these between a microcontroller PWM output pin and ground. Add reverse Schottky diodes to power and ground to protect the microcontroller output. Drive it with 1 kHz square wave and see what you get. Look at the voltage and see how clean it still is after being loaded by the piezo. If it's a mess, then that's a good clue that the micro output isn't strong enough to drive the piezo well at that voltage.

You can try putting a double emitter follower (NPN and PNP) on the output of a opamp to drive the piezo from a higher voltage and with lower impedance. What you show can probably take a few 10s of volts without damage, but of course without a datasheet we don't really know what the limits are.