Hacker News new | ask | show | jobs
by not_the_fda 1250 days ago
The key to low power is to put the micro in a sleep state as much as possible. You have to rethink running things in a loop and make it interrupt / event driven.

Set it up to wake from sleep on some interrupt, do your processing, then go back to sleep. You can setup a timer interrupt to wake periodically to do processing as well.

2 comments

My experience programming for the Watchy (epaper watch on esp32) exactly. Basically the only way of programming it is being woken up every minute by the RTC, running as little as possible, setting up the next interrupt by the RTC and going back to sleep.

I got mine to last about a week on the stock battery, i know of people who have done better but being a minute-resolution clock helps a lot.

Excellent advice! I'll try that out and see how long I keep it running between charges.