PDA

View Full Version : A Light-Following Pong Game



wraggster
September 13th, 2011, 23:32
http://hackadaycom.files.wordpress.com/2011/09/light_pong.jpg?w=450&h=337 (http://hackaday.com/2011/09/13/a-light-following-pong-game/light_pong/)
Although not everyone has the ability to make a hacked
http://www.youtube.com/watch?v=Jny5ZGEzBtw Like [Marcelo], even fewer have the ability or the creativity to come up with the elaborate hack that he did. The basic premise of his game is a version of pong played on a breadboard with a 8×8 matrix of LEDs. The controls are really what sets this hack apart. Instead of using a paddle controller or normal switches, small flashlights are used to control the on-screen (on-LED matrix) paddle. This is accomplished using a series of photoresistors and a PIC processor.
Innovative as this would be by itself, [Marcelo] decided to make a program in Flash to display the action on a computer. Communication is done serially, and C# is used to translate everything as Flash doesn’t natively work with a serial connection.
Another innovation is that there are two LEDs connected on either side powered via pulse width modulation. The lights get dimmer as one player is about to lose. Check out [Marcelo's] pong game after the break!

http://hackaday.com/2011/09/13/a-light-following-pong-game/