Introduction: Pong With 8x8 Led Matrix on Arduino

Game Pong created with 8x8 Led Matrix on Arduino Diecimila (microcontroller Atmel ATMega 168). For more informations https://labs.bsoares.com/ping-pong-com-matriz-de-leds-8x8-ee13cce39007

Comments

author
JasonL172 (author)2016-07-10

what if my LED matrix was driven by MAX 7219? how would i change the code?

author
Cuadras13 (author)JasonL1722016-10-23

lograste hacerlo? yo tengo el mismo

author
MarcelM11 (author)2015-11-24

Olá, pode me dizer como foram feitas as ligações dos pinos? Pois tentei o mesmo projeto mas não tive sucesso ainda, obrigado desde já, abraços!
Obs.: A minha Matriz de led 8x8 tem linha como catodo, carreguei mesmo assim a mesma programação que você usou, desconfio que o problemas esteja aí!

author
bsoares (author)MarcelM112015-11-24

Olá, já faz um tempo que eu não brinco com Arduino, não sei se vou poder te ajudar. Tente trocar Low para High e High para Low no método doubleBuffer. Essa forma você troca o que seria positivo para negativo.. e vice-versa.

author
stu.tg (author)2015-01-09

http://blog.bsoares.com.br/arduino/ping-pong-with-8x8-led-matrix-on-arduino

This link doesn't seem to be working? Could you post the source code please?

author
captainreliable (author)2010-03-29

Bah, the site with the code 404s now. Did anyone grab it?

author
bsoares (author)captainreliable2010-03-29

I am changing the server, will soon be in the air.

author
steinamo (author)bsoares2014-11-08

Soon? Four years ago already... :(

author
Eagle199393 made it! (author)2014-02-23

http://youtu.be/VFj6tDjslvs

P1010197.JPG
author
bsoares (author)Eagle1993932014-02-23

:-)

author
Rana420 (author)2013-11-05

hii, i tried to make but its showing some random pattern on the matrix but not the game ......... please help me out.

author
Jurie Vorster (author)Rana4202013-12-18

You may have the matrix plugged in upside down on the circuit board.
This was the case when I assembled the circuit board first time.

author
lovelyazka (author)2013-10-07

how if im add AI (artificial intelegent) for this game ? and made this 3 level easy,medium and hard ? and i think this is COOL !!!

author
gzhang1 (author)2011-06-14

would you please show the diagram that how you connect the pin of the matrix to the Arduino?

author
bsoares (author)gzhang12011-06-15

Hello, pins configuration here: http://www.arduino.cc/playground/Main/DirectDriveLEDMatrix

author
kierst (author)bsoares2013-10-01

Did you use that pin configuration to make this ping pong game?. or it is just a basis for the project?.

author
blinkyblinky (author)bsoares2012-03-18

Do we need any complex circuitry such as shift registers?

author
bsoares (author)blinkyblinky2012-03-18

nop

author
kierst (author)2013-10-01

Can i see the schematic of this? that would be a great help Thanks!!

author
clayman987 (author)2013-03-10

In arduino playground it suggests we use resistors, because it might break, so do you have to because i dont have enough resistors?

author
thequeenofhearts (author)2012-10-06

Is it possible to use an Arduino Uno in making this project?
Thanks and Good day.

author
bsoares (author)thequeenofhearts2012-10-07

Yes!

author
thequeenofhearts (author)bsoares2012-10-10

Sir where is the potentiometer connected?. I can't see it by just looking at your picture. Thanks and Good day.

author
mattglas (author)2012-04-27

can you please tell me how to attach the controllers to the arduino? if you can that would be great

author
mpinner (author)2011-11-11

This is great!

I made it last night. The LED mapping took a minute, but it is a great project to better understand these LED matrices.

I ended up resistoring all my column pins... Seems not required as they're getting flashed pretty fast... any thoughts on this?

thanks, matt

author
Jongleur (author)2011-10-23

This is great! I just thought of doing this same project on a larger scale, and now I find your instructable! I am planning on doing this with 6x8 of these 8x8 units. I just have to figure out how to get that many I/O lines from my Duemillanove, or how to multiplex the I/Os.

author
ciaran54 (author)Jongleur2011-10-29

