

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:
| Pin Name | Description |
|---|---|
| Positive (+) | Connects to the positive terminal of the power supply or signal source. |
| Negative (-) | Connects to the ground (GND) of the circuit. |
Note: For active buzzers, simply applying a DC voltage to the positive pin will produce sound. For passive buzzers, an oscillating signal (e.g., PWM) is required.
Below is an example of how to use a passive buzzer with an Arduino UNO to generate a tone.
// Example: Generate a tone using a passive buzzer with Arduino UNO
// Define the pin connected to the buzzer
const int buzzerPin = 9;
void setup() {
// Set the buzzer pin as an output
pinMode(buzzerPin, OUTPUT);
}
void loop() {
// Generate a tone at 1000Hz for 500ms
tone(buzzerPin, 1000, 500);
delay(1000); // Wait for 1 second
// Generate a tone at 2000Hz for 500ms
tone(buzzerPin, 2000, 500);
delay(1000); // Wait for 1 second
}
Note: The
tone()function is used to generate a square wave signal for the passive buzzer. Active buzzers do not require this function and can be directly powered.
No Sound from the Buzzer:
Low or Distorted Sound:
Buzzer Overheats:
Q: Can I use a passive buzzer without a microcontroller?
A: Yes, but you will need an external signal generator to produce the required oscillating 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 with DC voltage. 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).
By following this documentation, you can effectively integrate a buzzer into your electronic projects for reliable audio signaling.