home/ atoms/ game-controller-sensor-interface

A hacked game controller provides a cheap USB interface for connecting custom sensors to music software

Commercial game controllers (joysticks, game pads) contain a microprocessor that converts analog potentiometers and digital switches to USB data. By removing the built-in joystick and substituting external sensors (photoresistors, pressure pads, electrodes) connected to the same circuit board pads, you gain a fully functional USB sensor interface for ~$20. The photoresistor requires a fixed resistor to form a voltage divider matched to the original pot’s range. Software like Max/MSP, SuperCollider, Pure Data, or STEIM’s JunXion reads the USB data and maps it to any parameter. The hack works with any analog-joystick-based game controller.

Examples

Remove joystick pots from a USB game pad; solder wires to the three pads per axis; connect photoresistor + trim pot voltage divider to each axis; map in Max/MSP to control oscillator pitch and filter cutoff via hand shadows over the cells.

Assessment

What does the voltage divider circuit accomplish when replacing a joystick pot with a photoresistor? Why must you test the original controller’s behavior in software before modifying it?

“work of but a moment to remove any of the switches or joy- sticks and replace them with external variants.”
corpus · nicolas-collins-handmade-electronic-music-the-art-of-hardwar · chunk 44