Active Buzzer 5V
This buzzer is an active buzzer, which basically means that it will buzz at a predefined frequency (2300 ±300 Hz) on its own even when you just apply steady DC power. If you are looking for a buzzer that can produce varied tones from an oscillating input signal, then take a look at our passive buzzer.
Some people prefer to get active buzzers since they can use them with steady DC power but also be able to produce a variety of tones by applying an oscillating signal. Some consider them to be more versatile than their cousin, the passive buzzer, which is the type that requires an oscillating signal to create any tone.
It is possible and often done, to still create different tones through an active buzzer when you apply an oscillating signal to the buzzer, but the spectrum of possible different tones is very limited and not as crisp or clean of sound as can be produced with a passive buzzer.
One advantage to an active buzzer is that you can still produce a sound from the buzzer connected to a microcontroller, such as an Arduino, by just driving a standard high output on the connected pin. The benefits of this are that you don't need to use processing power, hardware timers, or additional code to produce sound.
Specifications
- Rated Voltage(Vo-p) 5
- Operating Voltage(Vo-p) 3~8
- Rated Current(mA) ≤30
- Sound Output at 10cm(dB) ≥83
- Resonance Frequency(Hz) 2700±300
- Operating Temperature(℃) -40~+85
- Storage Temperature(℃) -40~+90
- Weight(g) 0.7
Code
int buzzer = 12; //the pin of the active buzzer
void setup() {
pinMode(buzzer,OUTPUT);//initialize the buzzer pin as an output
}
void loop() {
unsigned char i;
while(1) {
//output an frequency
for(i=0;i<80;i++) {
digitalWrite(buzzer,HIGH);
delay(1);//wait for 1ms
digitalWrite(buzzer,LOW);
delay(1);//wait for 1ms
}
}
}
Contents
- 1 x Active Buzzer 5V