I am working on a game that needs an electronic push button (similar to something like the Staples Easy Button) but with custom sounds and a custom functionality for the button. This for a board game idea I am working on. I don’t need wifi or bluetooth or any other connectivity other than to load the sounds and programming.
Here’s what I am trying to do:
I want the device to be battery-powered with a power on and off button (power on/off toggle switch). When I turn it on, nothing should happen other than maybe an LED light or something. No functionality should happen until the first input from the button press activates it.
When the button is first pressed, Sound 1 (15 seconds long) would immediately start playing. If the button is pressed during this 15 second period, the Sound 1 would reset back to the beginning and immediately start playing again. This would happen often and ideally all the way until the real-time game ends over the course of 5-10 mins.
However, if the button wasn’t pressed before it ends, I would want Sound 2 (5 seconds long) to play and not be able to accept any input during that time regardless of pressing the button or not.
Then Sound 3 (10 seconds long) would immediately start playing. If players hit the button during Sound 3, then it would reset back to the beginning of Sound 1. If they did not, then Sound 4 would play for 3 seconds without any input and the process loop would stop until the next game starts back at the beginning with a new button press.
I would like to Long Press the button to “stop” the process at any time.
It would be nice to have a slider switch that would allow users to select from “easy” to “hard” (slider toggle switch?) which in essence would just change the time duration of Sound 1 from 15 seconds to 30 seconds (loop the sound file twice or play a different file twice as long) but that’s not totally necessary.
I want it to be cheap as it’s just a prototype. If it works, I would need to make 5 or 6 of these for playtesting purposes. I have 3d printers and lots of knowledge of 3d design. However, I am not that into programming and electronics though I work in IT and most of it should be relatively easy for me to pick up… but for now, treat me as a newbie when it comes to that.
I want the smallest board I can find where I can hook a sound output to a small speaker but I need the speaker to be relatively loud as people will be talking, possibly loudly, during the game session. (Maybe a volume dial underneath?)
This instructable would be ideal but they reference proprietary hardware that is no longer made.
https://www.instructables.com/Make-a-Cu … wn-Sounds/
Also, this is basically what I would buy to work with initially for the physical form factor.
https://www.amazon.com/CRTEPST-Button-D … B09N2R831W
Any feedback would be awesome on where to start. I would like to turn this project around in the next week or so and make a functional prototype as soon as possible.
Thanks again!