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

    M5stickC plus Save power

    Scheduled Pinned Locked Moved Micropython
    2 Posts 1 Posters 2.4k Views
    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.
    • T Offline
      thijsnl
      last edited by

      Hi everybody.,

      I am working on making the m5stickC plus run as energy-efficiently as possible.

      machine.deepsleep(*)

      The above code is possible to save energy on the m5stickC plus.

      0_1705145894762_Schermafbeelding 2024-01-13 123458.png

      Now I use external modules that are connected to the 5Vout. actually I want the 5Vout to go out too.
      The DOCS of m5stick states that you can communicate with the AXP192 Chip via I2C (21,22).
      With this I want to disable the IPSout and enable it again.

      What code can I use for this? And do you have any more ideas about what I can do?
      I program in VScode and with an extension vscode-m5stack-mpy

      P.S. I asked AI to write some code for this and came up with the following
      0_1705146137828_9a83628f-2e6a-429a-9877-b0b1bbbbb491-image.png
      as you probably understand the code doesn't work

      1 Reply Last reply Reply Quote 0
      • T Offline
        thijsnl
        last edited by

        At the moment I am using the following code to save energy.

        screenlight turn off, not the backlight.
        axp.setLcdBrightness(0)

        wifi turn off
        wlan = network.WLAN(network.STA_IF)
        wlan.active(False)

        but still the total curent use is 150-200mA

        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