[Solved] Power consumption deep sleep Pysense/Pytrack
-
-
@jcaron @bucknall (+ others) here's our new (unofficial) Pysense test.
LoPy firmware: 1.7.6.b1
Pysense firmware: 0.0.4Our test program disabled WiFi and Bluetooth in boot.py and ran a 30s normal sleep (time.sleep()) and a 30s deep sleep (py.setup_sleep(30) + py.go_to_sleep()).
Here's our results:USB power
Normal sleep: ~57.2mA
Deep sleep: ~7.35mA3.7V LiPo battery
Normal sleep: ~49.1mA
Deep sleep: 2.2mAIt still appears that the Pysense has issues with deep sleep.
-
@Pwntus Ok I'll feed this back to Daniel again - apologies for getting your hopes up - I'll keep you in the loop with how this progresses.
Thanks for your patience,
Alex
-
I saw the same results for the Pysense as @Pwntus
Also noticed that if you used the MPL3115A2 pressure sensor (not sure about the others) it goes into deep sleep with it in active mode increasing consumption by about 1mA. But I think this one can be solved in the Python library by setting MPL3115_CTRL_REG1 to 0x0 (to clear SBYB bit in CTRL1 register)
mp = MPL3115A2(py) mp.i2c.writeto_mem(MPL3115A2.MPL3115_I2CADDR, MPL3115A2.MPL3115_CTRL_REG1, bytes([0x0]))before entering deep sleep.
-
@jmarcelino Ah good catch! I'll test this out - Thanks!
-
@bucknall
Just to be clear that 1mA is on top of the lingering 2mA... I'm not sure what's causing that one yet :) -
@jmarcelino Are you sure sensors on the PySense are powered during deepSleep ?
I have done tests on pytrack, and it looks like 3.3V is 'cut' for LoPy, LIS(accel) & GPS, explaining the ~17µA of the pytrack during deepsleep. -
@Emmanuel-Goudot
I see 2.6V on the MPL3115A2 Vdd pin during deep sleep so I guess it is active, for example on the Si7006-A20 (temp/humidity) I don't.My best guess is certain sensors can act as wake-up sources (e.g. pressure going above/below threshold) so they have separate power nets.
-
Is there any ETA on the deep sleep fix? This is delaying the shipping of one of my projects. We simply can't send it to the customer if the battery only lasts a few days or weeks.
-
Sorry for bumping this again, but now that a new LoPy firmware has been released, any news about the low power fix?
The specifications of the PySense on the website still says:
Ultra low power operation (~1uA in deep sleep)
...since that promise is still off by a factor of about 2500, at least an ETA would make me happy :)
-
@dbrgn Not really any changes with 1.7.8.b1.
LoPy firmware: 1.7.8.b1
Pysense firmware: 0.0.4USB power
Normal sleep: 48.8mA
Deep sleep: 7.4mA3.7V LiPo battery
Normal sleep: 40.2mA
Deep sleep: 2.2mA -
Cool, this is now fixed: 10.9uA :) https://forum.pycom.io/topic/1022/root-causes-of-high-deep-sleep-current/73
-
@dbrgn Thanks for the notification, I can confirm that it works!
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