How to get louder beep on Piezo?
T Chap
Posts: 4,223
On some designs I have relied on the Piezo object or modified versions for beep outputs using different frequencies. I use an LM386 to produce a robust signal that is quite a bit louder than a direct Prop pin. The cost is not really an issue but in some cases the real estate is, 386 + large 330uF. Does anyone have any tricks that would use a smaller footprint for the boost section? I always have 5V on the boards, so what about a 2222 or 3904 for gain?
Comments
I found a schematic on the forum for use a transistor with a piezo. Here's a modified version of the schematic:
The original schematic included a 1K resistor across the speaker pins. I don't know what the purpose of the extra resistor but I though the piezo sounded the same with or without the extra resistor so I leave it off.
I think the 10K resistor could probably be reduced to somethink like 3K (I don't recall if a lower value resistor on the base changes the volume).
I'm sure you're aware that piezos have ceratain frequencies where they are louder than other frequencies.
In this case you don't need any capacitor at all.
Duane J
Take a look at the piezoelectric speaker documents. How many watts will is really output? Not even 1 watt?
You might add a 10K pot for volume control as this is LOUD!
That circuit will not output any sound at all without a resister across the Piezo device. (Except for an initial click.)
Essentially it looks like a capacitor. Once it is charged, the click thing, no more current can flow.
The resistor discharges the Piezo when the transistor is off.
Duane J
http://forums.parallax.com/showthread.php?62310-Amplifying-piezo-speaker&p=466534&viewfull=1#post466534
Top of thread:
http://forums.parallax.com/showthread.php?62310-Amplifying-piezo-speaker&p=464410&viewfull=1#post464410
There are BTL (bridge tied load) audio power amplifiers that would be a much better bet than the LM386, because they do not require the output capacitor to drive a magnetic speaker. For example, the TDA7052A is a 1W BTL audio amp, available in DIP8 or SOIC8.
http://www.digikey.com/product-detail/en/SMT-0825-S-2-R/668-1067-1-ND/1464934
Interestingly, I have never really paid attention to the type of buzz I am using until today, it is magnetic. Sorry that I have claimed it to be a piezo earlier.
Here's a design tip if you are using piezos rather than a magnetic speaker. If it is a piezo element in that it needs an external circuit to drive it then you can use a MAX232 chip or equivalent to drive it differentially. Basically you end up with 18Vp-p drive and one of the receivers can be used as an inverter so that you can run this from a single Prop I/O using a counter or software.
The other option is to put said inductor in series with the piezo, and drive it full-wave. Then the voltage will really boost up.
There was an EDN design idea recently for making a mosfet bridge to drive piezo sounders.
The piezo bender disks in smoke alarms are coupled to a horn and of course they are rather loud. They are usually driven at self-resonance in bridge mode by a circuit that consists of a couple of inverters. You can see the circuit in data sheets for smoke alarm chips like the 5366.
Peter, I've tried the MAX232 circuit with 40kHz piezos but was disappointed with the results. It simply took too much current to drive it at 40kHz and the '232 charge pump couldn't keep up. It might be different at low audio and with musical material that has lower RMS demand.
With differential drive, though, I can attest that the inductor in series makes a big difference. With a 40kHz piezo, it takes in the neighborhood of 8 mHy.
I have felt for a long time that all these teenie-tiny audio amplifier chips were a rather silly as you still are locked into +5V or less output unless you commit to a dual supply.
Welcome to the Forum!!!
A push pull is essentially the same as a differential drive to create a larger voltage swing to the piezo crystal, however you are limited to your supply voltage with the push pull circuit.
Using a MAX232 increases the voltage drive to 18Vp-p due to an internal charge pump within the MAX232.
Go to this circuit to see it in action.
If that link doesn't work, go [URL=]here[/URL] and on the new window, go to File->Import and type:
You don't want to drive that directly off of an I/O, that circuit pulls over +/- 1 Amp of current.
We may be talking a couple of different kinds of piezo. A beeper/transducer will take considerably less current than a mechanical actuator or a cleaning tank or something like that. A typical ultrasonic air transducer will have an impedance at resonance of around 500Ω, so with 10V excitation it will need 20mA current.
I've used inductors in series with resonant ultrasonic transducers in order to improve the output. The voltage applied to the transducer increases at best around 20%, but there can be an nice increase of about 20% in bandwidth too.
The best easy results for loudness I've found come from a transformer. Xicon (Mouser) makes mini audio transformers, one with 100Ω CT primary and secondary. I hook 1/2 the primary (50Ω) to bridged microcontroller or driver pins, and the full secondary (100Ω) to the piezo. That gives a solid 4x power boost.
I don't know, a MAX232 might have trouble providing 20mA at the peaks. Maybe with all 1µF capacitors for the charge pump. The MAX232 specs are geared to providing at least ±5V into a 3000Ω load.
I went with the LM386, kicks butt and I can hear the thing across the room. The loud beep is used on a system where I program in various patterns/frequencies that allow me to hear what is happening over a phone while someone is in the field programming the system.
Here is the magnetic buzzer. On some applications where loudness is not a problem I drive it direct with the Prop!
http://www.digikey.com/product-detail/en/SMT-0825-S-2-R/668-1067-1-ND/1464934
http://www.mouser.com/_/N-scv7?Keyword=Haptic+Piezo&Ns=Pricing%7c0&FS=True
They are (maybe too) tiny, but you said real estate is at a premium.
However this old thread title was about piezos, not magnetic speakers, so it's totally different. Also inductors need drivers and my suggestion is one that I have used and it's cheap and small, one tiny TSSOP16 chip and a tiny capacitor array works noisy wonders with piezos.
@tonyp - Class H BTW is Haptic, not really audio (but interesting)
Judging should be done on power efficiency and overall design.
http://www.instructables.com/id/How-to-make-an-Arduino-driven-Piezo-LOUD/
If anyone can identify this dollar store part on Mouser, that would be cool. cheers, tom
specs: Pin-1/2 ~154 ohms Pin 2/3 ~ 8ohms. Not sure on the inductance although a similar project used 91mH and 2mH as shown on the instructable.