Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Jack Drake
    J
    • Continue chat with Jack Drake
    • Start new chat with Jack Drake
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    Jack Drake

    @Jack Drake

    0
    Reputation
    2
    Posts
    150
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Jack Drake Follow

    Posts made by Jack Drake

    • RE: M5paper battery or deep sleep issue

      Hi, thanks for you fast reply. Sounds like I need to play a little bit around with deep sleep to avoid fast battery drain.

      posted in Units
      J
      Jack Drake
    • M5paper battery or deep sleep issue

      I've created a piece of code receiving some sensors states with mqtt and publish m5paper temperature and battery voltage via mqtt to home assistant. To keep the m5 awake I run a simple loop:

      hile True:
      wait(30)
      m5mqtt.publish(str('temp_nebeneingang'),str((sht30.temperature)))
      m5mqtt.publish(str('battery_m5paper'),str((bat.voltage())))

      So far so good, but in case I run this on battery after about 2h the m5 stops working showing the last display. During this timeframe battery voltage reported went down from 4900 to 3200 within 2,5 hours.
      What I'm unsure about: Is the m5 going to deepsleep and not responding anymore or is the battery really empty after this short timeframe?
      Even pressing the reset button doesn't evoke anything, only connecting usb power again.

      posted in Units
      J
      Jack Drake