Don't forget to rate this 'ible!
Ok, lets go!
Step 1: Materials and Tools
-Arduino Uno (This controls the LEDs and detects when the button is pressed.) -Can be purchased form makershed.com
-USB A-B cable (Sometimes called a printer cable.) -Should come with your arduino.
-Solderless breadboard (half sized)-Can be purchased from makershed.com
-5 Leds (Four of one color, and one of another.)
-Pushbutton switch -I bought mine at Radioshack
-small resistor (more if you are worried about burning your LEDs.)
-At least 15 or so breadboard jumper wires -Can be purchased from makershed.com
-A small amount of thin cardboard. I used empty cereal box.
Step 2: Solder Jumper Wires to the Button
Step 3: Program the Arduino Board
Download the attached Arduino Sketch file.
Plugin you Arduino to your computer.
Open the sketch in the Arduino software.
Upload the sketch to your Arduino.
Step 4: Build the Circuit
Power and ground:
-Run a jumper wire from arduino "5V" pin to breadboard "+" rail.
-Run a jumper wire from arduino "GND" pin to breadboard "-" rail.
-Insert the LEDs into your breadboard as shown, with the longer leads farthest to the left. The red LED goes in the middle.
-Run wires from the each breadboard row with a short LED lead in it to the "-" breadboard rail.
-Run wires from the each breadboard row with a long LED lead to arduino pins 2 through 6.
-Run one of the buttons wires to the breadboard's "+" rail.
-Run the second wire from the button to an empty breadboard row.
-Run a wire from the same row on the breadboard to arduino pin 8.
-Run a resistor from that row to the breadboard's "-" rail.
Make sure your setup matches the pictures.
Step 5: Hide the Wires
Step 6: Test It Out!
Connect you Arduino to your computer. The LEDs should begin flashing. If not, you may have them inserted wrong. Try putting them in the opposite way. The long leads need to be on the left. Once they are flashing, you need to watch for when the middle (red) LED comes on, that is when you press the button. If you were successful, the middle light should blink on and off quickly. Now the game speeds up and the LEDs blink faster. Keep playing until you accidentally press the button when a LED other than the one in the middle is lit. The game stops. Watch and count how many LEDs light up to see your how well you did. With 5 being the best and 1 being the worst. Congratulations! You just made an Arduino game!
If you open a serial monitor from the Arduino software, you will be able to see more detailed information about your score.
Thanks for reading this Instructable all the way through! And don't forget to leave a comment if you have any questions or ideas!