ESP32 Starter Kit
2. Working Principle
An active buzzer integrates a multi-vibrator, so it makes sound only via DC voltage. Pin 1 of the buzzer connects to
VCC and pin 2 is controlled by a triode. When a high level is provided for the base (pin 1) of the triode, its collector
(pin 3) and emitter (pin 2) link to GND, and then the buzzer emits sound. Oppositely, if we offer a low level to the base,
the rest of pins will be disconnected, so the buzzer will remain quiet.
8.5. Arduino Project 63