Shutdown Command

Hi,

I have an Electron and would like to know if there is any command/function/software way to remotely shutdown the device, including the 3.3v regulator output.

Thanks,
smd75jr

Have you tried

  Cellular.off();
  System.sleep(SLEEP_MODE_DEEP);

If you wrap this in a Particle.function() you can do this remotely.
I’d say that’s the closest you get.

https://docs.particle.io/reference/firmware/electron/#sleep-sleep-

But I think it does not switch off the regulator. To my knowledge that’s not possible without extra hardware.

Hmmmm, so, external switching it is then!

If you feel adventurous, you could have a look at these functions
https://github.com/spark/firmware/blob/develop/wiring/inc/spark_wiring_power.h

e.g. disableBuck() or disableBATFET()

And see if any of them would get you any closer to your goal.

If any questions arise about these @BDub will be a good source of wisdom - I have no real idea about possible implications and what they really do :blush:

1 Like

Hi @ScruffR, you are absolutely right, I missed that it is the Electron, thought about the Photon! The Electron also has the enable pin for the voltage regulator, maybe that helps there.

@ScruffR’s suggestion is the best you can do at the moment:

And for really low power, you might want to check out the Solar Shield for the Electron. We designed it with a MOSFET that completely disconnects power to the Electron for periods of time controlled by the user.
https://docs.particle.io/datasheets/photon-shields/#electron-solar-kit

These are not the droids you are looking for.

1 Like

I will definitely look into the Solar Shield. Out of curiosity, what exactly do the disableBuck() and disableBATFET() functions do?

Thanks,
smd75jr

There is no really easy to digest summary… please wait until we document these fully, or if you’d like to dig into the datasheet for the PMIC you may do so here:
https://github.com/spark/electron/blob/master/datasheets/BQ24195.pdf

1 Like