Close

Power Save Mode

A project log for Condensation Alert

A small project to check out M5StickC with MicroPython by combining it with a useful application in my apartment.

nikolaNikola 02/09/2020 at 13:220 Comments

Since the last log entry I have made a lot of changes and tests:

1.) I have switched to a Raspberry Pi Zero W. I had troubles with the network port of the Banana Pi

2.) I found out that my USB-battery-pack turns off, if there is no current consumption. This means everytime the M5StickC switched to deep-sleep it turned off and the long term test failed. I am now using PowerBooster 1000 Charger from Adafruit with a 2000mAh Lipo.

Still with this change I got only one day of data. My time unit for the long term test is a day. Because the module connects only once in 24h and there is no way to have a console. I looked a little bit deeper in the schematic of the M5StickC and found out that there is a PMIC (AXP192) that supplies all ICs on the module. I have also learned (from here https://github.com/m5stack/M5StickC/blob/master/src/AXP192.cpp) that it is possible to turn all chips off except the RTC.

I have now implemented the turn off command in the condensation_alert.py (see https://github.com/Trifunik/condensation_alert/blob/master/condensation_alert.py) script and started again a new long term test.

From the datasheets I know that the ENV Hat consumes 1.5mA, but this module is just a place holder for the tests. The end version should have only one low power sensor.

Discussions