A small Arduino sketch which creates an HID compliant joystick out of Nintendo's Super Nintendo (SNES) Controller.
Clone or download
Latest commit 1b3e5c9 Oct 29, 2016

README.md

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

  1. Install the Drivers by running to UnoJoy/UnoJoyDriverInstaller.bat
  2. Open the code located under snes/snes.ino and upload it to your Arduino.
  3. 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.
  4. 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.