Description
Piezo Buzzer
Piezo buzzers use a piezoelectric ceramic element to produce sound when driven by a voltage signal. Choose a diameter of 15, 20, 35 or 50 mm. The source says an external signal is required to generate sound, allowing the tone to be controlled by a microcontroller such as Arduino.
Specifications by diameter
- 15 mm: resonance 4.1 kHz; impedance 1000 Ω; capacitance 8000 pF at 1 kHz; operating temperature −20 to +60 °C
- 20 mm: resonance 6.5 kHz; impedance 350 Ω; capacitance 13000 pF at 120 Hz; operating temperature −20 to +70 °C
- 35 mm: resonance 2.8 kHz; impedance 300 Ω; capacitance 30000 pF at 100 Hz; operating temperature −20 to +60 °C
- 50 mm: resonance 2.6 kHz; impedance 300 Ω; capacitance 40000 pF at 100 Hz; operating temperature −20 to +60 °C
These are source-listed values for the respective sizes; verify the selected part’s datasheet. The listing gives VCC/GND pins and a 3–30 V supply range, while its Arduino examples use a 5 V buzzer and a separate signal pin. Confirm the exact variant and wiring before applying power.
Applications listed
- Alarm systems
- Audible indicators for electronic equipment
- Musical instruments
- Portable equipment
Basic Arduino Uno example
Connect VCC to Arduino 5 V, GND to GND and the signal lead to D8, as described in the example. Do not exceed the voltage/current ratings of the selected buzzer or Arduino output.
#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 example does
It generates a 1000 Hz tone for one second, followed by one second of silence, repeating continuously.
Parts for the basic example
- Arduino Uno
- 5 V piezo buzzer
- Jumper wires
Code overview
- Sets the buzzer pin as an output.
- Uses
tone()to produce the selected frequency andnoTone()to stop the sound.
Basic wiring
- VCC: Arduino 5 V
- GND: Arduino GND
- Signal: Arduino D8
Advanced Arduino example: melody
#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 example does
It plays a short sequence using different frequencies: A4, B4 and C5, with pauses between notes.
Parts for the advanced example
- Arduino Uno
- 5 V piezo buzzer
- Jumper wires
Code overview
- Uses
tone()to generate the notes. - Configures the buzzer pin as an output.
- Plays each note with a delay, then stops the tone.
Advanced wiring
- VCC: Arduino 5 V
- GND: Arduino GND
- Signal: Arduino D8









