Codey Online › Arduino & ESP32 component library › Active Buzzer Module
Active Buzzer Module
Output

Active Buzzer Module

Active buzzer. Always use S pin to trigger sound.

Width: 32.4 mm

Pinout — Active Buzzer Module

Pin Signal Description
- ground
+ power VCC positive 3.3V to 5.5V
S digital 3.3V to 5V signal

Example wiring diagram — Active Buzzer Module

From To Wire
board:GND x1:- black
board:5V x1:+ red
board:D8 x1:S green

Example Arduino code — Active Buzzer Module

This example was written and compile-checked for the arduino-uno. Codey Online adapts it to any other supported board for you.

// Canonical example for Active Buzzer Module
// Connect the module: - -> GND, + -> 5V, S -> D8

const int buzzerPin = 8;

void setup() {
  pinMode(buzzerPin, OUTPUT);
  Serial.begin(9600);
  Serial.println("Active Buzzer Module demo starting");
}

void loop() {
  Serial.println("Buzzer ON");
  digitalWrite(buzzerPin, HIGH);  // Active buzzer sounds when signal is HIGH
  delay(500);

  Serial.println("Buzzer OFF");
  digitalWrite(buzzerPin, LOW);
  delay(500);
}

Related components

18650 3.7V Li-Ion Battery

18650 3.7V Li-Ion Battery

3-Channel 5V Relay Module

3-Channel 5V Relay Module

3W amplifier MAX98357A I2S DAC

3W amplifier MAX98357A I2S DAC

8-Channel Relay Module

8-Channel Relay Module

Build your Arduino or ESP32 project with AI

Describe what you want to build. Codey Online writes the code, draws the wiring diagram, compiles it and flashes your board straight from the browser.

Start for free