Starting Electronics needs your help! Please make a donation to help cover our hosting and other costs. Click the donate button to send a donation of any amount.

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 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.

Books that may interest you:

C Programming with Arduino Book Ultimate Arduino MEGA 2560 Hardware Manual Ultimage Arduino Uno Hardware Manual