Codey OnlineArduino- & ESP32-componentenbibliotheek › Active Buzzer Module
Active Buzzer Module
Output

Active Buzzer Module

Actieve buzzer. Gebruik altijd de S-pin om geluid te activeren.

Breedte: 32.4 mm

Pinout — Active Buzzer Module

Pin Signaal Beschrijving
- ground
+ power VCC positive 3.3V to 5.5V
S digital 3.3V to 5V signal

Voorbeeld-aansluitschema — Active Buzzer Module

Van Naar Draad
board:GND x1:- black
board:5V x1:+ red
board:D8 x1:S green

Voorbeeld-Arduinocode — Active Buzzer Module

Dit voorbeeld is geschreven en compile-gecheckt voor de arduino-uno. Codey Online past het voor je aan naar elk ander ondersteund board.

// 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);
}

Vergelijkbare componenten

3W amplifier MAX98357A I2S DAC

3W amplifier MAX98357A I2S DAC

⚙️

LED

LED Matrix Module MAX7219

LED Matrix Module MAX7219

Passive Buzzer Module

Passive Buzzer Module

Bouw je Arduino- of ESP32-project met AI

Beschrijf wat je wilt bouwen. Codey Online schrijft de code, tekent het aansluitschema, compileert het en flasht je board rechtstreeks vanuit de browser.

Gratis starten