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

    PortA i2c unit not recognized in Core2 when stacked onto Servo2?

    Scheduled Pinned Locked Moved Modules
    6 Posts 2 Posters 6.4k 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.
    • S Offline
      swiminthesky
      last edited by

      Hi,

      I am using ExtIO2 unit with Servo2 stacked beneath Core2, but the Extio2 module is not recognized ("extio Connect Error").
      I am using the newest Extio2 library on with extio.begin(&Wire, 32, 33, 0x45) and beginning M5.begin(true,false,true,false,kMBusModeInput). This pins shouldn't be a conflict, as Servo2 is running by default on the internal bus wire1.begin(21,22).

      The Extio2 is recognized instantly at portA when used without the Servo2.

      Anyone has an idea what could cause this?

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

        Hello @swiminthesky

        I assume you are using an external power supply for the Servo2 module as suggested here. I also assume that the Servo2 module on its own works fine, correct?

        Are there any errors in the debug output? Maybe I2C related.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • S Offline
          swiminthesky
          last edited by swiminthesky

          Thanks Felix @felmue,

          external power is used. Servo2 example (on Wire1.begin(21, 22);) also works like a charm.

          I used both these M5 i2c scanners I2CScanInternalAndAllPorts and I2C_Tester, but no I2C devices are found.

          But after removing Servo2 the device is instantly found correctly!

          (Also: I used PaHub on PortA inbetween and Extio2 is also instantly found when Servo2 is not stacked)

          0_1666436715971_WIN_20221022_12_27_01_Pro.jpg
          (ext power is not used for the picture, the Bottom2 also didn't make a difference afaik)

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

            Hello @swiminthesky

            hmm, not sure what is going on.

            Maybe the Servo2 library still uses Wire somewhere internally?

            Could it be a mechanical problem?

            BTW: my I2CScanInternalAndAllPorts is for M5Paper - I have not tested it on other M5Stack devices.

            Thanks
            Felix

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

            1 Reply Last reply Reply Quote 0
            • S Offline
              swiminthesky
              last edited by

              Yes, it seems to be a hardware problem! I switched the Servo2 module and everything works perfectly and the i2c connections over port A runs without any interruptions. Thanks Felix @felmue and sorry for bothering!

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

                Hello @swiminthesky

                no worries. Thank you for reporting back. I am glad it now works for you.

                Thanks
                Felix

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

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post