The Four Player Coffee Table Pong Video Game.

The Four Player Coffee Table Pong Video Game.
UPDATE 12 APRIL 2011
Important! I have been made aware of a problem with the circuit board design with respect to the two push buttons. In order to get the buttons to work properly you need to connect them to the expansion port instead of the designated player select and mode button connections on the circuit board. Connect them to PIN D and PIN E on the expansion port. You will then need to connect a resistor from PIN D to GND and then another resistor from PIN E to GND. Finally, you will need to connect the other side of each button to VCC. This will make sure that when the buttons are not pressed, that you have a logic 0 at the microcontroller input (for that button) and then you will get a logic 1 when the button is pressed. If there are any hassles, just post a message here.

Okay scratch that - I have updated the circuit board and everything is working as advertised (and as written on the circuit board) Boards can be purchased direct from iteadstudio for $3 - link is in the instructable.


UPDATE 12 APRIL 2011
The circuit boards are now for sale direct from the manufacturer. They are $3 each. Also, the manufacturer is looking into how much it would cost to sell the boards with all pcb components as a kit. I will keep you updated. You can find the link to purchase a circuit board in STEP 1. Otherwise you can still make your own because all files are included in this instructable.

UPDATE 11 APRIL 2011
I have just received an email from the PCB manufacturer (iteadstudio) to let me know that the first batch of Super Pong Table circuit boards is complete and will be available for purchase very soon. They will be around $3 each from their website (I will provide the link once I have it)

UPDATE 10 April 2011
I have just released the sourcode for the 'Knockout' version of this game. This new version sees players battle it out to keep in as many balls as possible. There are no points for hitting a ball BUT you do lose a point for missing a ball - if you miss 20 balls, you are knocked out of the game and your 'bat' is replaced with a solid wall. The remaining players are then left to battle on. The last player standing wins!

You can download the latest version of the sourcecode in step 1.



Hello and welcome to another Bradsprojects instructable.

Are you tired of your old boring coffee table? Do you dream of a coffee table that allows you play games as well as keep your coffee cup off the ground?

Well dream no longer - because such a coffee table is here and you can build one for yourself.

Introducing Super Table Pong. no doubt you have seen the many variations of the classic game 'Pong', well this coffee table takes that game just that little bit further by allowing you to play up to four players at once with 5 balls on the screen at a time. It's a fast paced - action packed game of mayhem!

Here is a short youtube video of the game in action. (I have removed the top glass for video clarity)



Knockout Edition (This version is more fun than the original. A player is knocked out of the game if they miss 20 balls)

The Game
Each player uses an old atari paddle controller to move their respective 'bat' to the left and right of screen. The game starts with five balls in the middle of the screen moving outwards towards the players bats. Each ball moves at a different speed and at different angles to one another. When a ball approaches a player, that player needs to move their bat in order to intercept the ball and make it bounce back in the opposite direction. If the player does not get their bat there in time and the ball happens to go past the player, then that ball will re-appear in the center of the screen.

So how do you win?
If the player hits the ball, they are awarded one point, however if the player misses a ball, they lose one point. The first player to reach 20 Points wins the game and they will be presented with a 'YOU WIN' fireworks animation.

Technical Details
The game is powered by an 8-bit microcontroller (PIC18f4550) running at 8MHz. The display consists of 900 LED's arranged in a 30 x 30 matrix. (I originally designed it to have 1024 LED's, which would make it a 32 x 32 LED matrix. The LED's on each outside edge would have been a different color I.E. one side would have been green, then blue, white and orange) Long story short, the extra LED's that I ordered didn't arrive in time which has restricted mt to just 900 red LED's.

The four controllers are analog controllers taken out of the old Atari 2600 game system. You twist them clockwise / counter-clockwise to move your respective bat on the LED display. The circuit requires very little power and can be run off 4 AA batteries for more than 2 months if played for 30 mins each day.

Future Updates

I would like to say a huge thankyou for all of your comments and suggestions. I do have plans to improve on this project to make it into a much more enjoyable game. I am currently updating the circuit board design and schematic to include an expansion port which will allow for all manner of future improvements such as extra buttons and an LCD display for each player.

Thoughts for future updates:
  • Balls moving at more random speeds and angles
  • ability to select the number of balls on screen at once
  • computer player
  • scores will be displayed on an lcd display
  • add an arcade style button for each player giving them the ability to 'shoot' other players to take points off them
  • different color LED's for the players bats (rather than just red)
  • if a player loses a certain amount of points they are knocked out of the game - the last man standing wins.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Tools, parts and downloads.

Tools, parts and downloads.
«
  • drill.jpg
  • soldering_equipment.jpg
  • SAM_1061.JPG
  • SAM_0895.JPG
  • enamelwire.jpg
  • Glass.jpg
  • gluesticks.jpg
  • mainswire.jpg
  • network.jpg
  • SAM_0658.JPG
  • SAM_0857.JPG
  • SAM_1063.JPG
  • SAM_1085.JPG
  • last photo ←
»

First things first, you will need to get your parts together.

