Deep sleep, timer trigger, wake for set period
Posted: Tue Dec 01, 2020 11:44 am
I am constructing a remote blind opener which will be battery operated. Blind movement will be according to button on/off time to allow precise positioning. Software to achieve this is already working. However to reduce consumption I would like to achieve the following:
Deep sleep for 5 seconds
Wake for 2 seconds to allow wifi command to be captured
If no command received, deep sleep
If command received wake for 30 seconds to allow several button presses
(Would be great to re trigger the wake period if any command received)
Deep sleep for 5 seconds
I have been searching for examples for a couple of days so any help appreciated
Deep sleep for 5 seconds
Wake for 2 seconds to allow wifi command to be captured
If no command received, deep sleep
If command received wake for 30 seconds to allow several button presses
(Would be great to re trigger the wake period if any command received)
Deep sleep for 5 seconds
I have been searching for examples for a couple of days so any help appreciated