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.
Parameter | Value |
---|---|
Operating Voltage | 3V to 12V |
Current Consumption | 10mA to 30mA |
Sound Output | 85dB at 10cm |
Frequency | 2kHz to 4kHz |
Operating Temperature | -20°C to +60°C |
Dimensions | Varies (commonly 12mm diameter) |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Positive voltage supply (3V to 12V) |
2 | GND | Ground (0V) |
Arduino UNO Buzzer
5V -------------- VCC
GND -------------- GND
D8 -------------- Control Pin
// Define the pin connected to the buzzer
const int buzzerPin = 8;
void setup() {
// Set 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 from Buzzer:
Buzzer Produces Weak Sound:
Buzzer Continuously Buzzes:
Q1: Can I use a buzzer with a different voltage rating?
Q2: How can I adjust the volume of the buzzer?
Q3: Can I use a buzzer with an AC power supply?
Q4: What is the difference between a passive and an active buzzer?
This documentation provides a comprehensive guide to understanding, using, and troubleshooting a buzzer in various electronic applications. Whether you are a beginner or an experienced user, this guide will help you effectively integrate a buzzer into your projects.