> For the complete documentation index, see [llms.txt](https://docs.kidscode.co.za/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kidscode.co.za/arduino-lessons/arduino-beginner-lessons/buzzer-+-push-button.md).

# Buzzer + Push Button

## What will we do

This example is an extension of the [buzzer tutorial](https://docs.kidscode.co.za/arduino-lessons/buzzer). We will now add a push button to restart the buzzer.&#x20;

## Parts List

You will need the following parts:

* **1x** arduino uno
* **1x** arduino uno USB Cable
* **1x** Breadboard
* **4x** Jumper Wire
* **1x** Piezo Buzzer
* **1x** Push button switch
* **1x** Resistors

{% hint style="success" %}
Please ensure that you have mBlock setup on you computer. Click [here](/setting-up-mblock.md) 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-M6PWGATcwRqUb5i6zZm%2F-M6PYfnVUVQ1tHgKcsws%2Fbuzzer%20%2B%20push%20button.png?alt=media\&token=eefd7647-076e-4858-9a3d-aff7f0dfbe47)

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-M6PWGATcwRqUb5i6zZm%2F-M6PYjl7mKa65uzfdzsT%2Fbuzzer%20%2B%20push%20button%20code.png?alt=media\&token=c3d34839-eff6-44fb-9506-338bd13330ba)

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