A dictionary will tell you that pong is "an unpleasant smell; stink." Wikipedia would tell you that pong is "one of the earliest arcade video games, and is a tennis sports game featuring simple two-dimensional graphics." This project is closest to the latter.
You can go to my blog post or website to see how the pong paddles were made and to get some information on the circuit boards. Instead of copying that info, i will try to pick up from there.
Here are just some quick pictures of the pong paddles and circuit boards i made.
The Pong Case is built from hardwood bought at a local hardware store. The case is a bit big for the screen, but there has to be room for the circuit boards to fit inside.
The case's door is also made from hardwood. A piece of Lexan acts as the window for the case allowing the players to see the screen within. The wood on the door is held together with angle brackets and the Lexan window is hot glued on the back.
Holes are drilled in 2 sides of the box for the audio jack plugs which connect the pong paddles to the main screen. A hole is drilled in the front for the power switch.
The Arduino is bolted onto the outside platform where it and the battery pack will sit for ease.
the door is attached with hinges so i can easily access the inside electronics if need be it.
Then the audio jacks are wired up, power is distributed, and everything gets plugged into the Arduino.
Here is the completed game, all wired up and ready to program.
There are a few more things to add like feet for the case and a clasp to keep the door close on it. But besides that, the construction is done. Oh i just remembered i need to put a buzzer in it. I will update the post when it plays pong...
Well at the end of today i have the code almost done.
The paddles are 3 pixels wide and they can be moved with the pong paddles i built.
At the beginning of the game the ball randomly appears and takes off at a random angle towards the same direction right now.
The ball can carry over to the next matrix and deflect off the walls right now. Everything works fluidly and quickly. The ball is set to maximum speed which seems like a good challenging speed.
What is left to do is to make it deflect off the paddle and switch directions or sound a buzzer to indicate a point was scored and restart a new game.
Im learning some more about programming. Mostly working with bits and well learning how to program pong. The next update will be when the pong program is done and i have video for you.
Program is all done and pong works!! See video. (in the video, the speed of the game is not set to the fastest. If you cant tell, i am playing myself, so do not let this be a testament to my pong playing ability :)
I have added a few functions and modes to the pong code (see the last video).
The first function is score keeping. It keeps and displays the score after each point, 5 points to win. Once 5 points are scored, the score flashes for a bit and then a new round is started.
Pong now has 3 different modes, each is selectable by using the pong paddle. Turning the knob changes the mode. The mode is displayed at the top of the screen for the first 3 seconds after a restart of the Arduino.
The first mode is just like the previous code. It is 2 player pong with the paddles being 3 pixels wide.
The second mode is also 2 player code but the paddles are 2 pixels wide which makes the game more difficult.
The third mode is a one player game where you can practice your skill by playing against a "wall"
I have fixed some of the few bugs that were left and came up with a "new bounce scenario", as I call it. See the 3 new videos.