Buzzer
Active or passive buzzer with configurable type
Overview
Section titled “Overview”The Buzzer is a sound-producing component that uses the Web Audio API to generate audible tones in the browser. It can be configured as either active (built-in oscillator) or passive (requires external frequency signal).
It accepts a frequency (Hz) and volume (0–100%) as inputs. When both are above zero, the buzzer emits a square-wave tone at the specified frequency. A small overlay displays the current frequency and volume while active.
| Pin | Direction | Description |
|---|---|---|
+ | Top | Positive / Signal input |
- | Bottom | Negative / Ground |
Configuration
Section titled “Configuration”| Option | Type | Default | Description |
|---|---|---|---|
type | Select | Passive | Buzzer type — passive requires an external oscillating signal; active has a built-in oscillator |
Data Inputs
Section titled “Data Inputs”| Input | Range | Description |
|---|---|---|
frequency | 0+ | Tone frequency in Hz. Set to 0 to mute |
volume | 0–100 | Volume as percentage. Set to 0 to mute |
Limitations
Section titled “Limitations”- Tone generation relies on the browser’s Web Audio API
- Simultaneous buzzer instances may be limited by browser audio policies