Introduction: Rainbowduino: Ping Pong

Picture of Rainbowduino: Ping Pong

Everybody likes to play a game. That`s why i created Pong for the Rainbowduino.
This is a two player game, so you can play this game with a friend. 
The game includes a counter, the first who has 5 points wins the game.

Step 1: Parts and Stuff

Picture of Parts and Stuff

You need these things:

- 2 Potentiometer 10K
- 1 Rainbowduino
- 1 8x8 RGB Matrix (common Anode)
- 6 jumper wires
- 1 Breadboard (not on the photo)

Step 2: Building It

Picture of Building It

The Rainbowduino has two modes. Host and USB. The "host" ist used when you use a external Power and the "USB" mode is used when you program it.

We are going to prgram it, so check that the switch is on "USB".

Then you can place the 8x8 on the Rainbowduino. It`s so easy: Pin1 goes to Pin1, if you still doesn`t understand it look at the photo.
But even if you connect it wrong the 8x8 Matrix won`t get damaged.

Step 3: Testing

Picture of Testing

Connect the Rainbowduino to the PC.
if you haven`t download arduino yet, go to and download the latest Arduino software.
After that download the Rainbow library from Rainbowduino wiki under Resources.

Unzip it and put it to -> documents -> arduino -> liabraries...
Restart Arduino and go to  -> datei -> beispiele -> rainbowduino - > shapes...
And  to -> tools -> board -> arduino duemilanove w/ atmega328...

You should see some shapes on the LED matrix, like in the picture.

Step 4: Connecting the Potis

Picture of Connecting the Potis

Now we are almost finish..
just connect the two potentiometer as shown in the shematic. When the beater in the game is inverted, just switch +5V with GND.

Step 5: FInish

Now just download the attached file and unzip it.
open pong.ino with arduino and upload it to the Rainbowduino.
You are ready to play.
And If you don`t have a friend to play, leave A0 or A1 unconnected.

Have fun :)

Additional informations:

- this is my first instruction: write me if you liked it or hatet it. And what i sholud do better.
- I`m from switzerland so my english is not the best. if I have written something wrong let me know so I can correct it.
- I didn`t add comments to my program, but It`s coming soon.


azharz (author)2013-06-24

Nice Try, Love it.

lini27 (author)azharz2013-06-25

Thank you !

Dicsoft made it! (author)2016-02-14

So much fun for my son and me! I've done some lightly modifications like higher ball speed, counter to 10 and translations into German!? The red button is connected to DTR, which means reset when connected to GND to easy restart the game! Well done!!!

lini27 (author)Dicsoft2016-02-14

Guten Tag

Das Projekt hatte ich vor Jahren aus Spass gemacht. Es freut mich sehr zuhören dass es anderen auch gefällt. Durch die zwei Gehäuse sieht das ganze sehr professionell aus. Viel Spass beim weiteren programmieren ;)

Dicsoft (author)lini272016-02-14

Absolut Klasse! Bitte mehr davon! Das Sketch ist sehr smart programmiert und funktioniert tadellos. Wie wäre es mit einem einfachen "Breakout". Dann könnte ich meine Paddles weiter verwenden. ;)

lini27 (author)Dicsoft2016-02-14

Für die Schule habe ich noch weitere Projekte gemacht, diese sind jedoch etwas komplizierter. Falls mein Computer wieder funktioniert werde ich Ihnen die Dokumentationen schicken.

Falls sie eine Projektidee haben, aber nicht wissen wie diese umsetzen helfe ich Ihnen gerne. Momrntan habe ich selber zu wenig Zeit um solche Projekte zu machen. Ein Beispielprojekt wäre den Nokia 5110 display mit einem Arduino anzusteuern (gibt es eine gute Dokumentation und verschiedene Codes) und dort Pong zu programmmieren.

Was sie mit "Breakout" meinen verstehe ich nicht. Jedoch könnten sie einfach Stecker/Buchse nehmen.

Dicsoft (author)lini272016-02-14

Mit Breakout meinte ich ein weiteres einfaches Spielprinzip, wo man auch mit einem Paddle und Ball Steine abschießt und so Punkte sammelt. Ich habe dazu mal ein Bild angehängt. Ansonsten freue ich mich von weiteren Ihrer Projekte zu lesen.

Dicsoft made it! (author)2016-02-14

Enjoy the short movie! ?

siham.hussein (author)2014-12-13

I don't see where A0 and A1 are on the rainbowduino, could you please elaborate more on where to hook up the potentiometers? Thanks

Dicsoft (author)siham.hussein2016-02-14

Check the solder pads right to the reset button. Here you will find the analogue inputs A0-A7 and D2-D3.

kenyer (author)2014-10-22

Your video is gone, I would love to see it work.

lini27 (author)kenyer2014-10-22

Hello !

Thank you for your interests. Yes, I deleted the video because it was made a long time ago. But i found the Rainbowduino uploaded the code and it did work. I haven't connectet any variable ressistor so it's just reading a open output.

It still looks kinda cool so If you want the video give me your e-mail adress as a private message. Then I will record it and send it to you.

kenyer (author)lini272014-10-22

I will try the sketch myself and see what comes out :) Thank you for offering to mail it. When my project works I will post it as an Ible.

lini27 (author)kenyer2014-10-22

Good luck and have fun !

About This Instructable




More by lini27:Arduino IR Remote receiverRainbowduino: Ping Pong
Add instructable to: