Electron DEEP_SLEEP mode with trigger

Hey,

I’ve been working on reducing my Electron power consumption.

Is there any way to put the Electron board into DEEP_SLEEP and configure it to wake up on PIN trigger or when a period of time ends (The only way I found is on time without trigger).

Same as regular sleep or NETWORK_STANDBY:
System.sleep(WKP, RISING, TIME_LONG_SLEEP);
System.sleep(WKP, RISING, TIME_SHORT_SLEEP, SLEEP_NETWORK_STANDBY);
TRIGGER-TYPE-SLEEP_LENGTH-DEEP_SLEEP? Somehow?

Thanks everyone!

The docs say the following for deep sleep,

System.sleep(SLEEP_MODE_DEEP, long seconds) can be used to put the entire device into a deep sleep mode.

Note: You can also wake the device "prematurely" by applying a rising edge signal to the WKP pin.

You have to use the WKP pin, and it needs to be on the rising edge, but that should do what you want.

2 Likes

Missed that small line, thanks.

Thanks for the help!