Mini piano using arduino ( very easy)

In this article, I am going to describe to you, how you can make a mini 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 of mini piano

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

2 Comments

  1. Hello! I have a question: the wires soldered to the speaker can be male to male jumper wires like the ones connected to the keyboard? Or do I need a different type of wire?

Leave a Reply

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