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

    Retropie with rotary encoder issues.

    Scheduled Pinned Locked Moved Help and Support
    rotary encoderretropie
    4 Posts 4 Posters 878 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.
    • T
      thedudester80
      last edited by

      Hey guys,
      Ive been working on a gaming project for awhile that uses a rotary encoder for left and right for games like pong or tempest. I really enjoy these kinds of games and a D pad just doesn't do them justice. Anyway I have setup gpio inputs for keyboard on retropie and the rotary encoder is recognized but I'm getting the same input for both turning directions. So I can set it to right or left but I can't have both. Another problem is that it holds for half turns and I can not continuously turn it to make assets move in the game. For example the main menu. Every click turn is not recognized but if I do half turns it holds that input.

      Here is the Rotary encoder I'm using. https://www.amazon.com/Cylewet-Encoder- ... oder&psc=1
      with a Pi Zero
      I have Ground to pin 14
      +to pin 1
      Clk to pin 7
      DT to pin 10
      SW to pin 15
      Any help would be greatly appreciated

      Mint Boy, Case Arcade, New Projects Coming soon....

      rbakerR 1 Reply Last reply Reply Quote 0
      • rbakerR
        rbaker @thedudester80
        last edited by

        @thedudester80

        https://retropie.org.uk/docs/Spinners,-Trackballs,-Lightguns,-and-other-Mouse-Devices/

        1 Reply Last reply Reply Quote 0
        • caver01C
          caver01
          last edited by

          @thedudester80 As rbaker implies above, you are probably better off using a spinner device (effectively, mouse input) to play games that use spinners like tempest.

          WIth an indexing rotary, the best you are getting is a digital "trigger" either up or down. While this may be mappable to keyboard kepresses or gamepad buttons with the right controller, it is like pressing a button, or using a digital joystick over and over. This is not the way to capture accurate speed inputs the way a mouse input would work.

          However, that kind of indexer would work for something like Frontline.

          My 4-player cocktail style cabinet built as a custom "roadcase"

          1 Reply Last reply Reply Quote 0
          • H
            hopwon
            last edited by

            thedudester80 I am trying to create almost the same thing. Did you ever get this 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.