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

    CORE 2 and how to chain 2x paHUB2

    Scheduled Pinned Locked Moved Modules
    ged
    3 Posts 2 Posters 2.3k 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 Offline
      Thierry REY
      last edited by

      Dear, I using for my project a Core 2 controller and I need to have more than 6 I2C ports. I am developing under the graphical interface UIFLOW.

      In this contexte, I bought 2x pa.HUB2 units (I2C Hub 1 to 6 Expansion Unit).

      I changed the default I2C address of the second paHUB2 unit (from 0x70 to 0x71). Then I plugged this device to the channel 5 of the first pa.HUB2 unit.

      To test, i made a very simple program based on 2 sensors, a TOF sensors connected to the channel 0 of the first pa.HUB2. This first pa.HUB2 is connected to the port A of the CORE 2 controller.

      and a second sensor, ENV III sensors who is connected to the second pa.HUB2 unit, channel 0.

      When I run my simple program (based only on a loop to refresh 2 labels to get ENV III temperature and TOF distance), I got a BUS error.

      I am stuck on this, what I am doing wrong ?

      Thanks for your help

      Thierry

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

        Hello @Thierry-REY

        a paHUB is only required if you have multiple I2C devices which use the same I2C address.

        In your case TOF (0x29) and ENV III (0x44/0x70) can be connected in parallel (using a HUB unit) - no need for a paHUB.

        Also, if for some reason you need both paHUBs you can connect them in parallel as well since you changed the I2C address of one already.

        Note: If you want to use the paHUB with the ENV III in parallel you'll need to make sure non of the paHUBs use I2C address 0x70 (as it seems to be already used by ENV III).

        Wikipedia article about I2C.

        Thanks
        Felix

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

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Thierry REY @felmue
          last edited by

          @felmue said in CORE 2 and how to chain 2x paHUB2:

          HUB unit

          many many thanks.

          Thierry

          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