Go Down

Topic: I have a contribution re TFT LCD screens whoae backlights can't be dimmed (Read 1 time) previous topic - next topic


To do something every say 10 minutes just increment a count value every time the processor wakes. The processor immediately goes back to sleep if the count is less than say 75 (for a 10 minute wait).
When the count is >= 75 the software resets the count and does what you want before going back to sleep.

The processor only needs to wake for a couple of millionths of a second every 8s to check and increment the count, so there is a negligible increase in the average current over the 8s period.

P.S. I removed the power on LED from the ESP8266 board as well as the processor power on LED to save power, as it consumed a few milliamp.
OK -  a static local variable in the ISR routine.....

Have you  used the low-power library?


Formerly Rowboteer (now a broken user profile!)

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131