Introduction: VGA Pong With Arduino Uno
I have repruduced a color version of the classic Pong running for a VGA monitor, using a bare Arduino Uno.
It is for two players and it has sound too. It has four colors and a resolution of 120 x 60 pixels.
My goal was to avoid any special shield or support IC!
I just used few resistors, a DSUB15 connector, a pair of potenziometers and buttons. The Arduino board and the others components are placed in two wood boxes. The second player paddle is connected to the main block by means of a recycled USB cable. Pictures of the whole "console" and a simple schematic are shown at the beginning of this video:
In the past I have reproduced the B&W version for TV, using the TVout libraries...
...but now, insted of the TVout library, the color Pong is done using the VGAx library recently written by Smaffer.
You can read further the details in this Arduino forum
Instructions to built your own Color Pong with Arduino
NB it seems that the VGAx library is fully compatible only with Arduino IDE 1.6.4. Older or newer versions may not work properly or work at all.
Once you have the code uploaded an an Arduino Uno (I have Rev. 3) without errors, you can start to build your own console.
- an Arduino Uno Rev. 3
- DSUB15 Connector, i.e. a VGA female connector or a VGA cable to be cut.
- four resistors: 2 x 68 Ohm and 2 x 470 Ohm
- two 10 kOhm potentiometers
- two buttons
- other two resistors (from 1 to 2 kOhm are fine)
- some piece of cable
- facoltative: an USB female plug and an USB cable for the second player, or any other connector/cable with four wires
The schematic is reported at the beginning of this Instructable, together with an overview of the finished consolle and how the game looks on my TV.
I placed the Arduino board with the VGA connector in a wood box, which holds also the first player potentiometer and button. I used a second smaller wood box for the second player and I decided to connect it to the main one by means of an USB female plug and an USB cable. You can use any other connector/cable wich contains at least four separated wires.