This instructable is not for the faint hearted. It does require an understanding of electronics, ability to solder surface mount components and perhaps some fault finding skills should you're circuit not work correctly for one reason or another.

I have included a ZIP file containing the Schematic, sourcecode, hex file and PCB layout so you have everything that you need to build the circuit. You can download the ZIP file below:

This download was updated Friday 1st April 2011 at 11:50PM AEST
http://www.bradsprojects.com/forum/download/file.php?id=395

Here is the new Super Pong Table Knockout game. (This file includes the sourcecode and hex file - you will still need the previous zip file for schematics, pcb layout etc...)
http://www.bradsprojects.com/forum/download/file.php?id=403

If you wish to do so, you can purchase a Super Pong Table circuit board from ITEADSTUDIO for $3 each:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=19_21&products_id=372

The files included in the archive are
  • PCB Gerber files - these are so you can make your own circuit boards - you will need gerb magic to view these files
  • Diptrace PCB design file - You will need diptrace to view this file, diptrace is my PCB editing program
  • Diptrace Schematic file - you will need diptrace to view this file, diptrace is also my schematic editing program
  • SuperPongTableVer2PCBBottom- This is an image file to show you what the board looks like
  • SuperPongTableVer2PCBTop - This is an image file to show you what the board looks like
  • Readme_1st.txt - This file contains information on the current release of the zip file
  • SuperPongTableVER1.bas - this is the sourcecode, you will need swordfish basic to open / edit it.
  • SuperPongTableVER1.hex - this is the hex file that you need to copy to your microcontroller
  • SuperPongTableVer2Schematic.PNG - this is the full schematic in an image file
Required software for the above files

Swordfish Basic
http://www.sfcompiler.co.uk/swordfish/download/index.html

Diptrace
http://www.diptrace.com/download.php

GerbMagic
http://www.bronzware.com/GerbMagic/Download.htm

You will be able to purchase a Super Pong Table Circuit Board from iteadstudio from around the 15th of April 2011 (they are in the process of making them) They tell me the boards will be approx $3 each
http://iteadstudio.com/store/index.php?main_page=index&cPath=19_21


Parts:

900 LED's (less than $30 if you buy in bulk on bay)
30 x 100 ohm resistors
8 x 74373 Chips
4 x ULN2803 Chips
1 x PIC18f4550 Microcontroller
1 x 7805 Regulator
2 x 10uF capacitors
3 x 10k ohm resistors
2 x push buttons
4 x Atari paddle controllers
1 x 4AA battery holder
4 x AA Batteries
1 x slide switch
61cm x 53cm x 9mm Sheet of MDF (for the table top)
61cm x 53cm x 3mm Sheet of MDF (to surround the glass)
2 lengths of 55cm x 10mm x 40mm pine
2 lengths of 63cm x 10mm x 40mm pine
45cm x 38cm x 3mm glass
40mm x 40mm x 180cm Pine
1 Metre length of Mains wire
1 Metre length of Network cable
Roll of enamel wire
Box of Screws
Paint (If you want to make it look pretty)
Hot melt glue sticks
Electrical Tape
Solder
Solder Wick (if you make a soldering mistake)
Flux (recommended for pcb soldering but not essential)

Tools:

