DeepSleep Current Consumption



  • 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)
    
    


  • @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.



Pycom on Twitter