Question: Create a program for the Arduino that provides a game of skill. You may add to the game as you wish, but these are the

Create a program for the Arduino that provides a game of skill. You may add to the game as you wish, but these are the minimum requirements.1. Connect 8 LEDs to the Arduino, each on its own output2. Connect a button/switch to an input on the Arduino to simulate a coin deposit (which begins the game). You must use an event based interrupt to sense and respond to this input!3. Connect a button/switch to an input on the Arduino for user input to the game. You must use an event based interrupt to sense and respond to this input!4. Flash the LEDs (any pattern you like) and make sound (again, up to you) before gameplay to attract attention to the game5. Play music for the player's entertainment during the game. You must use a timer based interrupt routine for triggering the notes in the song!6. Gameplay is as follows:a. Music is played while the LEDs are toggled in an interesting pattern of your choice, to attract customers to the game.b. User inserts coin (via button press)c. The program selects one of the 8 LEDs at random to be the target and flashes it for 3 secondsd. The program then proceeds to flash one LED at a time at random, for 1 second eache. During the random flashing, the user tries to press the input button while the target LED from step 'b' happens to be on.f. If the user succeeds, a victory sound and light pattern are activated. The game is over and goes back to attracting attention.g. If the user does not succeed in 3 tries, a fail sound and light pattern are activated. The game is over and goes back to attracting attention.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!