Hello Everyone!
I'm a programming newbie and i've been working on this project for the past couple of days. I'm at the point where im developing a proof on concept to take into a larger scale in the future. I'd love some input as how to best execute this, as i'm figuring out my basic(and growing!) understanding of the arduino programming language isn't quite enough to knock this project out on my own. Any input or help would be greatly appreciated!!
Here is the application im using this in:
- Paintball games start with a 10 second count down after both teams acknowledge they are ready.
- After 10 seconds, a horn sounds and the game starts. The game lasts 5-minutes.
- Each team has a button/buzzer at their start gate. if one team hits the other's buzzer within the 5-minute period, the game ends.
Here is what i want the program to do:
- Each team has a buzzer/button at their start gate as usual.
- Each team hits their own button to signify they are ready. (i do not want both teams to have to hit their buttons simultaneously).
- Once the program detects both teams are ready, i want it to play 10 beeps(the 10 second start timer), sound a horn, and then i want it to start a 5-minute timer.(ideally this could be interrupted at any time, but not necessary)
- During the 5-minute timer, i want any button press to stop the clock and reset back to the waiting state.(meaning the game is over, wait for the next game)
- If the 5-minute timer expires without a button press, then the system resets. (waiting for both teams to ready-up again)
Some additional thoughts:
- I have this rigged up, very roughly, using a bread board, some LEDs, and a piezo speaker.
- The real world application will involve different parts obviously, but i'm not concerned about that quite yet.
- I've put together a rough version of what i have so far. As you can see it's a very basic sketch, but it's stuck in a loop after the 10 second timer that i can't figure out how to get out of.