Research how to use Shift Registers ;)

They allow you to do many things, as well as what you need to make use of more pins:

Feed in the data through one pin as a series of on and off pulses, and then output it through 8 pins of the chip which can each be connected to one of the pins on the matrix.

author
Azeem-Naseer (author)2011-02-17

wow great work

author
bsoares (author)2011-01-16

It is likely that you are confusing the terminals of the matrix, do a simple test before leaving for this project. Test light a row, a LED, two LEDs, the matrix until you have fully functioning.
Remember that there are matrixs of a type that are not the same as used here may be that yours is different.

author
the seaker (author)2011-01-08

This is by far the coolest thing ive seen with a matrix! nice job! one suggestion for future updates is adding a score keeper, maybe with a lcd screen or 7 segment leds! that would make it just that much better

author
bsoares (author)the seaker2011-01-08

thanks

author
hightekrednek2396 (author)2010-12-23

will this work the same way on a bigger matrix like 16x16 or bigger

author

will need to change a few lines in the code

author
godofal (author)2010-01-15

please post the code :D
and the schematics if u have them
i wanna make one :D

author
bsoares (author)godofal2010-01-15

Godofal Olá, você pode obter o código no meu blog (http://blog.bsoares.com.br/arduino/ping-pong-with-8x8-led-matrix-on-arduino). o esquema não. Mas creio que as explicações dadas no blog agora para construir o seu próprio. :)

author
godofal (author)bsoares2010-01-15

erm, im not spanish(if thats the language)

author
godofal (author)godofal2010-01-15

anyway, ive checked the link, and it looks nice, gonna test it as soon as i can get a led matrix :)

author
godofal (author)bsoares2010-01-16

wow, its great :D
some minor grammar errors, and it cant translate one word (astes, wich are the bats i presume)
but its very readable :D

il make one when im done  with all the projects im building atm XD

author
eshneto (author)godofal2010-03-26

 That's because "astes" does not exist in portuguese. I've  read the text and I bet the author meant "haste".

author
robotjam (author)godofal2010-01-28

it also mentions somebody's mother a few times which makes for some interesting reading

author
zapedy (author)2010-02-16

 could someone write an instructable on how to make this?

author
PeckLauros (author)2010-01-04

Gostei muito. Pena ser complexo demais para um simples curioso. Parabens

author
bsoares (author)PeckLauros2010-01-04

Pô, vou te contar que sou um simples curioso! trabalho com programação e gosto de eletronica, nunca fiz um curso nem nada muito formal, só curiosidade mesmo.
Vlw

author
TheFawns (author)2009-12-15

 THATS AWESOME!!!!! i wish i could do that :D haahaa dude that takes serious skills to do that...

author
M4industries (author)2009-08-23

Writing the source code must have been a nightmare.

author
ReCreate (author)M4industries2009-09-24

Oh yeah, I can't even imagine how he did Collision checking and the "physics" of the ball bouncing off of the edges of the board O_o

author
killersquirel11 (author)ReCreate2009-11-24

Code probably looked something like this: (i've programmed pong in one too many languages...)

if(ball_Y=0 ||ball_Y = 7){     //Ball bounce off top wall
ball_vertV = -ball_vertV;
}

if(ball_X=1){
   if(ball_Y>LPaddle_Y && ball_Y<LPaddle_Y+1){  //Ball bounce off Left Paddle
      ball_horizV = -ball_horizV;
   }
}
if(ball_X=6){
   if(ball_Y>RPaddle_Y && ball_Y<RPaddle_Y+1){   //Ball bounce off Right Paddle
      ball_horizV = -ball_horizV;
   }
}
if(ball_X=0 || ball_X=7){
   //Game over
}
ball_X += ball_horizV;
ball_Y += ball_vertV;

author
ReCreate (author)killersquirel112009-11-24

Yeah, I just programmed pong in a few languages recently.

author
bsoares (author)M4industries2009-08-23

It is more difficult to write this code in Arduino (C + +), but it is funny :-)

About This Instructable

109,508views

73favorites

License:

More by bsoares:Super Nintendo on Android With Original ControllerPong With 8x8 Led Matrix on Arduino
Add instructable to: