Pysense 2.0X: How to keep the module's RTC active in (deep) sleep so time can be kept?
-
I figured out how to use the Pysense 2.0 X board to monitor other sensors (by connecting them to the external IO header), and it is a great product because it has the onboard sensors, the MicroSD card, and a well functioning sleep mode that powers down everything (including the sensors). But the Pysense's go_to_sleep() command also powers down the LoPy4/GPy,/WiPy/.. module and hence time is no longer kept during the sleep which is a major limitation. The problem is well described here: [https://forum.pycom.io/topic/4382/restore-rtc-value-after-pysense-go_to_sleep] But the workaround suggested is not entirely satisfying.
Is there a way to first power down the MicroSD card and all sensors (using commands like py.sensor_power(False) included in pycoproc.py) without powering down the module? And next to bring the module in deepsleep mode using the machine.deepsleep() function? The trouble is the lack of documentation on how this pic processor on the Pysense is used.
-
@Gijs
Unfortunately I got stuck when doing the Pysense 2.0X firmware update. See my call for help in https://github.com/pycom/pycom-libraries/issues/132#issuecomment-748895114
Looks like I am not the first Pycom user running into this trouble, but I can't find a clear solution on the forum.
-
@Gijs Thanks very much. I will try this and report back.
Jan
-
I was looking for this last week, but could not remember where I saw it. My colleague already published a sneak preview here: https://github.com/pycom/pycom-libraries/issues/132#issuecomment-748895114
Gijs
-
Hi Gijs,
Thanks very much. I look forward to the solution.
Jan
-
Hi,
We are currently working on providing a solution for the other issue and taking this in account there as well! I hope we can publish something after ChristmasGijs