RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    NES Controller to Raspberry Pi 2 GPIO

    Scheduled Pinned Locked Moved Help and Support
    9 Posts 3 Posters 7.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bamsi
      last edited by bamsi

      I am looking since 2 days for a tutorial how I can connect a NES Controller to GPIO of Raspberry Pi 2.

      Found this:
      http://blog.petrockblock.com/2012/07/03/snesdev-rpi-a-snes-adapter-for-the-raspberry-pi/
      http://blog.petrockblock.com/2012/07/19/connecting-snes-sockets-to-the-raspberry-pi-an-assembly-guide/

      Well I have connected the NES to GPIO like below
      alt text

      Restarted Raspberry Pi and only Button A and Button B are recognized. All other Buttons has no function.

      Another Problem is after I have installed: https://github.com/petrockblog/SNESDev-RPi
      And run the command "sudo ~/SNESDev-RPi/bin/SNESDev &" there is no folder /bin/ inside SNESDev-RPi.

      pi@retropie:~ $ sudo ~/SNESDev-RPi/bin/SNESDev &
      [1] 11044
      pi@retropie:~ $ sudo: /home/pi/SNESDev-RPi/bin/SNESDev: command not found

      Installing GameCON Driver with Retro-Pi-Setup, it fails and will not install.
      http://blog.petrockblock.com/2012/08/26/gamecon-driver-module-for-nes-snes-and-n64-controllers-added-to-retropie-setup-script/

      Would be happy if there is a Tutorial or some help to run the Controllers.

      cheers

      1 Reply Last reply Reply Quote 0
      • B
        bamsi
        last edited by

        No help?

        1 Reply Last reply Reply Quote 0
        • J
          jsawhite
          last edited by

          I'm currently using the SNES pads tied to the GPIO in the same way. The gamecon driver works great, however I do know that when I first started if I had the SNESDev installed, I could not install the gamecon driver. Had to reimage and do the gamecon driver by itself. You also have to modify a file that loads at startup (the driver install configures for SNES, you have to change it for NES I believe) that I can't remember the name of. I'll look when I get home tonight... Not sure if that helps...

          1 Reply Last reply Reply Quote 0
          • B
            bamsi
            last edited by

            I was using the Berry Boot RetroPi and had all the time problems with Gamecon Drivers.. Will test now with a fresh installed Raspian.

            Waiting to your reply too. Thanks!

            1 Reply Last reply Reply Quote 0
            • S
              SuperSirLink
              last edited by

              Check out my post here:
              https://retropie.org.uk/forum/topic/54/gpiov1-on-retropie-3-6/2

              1 Reply Last reply Reply Quote 0
              • S
                SuperSirLink
                last edited by

                To remove temporarily remove, modprobe <nameofmodule> -r

                To permanently remove you have to edit /etc/init.d

                1 Reply Last reply Reply Quote 0
                • B
                  bamsi
                  last edited by bamsi

                  Hey SuperSirLink,

                  I got it work without to edit the File but somehow the PAD will not be recognized.

                  My Connection for NES Controller on GPIO

                  GPIO4 - DATA
                  GPIO19 (MOSI) - CLOCK
                  GPIO23 (SCLK) - LATCH
                  GPIO1 - 3.3V
                  GPIO9 - GND

                  I disabled on boot SNESDev-Rpi at RetroPi-Setup but configured anyway the File /etc/snesdev.cfg and set it like this options gamecon_gpio_rpi map=2,2,2,2,2,2 to be sure if NES Controller will be recognized.. And yes the 4 buttons are recognized but not the PAD.

                  Will take a deep look into your Post too..

                  Btw: I am using a Raspberry Pi 2

                  EDIT:
                  pi@retropie:~ $ jstest /dev/input/js1
                  Driver version is 2.1.0.
                  Joystick (NES pad) has 2 axes (X, Y)
                  and 4 buttons (BtnX, BtnY, BtnThumbL, BtnThumbR).
                  Testing ... (interrupt to exit)
                  Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off

                  1 Reply Last reply Reply Quote 0
                  • B
                    bamsi
                    last edited by bamsi

                    So got it working also with the arrow keys too.. Nothing changed.. After a restart all has worked without a Problem..

                    Now its time to Test :P

                    1 Reply Last reply Reply Quote 0
                    • B
                      bamsi
                      last edited by

                      Is there needed to config the Controller again to play with the ROMs? I can control everything in Menu but if the ROM is starting than the Controller is not anymore working.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.