A while back the instructables robot made a post on Facebook about some guys who played pong on an Arduino (http://wayneandlayne.com/projects/video-game-shield/games/#pong)
but after looking around, i saw that everyone who did this was only worried about making it work. and often resulted as a very hard to use system with only potentiometers to use as controllers. so in my attempt at this, i decided that it needs to be much more polished if it is ever to be something of use. so heres how i did it:

UPDATE! ive managed to shink it down into an entire atari themed mint tin! check it out here 

Step 1: get the stuff.

so to do this, we are going to need a couple of things.
first off, we obviously need an Arduino, we are also going to need an atari joystick, a rs232 socket, a rca jack,  1Kohm resistor and a 330 ohm resistor, a switch for power, and something to cram all the guts into , i decided to use a busted digital tv receiver as my enclosure  
<p>I have fix the old TVOUT libraries and I have port the code into the current version. </p><p>Some code modifications applied, also I have modify the code to replace the joystick with two potentiometers (one per user ).</p><p>New version of code is here: <a href="https://codebender.cc/sketch:86128" rel="nofollow">https://codebender.cc/sketch:86128</a></p>
<p>kyle, this is a good post..many thanks...</p>
Can you use buttons?
Could you point out in the code where to change it? I can't seem to find it.
Also, why do you need the serial monitor?
honestly i did this 4 years ago, i dont remember much of the details associated with it <br>
Would I be able to use the Arduino to burn the game into the ATmega328 so I don't have to connect the whole thing to the computer each time I want to play the game? <br>
actually after the code is uploaded, its never really connected to the computer after that
This should have been implemented to use pots, everyone has potentiometers not everyone has the joysticks you use.I have got pong on my screen but cant move the paddles.
Can we use a pot instead?
This is very cool; well done. I am diggin' this. ... it's been a very long time since I've played Pong so I might be mistakin' because I was about 7 and now I'm in my mid 40's... but if I do remember correctly, the original Pong game came with knobs that basically worked like potentiometers. they looked a lot like over-sized dimmer switches for regular home lighting but they were black if memory serves me right. ... so this might be why when a lot of other people do a home-made Pong they use potentiometers.
You could use a Commodore 64 controller if you don't have an Atari one but you do have a C64 one. A Sega MegaDrive/Genesis controller MIGHT work, but that would need to be a official SEGA one, and even then i'm not sure.
Sega and most joystick producers followed the layout that Atari used, you could plug a megadrive/genesis controller into an Atari2600 and it'd work fine, so there shouldnt be any issues here I'd think.
Why a 330 ohm, the image on the tv_out page has a 470
is there anyway of making it single player?
I cant get my arduino to output a tv signal ive tried every sketch i could find tried diferant version of the library and every tv in my house but i dont get any signal i was close one it showed text then went white diamond to black then repeats so i almost had it just it was off
can you use a sega genies controller and a serial cable<br>
yes, you can use a sega master system controller too
I have a question. Does the controller output a analog or digital signal. If it outputs a analog why put it on pin6 and pin7 for an input. If it is a digital then its ok. And one more thing, will this damage the arduino. Please answer this, i really want to build this. Thanks for the instructable its awesome. :)
the atari controller doesnt output a signal. it's basically just 6 momentary switches. No ics or anything of that sorts.
Hey, I was able to get my arduino to display imagines on my tv, but I'am unable to get the pong code compiled I get this error:<br><br>sketch_apr24b.cpp: In function 'void drawGameScreen()':<br>sketch_apr24b:100: error: 'class TVout' has no member named 'vert_res'<br>sketch_apr24b:101: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:107: error: 'class TVout' has no member named 'vert_res'<br>sketch_apr24b:114: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:115: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:118: error: 'class TVout' has no member named 'vert_res'<br>sketch_apr24b:119: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:119: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b.cpp: In function 'void drawMenu()':<br>sketch_apr24b:145: error: '_8X8' was not declared in this scope<br>sketch_apr24b:146: error: 'class TVout' has no member named 'print_str'<br>sketch_apr24b:148: error: '_5X7' was not declared in this scope<br>sketch_apr24b:149: error: 'class TVout' has no member named 'print_str'<br>sketch_apr24b:150: error: 'class TVout' has no member named 'print_str'<br>sketch_apr24b:151: error: 'class TVout' has no member named 'print_str'<br>sketch_apr24b:152: error: 'class TVout' has no member named 'print_str'<br>sketch_apr24b:157: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:158: error: 'class TVout' has no member named 'vert_res'<br>sketch_apr24b.cpp: In function 'void setup()':<br>sketch_apr24b:186: error: 'class TVout' has no member named 'start_render'<br>sketch_apr24b:188: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:189: error: 'class TVout' has no member named 'vert_res'<br>sketch_apr24b.cpp: In function 'void loop()':<br>sketch_apr24b:203: error: 'class TVout' has no member named 'vert_res'<br>sketch_apr24b:208: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:220: error: 'class TVout' has no member named 'horz_res'<br>sketch_apr24b:230: error: '_8X8' was not declared in this scope<br>sketch_apr24b:231: error: 'class TVout' has no member named 'print_str'<br>sketch_apr24b:232: error: 'class TVout' has no member named 'print_str'<br>sketch_apr24b:237: error: '_5X7' was not declared in this scope<br><br>Any help would be appreciated, Thank you for sharing this with everyone!
I had that same error, this game requires a version of TVOut before beta 1, i copied my arduino ide folder to another location and put the older library in it, so i can choose witch one to use
Thanks I got it to work! Now I'm going to try to modify the new code for the Wayne and Layne Pong for the Atari controller.
I tried using the Atari paddles, but they never worked for me, mabey i didnt have the right pin-outs.
Kyle,<br>I have just published an Instructable of my version of the Ardu Pong. Thanks. I hope I gave you the proper credit.
is arduino a game system? i have heard about a lot of hacks using it, and was very confused.
read all about it here :<br>http://www.arduino.cc/<br>its called a microcontroller, essentially its like a small computer on a chip that you can program the pins of that chip to do whatever you want them to do
on the old version, no problem, just tie in another db9 connector to the arduino and assign the other controller to the correct pin(you decide that part) .
thank you! I like this news, I also have information to share, here is my message.we sale 60%-80% discount <br><a href=" http://www.mbts.es/">mbt</a> <br><a href="http://www.ugg-boot.nl/">ugg boots</a> <br><a href="http://www.ugg-boot.nl/">cheap uggs</a> or <br><a href="http://www.ugg-boot.nl/">uggs</a> or <br><a href="http://www.ugg-boot.nl/">ugg</a> or <br><a href="http://www.fr-tiffany.com/">tiffany</a> or <br><a href="http://www.abercrombiefitchcloth.com/">Abercrombie</a> <br><a href="http://www.monclerjeans.com/">moncler</a> or <br><a href="http://www.aboutcl.com/">christian louboutin</a> or <br><a href="http://www.aboutcl.com/">cheap christian louboutin</a> <br><a href="http://www.aboutcl.com/">christian louboutin shoes</a> or <br><a href="http://www.airmaxtop.com/">air max shoes</a> or <br><a href="http://www.airmaxtop.com/">cheap air max shoes</a> or <br><a href="http://www.airmaxtop.com/">nike air max</a> or <br><a href="http://www.airmaxtop.com/nike-air-max-90-c-47.html">air max 90</a> or <br><a href="http://www.airmaxtop.com/nike-air-max-90-c-47.html">nike air max 90</a> or <br><a href="http://www.oppell.com/">air max</a> or <a href="http://www.oppell.com/">air jordan</a> or <br><a href="http://www.oppell.com/">air max shoes</a> or <br><a href="http://www.oppell.com/">air jordan shoes</a> or <br><a href="http://www.oppell.com/">nike air max</a> or <br><a href="http://www.oppell.com/">cheap air max</a> or <br><a href="http://www.oppell.com/">cheap air jordan</a> or <br><a href="http://www.us-linksoflondon.com/">links of london</a> or <br><a href="http://www.uggmanor.com/">UGGアグ</a> or <br><a href="http://www.uggmanor.com/">UGG</a> or <br><a href="http://www.mbtshop.jp/">mbt</a> or <br><a href="http://www.mbtfan.com/">mbt</a> or <br><a href="http://www.mbtcute.com/">mbt</a> or <br><a href="http://www.cheapestmbt.com/">mbt</a> or <br><a href="http://www.mbthere.com/">mbt</a> or <br><a href="http://www.us-linksoflondon.com/">links of londons</a> or <br><a href="http://www.us-linksoflondon.com/">cheap links of london</a> or <br><a href="http://www.us-linksoflondon.com/">Links of London Jewelery</a> or <br><a href="http://www.us-linksoflondon.com/">Links of London Jewellery</a> or <br><a href="http://www.fr-tiffany.com/">tiffany &amp; co</a> or <br><a href="http://www.fr-tiffany.com/">tiffany Jewelry</a> or <br><a href="http://www.fr-tiffany.com/">cheap tiffany Jewelry</a> or <br><a href="http://www.fr-tiffany.com/">tiffany Jewellery</a> or <br><a href="http://www.abercrombiefitchcloth.com/">Abercrombie fitch</a> or <br><a href="http://www.abercrombiefitchcloth.com/">Abercrombie &amp; fitch</a> or <br><a href="http://www.abercrombiefitchcloth.com/">cheap Abercrombie</a> or <br><a href="http://www.abercrombiefitchcloth.com/">Abercrombie fitch clothing</a> <br><a href="http://www.monclerjeans.com/moncler-coats-men.html">Moncler Coats Men</a> <br><a href="http://www.monclerjeans.com/moncler-coats-men.html">Moncler Coats Mens</a> <br><a href="http://www.monclerjeans.com/moncler-coats-men.html">Moncler Coats</a> <br><a href="http://www.monclerjeans.com/moncler-coats-women.html">Moncler Coats Women</a> <br><a href="http://www.monclerjeans.com/moncler-coats-women.html">Moncler Coats Womens</a> <br>shoes、clothing、Jewellery、bag、Watchs。
Hello,<br>I am hoping you can help me. I have put this project together but I can not get it to work properly. I am new to Arduino and electronics in general but io am learning. It loads the screen but the joystick does not respond. Nor does thje button. I have tried a different Arduino but with no success. I bet it is something simple and I hope the pictures show what i have done wrong.<br><br>Thanks for any help
hey this is great for a beginner, but i think i may know what your problem is, depending on the age of the controller itself some of the button pads on the internal circuit board could be failing, to check this , unscrew all the screws marked in the image, then check the circuit board to see if all the buttons are in place with thier contactors still in the correct position(see 2nd image) and also check that the wires are all correctly plugged into the board. also if you happen to have all the original atari gear, go get the pong paddles out for this and download pete lamonicas code here: http://www.flickr.com/photos/29973568@N07/4822416805/in/photostream/<br> <br>then connect the pin 9 on the serial port to anolog in 0, and then connect the serial ports pin 7 to the arduino's 5v pin, and then connect the serial ports pin 8 to the arduino's gnd pin. this will work alot better if you happen to have the actual pong paddles <br><br>i hope that helps out, but for your current problem, all you can do is just double check and check again for your wiring, but best of luck! let me know if you need any more help
Thanks for the help. I do have the paddles and will try them. I copied and pasted the code from your link and it will not verify. I wonder if it is all there as I do not see a loop function and it fails in the draw net function which seems very differenty than yours. But again I am new to this
huh thats weird i guess when pete modded the code for a creative commons license, he fudged the code. ill see if i can hunt down a version that still works correctly,
k, talked to pete last night, he says that flickr has problems with formatting and he says that he's now included a link to a download site that works far better:<br>http://pastebin.com/AC2Gfn6X
Thanks for your help. I am actually relieved to find that there was something amiss. Maybe I am starting to understand this a bit. :) Thanks again.
no prob, good to know when mistakes get made, and then they get fixed:]
I do like your project. I'm glad you found paddles. Now, I presume you can make a two player game? Paddles were cool - you could put english on the ball by moving the paddle across the ball as you contacted it.
sorry say that again? i dont know what you mean by &quot; put english on the ball by moving the paddle across the ball as you contacted it&quot;
The term &quot;to put english&quot; just means to put some angle or spin on the ball if you hit it right with the paddles. which means that if you move the paddle sharply at the time the ball hits the paddle you can make the ball have some spin or fly away in a less obvious angle.
ok, thanks for the clarification, ive never heard that term before, i live in utah so people use clear and concise words and rarely use anything like that but yea ive been thinking about that but ive never really bothered with it because it means you have to constantly calculate multiple velocitys and the original auther of the code wrote it so that anything that would have to deal withe the comparison of the previous position to the current position of the players paddle would be rather difficult
I'm from Maryland, and live in Colorado, and we use the King's English here. And the term &quot;english&quot; is both.
Klone is right. Have you played ping pong? You can make the ball curve quite a bit by flipping the paddle in a certain way as the ball contacts it.
hey everyone check out the update i added on step 8
Is this the programming in c? Would you be interested in a community program to make an option for other types of pong?
hey thier! <br> actually this is based in a language called processing, it has a large number of simalaritys to c, in a matter of fact quite a few peices of code in processing can actually run in c as they are, but yea id'e love to help out making this available to other people :]
btw wich flavor of c? c#, devc++....
Oh i was just asking for general c, I only know a small bit of c++ (Im a python guy) And we could make a special instructables edition
ok i can make that happen, so what would we be looking at? a pc or other micro controller?
What do you mean?

About This Instructable


107 favorites


Bio: hi i enjoy making ludicrisly over the top and complex devices.... Being an ameture engineer, I refuse pick the easy option, but rather the one ... More »
More by kyle brinkerhoff: samsung charge dock the one seam wallet INFRA-NINJA control your pc with a apple remote
Add instructable to: