pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
PyPong

PyPong - 0.1

Vadim Kataev (vkataev)

Tags:

Description

Pong video game using Atmega8 Microcontroller, and Pygame. It is a good example of an heterogeneous system, consisting of micorcontroller's code (in C) and Python+Pygame application. I've spent two evenings and I've done it! The hardest thing was soldering despite the fact, that I never had dealings with microcontrollers before. I've found AVR Atmega8 microcontroller the cheapest option to create the simplest pong controller. It is probably also the fastest way. ADC on the microcontroller measures resistance on potentiometer and sends this info through the serial line to PC. C source is to compile with avr-gcc. I also use avrdude to load byte code into the flash memory of a microcontroller. Pong code is running on the PC. It reads constantly bytes on the serial port, changing positions of the objects on the screen. It requires python and pygame to be installed. See more info, pictures, and video on my homepage.

Links

Home Page: http://vkataev.googlepages.com/pypong2

Screenshot


click to view original size

Releases

PyPong - 0.1 - Feb 1, 2007

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

February 4, 2007 3:09pm - Purdea Andrei - nickname: (purdeaandrei)
Really nice, but why all those electronics, why not just connect the potentiometers directly to the gameport? I hope python can access the game port ;-)
February 3, 2007 10:30am - Vadim Kataev - nickname: (vkataev) - 5/5
Theremin looks very expensive, but thx for a good idea.

See also my other python application PyZX, it is ZX Spectrum computer emulator:
http://www.pygame.org/projects/10/173/
February 2, 2007 11:22pm - Kurt Dekker - nickname: (kurtdekker) - 5/5
Okay, that is COOL. This reminds me of a project I wanted to do ten-plus years ago: I wanted to cannibalize one of the Atari "Asteroids" vector graphics CRTs and write custom software to use it, and make my own custom vector graphics games with it, but alas I never did.

So now I have a suggestion! You know what a theremin is? It is an electronic musical instrument that you play by moving your hands nearby it. I challenge you to hook up the capacitive input from a theremin-like input device and make the pong game controllable WITHOUT TOUCHING ANYTHING... :)
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
May 24, 2012




May 23, 2012

May 22, 2012


May 20, 2012

May 19, 2012

May 18, 2012

May 17, 2012


... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)