

A passive buzzer is an electronic component that produces sound when an alternating current (AC) voltage is applied. Unlike an active buzzer, it does not have an internal oscillator and requires an external signal, such as a square wave, to generate sound. Passive buzzers are widely used in applications where sound notifications or alarms are required, such as in electronic devices, home appliances, and security systems.








| Pin Name | Description |
|---|---|
| Positive (+) | Connect to the positive terminal of the power supply or signal source. |
| Negative (-) | Connect to the ground (GND) of the circuit. |
Connect the Buzzer:
Generate a Signal:
Power the Circuit:
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 2kHz tone for 500ms
tone(buzzerPin, 2000, 500); // 2000 Hz frequency, 500 ms duration
delay(1000); // Wait for 1 second
// Generate a 1kHz tone for 500ms
tone(buzzerPin, 1000, 500); // 1000 Hz frequency, 500 ms duration
delay(1000); // Wait for 1 second
}
tone() function generates a square wave signal on the specified pin.noTone() function to stop the sound if needed.No Sound from the Buzzer:
Low or Distorted Sound:
Buzzer Not Working at All:
Interference with Other Components:
Q: Can I use a passive buzzer without a microcontroller?
Q: What is the difference between a passive and an active buzzer?
Q: How do I adjust the sound frequency?
tone() function in Arduino).Q: Can I use a passive buzzer with a Raspberry Pi?
tone() function, you will need to use a library or external circuit to generate the signal.By following this documentation, you can effectively use a passive buzzer in your projects and troubleshoot common issues.