A few months ago, I was introduced to the Arduino. The Arduino is a great little prototyping platform, but it has a limited number of I/O pins in the standard Duemilanove flavor. Well, I got my hands on an Arduino Mega tonight, the big brother of the Arduino Duemilanove, so I decided to make something with it. What I came up with is a little game called GameChuck.
GameChuck works by lighting an LED that corresponds to a button a Wii Nunchuck. The player, with a Wii Nunchuck in hand, must press that corresponding button within two seconds. (Here, the four corners of the joystick are considered buttons.) If the player fails to do this, he looses the game. The player also looses the game if the wrong button is pressed. To make the game even more challenging, the time window to hit the right button decreases over time. The goal is simply to get the highest score.
- Arduino Mega with ATmega1280 microcontroller
- Wii Nunchuck controller with six buttons
- Six LEDs as button indicators
- Two seven-segment displays for score keeping
- Piezoelectric speaker
- Potentiometer for brightness control
- Reset button to play again and again
To see the game in action, check out the YouTube video above. I’m not going to post a full tutorial of this game, but interested soul could piece together the circuit from the picture above. Also, I have provided a zip file containing the source code below. The code isn’t very clean, however; I threw this whole project together in only a few hours. Well, I hope you liked it!