A buzzer is an audio signaling device that produces a buzzing sound when an electric current is applied. It is commonly used in alarms, timers, and confirmation of user input in electronic devices. Buzzers are essential components in various applications due to their simplicity, reliability, and ease of integration into electronic circuits.
Parameter | Value |
---|---|
Operating Voltage | 3V to 12V |
Current Consumption | 10mA to 30mA |
Sound Output | 85dB at 10cm |
Frequency Range | 2kHz to 4kHz |
Operating Temperature | -20°C to +60°C |
Dimensions | 12mm diameter, 9mm height |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Positive voltage supply (3V to 12V) |
2 | GND | Ground |
Below is an example of how to connect and control a buzzer using an Arduino UNO:
Arduino UNO Buzzer
----------- ------
Pin 8 ----------- VCC
GND ------------- GND
// Buzzer connected to digital pin 8
const int buzzerPin = 8;
void setup() {
// Initialize the buzzer pin as an output
pinMode(buzzerPin, OUTPUT);
}
void loop() {
// Turn the buzzer on
digitalWrite(buzzerPin, HIGH);
delay(1000); // Wait for 1 second
// Turn the buzzer off
digitalWrite(buzzerPin, LOW);
delay(1000); // Wait for 1 second
}
No Sound Output:
Low Sound Volume:
Intermittent Sound:
Can I use the buzzer with a 5V power supply?
How do I control the buzzer with an Arduino?
digitalWrite
function to control the buzzer.What is the typical current consumption of the buzzer?
By following this documentation, users can effectively integrate and troubleshoot a buzzer in their electronic projects.