PDA

View Full Version : Interfacing SNES controllers with your Raspberry Pi



wraggster
July 5th, 2012, 15:00
http://hackadaycom.files.wordpress.com/2012/07/snes-ports-for-rpi-e1341416218739.jpg
This lovely set of wires lets [Florian] connect stock Super Nintendo controllers to his Raspberry Pi (http://petrockblog.wordpress.com/2012/07/03/snesdev-rpi-a-snes-adapter-for-the-raspberry-pi/). The IDC connector in the upper left plugs into the GPIO header on the RPi rather than going the route of using an intermediary USB converter (http://hackaday.com/2011/11/30/funtendo-connects-all-your-nintendo-controllers-to-a-pc/).
The setup lets you connect two controllers at once, so you’ll have no trouble going head-to-head on Mario Kart as seen in the clip after the break. The ports themselves were pulled from a pair of SNES extension cables. Since button signals are pushed to the console via a shift register there’s just five wires needed for each (voltage, ground, data, clock, and latch). As far was we know the Raspberry Pi pins are not 5V tolerant so you probably want to add some level conversion to this circuit if you build it yourself.
[Florian] wrote a C program which shifts in data from the controllers and converts it to HID keyboard inputs. This should make it extremely flexible when it comes to emulator setup, and using the technique for different styles of controllers should also be pretty easy.

http://hackaday.com/2012/07/05/interfacing-snes-controllers-with-your-raspberry-pi/