Introduction: Arduino Mini Piano

This is a Mini piano made in Arduino with Push buttons and a buzzer, can make songs or do what ever you like.

Supplies

1x Breadboard

7x Mini Push Buttons

1x 12mm Buzzer

1x Arduino Uno

Step 1: Step 1: Tinkercad Schematic

Here is the circuit in tinker cad

Not the exact same but still works and it is close to the circuit


Step 2: Step 2: Put It Together

Start off with the push buttons, place them like how I did in tinker cad then wire one of the legs of the push button to the GND (Negative Terminal -) part of your breadboard Do this to all the push buttons showed with the black wire in the tinker cad screenshot. Then Get a different color wire (Optional) and wire the other leg of the push buttons to one of the Digital Pins in the Arduino, Use numbers 4-10 for the push buttons. 1st Button being 4 and last button being 10.

After that all the push buttons should be wired and ready.

Now to wire the buzzer, You will need the 560 ohm resistor and to more wires for this one. Place the buzzer not too close to the buttons so you have space. For the buzzer the short leg is GND (-) and the other leg goes to one of the pins.

Place a wire from the short leg to the GND (-) part of the breadboard then place the resistor on the other leg. With the other leg of the resistor place a wire, and wire it to Digital pin 11.

Step 3: Step 3: CODE

Here is the code for the Mini piano, you will need "Tone" library installed in your Arduino software Hereis how to get it. You will get errors when uploading the code but it wont interfere with what you are doing.

CODE : https://0bin.net/paste/6dHiK0B2#pFW-NZewU1VzYHPoOz1K8OIO+pqg6wjRdMaH5QdrrS7