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
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
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
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?
yes,you can use any jumper wire for it