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
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
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
Step 2: Hack the enclosure.
now
take your chosen enclosure and take it apart and remove all the circuit
boards and junk you otherwise will not need, then mount your Arduino
against the backside of the enclosure and drill a hole large enough for a
usb cable to fit through, then cut out a hole for the serial port to be
mounted through.
Step 3: Install the rca jack.
before we install the rca jack we need to freeform the following circuit off of the pins of the rca jack .
then we can drill a hole in the back of the enclosure for the rca jack to come through and then glue it in place.
then we can drill a hole in the back of the enclosure for the rca jack to come through and then glue it in place.
Step 4: Wire the serial port
now we have to wire the serial port to the pins on the arduino so we can get input from the joystick.
so using the following pinout, connect the following to the corresponding pins on the Arduino
pin1 up, to Arduino pin 7
pin2 dn, to Arduino pin 6
pin6 fire,to Arduino pin 2
so using the following pinout, connect the following to the corresponding pins on the Arduino
pin1 up, to Arduino pin 7
pin2 dn, to Arduino pin 6
pin6 fire,to Arduino pin 2
Step 5: Wire the rca jack
this is pretty simple just connect the 1kohm resistor lead to pin9 and the 330kohm resistor lead to pin8
Step 6: Software
now we need to download and install the tvout library for the Arduino sdk here
and once you have done that i have modded a version of pong for the arduino to take our input from the joystick you can get right from this instructable.
btw thanks pete
and once you have done that i have modded a version of pong for the arduino to take our input from the joystick you can get right from this instructable.
btw thanks pete
ardupong.txt6 KB
Step 7: Congratulations!!! your done (almost).
now
just install your power switch anywhere you'd like and wire it to
control the power to the arduino, im not going to explain this, if
you've gotten this far Im pretty shure you can handle it.
then assemble the enclosure, plug in the controller, upload the code, and plug it into the tv. if it worked you'll see somethin like this :
then assemble the enclosure, plug in the controller, upload the code, and plug it into the tv. if it worked you'll see somethin like this :
0 comments:
Post a Comment