PIC Programmer
Drill
5mm Drill bit (for the LED's)
2mm Drill bit (for pre-drilling the screws)
Soldering Iron
Side Cutters
philips screwdriver
Pliers
Hot melt glue gun
Jigsaw
Circular saw (not essential as you could use the jigsaw for all cuts)
pencil
ruler
hammer
sharp spike (to punch guide holes into the MDF wood)
sharp knife / scalpel
« Previous StepDownload PDFView All StepsNext Step »
105 comments
1-40 of 105next »
Nov 14, 2011. 3:46 PMayoun says:
Hi
I now create your work
However, there is a problem.
I do not know how program to use the source
I saw a read-only source
It seems using it
A detailed description of the photo step by step, please
it is my mail 100akwon@naver.com
please quick answer
Thank you for reading.
Oct 24, 2011. 9:49 AMhtht1254 says:
hello, i programmed the pic with the super pong table version 2 and it's in an infinite loop with the star rotating, sometimes it shows the choose your players screen but i can't select the players, any chance you know what might be wrong?
Sep 22, 2011. 9:19 PMtomcharlie says:
Hey there. I've put everything together and when I turn it on a single row of led's light up and then go out very quickly and then about 4 in the middle do that same then they are all blank. Not sure if this has anything to do with it but i'm using blue LED's. What do you think could be the problem?
Sep 4, 2011. 11:17 PMnianri6 says:
Finally got around to finishing the game, and it's a lot of fun. I'm going to make my own version of the board, and use some of the small RGB LED displays to make a handheld game. Are there any digital pins not used in the program? I was thinking about using the open pin to toggle between colors over time. And if at all possible, use another open pin to somehow vary the voltage on the 2803's so the LED's fade in and out instead of jumping straight to the next color.
Sep 5, 2011. 9:14 AMnianri6 says:
Ah, alright. I was wondering what the expansion port was for. As for PWM'ing the LEDs, couldn't I put a transistor in front of the power pin on the 2803 and have the microcontroller turn it on when the color is supposed to be on, and then have the microcontroller send pulses to the base of the transistor when it has to switch colors? Or would I need too big a transistor to deal with the large amount of current it would need if all 32 LEDs in any given string are on?
Sep 5, 2011. 5:17 PMnianri6 says:
If all 32 LEDs are on, then it would need 640 milliamps. So theoretically a transistor capable of about 700 milliamps would work fine, right? And I have a PIC that was programmed to do rapid fire in xbox controllers, if I can find it I'll hook it up to an extra 2803 I have and see if there's a noticeable lag. The PIC has three modes, and in one of them it pulses two pins at the same time, so I'll hook up one pin to an LED, and the other to the transistor and 2803 as I mentioned earlier. The pulse speed is quite slow, about 6 pulses a second, so if there is a significant lag it should be visible.
Jul 26, 2011. 5:05 PMkp.kody says:
Hey man, the place is sold out of the boards! Is there any other way to get a pre made one? I really want to make this for my girlfriend. We are getting ready to move into our fist home and thought this would be an awsome house warming gift to ourselfs!
Jul 6, 2011. 1:34 PMvnovaes says:
I like to know if the features, at least, the lcd display for the score, its easy to apply, because its is very interesting...when this "update" on the steps will come out, bests regards...
Jun 27, 2011. 3:44 AMgooglexx says:
does it matter what the wattage is on the resistors?
Jul 5, 2011. 6:27 PMgooglexx says:
I meant the size of the SMR's. Sorry :)
Jun 23, 2011. 9:46 PMgooglexx says:
any recommendation of which pic programmer I should get?
Jun 25, 2011. 3:53 PMgooglexx says:
could I buy this one considering I don't need the board to program the chip right?

http://cgi.ebay.com/Clone-Microchip-Development-Programmer-Mini-PICKIT-2-/250844066095?pt=LH_DefaultDomain_2&hash=item3a6778b12f

instead of this:

http://www.microchipdirect.com/productsearch.aspx?Keywords=DV164120
Jun 27, 2011. 3:44 AMgooglexx says:
awesome thanks :)
Jun 14, 2011. 3:28 AMgooglexx says:
will these led's work?

http://cgi.ebay.com/Blue-Cylindrical-5mm-Hi-Intens-LED-1000mcd-10-2USNDJ-/130315640817?pt=LH_DefaultDomain_0&hash=item1e576adff1

Thanks!
Jun 14, 2011. 9:55 PMgooglexx says:
okay thanks. I bought those and all of the other parts on iteadstudio.com

another question. What is a good (hopefully cheap) pic programmer to buy that is compatible with that chip?

Thanks
Jun 7, 2011. 10:14 PMnianri6 says:
I just had an idea for the newest version of this table. Would it be possible to make it 3d? I was thinking that you could use 8 more 74373's, and connect them to another 30x30 matrix, then angle one matrix several degrees to the right and the other display several degrees to the left? It would probably be extremely expensive, but if it works it'd be well worth it. That probably wouldn't work with the pre-made matrices though. Just throwing that out there. The programming wouldn't need any adjustments though. The only thing I'm not sure on is that the spacing of the LEDs might not allow us to get the full effect, even if they were side by side.
Jun 8, 2011. 7:58 AMnianri6 says:
If I can get this current version to work, I'm certainly going to try.
May 19, 2011. 7:52 PMnianri6 says:
I'm in the process of building this, and bought the circuit board last week. I was planning to use my buddy's PIC programmer to program the microcontroller, but for whatever reason, it isn't compatible with the 18f4550. Would I be able to buy a preprogrammed chip from you, or do you know of anywhere that could program it for me? I work mainly with analog circuits, so buying a PIC programmer would be a waste. This is a very cool project though.
May 27, 2011. 3:13 PMnianri6 says:
Ah, ok. I already bought one board, and as of right now I only plan on making one. I do have a few friends who were blown away by the idea of a table that could play pong though, so I may have a few to order in the future. I received the board today, I can't wait to start working on it. I read you were going to make a few other games for this table as well, would you be able to program a galaga type game?
May 27, 2011. 3:51 PMnianri6 says:
Sounds cool man. Would there be a way to use this current version of the PCB with the RGB version?
May 29, 2011. 2:38 PMnianri6 says:
Oh, cool. Any idea on how much the new circuit board will be? And how much do the LED displays cost?
Jun 5, 2011. 4:41 AMnianri6 says:
I'll take a stab at making one then.
May 28, 2011. 8:46 AMGameNox says:
Where did you get the leds?
Apr 1, 2011. 11:24 PMIce1 says:
I think you forgot to include the ICSP port as one of the materials you need. Can i ask what sort of ICSP port you used?
May 27, 2011. 12:15 PMwoofwoof2992 says:
How can i use only 5 pins when the cable has 6? What do i do?
May 27, 2011. 2:19 AMTechnicalMan0101 says:
Where can I buy the following materials?
1-40 of 105next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
89
Followers
6
Author:bradsprojects(brads electronic projects)