Piezo Buzzer
A piezoelectric speaker that produces tones, melodies, and audio feedback from your Arduino.
Overview
The piezo buzzer converts electrical signals into sound using a piezoelectric crystal. It can produce single tones at specific frequencies, play note sequences, or generate alert sounds. ArduinoStudio supports custom frequency, duration, and full song sequences.
There are two types: passive buzzers (require a frequency signal — more versatile) and active buzzers (have a built-in oscillator — just toggle HIGH/LOW). ArduinoStudio works with both.
Specifications
| Parameter | Value |
|---|---|
| Frequency Range | 20Hz – 20kHz |
| Operating Voltage | 3.3 – 5V |
| Type | Passive (recommended) or Active |
| Sound Output | ~85dB at 10cm |
Wiring Guide
| Buzzer Pin | Arduino Pin |
|---|---|
| Positive (+) | Any digital pin (PWM for tone control) |
| Negative (−) | GND |
No resistor is needed. For passive buzzers, the Arduino generates the frequency using PWM. For active buzzers, simply set the pin HIGH to sound and LOW to silence.
Usage in ArduinoStudio
Drag the Piezo component onto the canvas and assign a digital pin. Available actions include:
- Tone — play a specific frequency for a set duration
- Note — play a musical note (e.g., C4, A4, G5)
- Song — play a sequence of notes with timing
- No Tone — stop any currently playing sound
Pair with buttons or sensors to create interactive sound effects, alarms, or musical instruments.