Piano Game
Hello my name is meekaal and I have made a Piano for my computer tech summative.
Supplies
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
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
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
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.
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
Downloads
Final Project.
After uploading the code and Making sure you'r wiring is good this is how it should look/sound.