Arduino Pong!

8,577

45

19

Introduction: Arduino Pong!

Hey Guys it's time to recreate the famous Pong Attari game using Arduino and some other components such as: Potentiometers, a couple of resistors , a button and a TV Out cable.All in 10 or less minutes! Let's get started

UPDATE: Thanks everyone for helping reach (a small but considerable) amount of 1000 views!

Step 1: What Will You Need

x1 Arduino Uno or same Arduino Compatible board

x1 USB cable to connect the board

x1 Breadboard to connect the components

x2 10k Ohm Potentiometer

x1 470 Ohm resistor

x1 1k Ohm resistor

x1 Pushbutton

x1 RCA cable (TV Out)

x2 Clips to connect the resistors with the cable (Alternativelly you can solder them)

Some wires

Step 2: The Wiring

You can easily connect the components according to the schematic .Something to notice is that the 1k ohm resistor goes to pin D09, while the 470 ohm resistor goes slot into pin D07. As you can see at the sketch there is a puprle cable splting at half.Don't connect this yet,exept the resistors to the correct pin according to the guide.In my real-life Arduino they are the yellow cables.I have this layout so it's more neat ,tidy and user friendly and each player can use his potentiometer with ease.

Step 3: The TV Cable

Using a sharp knife cut the cable.The RCA cable has 2 wires. One that is proected by a white "shell" and the other that covers the white ,protected by the black.You should try to cut throught them and form them like the right cable of the image.The left one is before cut and the right is after.The white one will be connected with the restors in the next step ,and the other goes to the ground

Step 4: Connect the Cable at the Circuit

Now connect the white cable with the 470 Ohm and the 1K Ohm resistors using the clip(I didn't want to solder them,but you can if you want).The other end of the RCA cable is to be connected with the ground of the breadboard.

Step 5: Almost There!The Completed Circuit

Before I give you the code there is something to be done.You have to download a special library so your Arduino can communicate with the TV.Let's go to the next step

Step 6: Download the Libraries

Step 7: Unzip the File

Unzip the file and select the extracted file

Step 8: Add Libraries to Arduino

Inside the extracted there are 3 files.Copy and paste them at the Arduino Libraries directory of your computer (/Documents/Arduino/libraries). Its the same if you are using a Linux OS

Step 9: The Code

You can download the code from : http://pastebin.com/Su0wdEKG

Copy and paste it at the Arduino IDE

Connect the Arduino board

Upload it!!!

Step 10: Ready to Roll

That's it folks.The Pong has uploaded to the board.Connect the cable to your TV and find a nearby power supply for the Arduino board. Get your Player 2 and enjoy the classic game you have just created

Thanks for your time ,hope you enjoyed as much as I did creating this Instructable.Don't forget to Like and Vote at the Tech contest

Tech Contest

Participated in the
Tech Contest

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    19 Discussions

    0
    Matqux
    Matqux

    4 years ago

    Hy! I made it but it isn't works!

    The error code:

    PONG.ino:11:21: fatal error: fontALL.h: No such file or directory
    compilation terminated.
    Error compiling.

    What's the matter?

    0
    EvaggelosM
    EvaggelosM

    Reply 4 years ago

    There seems to be a problem with the libraries.Try to re-add them after deleting them from the folder(See steps 6-8)

    0
    Matqux
    Matqux

    Reply 4 years ago

    Thank you! I will try that!

    0
    simaopintocorreia
    simaopintocorreia

    Reply 1 year ago

    I have the same problem with the arduino IDE 1-8-5 , but in my case the problem is that I haven't image on screen ,so I try to run this on arduino IDE 1-6-4, and with this ,the library works well, try the same and install the TVoutBeta1.h on it and upload .
    try and post the results.OK!

    2
    rbusch
    rbusch

    4 years ago

    i just got this wroking but im not terrible good at programming, what might i have to change to speed the ball up a tad?

    0
    fizzy123
    fizzy123

    Reply 1 year ago

    did you fix it?

    0
    rbusch
    rbusch

    Reply 1 year ago

    i dont remember now. i have it running on a very small CRT monitor from an old camcorder. the screen is about the size of a quarter. so its hard enough to play as it is for my perposes, haha

    1
    e18.kerekes.gergo
    e18.kerekes.gergo

    Question 1 year ago

    How can I increase the speed of the ball?

    0
    Jorge99M
    Jorge99M

    1 year ago

    Hola, se que es publicacion vieja, funciona muy bien y todo pero quisiera saber como acelerar la velocidad de la bola sin que traspase las barras y aumentarle el tamaño a la bola y a las barras y que al finalizar el juego no se ponga la pantalla negra porque tengo que reiniciar el arduino para volver a jugar

    0
    lazyguyperiod
    lazyguyperiod

    2 years ago

    What is the schematic for this project?

    0
    planetoid127
    planetoid127

    4 years ago

    Very nice instructable. I made it (will post that later) and it works great! Just a remark, next time, maby you want to show a full diagram of all the circuits instead of proceeding by steps (so that you can understand it easier).

    0
    EvaggelosM
    EvaggelosM

    Reply 4 years ago

    Thank you ...Its the first image that shows the full circuit. But I had to make sure you would understand the TV Out Cable connection...

    0
    NetoI
    NetoI

    4 years ago

    é possivel ser só de um jogador ?

    0
    DiscoCat
    DiscoCat

    4 years ago

    This isn't working for me

    0
    EvaggelosM
    EvaggelosM

    Reply 4 years ago

    could you be more specific about it?I would gladly help you if I had more info

    0
    MichaelShort
    MichaelShort

    5 years ago

    TOOK ME 42.24 MINUTES YOU LIER!11! HOPE YOU FEEL ASHAMED!!111!1

    0
    EvaggelosM
    EvaggelosM

    Reply 5 years ago

    hahaha ...but did it work?

    0
    EvaggelosM
    EvaggelosM

    Reply 5 years ago

    Thanks a lot . It is my first Instructable!