Chapter 7: Buzzer
In this chapter we connect both active and passive buzzers to the Pico. We start with a simple button-controlled doorbell, improve the passive buzzer with bit-banging, and finally create a clean sweeping alert tone using the Pico’s PWM hardware. We also look at inductive-load protection and why a diode is essential.