Navigation

    M5Stack Community

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

    Tbob

    @Tbob

    0
    Reputation
    1
    Posts
    588
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Tbob Follow

    Posts made by Tbob

    • RE: M5Paper Shutdown() / Deep Sleep / Wakeup

      Hi,
      I'm currently using this small work-around to differenciate the power source between battery and USB.
      It basically involves monitoring the voltage after initializing M5.BatteryADCBegin() (via M5.getBatteryVoltage() to be more precise). Measuring a voltage over 4200 mV (empirically evaluated!) indicates most of the time a USB-usage. Under that value, there are high chances that the device is on battery.
      So far, this work-around is doing its job pretty well for me.
      I hope it might help!
      Cheers,
      t.

      posted in Cores
      T
      Tbob