When the boolean is true, the board will go to into full sleep waiting for the condition to be false and wake up.
COND(boolean, default=0) — True is asleep, False is awake.
I am a beginner. I’d like to accomplish sleep and wake, they are ying and yang, two halves of the same thing. I’ve found the sleepydog node, but seems incomplete and hard to understand without extensive background knowedge. I’m not a coder, that’s why I’m here using XOD, which is absolutely fantastic, albeit still missing some powerful nodes.
Context: I’m making an automatic chicken door opener that opens and closes with daylight. It works.
Now I need to conserve the battery because the board only needs to be awake twice a day for door movement.
The best nodes I’ve seen in XOD have been approached with an elegant simplicity for Pete, even if under the hood it’s a complex action.
I have an incline that because it’s a asleep, the patch doesn’t run, so it has to wake up through a pin going high? In which case (although a problem for waking through an LDR wether day or night), this node could receive:
PULSE(pulse, default=0) — Pulse that sleeps the board.
PORT(port, default=2) — Pin on high that wakes the board.
Surely a sleep/wake node is a big deal for projects running on battery?