Connecting a Buzzer to an Arduino Uno

Created on: 3 September 2012

If a buzzer operates from a low enough voltage and draws low enough current, it can be interfaced directly to an Arduino Uno pin.

The buzzer used in this example can operate from a voltage between 3 to 28V and draws only 4mA of current at 12V. When the current drawn by the buzzer was measured at 5V, it was found that it only drew about 1.1mA which is well within the drive capability of an Arduino Uno pin.

Circuit Diagram

In this circuit, the positive lead of the buzzer is connected to pin 13 of the Arduino, the negative lead of the buzzer is connected to GND.

Arduino buzzer circuit diagram

Arduino Sketch

The Blink Arduino example program can be used to test the circuit. This is a program that is built into the Arduino IDE and can be found under File → Examples → 1.Basics → Blink

The Blink sketch will switch the buzzer on and off continuously.

Can't see the video? View on YouTube →

Buzzer Details

The buzzer used in this article has the part number KPEG260 and the RS Components stock number: 535-8275, the brand is Kingstate.

This is a piezo buzzer that has built in circuitry that produces the audible buzzer tone. A plain piezo disk will not work in this circuit as it does not have any circuitry to drive it, although an Arduino sketch could be written to drive a piezo disk that is connected to an Arduino pin.

Enjoy this article, project or tutorial?

You can help by donating to Starting Electronics to fund our web hosting costs and more great content.

Use the button below to donate by PayPal or Credit Card.

Comment on this article, ask questions or submit corrections below.

Use the subscribe button above to receive email notification when new comments are submitted on this article.