Active Buzzer Features
A buzzer is a device used to produce sound. There are two types of buzzer: active and passive. In the active model, buzzer starts playing sound only if connected to a power supply, but in the passive model, we need to send a pulse from the microcontroller to play sounds.
The supply voltage of the buzzer is 3 volts, 5 volts and 12 volts.
You can download the active buzzer datasheet here.
Active Buzzer Module Datasheet
1 file(s) 108.19 KB
Active Buzzer Module Pinout
This Module has 3 pins:
- VCC: Module power supply – 5 V
- GND: Ground
- IN: Digital information input from the microcontroller
You can see the pinout of this module in the image below.
Required Material
Hardwar component
Software Apps
Interfacing Active Buzzer with Arduino
Step 1: Circuit
Connect the wires according to the following circuit.
Step 2: Code
Upload the following code to your Arduino Board.
/*
modified on Sep 6, 2020
by Arduino Examples from arduino.cc/en/Tutorial/Blink
Home
*/
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(9, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(9, HIGH);
delay(1000);
digitalWrite(9, LOW);
delay(1000);
}