Arduino Tutorial : Mini Piano





Introduction: Arduino Tutorial : Mini Piano

About: Passion towards Robotics and Electronics

Arduino Tutorial: Mini Piano

In this video, I show you how to make a mini piano using Arduino.

Step 1: Parts and Material

The Parts which we need are :

* Arduino

* Piezo Buzzer

* Push Buttons - 7

* Jumper Cables

Step 2: Connections

The Buttons are connected to D4 to D10 of the Arduino

The Piezo Buzzer -> D11 of the Arduino

Step 3: The Code

Before you can start playing your piano, you will need to obtain and install the Tone Arduino library if it is not already installed. This can be downloaded from Github here. If you do not know how to install third-party Arduino libraries in your version of the Arduino IDE, reference this guide on Attached below, you will find a zip file that contains the Arduino code for Arduino Piano. Download it and unzip it somewhere on your computer. Open Arduino_Piano.ino in the Arduino IDE and upload the code to your Arduino.

Step 4: Play!

And that's it! You should now be able to tap on the keys and hear the corresponding notes played through the buzzer. If the note isn't accurate, you can adjust the note value in the Arduino sketch to set what value that the pitch is achieved.You can also change the scale that is played by uncommenting one of the few scales included, or make your own scale! If you make your own piano, please comment and show us some pictures and videos. We'd love to see some creative instruments!

Give a thumbs up if it really helped you and do follow my channel for interesting projects :)

Thanks for reading!



    • Oil Contest

      Oil Contest
    • Water Contest

      Water Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    4 Discussions

    why the LED configuration?

    I think this is a great project on Instructables. Its simple, doesn't require special tools or parts, it looks cool, and its musical. This is definitely a great project for someone new to Arduino, or someone looking for a project that's fun to do with kids. I'm glad you included a video to go with the project as that highlights what to expect when the project is powered up and loaded up.