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

    TVOC/Co2 Uiflow Problem

    Scheduled Pinned Locked Moved Units
    2 Posts 2 Posters 3.4k 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.
    • A Offline
      aek56
      last edited by

      Hi there

      The newly introduced Uiflow for TVOC does not work properly, it does not give me any CO2 and TVOC back, does all the time reports 400/0. Works without any problem in Arduino.

      Can you please have a look at ? Would be a benefit for me to use it thru Uiflow.

      Thanks and Regards
      aek56

      1 Reply Last reply Reply Quote 0
      • P Offline
        pierre.halleux
        last edited by

        Same here.

        I tried this and this keep displyaing eCO2 400...
        Any idea?

        from m5stack import *
        from m5ui import *
        from uiflow import *
        import unit

        setScreenColor(0x111111)
        tvoc0 = unit.get(unit.TVOC, unit.PORTA)

        CVO = None
        MAX = None

        H2T = M5TextBox(53, 19, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        H2 = M5TextBox(0, 19, "H2", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        BT = M5TextBox(21, 48, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        TVOCT = M5TextBox(63, 80, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        BTVOCT = M5TextBox(72, 112, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        eco2T = M5TextBox(63, 136, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        B = M5TextBox(0, 48, "B.", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        TVOC = M5TextBox(0, 80, "TVOC", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        BTVOC = M5TextBox(0, 112, "B. TVOC", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        eCO2 = M5TextBox(0, 136, "eCO2", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        Ethanol = M5TextBox(0, 173, "Ethanol", lcd.FONT_Default, 0xFFFFFF, rotate=0)
        EthanolT = M5TextBox(62, 173, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)

        MAX = 1400
        tvoc0.set_iaq_baseline(35187, 35502)
        while True:
        H2T.setText(str(tvoc0.H2))
        BT.setText(str(tvoc0.get_iaq_baseline()))
        TVOCT.setText(str(tvoc0.TVOC))
        BTVOCT.setText(str(tvoc0.baseline_TVOC))
        eco2T.setText(str(tvoc0.eCO2))
        EthanolT.setText(str(tvoc0.Ethanol))
        if (tvoc0.eCO2) > MAX:
        M5Led.on()
        speaker.sing(196, 1/2)
        M5Led.off()
        wait_ms(2)

        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