Arduino Tutorial : Mini Piano

About the project

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

Project info

Difficulty: Moderate

Platforms: Arduino

Estimated time: 1 hour

License: GNU Lesser General Public License version 3 or later (LGPL3+)

Items used in this project

Hardware components

Arduino uno Arduino uno x 1
Switched JST-PH 2-Pin SMT Right Angle Breakout Board Switched JST-PH 2-Pin SMT Right Angle Breakout Board x 7
330ohms resistor 330ohms resistor x 7

Software apps and online services

arduino ide arduino ide


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: 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!

Working of the Project

Schematics, diagrams and documents


I had explained in the video. Kindly refer


Arduino Tutorial : Mini Piano

The Code is attached


Photo of the lonely programmer

the lonely programmer

Passionate Techie ! Robotics | Electronics | Programming Hey Geek! If you are in search of electronics projects, Arduino based projects or any Micro-controller based projects, this channel is for you. In this channel, we build electronics projects using the impressive and low-cost boards that are available today. If you are a maker or if you want to learn how to make your own Arduino projects and other interesting Robots, do subscribe the channel to be a part of this community. We develop our own hardware and software projects and will try to build something new. Don’t worry if you don’t know how to program. I'll share the algorithm if you face any difficulties.


Leave your feedback...