Mini Piano With Arduino

by Word in Circuits > Arduino

113 Views, 2 Favorites, 0 Comments

Mini Piano With Arduino

IMG-0717.JPG

So, this is a tutorial on how to make a mini piano


Supplies

IMG-0670.JPG
  1. Arduino 2. Wires 3. Buzzer 4. Pushbutton 5. Breadboard(generic)

IMG-0672.JPG

Parts and Material

The parts that we need are -

* Arduino

* Piezo Buzzer

* Push Buttons - 7

* Jumper Cables 

IMG-0720.JPG

Connections -

The Buttons are connected to D4 to D10 of the Arduino

The Piezo Buzzer -> D11 of the Arduino 

Before you cant start to play your piano, you have to get and intsal the Tone Arduino library if it isnt installed. This can be downloaded from github. If you do not know how ot install third-party arduino libraries in your version on IDE, reference this guide on Arduimo.cc attached bellow, you will fina zip file that contains the code for the Arduino Piano. Download it and unzip it somewhere on your computer. Open Arduino_Piano.ino in the arduino IDE an dupload the code to your arduino.

Downloads

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.

Downloads