How can i put the particle to sleep and wake it up?

Title says it all!

:relaxed:

Have a look at the docs here. If reading that doesn’t answer your question, then come back here with a more specific request for help.

2 Likes

If you’re using the Electron, you can also double-tap the “Setup” button to put the device into a low power sleep mode! It’s a pretty nifty feature that prevents you from having to remove the Li-Po battery when you want to power it down.

1 Like

@lamdite were you able to get it to work?

What i need to do is , i need to put the device to sleep, but wake it up when there is vibration. I have a vribration sensor that i will attach to the electron. It looks like this is the function i will need:

System.sleep(uint16_t wakeUpPin, uint16_t edgeTriggerMode)

Does this seem right to you guys?

thanks :smile:

Pretty much so.

Depending on your estimated wake frequency with an Electron you might need to consider the data consumption on reconnect after wake.
Each “cold” reconnect to the cloud will consume up to 6K of data.
Keeping the connection “established” would save you that “cost” but needs more power and requires you to wake every 23min to ping the cloud.
So you’ll have to find the sweet spot for sleep time : data consumption : power draw

1 Like