PicoMite: driving a passive buzzer
Author
Message
thwill
Guru
Joined: 16/09/2019
Location: United KingdomPosts: 4090
Posted: 04:24pm 28 Nov 2022
Volhout said
The data from the Aliexpress page looks to specify a 2700Hz buzzer operated from 2-5Vdc pulling 40mA current. So you need not drive it from a PWM. It will generate 2700Hz if you connect it to 3.3V. And it will draw 40mA.
You only need a IO pin and a FET or transistor to drive it ON and OFF.
Quick check: connect + pin to 3.3V and - pin to GND... and shiver...
Driver circuit (will work with 5V and 3.3V)