Skip to content

Buzzer

Active or passive buzzer with configurable type

Buzzer component

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.

PinDirectionDescription
+TopPositive / Signal input
-BottomNegative / Ground
OptionTypeDefaultDescription
typeSelectPassiveBuzzer type — passive requires an external oscillating signal; active has a built-in oscillator
InputRangeDescription
frequency0+Tone frequency in Hz. Set to 0 to mute
volume0–100Volume as percentage. Set to 0 to mute
  • Tone generation relies on the browser’s Web Audio API
  • Simultaneous buzzer instances may be limited by browser audio policies