-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add low power mode functionality #188
Comments
First preliminary data on my tests with a Low Power CO2 Gadget: Test rig:
The facts:
Current consumption measurements:One reading + one display fast updateOne reading + one complete display redraw + WiFi connection + MQTT sendingForecast with a 2700mA Li-Ion battery:Given Information: Results:The estimated battery life with these updated calculations is approximately 1266 hours, or around 52 days and 18 hours. N.B.: Test were done with the development version at that time. Probably (almost certainly) it will change in the future, as development continues, to better or worse... |
I just uploaded the first version with e-Ink and Low Power support to branch: https://github.com/melkati/CO2-Gadget/tree/low-power-eink Now I will remove the old individual e-Ink and Low Power branches. THIS IS A PRE-ALPHA VERSION (it's intended only for active development) It is not a version for you to report things to me because there are many and you would block me (although you can tell me anything you want, of course!)... now, what I am doing is going quickly to have a stable and functional skeleton as soon as possible. Nor to comment on options because now the important thing is that it works well and then decisions will come about how it should work for the user. There are still many things to do, to fix and to test until we can merge this on the master version... It is a Work In Progress version for you to know and participate. The Sensirion SCD30 sensor is partially supported (SCD40, SCD41 and CM1106SL-NS are already supported for the most part). There are four power modes: HIGH_PERFORMANCE, BASIC_LOWPOWER, MEDIUM_LOWPOWER, MAXIMUM_LOWPOWER Some examples of things you can help me with, and would be very useful for me... BUTTONS: There is a wakeup pin that wakes up CO2 Gadget and puts it in interactive mode for a time. This has meant many changes in the treatment of buttons and GPIOs that have been very little tested (especially the different combinations that there may be)... All of this is taken "with a grain of salt". EINK: The structure of the TFT must be copied so that it is similar in EINK (and OLED, which is very similar to EINK). For example, a screen redraw with the GDEM029T94 display takes about 1 second while the same with the DEPG0213BN display takes almost 1.6 seconds, that difference will suppose half the autonomy with the DEPG0213BN display. Probably both can be optimized. Please, if you plan to work on anything, tell me first so I can take it into account when making other changes because I'm going very fast and I could change parts you're working on because I don't know... |
Beta testing
If you want to collaborate with testing, please, click here: #198 |
MORE ON WORKING MODESThe actual state on the low-power-eink branch is as follows: Working modes:HIGH_PERFORMANCE
BASIC_LOWPOWER
MEDIUM_LOWPOWER
MAXIMUM_LOWPOWER
|
In preparation for the general availability of CO2 Gadget with the new functionality I published a post to build a "Low Power CO2 monitor with a Lilygo TTGO T5 board and the SCD41 Sensor". It includes some calculations in battery autonomy (I estimate it should be around 90 days, depending on configuration). |
Add low power modes to CO2 Gadget,
Starting with SCD41 sensor (not too expensive and widely available).
Nothing too complex but with different low power modes the user can select in preferences:
Some of the options will work also for SCD40 and SCD30 (no real low power measurement but support a pseudo low power mode).
This is linked also to eInk (ePaper) display support. (There is already work in parallel at #190)
Tasks to implement:
TO DO/FIX:
As for the cleanup code there are multiple tasks to do:
IMPORTANT NOTES:
Warning! Take care. Some CO2 sensors need re-calibration after changing sample time interval.
The text was updated successfully, but these errors were encountered: