The following circuit was taken from the following source:
I would like to understand whether it is better to apply a 4000Hz square wave or a 4000Hz sine wave to this buzzer.
In addition, why will it be better or worse?
The following circuit was taken from the following source:
I would like to understand whether it is better to apply a 4000Hz square wave or a 4000Hz sine wave to this buzzer.
In addition, why will it be better or worse?
I would like to understand whether it is better to apply a 4000Hz square wave or a 4000Hz sine wave to this buzzer.
PWM is a square wave with a variable duty cycle (that imparts amplitude information) so, it would be problematic to somehow make a weird shaped sinewave that has the same ability to pass PWM information to what is a digital drive circuit (the PNP transistor). Of course the sinewave would be pure at a PWM duty of 50% but, it would be weird shaped for different PWM duty cycles.
Additionally, because the piezo is tuned to be resonant by the series inductor and, that tuning makes it really easy to use an on-off output from that PNP transistor, it makes no electrical sense to try and directly drive the piezo buzzer with a sinewave of variable amplitude (what PWM brings to the party if you do the analysis).
And finally, the use of the inductor (making the circuit resonant) means that you get voltage amplification and the buzzer can be made to sound louder for a smaller power-supply rail.