[Solved] Power consumption deep sleep Pysense/Pytrack
-
According to specs of pytrack peripherals,
GPS (Quectel L76-L):
acquisition/tracking : 22/29mA
standby: 0.5mA (after sending "$PMTK161,028\r\n")
backup: 7µAAccelero (LIS2HH12):
Normal: 50µA (ODR 10Hz)
Power down: 5µAAfter setup_sleep(30) and go_to_sleep(), are GPS & LIS still powered ?
What is the PIC doing concerning them with CMD_SETUP_SLEEP & CMD_GO_SLEEP ?
-
I am getting the same results. Latest PySense Library. Testing on 5v Input. Looks like we need to disable all the peripherals but I was hoping the PySense library would do that. This thing not sleeping well is causing me to not sleep well. Is that irony?
import time from pysense import Pysense time.sleep(10) py = Pysense() py.setup_sleep(30) # setup a 10 seconds sleep time py.go_to_sleep()
from network import WLAN from network import Bluetooth from machine import UART import os uart = UART(0, 115200) os.dupterm(uart) wlan = WLAN() wlan.init(mode=WLAN.STA) wlan.deinit() bt = Bluetooth() bt.deinit()
-
I guess it is due to the peripherals (all the sensors) which are not put into standby. also see the following post regarding the gps on the pytrack.
https://forum.pycom.io/topic/1409/power-consumption-on-pytrack-with-sipy
-
Are you going into deep sleep using the Pysense calls?
py = Pysense() py.setup_sleep(SLEEP_TIME) py.go_to_sleep()