Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    GPIO buttons work, but directions do not

    GamePad/GPIO/USB encoder
    gpio buttons directions
    2
    3
    342
    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.
    • Temporalin
      Temporalin last edited by

      Hi!

      First of all, I'm asking in place of a friend, because he is not as good with "deep technicalities" as I am, and he asked me for help.

      He is trying to build a custom mini-arcade using a Raspberry Pi 2. He is using GPIO for input, following the default pinout for Recalbox.

      The buttons work (he has set up 3 buttons only), but the directions do not. We have checked with a multimeter that the hardware works, and it does output signals when you push.

      I ssh'd into the machine and tried modifying recalbox.conf to edit the mappings, to no avail.

      I tried following the steps in https://recalbox.gitbook.io/documentation/tutorials/controllers/gpio/gpio-controls/gpio-joystick-driver-for-raspberry-pi, but I couldn't because the machine does not have sudo nor apt/apt-get

      I couldn't test with jstest so I had to use "cat /dev/input/js0", which changed when you pushed buttons but still showed nothing when moving the stick.

      How can we get it to work? The only thing I can guess is happening is that the voltage of the output is not enough, or something like that, but I can't find how should it be or if instead of digital output it has to be analog or what.

      If more information is needed I can get it and post it.

      Zing 1 Reply Last reply Reply Quote 0
      • Zing
        Zing Global moderator Translator @Temporalin last edited by

        @temporalin See if this helps:
        https://forum.recalbox.com/topic/24422/no-sound-on-splash-screen-and-gpio-doubt

        Se a minha resposta foi útil, por favor, dê um voto positivo, clicando na seta para cima logo abaixo da resposta, ao lado de "citar".
        If my answer was helpful, please give a positive feedback by clicking the up arrow below the answer, next to "quote".

        Temporalin 1 Reply Last reply Reply Quote 0
        • Temporalin
          Temporalin @Zing last edited by

          @zing I can't see the relation between that problem and ours. That person had a problem mapping buttons, so they were able to read signals from the hardware, and the problem was button related, not joystick. In our case we haven't even reached the point where we could read anything from the directional joystick.

          1 Reply Last reply Reply Quote 0
          • Locked by  admin admin 
          • First post
            Last post

          Want to support us ?

          70
          Online

          98.6k
          Users

          28.1k
          Topics

          187.0k
          Posts

          Copyright © 2021 recalbox.com