The project involves a small PCB, and a carefully designed 3D printed case. The display actually comes with some adhesive tape even, so it sticks to the case design.
I then include a 13.7Wh LiPo battery. It includes a recharge circuit to charge from USB.
The board includes an RTC chip, which uses 160nA. This has alarm settings and a button trigger as well. It can then wake the main CPU (ESP32-S3).
I have opted not to use the ESP32 deep sleep mode for this - by shutting down the whole processor the idle power consumption really is very low. The concept is simple - it wakes up periodically, say every 5 mins, checks for new data, and if no new data it goes back to sleep.
It is complicated to get this check and sleep process down to a minimum time, but I have managed to get it to a typical 850ms.
- Fast boot loader, not checking the image integrity (this does get checked in the event of a crash, and will switch to other image if corrupt).
- Not running a PSRAM memory check.
- Not logging boot loader to serial.
- Caching the channel and BSSID for WiFi connect.
- Caching the IP, mask, gateway and DNS for IP connect.
- Fetching a page via http not https (https adds 2s).
The caching uses the RAM and EEPROM in the RTC, and sadly not quite enough space to cache IPv6 - though I may be able to squeeze in for simple SLAAC and zero router address perhaps. One to consider.
So yes, some compromises here, but 850ms is really short.
The system does a more comprehensive start - scanning WiFi, getting IP again, checking s/w update, every day. This takes a few seconds.To try and get some idea of the battery life I have set one of these up using a tiny 0.9Wh LiPo.
The ADC is not ideal, and estimating battery capacity is always fun. It has been reading capacities around 85% and actually going up and down a bit.
Over the last week it has gone from as high as 87% to 83% for my estimates.
So a crude estimate is that if it has used less than 5% in a week, the 0.9Wh could last 20 weeks? This would mean the 13.7Wh could last 5 years!
Yes, this is a wild estimate - it depends a lot on usage, and a LiPo will have some internal discharge as well. What I think I can confidently say is my original goal of 1 year battery life should easily be achievable. Ideally I want to do a full charge to flat test on the 0.9Wh to get a clearer idea.



No comments:
Post a Comment
Comments are moderated purely to filter out obvious spam, but it means they may not show immediately.