Igor's Blog
Programming, DIY, Games, Hacks, and Tech

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

comments powered by Disqus
Other posts you may like...

Recent Blog Posts

A hack to create an uber jar with the Maven Shade Plugin using local jar files

Is it worth it? Apple USB-C Digital Multi AV adapter vs a cheap eBay clone

Running X11 graphical applications after changing to another user using 'sudo su'

How to stop Facebook using ad images as post sharing thumbnails

Picking lists for Atari Lynx capacitor replacement kits

Performance - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Look and feel - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Using math to work out the diameter of hard to reach water cooling pipes

How to get the unreachable shard in the Hinterlands in DragonAge Inquisition

Measy RC12 wireless 2.4Ghz keyboard touchpad review

Recent Galleries

Monument Valley 2 is released and does not disappoint

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
300 George St Blogumentary

My Online Tools

UUID to OID Converter
Guru JSON-RPC Tester
Extrudifier Object Designer
Travel ┬ÁBlog

Blogs and Friends

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

Blog Activity

Blog Activity
Don't forget to
me for more great articles!
Don't show this again