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

    PbHUB doesn't work

    Scheduled Pinned Locked Moved Units
    3 Posts 3 Posters 6.1k 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.
    • R Offline
      Rob_D
      last edited by

      Hi,

      I have connected a PbHUB to the i2c bus of the M5stack and the angle sensor unit connected to the PbHub.

      Unfortunately, with the Arduino sample code, I only get a value of 255 on all ports (Multiple ports tried)
      Without the unit connected to i2c, all values ​​will be 0.

      I have already tried two different PbHUBS and two M5Stacks, both the same result.

      All other connected i2c units just work fine.

      Could there be an error in the code for the PbHUB?

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        Devilstower @Rob_D
        last edited by

        @rob_d I've also had no luck with the PbHUB, even when using a single unit. Switching to a PaHUB things worked as expected.

        In UIFlow, if I take an ENV sensor and hook it up to a port on the PbHUB, the program just gives me an error saying the unit wasn't found (and yes, I indicated the sensor was on the hub and selected to correct port). However, take the same unit and hook it up directly, or through a PaHUB, and everything is fine. I understand the PbHUB isn't suitable for using multiple sensors of the same type, but this is happening even with just a single sensor attached to the hub.

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          peixoto1970 @Devilstower
          last edited by

          @devilstower, I am newbie. I think pbhub is only for digital/analog readings, ENV (i2c multiple data) sensor is out os scope for this I/O expander. The right one for ENV is pahub, as you confirmed. Try PIR, ANGLE or BUTTON on pbhub, worked for me. Bye.

          M5stack Core2, StickC and some units.

          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