5V Passive Buzzer

3,00 DH

Availability:

1362 in stock

Description

5V Passive Buzzer

This passive buzzer needs an external frequency signal to produce sound. Unlike an active buzzer, it has no built-in oscillator, so a controller or signal generator can set the tone.

🔧 Listed specifications

  • Nominal voltage: 5 V DC
  • Operating-voltage range: 3–5 V DC
  • Rated current: <30 mA (as listed)
  • Sound: depends on the input signal
  • Resonant frequency: approximately 2,300 Hz
  • Pin count stated in the listing: 2 (VCC and GND)
  • Compact format suitable for breadboards and PCBs

⚙️ How it works

A passive buzzer converts an alternating electrical signal into sound. An Arduino can generate different tones using tone(), allowing the pitch and pattern to be controlled in software.

💡 Applications

  • Alarms and security circuits
  • Audible indicators for electronic equipment
  • Portable and embedded projects
  • Electronic toys
  • Simple melodies and notifications

📌 Connection note

The source listing describes a two-pin VCC/GND part, but its Arduino examples also use a separate signal connection. Check the actual item’s markings and pin count before wiring: connect only as supported by the supplied buzzer/module. Do not connect an assumed signal pin or apply 5 V directly to a microcontroller I/O pin unless the hardware is designed for it. If the item is a bare two-lead buzzer, use a suitable driver circuit and observe polarity where marked.

🔌 Arduino Uno example: one tone

Use an appropriate buzzer connection for the specific hardware. The original example is preserved below.

#define BUZZER_PIN 8


void setup() {
  pinMode(BUZZER_PIN, OUTPUT);
}


void loop() {
  tone(BUZZER_PIN, 1000); // Génère une fréquence de 1000 Hz
  delay(1000); // Attendre 1 seconde
  noTone(BUZZER_PIN); // Arrête le son
  delay(1000); // Attendre 1 seconde
}

What the basic code does

The sketch generates a 1,000 Hz tone for one second, followed by one second of silence, in a repeating loop.

Components listed for the basic example

  • Arduino Uno
  • 5 V passive buzzer module
  • Connecting wires

Code overview

  • Setup: Configures the buzzer control pin as an output.
  • Main loop: Uses tone() to generate a selected frequency and noTone() to stop it.

Connections shown by the example

  • GND: Arduino GND
  • Signal: Arduino D8

🎵 Advanced Arduino example: simple melody

The original melody example is preserved below.

#define BUZZER_PIN 8


void setup() {
  pinMode(BUZZER_PIN, OUTPUT);
}


void loop() {
  tone(BUZZER_PIN, 440, 500); // Note A4
  delay(500);
  tone(BUZZER_PIN, 494, 500); // Note B4
  delay(500);
  tone(BUZZER_PIN, 523, 500); // Note C5
  delay(500);
  noTone(BUZZER_PIN); // Arrête le son
  delay(1000); // Attendre 1 seconde
}

What the advanced code does

The sketch plays notes at 440 Hz, 494 Hz and 523 Hz, with pauses, then repeats the sequence.

Components listed for the advanced example

  • Arduino Uno
  • 5 V passive buzzer module
  • Connecting wires

Code overview

  • Tone generation: Calls tone() with different frequencies.
  • Timing: Uses delays to set note durations.
  • Silence: Calls noTone() between sequences.

Connections shown by the example

  • GND: Arduino GND
  • Signal: Arduino D8

Active vs. passive buzzer

  • Active buzzer: Includes an oscillator and can make a basic tone when powered with DC.
  • Passive buzzer: Needs an external oscillating/audio-frequency signal, which lets the controller vary the tone.

Product-listing pin and wiring details can vary between a bare buzzer and a buzzer module. Verify the supplied part before connecting it, and use a transistor driver if the buzzer current exceeds the microcontroller pin’s safe output capability.

Thank you for your loyalty!

EN