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

    ENV IV Unit not working with firmware V2.0.8

    UiFlow 2.0
    3
    4
    561
    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.
    • D
      dcn91
      last edited by

      Hello,
      I did not succeed to make my ENV IV unit working with Firmware V2.0.8.
      Same issue with a M5Dial and a M5StickC

      The code (for StickC)

      import os, sys, io
      import M5
      from M5 import *
      from hardware import *
      from unit import ENVUnit
      
      label0 = None
      i2c0 = None
      env4_0 = None
      
      
      def setup():
        global label0, i2c0, env4_0
      
        M5.begin()
        label0 = Widgets.Label("label0", 4, 26, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu18)
      
        i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000)
        print(i2c0.scan())
        env4_0 = ENVUnit(i2c=i2c0, type=4)
        label0.setText(str(env4_0.read_temperature()))
      
      
      def loop():
        global label0, i2c0, env4_0
        M5.update()
      
      
      if __name__ == '__main__':
        try:
          setup()
          while True:
            loop()
        except (Exception, KeyboardInterrupt) as e:
          try:
            from utility import print_error_msg
            print_error_msg(e)
          except ImportError:
            print("please update to latest firmware")
      
      

      The output :
      [68, 118]
      Traceback (most recent call last):
      File "<stdin>", line 22, in <module>
      File "<stdin>", line 15, in setup
      File "unit/env.py", line 1, in init
      File "driver/bmp280.py", line 113, in init
      ValueError: device not found

      However, the 2 sensors are well detected during the I2C scan ( 68 is the SHT40, 118 is the BMP280).

      With Firmware V2.0.7, no issue for both devices.

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

        Hi @dcn91

        it's broken for me to. M5Dial UIFlow firmware v2.0.8. (And yes, with UIFlow firmware v2.0.7 it works fine.)

        Note: created an issue here.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • felmueF felmue referenced this topic on
        • M
          mattjcuk
          last edited by

          Hi,

          I had this too and messaged M5stack, they said it is a bug since the new firmware 2.08 and they are fixing it.

          2.07 works fine with it.

          Thanks,

          Matthew

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

            Hi guys

            please try v2.0.9 which has the issue resolved.

            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