We will now look at active and passive buzzer outputs on our Arduino UNO controller. Electronic buzzers are DC-powered and equipped with an integrated circuit. They are widely used in computers, printers, photocopiers, alarms, electronic toys, automotive electronic devices, telephones, timers, and other electronic products for voice devices. Buzzers can be categorized as active and passive. Turn the pins of two buzzers face up. The one with a green circuit board is a passive buzzer, while the other enclosed with black tape is an active one.
We will be wiring passive and active buzzers to our Arduino UNO R3 controller on our super starter kit. Two pushbuttons with pull-down resistors will control the buzzers. Pressing the first button will play a melody on the passive buzzer. A two-tone alarm will sound using the active buzzer when the other push button is selected. Let’s get started.