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

    有關TOF 4M經Pa Hub 2.1 連接問題

    Scheduled Pinned Locked Moved 提问专区
    2 Posts 2 Posters 1.5k 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
      matthewchan
      last edited by

      大家好, 我想用M5 StickC Plus 2連接3個4米激光測距儀。

      連接方式是用M5 Stick C 2 Plus 經I2C連接Pa.Hub V2.1, 然後channel 0, 1, 2各接一個TOF 4M

      我用排除法驗證了, 當執行以下句子就會出現error:
      tof4m_front = TOF4MUnit(PAHUBUnit(i2c=i2c0, channel=0), 0x70)

      我試過以TOF代替TOF 4M, 執行init TOF 是正常可以執行。

      因此, 我相信uiFlow 4M的init TOF4M function 應用在Pa.Hub 上句式出錯。請開發者更新uiFlow 2.0 這部分的語句。

      2fa8fc75-68d2-469c-8abf-92e8e4ec653b-image.png

      收到這個ERROR:
      MicroPython v1.24.0-dirty on 2025-01-18; M5STACK StickC PLUS2 with ESP32(SPIRAM)
      Type "help()" for more information.

      E (43754) i2c: i2c driver install error
      E (43771) time: The current date/time in Shanghai is: Wed Feb 19 01:17:10 2025
      E (43818) wifi:NAN WiFi stop
      E (43820) transport_base: poll_read select error 113, errno = Software caused connection abort, fd = 55
      E (43821) mqtt_client: Poll read error: 119, aborting connection
      [INFO] Syncing resources...
      [INFO] WiFi connected!
      [INFO] File apps/Infanity_V3.py already downloaded.
      [INFO] MD5 mismatch for file: main_ota_temp.py
      [INFO] File https://m5stack-uiflow2-file.oss-cn-shenzhen.aliyuncs.com/d57339e5cfd1369fbba516206d390db4/main_ota_temp.py downloaded successfully.
      [INFO] Downloaded and verified file: main_ota_temp.py
      [INFO] Sync finished.
      E (50435) i2c: i2c driver install error
      Traceback (most recent call last):
      File "main.py", line 50, in <module>
      File "main.py", line 37, in setup
      File "driver/vl53l1x.py", line 60, in init
      File "driver/vl53l1x.py", line 176, in get_model_info
      File "driver/vl53l1x.py", line 273, in _read_register

      TypeError: ![unexpected keyword argument 'addrsize']

      MicroPython v1.24.0-dirty on 2025-01-18; M5STACK StickC PLUS2 with ESP32(SPIRAM)
      Type "help()" for more information.

      1 Reply Last reply Reply Quote 0
      • kurikoK Offline
        kuriko
        last edited by

        @matthewchan
        这个问题已经修复了,等UiFlow2固件发下一个版本。

        Good morning, and welcome to the Black Mesa Transit System.

        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