BASIC Stamp 2
| Home | BASIC Stamp 2 | TI 83/84 | Windows | Zune HD |
PBASIC programs written for the BASIC Stamp 2 Microcontroller will be posted here.
Video Game Controller Input
I wrote a BASIC Stamp program that detects input from a video game joystick (from an Atari 2600, Colecovision, Sega Genesis, etc.), and sends numbers to a computer’s serial port. A program that I wrote in C# uses those numbers and translates them into keyboard presses (the joystick controls the arrow keys and the fire button controls the space bar). This allows me to use an Atari 2600 controller with emulators such as stella, or I can use it to play games online.
Here is a download of the PBASIC program:
And here is a download of the computer program:
Here is a schematic of the circuit that I quickly drewusing a controller with a DB9 connector:

Schematic