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

    PaHub v2.1 Doesn't recognise ENV III Unit

    General
    2
    5
    155
    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.
    • B
      Boomvalt
      last edited by Boomvalt

      Having difficulty with getting my ENV III Unit recognised. Setup below:

      UIFlow2.0 AtomS3R v2.2.8
      PaHub v2.1 - DIP switches on factory setting.
      ENVIII Unit

      The ENV III works fine without the hub. but will not work in any assigned port, whether on it's own, or with other units.
      Other I2C units work as expected. Only the ENV III has this problem.
      All channels tried.

      Has anyone else had this happen?
      Thanks in advance for any help.

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

        Hello @Boomvalt

        PaHub and ENV III unit share the same I2C address 0x70 by default. See here.

        Thanks
        Felix

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

        B 1 Reply Last reply Reply Quote 0
        • B
          Boomvalt @felmue
          last edited by

          @felmue I followed the instructions, and am getting this result"

          Traceback (most recent call last):
          File "<stdin>", line 21, in <module>
          File "<stdin>", line 15, in setup
          File "unit/env.py", line 41, in init
          File "driver/qmp6988.py", line 99, in init
          File "unit/pahub.py", line 100, in readfrom_mem
          File "unit/pahub.py", line 37, in select_channel
          OSError: [Errno 19] ENODEV

          Here is the relevant code
          Screenshot from 2025-06-04 01-08-45.png

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

            Hello @Boomvalt

            I do not have an M5AtomS3R, but with my M5AtomS3 it works for me. See M5AtomS3_PaHUB_EnvIII_EnviV_UIFlow2.2.8 example in UIFlow2 Project Zone.

            Make sure you power-cycle everything after changing the I2C address of PaHub. And maybe try another channel for the EnvIII unit?

            Thanks
            Felix

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

            B 1 Reply Last reply Reply Quote 0
            • B
              Boomvalt @felmue
              last edited by

              @felmue Finally got it working correctly. In addition to your code, I initialised the Pahub, and then changed the dip switch to 0x71. Additional units work fine when assigned to 0x71.
              Thanks for the help!

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