I have an interactive game/display that is running off of an Arduino Mega, an Arduino Uno and an Adafruit Waveshield that needs some debugging in the code. I am looking for someone that can troubleshoot and revise the sketches for more consistent game play.
This is an interactive game for children to learn about underground pipelines. The display has two main parts: a wall map and a console. The wall map consists of a map graphic showing underground pipelines/destinations along the route and has 28 individual pipeline circuits, 7 destination circuits and 1 logo circuit for LED lighting. The console consists of a speaker for audio, an illuminated start button, 12 "answer" buttons and 2 seven segment displays to show the correct answer (number of days).
Here is how the game works: The player presses the illuminated start button to start the game. The start button light will turn off and one of six random questions asking "how many days it takes fuel to travel from one destination to another destination through the pipeline" will play through the speaker (audio is handled by an Adafruit Waveshield) at the same time the start and end destinations will light up on the map. The player has a limited time to select an answer. If after 5 seconds there is no answer received then the game will end, and the start button light turns on waiting to start a new game cycle. If the player answers the question within the 5 second window by pressing one of twelve answer buttons then the correct answer is revealed: lights on the map pipeline will then light up sequentially along the route to the end destination while progress sounds are played. When the end destination is reached the company's logo will illuminate on the wall map, the correct number of days will blink on the seven segment display and either a winner or loser audio clip will play depending on if the player selected the correct answer or not. The lights on the map and seven segments will turn off, the display will reset and the start button will illuminate again.
The game is working correctly except for a few bugs in the Arduino sketches: Most of the time the audio plays, but occasionally the audio does not. On the next game cycle the audio plays as expected. When a player enters an answer the result is to be played immediately. Most of the time the result is played immediately but sometime there is a several second delay.
Please see attached .pde files for the current sketches we are running.