"get Battery Level" issue

  • Hi, I am using the 24bit HX711 connected on port A to measure the weight from sensor. All works, but when call the "get Battery level" , the measurement show nonsense number and stop working. Any idea ?

    Device: M5Stack core
    firmware: v1.8.3 (via M5Burner)
    UIFlow: v1.8.3

  • Hi @rbarsa ,
    Could you paste your block code picture?

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

    weigh_1 = unit.get(unit.WEIGHT, unit.PORTA)

    proc = M5TextBox(90, 46, "proc", lcd.FONT_DejaVu40, 0xFFFFFF, rotate=0)
    gram = M5TextBox(128, 125, "gram", lcd.FONT_DejaVu40, 0xFFFFFF, rotate=0)
    label2 = M5TextBox(0, 46, "Bat:", lcd.FONT_DejaVu40, 0xFFFFFF, rotate=0)
    label3 = M5TextBox(0, 125, "Wght:", lcd.FONT_DejaVu40, 0xFFFFFF, rotate=0)

    while True:

  • When using the MQTT the simmilar problem occure. The weight value sometimes shows nonsense number.