🤖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

    Scheduled Pinned Locked Moved UiFlow 2.0
    4 Posts 3 Posters 2.0k 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.
    • D Offline
      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 Offline
        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 Offline
          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 Offline
            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

            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