Electronic – Piezo Buzzer datasheet question

microcontrollerpiezo-buzzer

I am designing a circuit with a piezo buzzer. I want to use one that I can attach directly to my uC output pin (no transistor).

The question is, can I do it with this one? (PS1240P02AT) http://www.farnell.com/datasheets/84905.pdf

It says 4khz rectangular wave and 3V. But what about current consuption? Can I just add a series resistance around 200 ohm in order to limit the output current to a safe value?

Actually I am a little bit confused. I thought piezo buzzers do not need a PWM wave, only a "high" logic level and they sound, whereas piezo transducers do need the square signal. However, this one says piezo buzzer (without circuit) so I assume it is a piezo transducer. Is it right?

Thank you.

Best Answer

They're passive, you have to create the signal yourself. "Without circuit" is the most obvious way to tell, but there are also the frequency response curves. If the device would have an internal oscillator the frequency would be fixed, and the graph be unnecessary.

Connecting the piezo directly to an I/O pin is the best way to get a loud sound, but piezo elements are highly capacitive, and microcontrollers don't like capacitive loads. A series resistor will protect the I/O pin, but also reduce the loudness. The best thing is to use a transistor to drive the buzzer.

For the loudest sound, look in the datasheet at the frequency response curve, and pick the frequency where it peaks the highest.