I am working on a project for grade 10 computer science. I am supposed to make a piano that has 7 keys using a capacitive sensor, and the piano is supposed to teach you songs like Twinkle Twinkle Little Star by illuminating the LED corresponding with that key and then playing that tone on the speaker. There is also a "random scales" part where you are timed and have to press the keys as fast as you can as they light up. Unfortunately, I have come into a few problems.
- I ran out of outputs and have to use a shift register. I have no idea on how to control each of the outputs.
- When the game starts I want there to be 2 options a song and a random scales using
randomSeedhowever I have NOT found a way for them to pick which option. I think I can do user input by typing or by them just pressing a key but I am not sure. - I am pretty new on Arduino so anything helps.
Finally I am using the Arduino Uno and that is why I am short pins because I have 1 gnd 1 speaker and the rest key inputs.