≥90 dB @10cm
-20 ～ +70 ℃
-30 ～ +80 ℃
Microcontroller-driven piezoelectric buzzer improvements
This article focuses on how to use a microcontroller to drive a piezo buzzer at a large AC voltage, using a four-MOSFET circuit that interfaces with the microcontroller's two I / O pins (Reference 1). The following is a modification of this circuit expansion, saving the I / O pin of the next microcontroller. The gate of Q4 is connected to the drain of Q2 instead of the second I / O pin (Figure). The microprocessor applies a high logic level to the I / O pin, turning Q2 on and pulling Node A low. This action opens Q3 and closes Q4. The voltage on Node B becomes 15V and Q1 turns off. The voltage on the piezo element is now 15V.
A microcontroller I / O pin drives this circuit, producing an AC voltage across the piezo buzzer
The microcontroller then switches the I / O pin low and Q2 turns off. Q1 is also off, so Node A slowly ramps to a high logic level by pulling the resistor R1. When the voltage on Node A reaches the inverter switching threshold formed by the pair of Q3 and Q4 tubes, Q3 turns off rapidly and Q4 turns on quickly. As a result, the low logic level on Node B turns on Q1 and speeds up the voltage on NodeA. Now, the 15V voltage on the piezo buzzer is the opposite polarity.
R2 weakens the coupling between the Q4 output and the input because of the presence of the piezo element. The R2 value of 330Ω is usually enough to suppress high frequency oscillations caused by feedback. If the R1 resistance is small, it will increase the power drawn from the power supply. R1 value is too large will increase the power consumption, because it will extend the transistor switching time, increase the relevant through-current. The optimal value of R1 is about 1kΩ.
This design saves an I / O pin, but at the expense of increased power consumption. Therefore, the power consumption of the circuit than the previous design example described an order of magnitude higher.