After VGA Pong, I have reproduced another color version of classical game for Arduino Uno and a VGA monitor:
The link for the video is here
...and here the link for the code.
It is for a single player, it has four colors and a resolution of 120 x 60 pixels. As before, my goal is to avoid any special shield or support IC.
You just need few resistors, a DSUB15 connector (the classical VGA one) and four buttons.
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Instructions to Built Your Own Color Snake With Arduino
Once you have the code uploaded an an Arduino Uno (I have Rev. 3 and IDE 1.6.4) without errors, you can start to build your own "console".
- an Arduino Uno Rev.
- a DSUB15 Connector, i.e. a VGA female connector or a VGA cable to be cut.
- resistors: 2 x 68 Ohm; 2 x 470 Ohm and 4 x about 1 to 2 kOhm
- four buttons
- some piece of cable
- facoltative: a PC board to hold the pieces together and create your own shield
- facoltative: pins to connect the shield to the Arduino
Connect everything following the upper schematic.
For more details, you can read this post in the Arduino Forum.