Electronic – Amplified 80dBA 40KHz Sound From 3V Square Wave

amplifiernpnpiezosound

How can a loud high-frequency tone be produced from a 3V square wave?

Given that:

  • the square wave is 3V and can have a varying frequency (max 4mA)
  • 12VDC high-current supply is available

Requirements:

  • It should be as loud as possible (distortion doesn't matter, unless it reduces output power)
  • Inexpensive (if a transistor can do the trick, why use an IC?)
  • Simple (preferable)

Just hooking up the PWM to the piezo works, but it's very quiet.
Using a MOSFET or NPN (3904) does not deliver any more volume when connected like:

enter image description here

  1. 3V 50% square wave -> 100R -> B
  2. 12V -> Speaker+
  3. Speaker- -> E
  4. C -> Gnd

Adding a high-pass filter (small capacitor) before the Base removes the offset, but really reduces the signal voltage. There is no sound in this case (the input frequency was changed to 10KHz for the test below):

enter image description here

Can an NPN transistor, such as the 3904 keep up with 20KHz? 40KHz? It seems to be switching at 2KHz when given an input of 10KHz. And even though 12Vdc is connected to the emitter, only 4V is output at the Collector:

enter image description here

But the main issue is that the sound is not amplified (and is not drawing any noticeable power from the 12V supply).

Is a bridge required on the speaker terminals? What is the best way to get loud volume out of a high-frequency piezo?

Update:

enter image description here

Just using opposite 3V square waves on each terminal of the piezo gives a decent sound level, although nowhere near as powerful as the speaker can handle.

The voltage at the piezo terminals:

enter image description here

Best Answer

Put a really big inductor (like 30 mH or so, get a bunch of 5 or 10 mH inductors and start putting them in series one at a time) in parallel with the piezo. And cover your ears. You may need to play around with the frequency and the inductance a bit to get the best oomph. I got a surprisingly loud tone out of a piezo at about 4 kHz on about 4 volts with 30 mH of inductance. I'm sure you can do even better with 12 volts.

The idea is that the piezo's capacitance will resonate with the inductance, producing a much larger sound than you would be able to otherwise.

Actually, for 40 kHz you might want a much smaller inductor, maybe around 5 or 10 mH.