Hi All,
I have a great little device based on the Sparkfun ESP32 Thing, with the Motion Shield, a GPS and an LiPo battery.
When plugged into USB, the battery is charged. When disconnecting the USB, the device runs from the battery.
What’s the best way to hookup an On/Off switch, so that I can turn the device off/on when no USB is connected?
I was going to just put a simple switch in the + LiPo Battery wire, however that would bean that when connecting via USB, the device would turn on, but the battery would not be charged, unless the switch gets turned back on.
Any ideas?
Thanks,
Nathan