A buzzer is an audio signaling device that produces sound when an electric current passes through it. It is widely used in various applications such as alarms, timers, and notifications. Buzzers are available in two main types: active and passive. Active buzzers generate sound when powered, while passive buzzers require an external signal to produce sound. Their simplicity, low cost, and reliability make them a popular choice in electronic projects.
Below are the general technical specifications for a typical buzzer. Note that specific values may vary depending on the model and manufacturer.
Parameter | Specification |
---|---|
Operating Voltage | 3V to 12V (commonly 5V) |
Current Consumption | 10mA to 50mA |
Sound Output Level | 85dB to 100dB (at 10cm distance) |
Frequency Range | 2kHz to 4kHz |
Operating Temperature | -20°C to +60°C |
Dimensions | Varies (e.g., 12mm diameter for small buzzers) |
Buzzers typically have two pins:
Pin | Description |
---|---|
Positive (+) | Connect to the positive terminal of the power supply or signal source. |
Negative (-) | Connect to the ground (GND) of the circuit. |
For active buzzers, simply applying a DC voltage will produce sound. For passive buzzers, an oscillating signal (e.g., PWM) is required.
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 at 2kHz for 1 second, then stop 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, 2000); // Generate a 2kHz tone on the buzzer pin
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, you can use a signal generator or an oscillator circuit to drive a passive 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 with DC voltage. 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 a buzzer is generally fixed. However, you can reduce the volume by lowering the supply voltage (within the operating range) or using a resistor in series.
By following this documentation, you can effectively integrate a buzzer into your electronic projects and troubleshoot common issues.