3 ms·
On your logger idea, many microcontrollers have watchdog timers that can trigger a “wake up and do this” routine. You could have the controller wake up once e
by sircastor 5y ago
On your logger idea, many microcontrollers have watchdog timers that can trigger a “wake up and do this” routine. You could have the controller wake up once every couple of seconds and check an LDR. Then go back to sleep. With well written code, you could easily get a year out of a coin-cell battery
- brokenmachine 5y agoIt doesn't even need to wake up over and over if you set up the LDR to trigger an interrupt to wake it up. Just put it to sleep indefinitely, and set it to wake from a pin change interrupt. You'd need an RTC as well so it can log the time though. For example a STM32L031 uses 0.5uA in sleep mode.