🤖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?

    Scheduled Pinned Locked Moved UIFlow
    5 Posts 2 Posters 10.2k Views 1 Watching
    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 Offline
      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 Offline
        m5stack
        last edited by

        UIFlow does not currently provide this feature.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          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 Offline
            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 Offline
              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

              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