🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Change I2C address of joystick module

    SOFTWARE
    joystick i2c
    3
    6
    4.4k
    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
      tttttttom
      last edited by

      hi,
      does anyone know if it is possible to change the i2c address of a joystick module? I would like to use two joysticks on the port A.
      I am very geartful for any hint..
      thanks and regards
      tom

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @tttttttom

        if I am not mistaken there is no joystick module - did you mean the joystick unit?

        The joystick unit uses an MEGA328P processor inside which most likely has the I2C address programmed in it and I cannot find the source of the firmware running inside the MEGA328. Given that I would say you cannot change the I2C address.

        Your best bet would be a PaHub unit which has been developed exactly to solve that use case.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • T
          tttttttom
          last edited by

          Hello Felix,
          thank you for sharing your knowledge. And yes, my question concerns the joystick UNIT. And yes, I would like to change the i2c address inside the MEGA328P. But the unit you are mentioning is also fine. I will check that ...
          Regards
          Tom

          1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3
            last edited by

            @felmue is correct here that the PaHub is what needed however,
            There is a header inside that if you solder the pins, the address will change.0_1630333824840_address.png

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 0
            • felmueF
              felmue
              last edited by

              Hello guys

              @ajb2k3 : that is interesting - thanks for sharing.

              @tttttttom : sorry for misleading you.

              Also interestingly these address pins are not mentioned in the schematic.

              Thanks
              Felix

              GPIO translation table M5Stack / M5Core2
              Information about various M5Stack products.
              Code examples

              ajb2k3A 1 Reply Last reply Reply Quote 0
              • ajb2k3A
                ajb2k3 @felmue
                last edited by

                @felmue they are, its just that it takes a bit of comparison work to spot them.
                they appear as R17, R18 and R19.

                UIFlow, so easy an adult can learn it!
                If I don't know it, be patient!
                I've ether not learned it or am too drunk to remember it!
                Author of the WIP UIFlow Handbook!
                M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

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