LilyGo-T-OI-PLUS
LilyGo-T-OI-PLUS copied to clipboard
Expected battery life - Approx 6d with light sleeps of 10 min and 2 sec of awake time
I am doing some measurements on my board, and thought I would share my findings about battery life:
- Running a micropython program doing lots of calculations and about 50 temperature readings a second on a DS18B20 temperature sensor, Red LED intact, Green LED on 50% of the time, alternating on and off each cycle of the main program, with Wifi connected. No sleep code, CPU at full speed.
Battery life: 1h 20min
- Running a micropython program doing lots of calculations and about 10 temperature readings a minute on a DS18B20 temperature sensor, Red LED intact, Green LED on 50% of the time, alternating on and off each cycle of the main program, with Wifi connected. Awake for 1 second, LIGHT sleep for 60 seconds. CPU at full speed.
Battery life: 1h 25min
I'm working on getting to 5h of battery life, with RAM intact. Next up, much longer sleep 10 min with 1 second of work each time. I'll also remove the RED led, as by all accounts that seems to eat power! Also planning on disabling the greed LED to save power.
Battery life: 24h+ (still running, battery reports as 93%)
Still have the red led on. I've disabled the green LED while sleeping, and flash it at 50% when working. I only read the DS18B20 every 5 min, and sleep for 4 min at a time. Stay awake for about 1.5s to reconnect to the network and send MQTT messaqes. The big power saving from 1h25min to now appears to be because of reading the temp sensor much less often. Still doing light sleep to preserve ram contents.
Battery life: 5d
New update, I did a lot to optimise my code and reduce the work done when awake. Also made sure to reconnect to wifi/mqtt if they dropped while sleeping. I think this caused me to think the board had run out of power when in fact it had just lost wifi and never reconnected.
@wolfen351 6days, that is great. Would you mind sharing your code?