trouble getting original NES controller working

Welcome Page Forums RetroPie Project Everything else related to the RetroPie Project trouble getting original NES controller working

This topic contains 8 replies, has 5 voices, and was last updated by Profile photo of hivvu hivvu 2 years, 5 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3931
    Profile photo of alexeymohr
    alexeymohr
    Participant

    Hey all,

    so I’m trying to put together a RetroPie to play NES games, and I’ve got an original NES controller. I wanted to hook it up directly to the GPIO pins without having to fuss with any adapters, so I cut off its plug and connected up some crimp pins:

    NES_Crimp_Pins

    I’ve tried to follow various different connection instructions that I’ve found online, but I haven’t yet had any luck getting the emulation station startup to see the controller.

    NES_Pie

    It comes up saying “no joystick detected” and the button presses aren’t read. Can anyone offer some guidance for getting this to work? It would be most appreciated!

    #3933
    Profile photo of roquen
    roquen
    Participant

    Will you need a firmware driver for this connection or will it see it as an input device automatically?
    Im including images that may or may not be helpful 🙂


    NES pinout

    RPi pinout

    #3936
    Profile photo of alexeymohr
    alexeymohr
    Participant

    Thanks for those schematics, they confirm how I thought the controller was wired. The ones I’ve followed for connecting it to the Pi GPIO pins are:

    And:

    I haven’t had any luck getting the controller to communicate following either. I’m using the latest RetroPie image, and I assumed that it auto-loaded the gamecon_gpio_rpi driver at startup? Do I have to activate it somehow?

    #3938
    Profile photo of roquen
    roquen
    Participant

    Im not able to confirm this until late tonight, but I believe you need to run the RetroPie-Setup script to enable the driver. I don’t think its loaded by default.

    I don’t know where it is off the top of my head in the SD image (probably ~/RetroPie-Setup/somewhere)

    but RetroPie-Setup/master/scriptmodules/setup.shinc has an installation script for the driver.

    I am probably not helping, sorry, 😛

    #3955
    Profile photo of alexeymohr
    alexeymohr
    Participant

    So I loaded the driver via the RetroPie script (thanks for that!), and then discovered that since I’m on a rev2 Raspberry Pi I had to load it with this command:

    sudo modprobe gamecon_gpio_rpi map=0,0,0,0,2,0

    At that point I still had no love running jstest. So then I tried using the 5v pin instead of the 3.3v pin, and there it was!

    So now I’m working on figuring out the protection circuit that’s recommended so that the 5V doesn’t blow up the controller or the Pi. I think I get the idea using a 500 ohm resistor and a standard diode. We’ll see what happens next…

    #4001
    Profile photo of bgianpetro
    bgianpetro
    Participant

    Hmm, so does this mean the original NES controller requires 5V to work instead of 3.3? Because I’m getting ready to solder my original NES controller ports to my petrock-purchased GPIO adpater, which I believe only provides 3.3V, correct?

    #4730
    Profile photo of nesman
    nesman
    Participant

    Did anyone get the NES controler to work yet. I just got my RetroPie Adapter the other day and ready to solder it into my box.

    #4816
    Profile photo of bgianpetro
    bgianpetro
    Participant

    Yup, I got mine working. What type of enclosure are you using? I am using the original NES, so what I did was solder the original port cables to 1″ square board that has a 2×5 header. That way I can connect it directly to the GPIO adapter using a standard 10-pin ribbon cable. Also, the 3.3v was no problem for me using the GPIO adapter.

    #85564
    Profile photo of hivvu
    hivvu
    Participant

    sudo modprobe gamecon_gpio_rpi map=0,0,0,0,2,0

    What pinout did you use?
    I’m having trouble to get this to work :/

Viewing 9 posts - 1 through 9 (of 9 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar