A Piezoelectric Buzzer uses a piezoelectric ceramic disc bonded to a metallic diaphragm. When an alternating voltage signal is applied across the disc, it bends rapidly, flexing the diaphragm to create sound waves in the air.
1. Schematic Symbol
Standard schematic symbol for a buzzer — a circle with sound-wave arcs, two polarized leads (this component's SPICE model flags reverse wiring as a real fault, so treat it as polarized like an LED):
2. Hardware Specifications & Pinout
- Operating Voltage: 3.3V to 5.0V.
- Buzzer Types:
- Active Buzzer: Contains an internal oscillator circuit. Applying static DC voltage (HIGH) produces a fixed tone (~2 kHz).
- Passive Buzzer: Has no internal oscillator. Requires an external square wave (PWM signal) to produce tone frequencies (typically 20 Hz to 20,000 Hz).
- Pin Configuration:
- Positive (+ / SIG): Connected to a PWM-capable GPIO pin.
- Negative (- / GND): Connected to Ground.
3. How it Works (Frequency Synthesis & Note Conversion)
- Tone Generation: Sound pitch is controlled by square wave frequency:
- Musical Note Mapping: Musical notes correspond to standard equal-temperament frequencies ():
| Note | Frequency | Note | Frequency | Note | Frequency |
|---|---|---|---|---|---|
| C4 (Do) | 262 Hz | E4 (Mi) | 330 Hz | G4 (Sol) | 392 Hz |
| D4 (Re) | 294 Hz | F4 (Fa) | 349 Hz | A4 (La) | 440 Hz |
| B4 (Ti) | 494 Hz | ||||
| C5 (Do↑) | 523 Hz |
4. Component Properties (Property Inspector)
- Frequency (
frequency): The pitch the simulator's Web Audio oscillator plays while the buzzer is powered.- Default:
2500Hz - Range:
100Hz to8000Hz (step size100Hz)
- Default:
[!NOTE] There's no "Sound Volume" or "Mute" property — those don't exist on this component. In MicroPython projects, every block below now drives this Frequency property live as your code runs — playing a
262Hznote actually sounds like 262Hz. In C++ (Arduino-core) projects, this still isn't wired up yet — the oscillator keeps playing at whatever this property is manually set to (2500Hz by default), regardless of what pitch your compiled code requests. See Section 6 for the practical workaround on C++ projects.

