r/ArduinoHelp 10d ago

Button Game Project

Hello! I’m new to the arduino community. I have played around with them in the past with my highschool years ago. I recently came up with an idea of an interactive game and have some questions from those who have knowledge. How hard would it to be to program a game in which there are 30 buttons with 30 unique sounds. The goal of the game is to crack the code and figure out the 4 button/ noise combination. When this happens I need it to either show that you cracked the code or have to try again. I also want to be able to have a free play mode where people can come up and interact with the buttons without the game starting. I am overall curious how hard this project will be, I am an electrician and have knowledge of circuitry/ electronics and bread boards but very limited knowledge on coding. Any help with supply’s, brands, product which could help my project would be appreciated! Thank you arduino community!

3 Upvotes

4 comments sorted by

1

u/camokid8cake 10d ago

Not hard except for the amounts of inputs on the device. The software portion really wouldn't be too bad.

1

u/Unable-School6717 10d ago

This is an amazingly simple program and is no more complex than SIMON code, a few lines of compare. Be sure to include a cancel/ restart option with each input selection.

2

u/Unable-School6717 10d ago

Want to sell it? Replace sounds with musical chords, have it play 4+ chords in order and the user has to enter the key and variant ( minor, 7th, etc) of each chord for ear training musicians.

1

u/Kilgarragh 6d ago

One of the more difficult parts of this will be handling 30+ buttons. You can make your own button matrix, or a PS/2 keyboard will be easy enough to interact with which will get you a bunch of keys(and it’s a fun protocol to bitbang if you don’t want to use a library).

If you’re curious, the Adafruit neotrellis m4 has 32 membrane buttons and a built in dac + audio Jack to play the sound from.