# 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

## Wiring it up <a href="#wiring-it-up" id="wiring-it-up"></a>

![](https://gblobscdn.gitbook.com/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://gblobscdn.gitbook.com/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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.arduinosa.co.za/blocking-coding-lessons/beginner-lessons/buzzer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
