Skip to content
A

Buzzer / Piezo

Controlling Active Buzzer Buzzer / Piezo with Arduino Uno

What is the Active Buzzer?

A buzzer with a built-in oscillator — just apply power to get a fixed-tone beep, no PWM signal generation required.

Specifications

Operating voltage3V - 5V DC (5V typical on breakout modules)
Current draw~25-30 mA
ToneFixed frequency, ~2-4kHz — set by the buzzer's internal oscillator, not by your code
ControlDigital HIGH/LOW only — a plain digitalWrite() is enough, no tone() or PWM needed

Active Buzzer Pinout

PinNameDescription
1VCCPower, 3V-5V DC
2GNDGround
3I/OSignal input — HIGH turns the tone on, LOW turns it off

Easy to tell apart from a passive buzzer without a multimeter: tap 5V straight to the pin briefly — an active buzzer beeps immediately, a passive one just clicks.

Setting Up Active Buzzer with Arduino Uno

Wiring

Component pinArduino Uno pinNote
VCC5V
GNDGND
I/OD8Any digital pin works — this is a plain HIGH/LOW signal, not PWM

Example code

C++

This is an active buzzer (built-in oscillator) — do not use tone(), which is for passive buzzers that need a driven frequency. A plain digitalWrite HIGH/LOW is all it needs, and driving it with tone() will not change the pitch.

Related Guides & Projects