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

    PA.HUB2 Unit - documentation

    Units
    2
    6
    1.3k
    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
      tonyd
      last edited by

      Do anyone know if this device has any decent documentation? The product pages are confusing. The PAHUB page has some sample code but points to the PAHUB2 page. The PAHUB2 page has a link to some UIFLOW 1 sample code that has no explanation of what it is doing

      Both UIFLOW1 and UIFlow2 have the PAHUB as a unit but not the PAHUB2. I have no idea how to use this unit

      I like M5Stack products, but the documentation is, in my opinion, awful.

      I will see if I can work it out though

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

        Hello @tonyd

        PaHub and PaHub2 units have an identical API so you should be able to use the PaHub blocks in UIFlow2 for both.

        That said, you only need a PaHub/PaHub2 unit if you want to control more than one I2C unit of the same kind and these I2C units all have the same I2C address.

        If the I2C units you want to control all have different I2C addresses there is no need for a PaHub/PaHub2 unit as all I2C units can just be connected in parallel.

        Maybe let us know how your setup looks like and we can try to help you.

        Thanks
        Felix

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

        T 1 Reply Last reply Reply Quote 0
        • T
          tonyd @felmue
          last edited by

          @felmue

          I have a Stick C plus 1.1 and I want to attach a RFID2 and a GLASS2. The idea being I will display a message on the GLASS2 depending on the data read from the RFID2.

          I am using a PAHUB2 as the Stick C only has a single port, so I go from Stick C to PAHUB2 and have the RFRID2 on channel 0 and the GLASS2 on channel 1.

          Tony

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

            Hello @tonyd

            that setup doesn't require a PaHub/PaHub2 as the two I2C units: RFID2 (0x28) and GLASS2 (0x3D) use different I2C addresses. You can simply connect RFID2 unit and GLASS2 unit in parallel and since GLASS2 unit has two ports you don't need additional hardware either.

            Connect GLASS2 unit to M5StickCPlus and then connect RFID2 to the second port of the GLASS2 unit.

            Then in UIFlow2 add both units (GLASS2 and RFID2) and start programming them.

            BTW: I2C is a bus system - you can read up about it here.

            Thanks
            Felix

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

            T 1 Reply Last reply Reply Quote 0
            • T
              tonyd @felmue
              last edited by

              hi @felmue
              Thanks, I have it working now, I just didn't understand what PAHUB2 did.

              Do you happen to know what the GLASS2 Scroll method does? I want to scroll a line of long text from right to left. I can't find any documentation that describes each of the methods in detail

              Thanks again

              Tony

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

                Hello @tonyd

                I am glad to hear you got it working.

                Sorry, no, I don't know what the scroll method does.

                Thanks
                Felix

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

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