I am designing a piece of lab test equipment that will be controlled by Boron and primarily powered by the LiPo battery plugged into the JST connector on the Boron. However, I want the option to power via USB. I also want to add a power switch to preserve the battery's life and turn off the peripherals.
Reading the documentation, I am a bit confused about the best way to implement the power switch. Should I be using the EN pin? Or does grounding that only put the device to sleep? Any advice would be appreciated!
Rather than using the EN pin directly, which can cause the Boron to reset or leave it in a potentially unstable state due to leakage currents or external circuitry, a better approach is to manage power using the sleep mode combined with a push button to control the device/peripheral wake and sleep states.