# Buzzer

## What will we do

This example will show you how to wire up a buzzer and play a sound.

## Parts List

You will need the following parts:

* **1x** arduino uno
* **1x**  arduino uno USB Cable
* **1x** Breadboard
* **2x** Jumper Wire
* **1x** Piezo Buzzer

{% hint style="success" %}
Please ensure that you have mBlock setup on you computer. Click [here](https://docs.kidscode.co.za/setting-up-mblock) to setup mBlock
{% endhint %}

You purchased your Arduino kit from [here](https://www.robofactory.co.za/arduino-kits/66-arduino-uno-r3-basic-starter-kit.html)

{% embed url="<https://www.robofactory.co.za/arduino-kits/66-arduino-uno-r3-basic-starter-kit.html>" %}

## Wiring it up

![](https://1854716099-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LskXJjPT2bXMIodrtZq%2F-M6PUI7Rw78wyY-sriVE%2F-M6PWD-XaglCAWCEkGyi%2Farduino%20-%20buzzer.png?alt=media\&token=71e7e155-738a-4da4-b724-11a057681f3c)

Ensure that the buzzer are the right way around, with the positive lead to the left.

## Block Coding <a href="#block-coding" id="block-coding"></a>

![](https://1854716099-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LskXJjPT2bXMIodrtZq%2F-M6PHk-NPMejaejAmPdb%2F-M6PT6ONvxHtboYJs59o%2Farduino%20-%20buzzer%20code.png?alt=media\&token=a3143a95-7e95-4eac-953f-ee84e0d82b1a)

{% embed url="<https://ide.mblock.cc/#/?cloudProjectId=218898>" %}

## &#x20;<a href="#block-coding" id="block-coding"></a>
