ESP32 Starter Kit
4. Test Result
After uploading code and powering on, the LEDs light up from left to right.
9.2.10 Project 7Active Buzzer
1. Description
An active buzzer is a component used as an alarm, a reminder or an entertaining device, which boasts a reliable sound.
What’s more, it empowers to stimulate highly controllable sounds, making our projects more interesting.
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.
198 Chapter 9. Scratch Tutorial