

A buzzer is an audio signaling device that produces sound when an electric current passes through it. It is widely used in various electronic applications to provide audible alerts or notifications. Buzzers are commonly found in alarms, timers, household appliances, and embedded systems. They are available in two main types: active buzzers, which generate sound when powered, and passive buzzers, which require an external signal to produce sound.








Below are the general technical specifications for a typical buzzer. Note that specific values may vary depending on the manufacturer and model.
The buzzer typically has two pins for connection. Below is the pin configuration:
| Pin | Description |
|---|---|
| Positive (+) | Connect to the positive terminal of the power supply or signal source. |
| Negative (-) | Connect to the ground (GND) of the circuit. |
Below is an example of how to connect and control a passive buzzer using an Arduino UNO.
// Example code to control a passive buzzer with Arduino UNO
// This code generates a tone on the buzzer for 1 second, then pauses for 1 second.
#define BUZZER_PIN 9 // Define the pin connected to the buzzer
void setup() {
pinMode(BUZZER_PIN, OUTPUT); // Set the buzzer pin as an output
}
void loop() {
tone(BUZZER_PIN, 1000); // Generate a 1kHz tone on the buzzer
delay(1000); // Wait for 1 second
noTone(BUZZER_PIN); // Stop the tone
delay(1000); // Wait for 1 second
}
No Sound from the Buzzer:
Buzzer Produces Weak or Distorted Sound:
Buzzer Overheats:
Q: Can I use a passive buzzer without a microcontroller?
A: Yes, but you will need an external oscillator circuit to generate the required signal.
Q: How do I differentiate between an active and passive buzzer?
A: Active buzzers typically have a built-in oscillator and produce sound when powered. Passive buzzers require an external signal and are usually smaller in size.
Q: Can I control the volume of the buzzer?
A: The volume is generally fixed, but you can reduce it by lowering the supply voltage (within the operating range).
Q: Is it safe to connect a buzzer directly to a microcontroller pin?
A: For active buzzers, yes, if the current draw is within the microcontroller's pin limit. For passive buzzers, use a resistor or transistor to avoid overloading the pin.
This concludes the documentation for the buzzer component.