Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    DeepSleep Current Consumption

    Scheduled Pinned Locked Moved SiPy
    deepsleepdeep sleep shiecurrent consump
    2 Posts 2 Posters 610 Views 3 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.
    • S Offline
      spiderplant0
      last edited by spiderplant0

      Hi, I can only manage to get deep-sleep current down to 570uA (should be 10uA). I wonder if I'm missing something that needs to be deactivated prior to entering deep sleep. I've posted my code below...

      SiPy - v1.0
      Expansion Board V2.1A
      using deepsleep shield
      Firmware: 1.18.1.r1
      Using latest deepsleep.py
      Measuring current at the battery (USB not connected)

      import sys
      import pycom
      import time
      
      pycom.heartbeat(False) 
      pycom.rgbled(0x020202) 
      pycom.heartbeat_on_boot(False)
      pycom.wifi_on_boot(False)
      
      from deepsleep import DeepSleep
      ds = DeepSleep()
      
      def deepSleepTimer_handler( arg ):
          ds.go_to_sleep(10) 
          
      from machine import Timer
      #Put into deepsleep after 20 secs (delay gives you a chance to upload fresh code)
      deepSleepTimer = Timer.Alarm(deepSleepTimer_handler, 20, arg=0, periodic=False)
      
      
      P 1 Reply Last reply Reply Quote 0
      • P Offline
        psychogenic @spiderplant0
        last edited by

        @spiderplant0 Hi,
        I can't speak to the specifics of your case--I'm using a bare GPy sitting on a custom board--but I've also been looking into deep sleep current consumption.

        I started a thread on the GPy board, where you can see my tests and results, but the short version is that with all the networks/peripherals down and doing a machine.deepsleep() the best I've gotten is also around the 0.5mA mark.

        This is a total guess, but it looks very similar to doing a deepsleep() rather than actually "pulling the plug" as that shield seems to allow for.

        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
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom