

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 model and manufacturer.
Buzzers typically have two pins: a positive (+) and a negative (-) terminal. The table below describes the pin configuration:
| Pin Name | Description |
|---|---|
| Positive (+) | Connect to the positive voltage supply (e.g., 5V). |
| Negative (-) | Connect to ground (GND). |
For active buzzers, simply applying a voltage will produce sound. For passive buzzers, an external signal (e.g., PWM) is required to generate sound.
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
// The buzzer will produce a tone for 1 second, then remain silent 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
}
tone() function to generate a specific frequency on the buzzer.noTone() function stops the sound.No Sound from the Buzzer:
Buzzer Produces Weak or Distorted Sound:
Buzzer Overheats:
Buzzer Does Not Respond to PWM Signal:
Q: Can I use a buzzer with a 3.3V microcontroller?
A: Yes, as long as the buzzer's operating voltage includes 3.3V. For passive buzzers, ensure the PWM signal is strong enough to drive the buzzer.
Q: How do I differentiate between an active and a 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 a buzzer?
A: The volume of most buzzers is fixed. However, you can reduce the supply voltage slightly to lower the sound level, but this may affect performance.
Q: Is it safe to connect a buzzer directly to a microcontroller pin?
A: For passive buzzers, yes, as long as the current draw is within the microcontroller's pin limits. For active buzzers, check the current requirements and use a transistor if necessary.