Piano with Arduino

In this project, we’ll see how to make a piano with Arduino. For this, we’ll use push buttons. Each push button has its own note. We’ll see how to change the notes and add more as well.

Required materials

Now, here are the materials needed for the project:

  • An Arduino Uno board

  • A buzzer

  • 8 push buttons

  • 8 resistors, 10 kilo-ohms each

  • Jumper wires

What are the resistors for?

Resistors are used as pull-up resistors to prevent a floating (high-impedance) state when the push button is pressed. For more information about the floating state, you can check out our course on the topic.

How does the buzzer work?

We will also use a buzzer that produces sound from an analog input. Depending on the voltage across the buzzer, it will emit different sounds.