How to make a piano using Arduino Uno ( very easy)

In this article, I am going to describe to you, how you can make a mini-musical piano using Arduino Uno. It is very easy to make & minimum components have been used for it.

You need to make

  • Arduino UNO
  • 4X4 keypad matrix
  • Small speaker
  • Male to male jumper wire
  • 9 Volt Battery

Connection

Connect speaker to Arduino Digital pin 11 & Gnd.

Arduino connection

4X4 keypad connect to Arduino pin 9-8-7-6-5-4-3-2

9-8-7-6 is Row pins of Keypad

5-4-3-2 is Column pins of keypad

Connection Diagram

Upload code to Arduino Uno

At first, you need to add a keypad library in Arduino IDE . Download the keypad .Zip library from here then add it to Arduino IDE. To add library open Arduino IDE then go to Sketch > Include library > Add .Zip library. now select which library you have downloaded.

Download code from here & upload it to Arduino IDE

Video tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *