One dimensional PONG, take two

Needing a Christmas present for his 4- and 5-year-old nieces, [John] built a one-dimensional PONG game, sure to be the delight of rosy-cheeked children on a Christmas morn.

The new and improved 1D PONG game is built around a digital RGB LED strip with an LPD8806 LED controller. The speed of the ‘ball’ is controlled by a pot on one side of the game. With each player pressing their button at the right time, the ball bounces back to the other player. Missing the ball awards a point to the other team and most likely an increase in the player’s frustration, greatly increasing the risk of this game being thrown across the room.

While it’s not an obscenely long 1D PONG game like [Jason]‘s previous 5 meter version, it’s more than enough to keep a pair of kids occupied for more than a few minutes, a remarkable achievement for just a microcontroller, buttons, and a piece of LED strip.

You can get [John]‘s AVR code in this pastebin or just check out the video after the break.

Comments

  1. Dustin Evans says:

    I’m also making a Christmas present this year. Wonder how many other people are making rather than buying this year. Maybe you could have a thread of home-made Christmas presents?

  2. Alex Rossie says:

    If each successful return lead to a quicker ball that would actually be a fun game.
    As it stands this is not, when I was 2/3 I had Sonic the hedgehog on the Sega Mega Drive.
    At 5/6 I was playing ISSS on the Saturn and virtual cop and panzers dragon.
    At 8 I was playing GoldenEye on the N64.

    These days kids have 3DS, Wii, Xboxs, and PS3, an LED strip would not compete. If it’s price you’re worried about buy them a old Wii or Old DS.

    • John says:

      Hi, this is my project. I like your idea of making each successive turn faster and this is easy to do in the code. Maybe I’ll use the pot to set the minimum speed.

      As far as buying an old console or handheld; they already have all that stuff, I wanted to make something simple and unique that they would remember.

      Also: Thanks for featuring this HAD!

      • Haku says:

        If you had large and tough buttons you could ‘thump’ which would then tell the microcontroller just how hard you hit the button you could vary the speed at which the ‘ball’ is thrown back to the opponent.

        • John says:

          That’s a very good idea. Now I’m thinking buttonless knock sensors.

        • ChalkBored says:

          Without having to change the buttons, you could increase the speed when the player hits the button during the sweet spot in the ball’s travel, and maybe decrease it if they hit slightly early or late.

        • James says:

          For a variation, make a mat-type button (however like those dance mats work) which the players jump on, the object is to jump “over” the light, timing the jump so that they are off the mat when the light hits it. Like Donkey Kong!

          And they have to be back on the mat within however long the average jump time is (a few milliseconds I suppose) to prevent cheating, and when they hit the mat the “ball” is launched in the return direction.

          • Alex Rossie says:

            Prevent child hood obesity and introduce kids to video games!

            Might be a bit loud though.

            Thanks for including my idea John :)

      • John says:

        Done. Code with increasing ball speed here: http://pastebin.com/NL0BypG4

    • t&p says:

      I don’t know man. I remember getting a NES on year and the year after that I got a cardboard box (cut out like a club house)! I was very happy with the cardboard box!

  3. Wm_Atl says:

    Yeah this is cool. I can see a couple of young kids spending some time playing. Heck I can see adults playing a bit as well. Plus it is unique.

    I second the comment buy Dustin, about a thread for hacks being presents this year. Could be a fun read.

  4. NewCommentor1283 says:

    when i saw this i thought: anti-drunk-driving interlock !
    score a 8 / 10 or higher to enable starting car

  5. David Fisher says:

    When a point is won you could show the score of the player that has just won the point on the led strip itself.

  6. Tinus says:

    We actually built something very similar as part of a sequential logic project in our Intro to Digital Systems class back at university. The only difference was that you could only use discrete gates (7400 series if I remember correctly).

  7. JohnnyCanFly says:

    Would be a fun bar game. Sitting at the bar with a beer and playing a bit of simple pong

  8. nathangray says:

    I’ve got some adafruit pixels sitting around and 2 trees in the front yard. I think I need to make a yard-scale version of this

  9. asheets says:

    I had one of these when I was a kid. The closer you let the “ball” get to you, the faster it returned to the other player. And in advanced modes, the speed of the ball accumulated.

  10. Orly says:

    A ball moving along a line exists in two dimensions. To be one dimensional it would need to be stationary at a single point.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 93,779 other followers