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

    How to connect three Unit Reflective IR via Unit PaHUB V2 in UIFlow2?

    Scheduled Pinned Locked Moved UiFlow 2.0
    uiflow 2hubpa-hubreflective-ir
    3 Posts 2 Posters 500 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.
    • M Offline
      mb
      last edited by

      I would like to build a line follow robot and read the analog values of three sensors. How can I connect three Unit Reflective IR via Unit PaHUB V2 to my AtomS3 Lite? It seems in the UIFlow2 GUI I can only add a single Unit Reflective IR. And it needs some custom pin input?

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

        Hello @mb

        Unit Reflective IR is a port B unit (black connector). So in order to connect multiple units you'll need a PbHub. (The b stands for port B.)

        (A PaHub is meant to connect multiple port A units (red connector) aka I2C with the same I2C address.)

        I created an UIFlow2 example to read three Unit Reflective IR via PbHub in UIFlow2 Project Zone called M5AtomLite_Three_ReflectiveIRUnit_UIFlow2.4.2

        Note: The example is how I think three reflective IR units can be read via PbHub. But actually this method is untested by me as I do not have the necessary hardware.

        Thanks
        Felix

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

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          mb @felmue
          last edited by

          @felmue Thanks again! It's now placed in my shopping basket :-)

          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