Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

When I built my Raspberry Pi NES emulator box, I used the original NES case, so that meant the controllers were plugged into the NES controller ports. At the time this was fine, but it also meant that I could not play SNES games.

I ordered some SNES controllers on eBay, these finally arrived, so I got to cutting and soldering.

The NES and SNES controllers are pin compatible, so the task of connecting them was quite easy, all I had to do was chop off the connectors and resolder them to the new controllers. I went a step further however, I wanted to be able to plug in whatever controller I wanted into the NES ports, so I got the 5-pin DIN male/female connectors that are used with microphones to help.

The way the controllers are connected is like this:
NES plug ----5pin DIN female/-/5pin DIN male----SNES controller


The final result looks like this, the advantage is I now have a longer cable too!
CIMG4159.JPG


To get this connected, this is what I did.

Chop off the connector on the SNES controller and strip the wires.
CIMG4150.JPG


Similarly chop off the cable at the base of the NES controller and strip the wires. This gives us 10 wires to connect. Note they are different colours!
CIMG4152.JPG


After a bit of research and a bit of help with my multimeter, this is how the pinouts for the NES and SNES controllers look like, along with the matching wire colours.
NesSnesPinout.png


It doesn't matter the order that the wires are soldered onto the DIN plugs, as long as the final result is that the wire colours between SNES and NES pinouts match the diagram above.

This is how I chose to solder mine on:
CIMG4156.JPG


That's it!

...well not quite, my configuration for RetroArch and EmulationStation were configured to use with NES, so this has to be changed over to SNES configuration.

The gamecon_gpio driver is set up like this on my Raspberry Pi for the SNES controllers:
sudo modprobe gamecon_gpio_rpi map=0,0,1,1,0,0


To make the change permanent, I edited the /etc/modules file and added the following to the end of the file:
gamecon_gpio_rpi map=0,0,1,1,0,0


The RetroArch configuration file (/home/pi/RetroPie/configs/all/retroarch.cfg) has to be edited to update the input settings for player 1 and 2. For a SNES controller (for player 1) it is like this, note quite a few buttons are not mapped:
input_player1_joypad_index = "0"
input_player1_a_btn = "0"
input_player1_b_btn = "1"
input_player1_x_btn = "2"
input_player1_y_btn = "3"
input_player1_l2_btn = "4"
input_player1_r2_btn = "5"
input_player1_start_btn = "7"
input_player1_select_btn = "6"
input_player1_left_axis = "-0"
input_player1_up_axis = "-1"
input_player1_right_axis = "+0"
input_player1_down_axis = "+1"


Then finally delete the ~/.emulationstation/es_input.cfg file so that EmulationStation will prompt for the new controller settings next time it is started up.

So there it is, a SNES controller connected to a NES port using a Raspberry Pi to run all the emulation software.

-i

Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip.
comments powered by Disqus
Other posts you may like...
Hi! You can search my blog here ⤵
Or browse the recent top tags...

Recent Blog Posts

How to fix Google Cloud SDK dev server error - No module named ipaddr

Adorable but totally metal - Metal Earth 3D Guardians of the Galaxy Groot model kit

Riverside Expressway Cam shut down permanently

Inserting Google DFP ads with Backbone, Underscore and jQuery

How to resolve the domain is already mapped to a project error in Google App Engine

A quick look at the Nyko Super MiniBoss wireless controllers for the SNES mini

Loading and displaying a collection from bootstrapped data in Backbone.js

Add this handy function to your Bash profile file to display the compiled JDK version for a .class file

How does PCBWay stack up as a low budget PCB fab

Resolving the Cannot reference X before supertype constructor is called compiler error in Java

Recent Galleries

BMB-012 Nanoblock T-Rex Skeleton Model assembly

Tiny Arcade revision 6 kit assembly and decal application

Atari Lynx repair - Part 5 - McWill LED screen mod installation

Atari Lynx repair - Part 4 - screen cover replacement

Atari Lynx repair - Part 2 - re-capping the motherboard

Atari Lynx repair - Part 3 - broken speaker replacement

Atari Lynx repair - Part 1 - introduction and case disassembly

Building a custom Atari Lynx game box storage shelf unit in a day

Protecting old Atari Lynx game boxes with snug fit plastic sleeves

Monument Valley 2 is released and does not disappoint

Blogs and Friends

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity