Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Help implementing timed AND external interrupts to wake from sleep
Post Body

Hey guys, I'm trying to set up a program which operates a motor as instructed by:
- External pin-change interrupts (two push buttons)
- Timed interrupts (with times calculated using data pulled from an API)

I've set up every part of this program *except* for sleep. Initially, the motor was just instructed by push buttons, so it only needed to wake in response to input given to them, but now I want to set up the timer system to work with it in tandem.

I've been poring over ESP8266 documentation today, and for all of the solutions I've found (see here https://github.com/esp8266/Arduino/tree/master/libraries/esp8266/examples/LowPowerDemo or here https://www.espressif.com/sites/default/files/9b-esp8266-low_power_solutions_en_0.pdf), I can't seem to find one which addresses my own problem.

I need the ESP8266 to sleep indefinitely when no input is being given (potentially for days, if the Wi-Fi cuts out), but I also need it to wake up via a timed interruption - but I can't find any system which is capable of maintaining ~8-16-hour timers.

Does anyone have any advice for me? All help is greatly appreciated.

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
7,144
Link Karma
4,079
Comment Karma
3,004
Profile updated: 3 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 months ago