Igor's Blog

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

, , , , , ,
About — I'm an enthusiastic software engineer and consultant interested in many fields including J2EE, programming, electronics, 3D printing, video games, wood working and gardening.
See my Resume for more information.
The views expressed in this blog are my own and not those of my employer.
comments powered by Disqus
My other posts you may like...
Programming, DIY, Games, Hacks, Tech and more.
Follow me on...
Current and Past Projects
See my Resume

Subscribe


RSS Feed

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
StrFunc() Online
300 George St Blogumentary
Guru JSON-RPC Tester
Extrudifier Object Designer

Recent Blog Posts

NeoOffice Viewer macOS Word Document viewer vs Preview and Microsoft Word

Importance of cleaning the internal fans and heatsinks in a MacBook Pro

Adding an email subscribe feature to your Blog with Blogtrottr

How to remove Google's logo from your G Suite applications

Pedestal fan transformed into a ceiling fan

Testing the Velvet WiFi Hotshot signal strength

Improving slow download speeds on the PS4 and PSN

Add batch image resize functionality to macOS using Automator

Show transfer percentage and speed when copying files in Linux and Bash

So I finally got to try eating some space food

Recent Galleries

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

Good Friday Electronics fun Easter Bunny LED PCB Kit IBEABU-01.0

Top Categories

Blogs I follow

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth

Friends

RAWS Parts Online
Alpha Dimensions Hosting
Kristensen Photography
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Please follow me on...