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

    SNES Straight to GPIO

    Scheduled Pinned Locked Moved Help and Support
    gpiosnesdevgameconsnes
    28 Posts 9 Posters 19.0k 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.
    • simonsterS
      simonster @Rookervik
      last edited by

      @Rookervik I had similar issues with my GPIO controller driver after upgrading to 3.7. The answer in my case was to install the kernel headers using:

      sudo apt-get install raspberrypi-kernel-headers

      Then run the setup and it completed fine.

      RookervikR 1 Reply Last reply Reply Quote 0
      • RookervikR
        Rookervik Global Moderator @simonster
        last edited by Rookervik

        @simonster Thank you, I will give that a try in just a minute.

        @backstander Yes Pipplware defaults to English in the menus and ES, but in Kodi you need to change your locale. Look for screenshots of Kodi's menus to find your way there.

        Also, I have done a lot lot LOT of prodding on this SNES Controller PCB and compiled some information I have found on the internet. So I jumped in Illustrator and made this SNES Controller PCB Diagram. It should be correct. I used my multi-meter and testing everything twice. But I can still screw up.

        SNES Controller PCB Diagram

        From here I will have an easier time trying to keep pins in order while looking for GPIO pin numbers.

        RookervikR 1 Reply Last reply Reply Quote 0
        • RookervikR
          Rookervik Global Moderator @Rookervik
          last edited by Rookervik

          @simonster No dice. Ran your command, rebooted, tried to install the Gamecon drivers... still the same error. No linux-headers package could be found for your kernel version...

          So I suppose I'll try that version 4 of RetroPie and see if it works. I've tried every combination of GPIO pins the internet has to offer me along side the SNESDev driver running with SNESDev & then running jstest /dev/input/js0 or 1 or 2 or 3

          I can't find concrete instructions using either Gamecon or SNESDev anywhere, showing exact GPIO pins to use and an installation procedure.

          ALSO: if any of you can tell me exactly which driver you're using (SNESDev or Gamecon or what...) and exactly which GPIO pins you're using for the SNES Controller (Clock, Latch, Data 1, Data 2) that would be amazing. LOL

          S 1 Reply Last reply Reply Quote 0
          • S
            SirBilly @Rookervik
            last edited by

            I can't find concrete instructions using either Gamecon or SNESDev anywhere, showing exact GPIO pins to use and an installation procedure.

            It is in the wiki page

            Gamepad3 = GPIO4 = Physical Pin07
            Gamepad4 = GPIO7 = Physical Pin26
            Gamepad5 = GPIO2 = Physical Pin03
            Gamepad6 = GPIO3 = Physical Pin05

            ALSO: if any of you can tell me exactly which driver you're using (SNESDev or Gamecon or what...) and exactly which GPIO pins you're using for the SNES Controller (Clock, Latch, Data 1, Data 2) that would be amazing. LOL

            To install from Emulation Station go to RetroPie .

            1. RetroPie Setup
            2. Manage Packages
            3. Driver
            4. gamecondriver

            Make sure you update installed packages first. The driver will give you a warning when you try to install.

            It comes with an option to permanently enable configuration for two SNES controllers using GPI04 and GPI03. (which would be pin#7 and pin#5.)

            Clock = pin#19
            Latch = pin#23
            Power = pin#01
            Ground = pin#06

            Note both players Clock/Latch go to the same Pin#.

            RookervikR 1 Reply Last reply Reply Quote 0
            • RookervikR
              Rookervik Global Moderator @SirBilly
              last edited by Rookervik

              @SirBilly This is some great information! I went to the Wiki but didn't even see this.

              Updated the Setup Script and was welcomed to the new install/manage menus. Found the gamecon and tried to install it again and it failed. I am working on getting a SD card and 4.0 RetroPie image set up. I don't want to wipe a 64 gig SD card with (so far) perfectly set up RetroPie unless I know it's going to work.

              Also, it would be great to update the information on the Wiki to modern Raspberry standards. The GPIO pinout is for the old 20 pin GPIO and you would have had to jump on the RetroPie train very very early to have that Pi. Once I get this working I will make a very easy-to-follow instruction set. :D

              1 Reply Last reply Reply Quote 0
              • RookervikR
                Rookervik Global Moderator
                last edited by

                SUBARASHII!!!! Updating to RetroPie 4.0 (and losing all my sexy pipplware stuff) fixed the Gamecon install error and once installed, took me by the hand and got my controllers working. I might try to see if someone can help me get Gamecon installed on my 3.7 RetroPie so I don't have to start over, completely. Have way too much custom stuff to lose it all.

                Thank you to everyone that gave me pointers. Gamecon was the cure. And updating RetroPie, I guess.

                DarksaviorD 1 Reply Last reply Reply Quote 0
                • DarksaviorD
                  Darksavior @Rookervik
                  last edited by Darksavior

                  @Rookervik
                  I was running snesdev for a while, and reading up on gamecon and this thread, I wanted to try the gamecon driver and re-soldered my points accordingly. The gamecon driver saw my two snes pads and set them up without any warnings, but only one button from each controller is detected in ES. Anything extra needed to do? I checked my connections with a multimeter so that's not the problem. Controller port is getting the 3.3v. I'm running 4.0.2 clean install. I used the instructions @SirBilly provided

                  Update: Fixed my problem. The gauge of wire was just too thin. Works perfectly with an ide cable...well almost perfect. It doesn't work on the retropie-setup area or when you need to press a button to alter a game's setting right before loading it. No big deal, i guess. I can use a kb for that. Now my pi shuts down much faster without the snesdev driver.

                  1 Reply Last reply Reply Quote 0
                  • denisuuD
                    denisuu
                    last edited by denisuu

                    I de-soldered the ports on the controller plate and made a layout, can anyone check if this is correct? Why does the comment above and wiki say to wire it to 3.3v while the controller needs 5v? I already have a RF module wired up to the red pin on the picture. I will get some rainbow jumper wires and solder them directly into the holes.

                    alt text

                    DarksaviorD 1 Reply Last reply Reply Quote 0
                    • DarksaviorD
                      Darksavior @denisuu
                      last edited by Darksavior

                      @denisuu Because it runs fine with 3.3v. I also fixed my issue with the pad working in retropie setup. I had to set the controller to Player 1. If you have any issues, please read the guide: https://github.com/retropie/retropie-setup/wiki/GPIO-Modules#gamecon_gpio_rpi

                      denisuuD 1 Reply Last reply Reply Quote 0
                      • denisuuD
                        denisuu @Darksavior
                        last edited by denisuu

                        delete

                        1 Reply Last reply Reply Quote 0
                        • denisuuD
                          denisuu
                          last edited by

                          I took some parts out of a old computer (header pins & audio connection cable) and soldered them onto the SNES plate. I used the recommended GPIO setup from the gamecon installer.

                          But only button A is working on player 2. I'm pretty sure my soldering is good, and I suppose the wire thickness is also ok since the original ribon cable is very small. I read something about the 3 different revisions of controllers.

                          The question is what can I do about it?

                          alt text

                          alt text

                          alt text

                          DarksaviorD 1 Reply Last reply Reply Quote 0
                          • DarksaviorD
                            Darksavior @denisuu
                            last edited by

                            @denisuu You need to bridge both clocks for both pads to work. I was having issues when I was using thin wires. I'm using whatever thickness IDE cables are.

                            denisuuD 1 Reply Last reply Reply Quote 0
                            • denisuuD
                              denisuu @Darksavior
                              last edited by

                              @Darksavior

                              Yea both clock's are bridged I checked all connections in the front ports with the RPI GPIO pins and the wiring is good. But when I push B it shows as if I push all buttons at once in jstest. IDE cables are very thin for sure these wire's are thicker. But maybe the cable is too long it's 67cm.

                              I will reinstall retropie, find thicker wires and try again.

                              Controller 2 doesn't want to do anything at all I tried (GPIO7=Pin26 or GPIO3=Pin05)
                              With gamecon_gpio_rpi map=0,0,1,1,0,0 and 0,0,1,0,0,1...

                              DarksaviorD B 2 Replies Last reply Reply Quote 0
                              • DarksaviorD
                                Darksavior @denisuu
                                last edited by Darksavior

                                @denisuu
                                I'm using the default config retropie has for the gamecon driver which is 2 snes controllers. My wires are around half as long as of yours.
                                Pin1=3.3v
                                Pin5=D2
                                Pin6=GND
                                Pin7=D1
                                Pin19=C1/C2
                                Pin23=L

                                denisuuD 1 Reply Last reply Reply Quote 0
                                • denisuuD
                                  denisuu @Darksavior
                                  last edited by

                                  @Darksavior

                                  That works thanks!! It's a completely different layout then the Wiki and driver installer suggest tough. Also it turned out one of my controllers just isn't working :P

                                  alt text

                                  Anyway I made a small fool tutorial here

                                  1 Reply Last reply Reply Quote 0
                                  • DarksaviorD
                                    Darksavior
                                    last edited by

                                    The gamecon installer pinout is almost correct except for the player pins need to be switched around. No need for a tutorial but ok...

                                    denisuuD 1 Reply Last reply Reply Quote 0
                                    • denisuuD
                                      denisuu @Darksavior
                                      last edited by

                                      @Darksavior I realize that now by looking at the picture again that I was just stupid. I put clock and latch at the wrong place the whole time because I just counted one empty pin from the bottom. Anyway I'm happy It's finally working.

                                      alt text

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        beudbeud @denisuu
                                        last edited by

                                        @denisuu Hi i have the same problem i wanna how you do for fix it?

                                        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.