Description
5V Active Buzzer Module
This active buzzer module has a built-in oscillator and produces a continuous tone when powered. Unlike a passive buzzer, it does not need an external audio-frequency signal to generate its basic sound.
🔧 Listed specifications
- Rated voltage: 5 V DC
- Operating-voltage range: 3.5–5.5 V DC
- Rated current: 30 mA at 5 V
- Sound: continuous, approximately 2.5 kHz
- Sound level: 85 dB at 10 cm
- Operating temperature: −20 °C to 70 °C
- Storage temperature: −30 °C to 105 °C
- Dimensions: 18.5 × 15 mm
⚙️ How it works
An internal oscillator drives the piezoelectric sound element when DC power is applied. The buzzer continues to sound while powered.
💡 Applications
- Alarm circuits
- Communication equipment
- Automotive electronics
- Portable equipment
- Audible status notifications
📌 Pinout and connection
- VCC: supply input, listed range 3.5–5.5 V
- GND: ground
- Signal: control input
The source listing specifies 30 mA at 5 V, which can exceed a microcontroller GPIO pin’s recommended drive current. Use a transistor or suitable driver stage between the Arduino output and the buzzer signal/input unless the module documentation confirms direct drive is safe. Connect the grounds together and do not exceed the stated supply range.
🔌 Arduino Uno: basic on/off example
The original code sample is preserved below. Use an appropriate driver for the actual module.
#define BUZZER_PIN 8
void setup() {
pinMode(BUZZER_PIN, OUTPUT);
}
void loop() {
digitalWrite(BUZZER_PIN, HIGH); // Activer le buzzer
delay(1000); // Attendre 1 seconde
digitalWrite(BUZZER_PIN, LOW); // Désactiver le buzzer
delay(1000); // Attendre 1 seconde
}
What the basic code does
The sketch switches the buzzer on for one second, then off for one second, repeating continuously.
Components listed for the basic example
- Arduino Uno
- 5 V active buzzer module
- Connecting wires
Code overview
- Setup: Configures the buzzer control pin as an output.
- Main loop: Sets the output HIGH and LOW at one-second intervals.
Connections shown by the example
- VCC: Arduino 5 V (only if suitable for your module)
- GND: Arduino GND
- Signal: Arduino D8, preferably through a suitable driver stage
🎛️ Advanced example: push-button control
The original button-control code is preserved below.
#define BUZZER_PIN 8
#define BUTTON_PIN 7
void setup() {
pinMode(BUZZER_PIN, OUTPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);
}
void loop() {
int buttonState = digitalRead(BUTTON_PIN);
if (buttonState == LOW) {
digitalWrite(BUZZER_PIN, HIGH);
} else {
digitalWrite(BUZZER_PIN, LOW);
}
}
What the advanced code does
The sketch reads a push button using the internal pull-up. Pressing the button makes the buzzer control output HIGH; releasing it makes the output LOW.
Components listed for the advanced example
- Arduino Uno
- 5 V active buzzer module
- Push button
- Connecting wires
Connections shown by the example
- VCC: suitable supply within the listed range
- GND: common ground
- Signal: Arduino D8 through a driver as required
- Button: Arduino D7; connect the other button terminal to GND
Active vs. passive buzzer
- Active buzzer: Contains an internal oscillator and can produce a basic tone from DC power.
- Passive buzzer: Needs an external oscillating/audio-frequency signal, allowing the controller to vary the tone.
Check the labels and documentation for the supplied module before wiring. The code examples are retained from the source listing; adapt the drive circuit to the actual buzzer’s current requirements.









