Arduino-SNES-Controller
A small Arduino sketch which creates an HID compliant joystick out of Nintendo's Super Nintendo (SNES) Controller. You can now play any joystick compatible game using your old SNES controller and any Arduino based microcontroller.
Check out this quick video for a demo and tutorial: https://www.youtube.com/watch?v=93oCS9nF_y0
Hardware Setup
SNES Controller Pinout
-----------------\ | 1 2 3 4 | 5 6 7 | -----------------/
- Pin 1: 5V
- Pin 2: Data_Clock (Arduino: Pin 6)
- Pin 3: Data_Latch (Arduino: Pin 7)
- Pin 4: Data_Serial (Arduino: Pin 12)
- Pin 5: N/A
- Pin 6: N/A
- Pin 7: GND
Software Setup
- Install the Drivers by running to UnoJoy/UnoJoyDriverInstaller.bat
- Open the code located under snes/snes.ino and upload it to your Arduino.
- The Arduino UNO R3 uses a MEGA16u2 chip to upload sketches to memory. In order to be recognized as an HID USB device, we must flash the 16u2 chip with some custom firmware. To do this on the Arduino R3, short the 2 pins closest to the USB port to enter DFU mode. From there, run UnoJoy/TurnIntoAJoystick.bat. Now that you have reflashed the Arduino, unplug it from the USB and re-plug it back in. You are now running the arduino as a joystick.
- There is also an Arduino Micro folder containing a sketch that can simply be loaded to any arduino micro controller. Since this is an HID compliant device, uno joy is not needed. Just plug and play.
Be sure to checkout UnoJoy (https://github.com/AlanChatham/UnoJoy) for their awesome library/drivers that made this project possible.