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
Connect speaker to Arduino Digital pin 11 & Gnd.
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
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.