PaHUB + ENVIII pressure reading issue



  • Using an Atom Matrix with a PaHUB, a TVOC/eCO2 unit and an ENVIII gives a strange pressure result.
    The pressure value reads about 5 times the actual pressure level. This is the same whether the ENV is solo, or the other sensor is connected. Other readings seem to be working as expected,
    When the ENVIII is connected on its own the pressure readings are as expected.
    from m5stack import *
    from m5ui import *
    from uiflow import *
    import wifiCfg
    from m5mqtt import M5mqtt
    import time
    import unit

    rgb.set_screen([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0xFFFFFF,0,0,0,0])
    tvoc_2 = unit.get(unit.TVOC, unit.PAHUB1)
    pahub_0 = unit.get(unit.PAHUB, unit.PORTA)
    env3_0 = unit.get(unit.ENV3, unit.PAHUB0)

    tempdata = None
    humdata = None
    pressdata = None
    iapbase = None
    tvoc = None
    basetvoc = None
    co2 = None
    baseco2 = None
    h2 = None
    eth = None

    wifiCfg.doConnect('', '')

    m5mqtt = M5mqtt('atomenv', '192.168.178.14', 1883, '', '', 600)
    m5mqtt.start()
    tvoc_2.set_iaq_baseline(35187, 35502)
    while True:
    tempdata = env3_0.temperature
    humdata = env3_0.humidity
    pressdata = env3_0.pressure
    m5mqtt.publish(str('temperature'),str(tempdata))
    m5mqtt.publish(str('humidity'),str(humdata))
    m5mqtt.publish(str('pressure'),str(pressdata))
    wait(2)
    iapbase = tvoc_2.get_iaq_baseline()
    tvoc = tvoc_2.TVOC
    basetvoc = tvoc_2.baseline_TVOC
    co2 = tvoc_2.eCO2
    baseco2 = tvoc_2.baseline_eCO2
    h2 = tvoc_2.H2
    eth = tvoc_2.Ethanol
    m5mqtt.publish(str('IAPbaseline'),str(iapbase))
    m5mqtt.publish(str('TVOCnow'),str(tvoc))
    m5mqtt.publish(str('TVOCbase'),str(basetvoc))
    m5mqtt.publish(str('CO2'),str(co2))
    m5mqtt.publish(str('CO2base'),str(baseco2))
    m5mqtt.publish(str('H2'),str(h2))
    m5mqtt.publish(str('ethanol'),str(eth))
    wait_ms(2)