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

<p>what if my LED matrix was driven by MAX 7219? how would i change the code?</p>
<p>lograste hacerlo? yo tengo el mismo</p>
Ol&aacute;, pode me dizer como foram feitas as liga&ccedil;&otilde;es dos pinos? Pois tentei o mesmo projeto mas n&atilde;o tive sucesso ainda, obrigado desde j&aacute;, abra&ccedil;os!<br>Obs.: A minha Matriz de led 8x8 tem linha como catodo, carreguei mesmo assim a mesma programa&ccedil;&atilde;o que voc&ecirc; usou, desconfio que o problemas esteja a&iacute;!
Ol&aacute;, j&aacute; faz um tempo que eu n&atilde;o brinco com Arduino, n&atilde;o sei se vou poder te ajudar. Tente trocar Low para High e High para Low no m&eacute;todo doubleBuffer. Essa forma voc&ecirc; troca o que seria positivo para negativo.. e vice-versa.
<p>http://blog.bsoares.com.br/arduino/ping-pong-with-8x8-led-matrix-on-arduino</p><p>This link doesn't seem to be working? Could you post the source code please?</p>
Bah, the site with the code 404s now. Did anyone grab it?<br />
I am changing the server, will soon be in the air.<br />
<p>Soon? Four years ago already... :(</p>
hii, i tried to make but its showing some random pattern on the matrix but not the game ......... please help me out.
You may have the matrix plugged in upside down on the circuit board. <br>This was the case when I assembled the circuit board first time.
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 !!!
would you please show the diagram that how you connect the pin of the matrix to the Arduino?
Hello, pins configuration here: http://www.arduino.cc/playground/Main/DirectDriveLEDMatrix
Did you use that pin configuration to make this ping pong game?. or it is just a basis for the project?.
Do we need any complex circuitry such as shift registers?
Can i see the schematic of this? that would be a great help Thanks!!
In arduino playground it suggests we use resistors, because it might break, so do you have to because i dont have enough resistors? <br>
Is it possible to use an Arduino Uno in making this project? <br>Thanks and Good day.
Sir where is the potentiometer connected?. I can't see it by just looking at your picture. Thanks and Good day.
can you please tell me how to attach the controllers to the arduino? if you can that would be great <br>
This is great!<br><br>I made it last night. The LED mapping took a minute, but it is a great project to better understand these LED matrices. <br><br>I ended up resistoring all my column pins... Seems not required as they're getting flashed pretty fast... any thoughts on this?<br><br>thanks, matt
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.
Research how to use Shift Registers ;)<br><br>They allow you to do many things, as well as what you need to make use of more pins:<br><br>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.
wow great work
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.<br>Remember that there are matrixs of a type that are not the same as used here may be that yours is different.
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
will this work the same way on a bigger matrix like 16x16 or bigger
will need to change a few lines in the code
please post the code :D<br /> and the schematics if u have them<br /> i wanna make one :D<br />
Godofal Ol&aacute;, voc&ecirc; pode obter o c&oacute;digo no meu blog (http://blog.bsoares.com.br/arduino/ping-pong-with-8x8-led-matrix-on-arduino). o esquema n&atilde;o. Mas creio que as explica&ccedil;&otilde;es dadas no blog agora para construir o seu pr&oacute;prio. :)<br />
erm, im not spanish(if thats the language)<br />
anyway, ive checked the link, and it looks nice, gonna test it as soon as i can get a led matrix :)<br />
Try via google translate! (<a href="http://translate.google.com/translate?hl=en&amp;sl=pt&amp;tl=en&amp;u=http%3A%2F%2Fblog.bsoares.com.br%2Farduino%2Fping-pong-with-8x8-led-matrix-on-arduino" rel="nofollow">http://translate.google.com/translate?hl=en&amp;sl=pt&amp;tl=en&amp;u=http%3A%2F%2Fblog.bsoares.com.br%2Farduino%2Fping-pong-with-8x8-led-matrix-on-arduino</a>). It is not very good but it helps! :)<br />
wow, its great :D<br /> some minor grammar errors, and it cant translate one word (astes, wich are the bats i presume)<br /> but its very readable :D<br /> <br /> il make one when im done&nbsp; with all the projects im building atm XD<br />
&nbsp;That's because &quot;astes&quot; does not exist in portuguese. I've &nbsp;read the text and I bet the author meant &quot;haste&quot;.<br />
it also mentions somebody's mother a few times which makes for some interesting reading
&nbsp;could someone write an instructable on how to make this?
Gostei muito. Pena ser complexo demais para um simples curioso. Parabens<br />
P&ocirc;, vou te contar que sou um simples curioso! trabalho com programa&ccedil;&atilde;o e gosto de eletronica, nunca fiz um curso nem nada muito formal, s&oacute; curiosidade mesmo.<br /> Vlw<br />
&nbsp;THATS AWESOME!!!!! i wish i could do that :D haahaa dude that takes serious skills to do that...
Writing the source code must have been a nightmare.
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
Code probably looked something like this: (i've programmed pong in one too many languages...)<br /> <br /> if(ball_Y=0 ||ball_Y = 7){&nbsp;&nbsp;&nbsp;&nbsp; //Ball bounce off top wall<br /> ball_vertV = -ball_vertV;<br /> }<br /> <br /> if(ball_X=1){<br /> &nbsp;&nbsp; if(ball_Y&gt;LPaddle_Y &amp;&amp; ball_Y&lt;LPaddle_Y+1){&nbsp; //Ball bounce off Left Paddle<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ball_horizV = -ball_horizV;<br /> &nbsp;&nbsp; }<br /> }<br /> if(ball_X=6){<br /> &nbsp;&nbsp; if(ball_Y&gt;RPaddle_Y &amp;&amp; ball_Y&lt;RPaddle_Y+1){&nbsp;&nbsp; //Ball bounce off Right Paddle<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ball_horizV = -ball_horizV;<br /> &nbsp;&nbsp; }<br /> }<br /> if(ball_X=0 || ball_X=7){<br /> &nbsp;&nbsp; //Game over<br /> }<br /> ball_X += ball_horizV;<br /> ball_Y += ball_vertV;<br />
Yeah, I just programmed pong in a few languages recently.<br />
It is more difficult to write this code in Arduino (C + +), but it is funny :-)

About This Instructable




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