🤖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?

    UiFlow 2.0
    uiflow 2 hub pa-hub reflective-ir
    2
    3
    66
    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
      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
        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
          mb @felmue
          last edited by

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

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