• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

MCP23017 and Retropie, some problem appears

Scheduled Pinned Locked Moved Help and Support
mcp23017gpiocontrollerrecalbox
40 Posts 5 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.
  • R
    rbaker @StoneSet
    last edited by 21 Jan 2018, 21:34

    @stoneset said in MCP23017 and Retropie, some problem appears:

    The problem, isn't hardware

    It could be. Unless you have a full circuit diagram of your design, it's not going to be possible to check for sure.

    1 Reply Last reply Reply Quote 0
    • R
      rbaker @StoneSet
      last edited by 21 Jan 2018, 21:36

      @stoneset Also is your Reset pin definitely high? Remember "Not RST" means low to reset - active low. Must be held high to run.

      1 Reply Last reply Reply Quote 0
      • S
        StoneSet
        last edited by StoneSet 21 Jan 2018, 21:47

        At this time, i don't have a full circuit diagram

        Here is the log when i try to run the script :
        https://pastebin.com/zZRM4ZmS

        And the reset pin is connected to 3.3V

        Best regards,
        http://stoneset.github.io

        M 1 Reply Last reply 21 Jan 2018, 22:12 Reply Quote 0
        • M
          mitu Global Moderator @StoneSet
          last edited by 21 Jan 2018, 22:12

          @stoneset said in MCP23017 and Retropie, some problem appears:

          Here is the log when i try to run the script :

          Just use the manual installation method from the github project page. The automated script tries to install something that's no longer available to download - there's nothing to fix that.

          1 Reply Last reply Reply Quote 0
          • S
            simonster
            last edited by simonster 21 Jan 2018, 22:58

            Hi @StoneSet

            Contary to @mitu's suggestion, I wouldn't follow the manual install. If you have already followed the manual install, you will probably now have overwritten your gcc with an old version after the first instruction, which may cause problems. You may need to update gcc back to the current build first.

            I would suggest installing using the mk_arcade_joystick in the retropie_setup script (this will do all that the install.sh would have done). Then following the instructions on the github page from More Joysticks Case downwards.

            Si

            M 1 Reply Last reply 22 Jan 2018, 05:34 Reply Quote 1
            • M
              mitu Global Moderator @simonster
              last edited by 22 Jan 2018, 05:34

              @simonster is right - the mk_arcade_joystick driver is already included in the RetroPie-Setup script, in the driver section. So you just need to install it from setup script and continue on.

              1 Reply Last reply Reply Quote 0
              • S
                StoneSet
                last edited by 22 Jan 2018, 08:42

                @mitu said in MCP23017 and Retropie, some problem appears:

                mk_arcade_joystick

                Hi thanks for your reply,
                I installed the driver with the script, but when I run :
                sudo modprobe mk_arcade_joystick_rpi map=1,0x20
                The module was not found....

                Do you have any suggestion ?

                Best regards,

                when I run : dpkg-query -l
                I get :
                ii mk-arcade-joystick-rpi-dkms 0.1.4 all mk_arcade_joystick_rpi driver in DKMS format.

                I also try : mk-arcade-joystick-rpi-dkms
                mkarcadejoystick

                Best regards,
                http://stoneset.github.io

                1 Reply Last reply Reply Quote 0
                • S
                  StoneSet
                  last edited by 22 Jan 2018, 08:47

                  I also get this erros when i try to run :
                  sudo dpkg -i mk-arcade-joystick-rpi-0.1.4.deb

                  (Reading database ... 89823 files and directories currently installed.)
                  Preparing to unpack mk-arcade-joystick-rpi-0.1.4.deb ...


                  Deleting module version: 0.1.4
                  completely from the DKMS tree.

                  Done.
                  Unpacking mk-arcade-joystick-rpi-dkms (0.1.4) over (0.1.4) ...
                  Setting up mk-arcade-joystick-rpi-dkms (0.1.4) ...
                  Loading new mk_arcade_joystick_rpi-0.1.4 DKMS files...
                  First Installation: checking all kernels...
                  dpkg: warning: version '-' has bad syntax: version number does not start with digit
                  It is likely that 4.9.77+ belongs to a chroot's host
                  Building for architecture armv6l
                  Module build for the currently running kernel was skipped since the
                  kernel source for this kernel does not seem to be installed.

                  Best regards,
                  http://stoneset.github.io

                  M 1 Reply Last reply 22 Jan 2018, 08:50 Reply Quote 0
                  • M
                    mitu Global Moderator @StoneSet
                    last edited by 22 Jan 2018, 08:50

                    @stoneset Are you using Berryboot or the RetroPie image ? How was your system installed ?

                    1 Reply Last reply Reply Quote 0
                    • S
                      StoneSet
                      last edited by 22 Jan 2018, 08:52

                      I used the retropie image, i burn the img with etcher

                      Best regards,
                      http://stoneset.github.io

                      M 1 Reply Last reply 22 Jan 2018, 08:56 Reply Quote 0
                      • M
                        mitu Global Moderator @StoneSet
                        last edited by 22 Jan 2018, 08:56

                        @stoneset The error comes from:

                        Module build for the currently running kernel was skipped since the
                        kernel source for this kernel does not seem to be installed.

                        However, you seem to be using an older version of the RetroPie-Setup script. Update the script and the underlying OS packages, then try again.

                        1 Reply Last reply Reply Quote 0
                        • S
                          StoneSet
                          last edited by 22 Jan 2018, 09:02

                          Okay i updated the script, but now I get a kernel error, I do not have the right update

                          Best regards,
                          http://stoneset.github.io

                          M 1 Reply Last reply 22 Jan 2018, 09:24 Reply Quote 0
                          • M
                            mitu Global Moderator @StoneSet
                            last edited by 22 Jan 2018, 09:24

                            @stoneset Did you update also the OS packages - including the kernel ? If so, then reboot so that the new kernel is picked up.

                            1 Reply Last reply Reply Quote 0
                            • S
                              StoneSet
                              last edited by 22 Jan 2018, 12:05

                              I don't know, I will try

                              Best regards,
                              http://stoneset.github.io

                              1 Reply Last reply Reply Quote 0
                              • S
                                StoneSet
                                last edited by StoneSet 22 Jan 2018, 21:30

                                Okay !! I successefully installed the driver !

                                But now i have got another problem :
                                When i run "jstest /dev/input/js0"

                                Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off

                                Only :

                                • Buttons 6 : on
                                • Buttons 8 : on

                                I also try to add a 10kohm to the button
                                (This shematics : alt text without the led

                                And I run properly everythin !
                                link text

                                I think, the map isn't correct with my configuration :
                                sudo modprobe mk_arcade_joystick_rpi map=1,0x20

                                Any suggestion ?

                                Best regards,
                                http://stoneset.github.io

                                R S 2 Replies Last reply 22 Jan 2018, 21:32 Reply Quote 0
                                • R
                                  rbaker @StoneSet
                                  last edited by 22 Jan 2018, 21:32

                                  @stoneset On a breadboard like that above, the power rails do not go all the way along, only half way.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    StoneSet
                                    last edited by 22 Jan 2018, 21:38

                                    So ?

                                    Best regards,
                                    http://stoneset.github.io

                                    R 1 Reply Last reply 22 Jan 2018, 22:01 Reply Quote 0
                                    • R
                                      rbaker @StoneSet
                                      last edited by 22 Jan 2018, 22:01

                                      @stoneset There are components on both sides of the gap - if there is a gap - on your board.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        simonster @StoneSet
                                        last edited by simonster 22 Jan 2018, 23:11

                                        @stoneset

                                        Use sudo i2cdetect -y 1 to get the value for the map figure.

                                        What is the resistor connected from 5v to pin 28 for, are you attempting to pull it high? According to the datasheet the chip does this automatically. Also you appear to have the led and resistor connected to pin 21 (up) and the reset pin connected to 5v.

                                        The pinout is as in this image: https://raw.githubusercontent.com/recalbox/mk_arcade_joystick_rpi/master/wiki/images/mk_joystick_arcade_mcp23017.png

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          StoneSet
                                          last edited by 29 Jan 2018, 23:17

                                          Hi,
                                          This is my schematics :
                                          Where i have to put the resistor ?

                                          alt text

                                          thanks a lot !

                                          Best regards,
                                          http://stoneset.github.io

                                          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.

                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]