This is a simple adapter to use a Super NES controller with a computer
via USB. It is based on the ATmega32U4 microcontroller and uses the
Arduino Keyboard.h
library to emulate a keyboard.
It should work with both PAL and NTSC controllers, but I have only tested it with a PAL controller.
I used an Arduino Pro Micro clone, but any ATmega32U4-based board should
work, e.g. an Arduino Leonardo. You can modify the pin assignments in
hardware.h
, further instruction on how to wire the controller to the
board can be found in the main sketch.
The "lock" pin is a simple pull-up digital input. When it is not pulled low, the controller is locked and no input is sent to the computer. This is useful when reflashing the board in case of malfunctioning code. You can short it to ground if you do not plan to change the code.
Some boards do not have a reset button, you can add one placed between the reset pin and ground.
As of current version, the adapter maps the controller buttons as follows:
SNES button | Keyboard key |
---|---|
L | l |
R | r |
Joypad up | Up arrow |
X | x |
Joypad left | Left arrow |
Joypad right | Right arrow |
Select | Right shift |
Start | Enter |
Y | y |
A | a |
Joypad down | Down arrow |
B | b |
LED state | Meaning |
---|---|
Off | No power |
On | Power |
1 Hz | Controller not connected |
2 Hz | Locked (internal switch) |
You can use the Arduino IDE to compile and flash the adapter. You will probably need to upload the sketch as on Arduino Leonardo. Also, if having trouble flashing the board, be aware of this issue.