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

NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ for more details.
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

Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
comments powered by Disqus
Other posts you may like...