A buzzer is an audio signaling device that produces sound when an electrical signal is applied. It is widely used in various applications such as alarms, timers, notifications, and user interfaces to provide audible feedback. 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.
Common applications of buzzers include:
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 Frequency | 2 kHz to 4 kHz |
Sound Pressure Level | 85 dB to 100 dB (at 10 cm distance) |
Operating Temperature | -20°C to +60°C |
Dimensions | Varies (e.g., 12mm diameter, 8mm height) |
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 to the pins will produce sound. For passive buzzers, an oscillating 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 generate a tone on a passive buzzer using 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 1000 Hz for 500 milliseconds
tone(buzzerPin, 1000, 500);
delay(1000); // Wait for 1 second
// Generate a tone at 2000 Hz for 500 milliseconds
tone(buzzerPin, 2000, 500);
delay(1000); // Wait for 1 second
}
tone()
function is used to generate a square wave signal for the passive buzzer.No Sound from the Buzzer:
Low or Distorted Sound:
Buzzer Gets Hot:
Buzzer Produces Continuous Sound (Passive Buzzer):
Q: Can I use a passive buzzer without a microcontroller?
A: Yes, but you will need an external oscillator circuit to generate the required signal.
Q: How do I differentiate between an active and a passive buzzer?
A: Active buzzers typically produce sound when connected to a DC voltage, while passive buzzers require an oscillating signal. Active buzzers may also have a built-in driver circuit.
Q: What is the typical lifespan of a buzzer?
A: Most buzzers have a lifespan of over 10,000 hours under normal operating conditions.
Q: Can I control the volume of a buzzer?
A: The volume is generally fixed, but you can reduce it by lowering the supply voltage (within the operating range).