Recalbox Forum

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

    Arduino Leonardo Controller run as a "joystick"

    GamePad/GPIO/USB encoder
    arduino leonardo run joystick
    3
    6
    3325
    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.
    • Gelbeseiten
      Gelbeseiten last edited by

      Hello,

      I am new and have only recently dealt with the Raspberrypi.
      I am very enthusiastic about the RecalboxOS package!
      Quickly installed and pretty much all the packages you need are there.

      Let's get to my problem.
      I would like to emolate the Arduino Leonardo Controller to run as a "joystick" like the "Arcade" machines.
      Has anyone there experiences with it?

      Would be great if he shared it with me!

      Thank you and have a nice day.

      Volkmar

      1 Reply Last reply Reply Quote 0
      • ironic
        ironic last edited by ironic

        I did it. It works well with an Arduino (ATmega32u4, not an ATmega328 / 168).
        You can also use a Teensy.

        There are many sites to learn how to do this.
        I used this lib :
        https://github.com/MHeironimus/ArduinoJoystickLibrary
        and an Arduino Pro Micro ATmega32U4 5V /16MHz (clone).

        My goal is to use RGB leds inside buttons and illuminating this buttons with any colors i want.
        Buttons will light just before an emulator is launched.
        If this emulator use only 4 buttons, only 4 buttons will be illuminating like neogeo colors buttons.
        It works but no time to finish it.
        I used addressable RGB led
        (WS2812 and/or APA106).

        e.g.
        https://www.youtube.com/watch?v=3JKofBaJCe4

        Rpi2/Rpi3 - LCD/CRT- NES30 Pro-iBUFFALO

        Substring Gelbeseiten 2 Replies Last reply Reply Quote 0
        • Substring
          Substring @ironic last edited by

          @ironic said in Arduino Leonardo Controller run as a "joystick":

          My goal is to use RGB leds inside buttons and illuminating this buttons with any colors i want

          rgbcommander ?

          Former dev - Please reply with @substring so that i am notified when you answer me
          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

          1 Reply Last reply Reply Quote 0
          • ironic
            ironic last edited by ironic

            No need rgbcommander.
            'All' is done by Arduino :

            • Joystick 'emulation' (no lag input, can emulate severals joysticks).
            • Keyboard 'emulation' (To add some key like 'Esc', 'F1'.... on joystick panel).
            • RGB leds driving. (24 bits Addressable LEDs are inside buttons and one in transparent joystick ball)

            There is a serial connection between Arduino and Rpi (USB cable).
            Arduino tell to Rpi, there is a joystick and a keyboard connected.
            Rpi send (python script before launchin emulator) serial commands to Arduino for selecting LEDs colors.

            All is working but i need a 3d printer to perfectly integrate my RGB LEDs in buttons...

            Can use a ESP8266 for wireless joystick.

            Rpi2/Rpi3 - LCD/CRT- NES30 Pro-iBUFFALO

            1 Reply Last reply Reply Quote 0
            • Gelbeseiten
              Gelbeseiten @ironic last edited by

              @ironic

              THX a lot for your Info!

              I will try that out in the next days and I will let you know.

              Have a good one!

              Best

              1 Reply Last reply Reply Quote 0
              • Gelbeseiten
                Gelbeseiten last edited by

                The illuminated Buttons are great!
                If my Project is ready, I will try that as well out!

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

                Want to support us ?

                82
                Online

                98.7k
                Users

                28.1k
                Topics

                187.0k
                Posts

                Copyright © 2021 recalbox.com