

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, as described below:
| Pin | Name | Description |
|---|---|---|
| 1 | Positive (+) | Connect to the positive terminal of the power supply or control signal (e.g., 5V). |
| 2 | Negative (-) | Connect to the ground (GND) of the circuit. |
Note: For active buzzers, simply applying a voltage will produce sound. For passive buzzers, a PWM (Pulse Width Modulation) signal 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
// This code generates a tone on the buzzer using the tone() function.
#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 1 kHz 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:
Low or Distorted Sound:
Buzzer Not Responding to PWM Signal:
Overheating:
Q: Can I use a buzzer with a 3.3V microcontroller?
A: Yes, but ensure the buzzer operates at 3.3V. If not, use a transistor or MOSFET to drive the buzzer with a higher voltage.
Q: How do I generate different tones with a passive buzzer?
A: Use the tone() function in Arduino to generate different frequencies, which correspond to different tones.
Q: Can I use a buzzer for continuous sound?
A: Yes, for an active buzzer, simply apply a constant voltage. For a passive buzzer, generate a continuous PWM signal.
Q: What is the difference between active and passive buzzers?
A: Active buzzers have an internal oscillator and produce sound when powered. Passive buzzers require an external signal to generate sound.