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

    How to make M5StickC go into light sleep?

    UIFlow
    2
    5
    8.3k
    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.
    • J
      jhfoo
      last edited by

      Battery runs out fast with current drain at about 50mAh if Get VBus Current is accurate. Looking to make it last longer with regular sleep intervals. How can this be done either in Python or UiFlow?

      1 Reply Last reply Reply Quote -1
      • m5stackM
        m5stack
        last edited by

        UIFlow does not currently provide this feature.

        J 1 Reply Last reply Reply Quote 0
        • J
          jhfoo @m5stack
          last edited by

          @m5stack can you confirm there is no python module/ library today that support this?

          m5stackM 1 Reply Last reply Reply Quote 0
          • m5stackM
            m5stack @jhfoo
            last edited by

            This API in the official mainline is provided. but currently UIFlow has not integrated this API. so if you want the use this function , you could use official mpy firmware. you could refer this docs

            http://docs.micropython.org/en/latest/esp32/quickref.html#deep-sleep-mode

            J 1 Reply Last reply Reply Quote 0
            • J
              jhfoo @m5stack
              last edited by

              @m5stack Did a quick machine.deepsleep(10000) test and it seems to work! Will add more code to see how this extends battery life.

              Thanks!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post