Piano Game

by 809574 in Circuits > Arduino

13 Views, 1 Favorites, 0 Comments

Piano Game

Screenshot 2026-06-18 at 9.06.16 AM.png

Hello my name is meekaal and I have made a Piano for my computer tech summative.

Supplies

Screenshot 2026-06-18 at 9.08.03 AM.png

The materials you need would be, 4 1k Ohm resistors, 4 push buttons, one buzzer, wires and an arduino with a laptop to code.

Buttons

Screenshot 2026-06-18 at 9.09.51 AM.png

Attach the buttons to the breadboard first. One set of the button's legs extends toward the breadboard's + rail, while the other pair extends toward the breadboard's - rail.

Resistors

Screenshot 2026-06-18 at 9.13.01 AM.png

Attach a 1k Ohm resistor to each button. Attach one resistor leg, extended like a button leg, to the breadboard's blue line. Attach each resistor's other leg to the power rail's - side.

Buzzer

Screenshot 2026-06-18 at 9.15.38 AM.png

the 5th mounting whole should be where you place the buzzer one side to the + side of the power rail and one side to the - side of the power rail.

Cables.

Screenshot 2026-06-18 at 9.17.33 AM.png

Connect a jumper cord to each button. Attach it to the button's other leg in the direction of the breadboard's + side. Connect two jumper cables to the buzzer, one to the + side and the other to the - side. Like the resistors, attach the final jumper cable to the power rail's negative side.


 in the Arduino picture, connect the buttons jumper wires to pins 2, 3, 4, 6, and 8 from left to right. Attach the buzzer's jumper cable pointing in the direction of + and - to pins 11 and 13,


 to create a closed electrical circuit, connect the jumper cable from the power rail to GND.

The Code

Attached is a code that I tweeked and change the notes and the wire inputs and outputs.


I used this code and project to help me build my project as well as a youtube video.


https://www.instructables.com/LED-Piano-With-Display-That-Shows-Note-Being-Playe


https://www.youtube.com/watch?v=niiFx9eiCZk

Final Project.

After uploading the code and Making sure you'r wiring is good this is how it should look/sound.

Downloads