Skip to content

A converter to use the Super NES controller via USB on a modern computer

License

Notifications You must be signed in to change notification settings

giulioprocopio/snes-controller-usb-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNES Controller to USB Adapter

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.

Hardware

Prototype board front Prototype board top

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.

Software

Button -> Keyboard mapping

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 feedback

LED state Meaning
Off No power
On Power
1 Hz Controller not connected
2 Hz Locked (internal switch)

Compiling and flashing

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.

About

A converter to use the Super NES controller via USB on a modern computer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published