Deep sleep, timer trigger, wake for set period

snowman
Posts: 1
Joined: Tue Dec 01, 2020 11:20 am

Deep sleep, timer trigger, wake for set period

Postby snowman » 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 :)
Last edited by snowman on Tue Dec 01, 2020 6:21 pm, edited 1 time in total.

OutOfLine
Posts: 52
Joined: Sat Feb 24, 2018 1:32 pm

Re: Deep sleep, timer trigger, wake for set period

Postby OutOfLine » Tue Dec 01, 2020 3:47 pm

hello snowman,
we just got the first snow here today ;)
snowman wrote:
Tue Dec 01, 2020 11:44 am
I have been searching for examples for a couple of days so any help appreciated :)
Maybe you search for an example doing *just* what you want?
You might not find that. Everybody has their own ideas, they will not write *your* example.
You have to do that yourself.

Step for step:
Start with going deep-sleep and waking up after a while,
you *will* find examples how to do that.

Then maybe the Wifi stuff. Tons of examples...

Now combine the two:
Find out how to do wifi, then sleep, then wake up and restart doing wifi again.

Then insert reactions on received WiFi messages,
button stuff, whatever,
one by one.

Fun and good luck

Who is online

Users browsing this forum: Bing [Bot], cfyronald96 and 97 guests