Description
5V Passive Buzzer Module
This passive buzzer module requires an external oscillating signal to produce sound. The controller can vary the frequency to create different tones and simple melodies.
🔧 Listed specifications
- Rated voltage: 5 V DC
- Operating-voltage range: 3.5–5.5 V DC
- Rated current: 30 mA at 5 V
- Sound: depends on the input signal
- Resonant frequency: 2,500 Hz ±300 Hz
- Sound level: 85 dB at 10 cm
- Operating temperature: −20 °C to 70 °C
- Compact format suitable for breadboards and PCBs
⚙️ How it works
The piezoelectric element converts a varying electrical signal into sound. A microcontroller such as Arduino can generate the signal using tone(), allowing software to control the pitch and timing.
💡 Applications
- Alarms and security systems
- Audible indicators for electronic equipment
- Portable and embedded projects
- Electronic toys
- Simple melodies and notifications
📌 Pinout
- VCC: supply input, listed range 3.5–5.5 V
- GND: ground
- Signal (S): variable signal input
The listing specifies 30 mA at 5 V. Use a transistor or suitable driver if the module’s input current is above the safe output capability of the microcontroller pin. Keep the Arduino and module grounds common and do not exceed the stated supply range.
🔌 Arduino Uno example: 1 kHz tone
The original basic 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, and repeats.
Components listed for the basic example
- Arduino Uno
- 5 V passive buzzer module
- Connecting wires
Code overview
- Setup: Configures the buzzer signal pin as an output.
- Main loop: Uses
tone()to produce the selected frequency andnoTone()to stop it.
Connections shown by the example
- VCC: Arduino 5 V (within the module’s listed range)
- GND: Arduino GND
- Signal: Arduino D8
🎵 Advanced 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
- Frequency: Calls
tone()with different note frequencies. - Timing: Uses delays to control note duration.
- Silence: Calls
noTone()to stop the sound between sequences.
Connections shown by the example
- VCC: Arduino 5 V (within the module’s listed range)
- GND: Arduino GND
- Signal: Arduino D8
Active vs. passive buzzer
- Active buzzer: Includes 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 actual module labels before wiring and use a suitable driver if needed. Never exceed the specified voltage or the safe current limit of the controller output.









