Page 1 of 1

Cutting power of ESP32 with a power switch

Posted: Sun May 09, 2021 6:19 pm
by francisaugusto
Hi,

I would like to add a power switch to my ESP32 (TTGO T-DISPLAY) instead of using deep sleep. I will be powering it via battery and also USB.

Is that possible at all, by shorting some pin (like we do for resetting), or this needs to be done externally for both the battery and the USB power?

Best,

Francis

Re: Cutting power of ESP32 with a power switch

Posted: Mon May 10, 2021 6:48 am
by alanesq
I think this may be what you are looking for?

https://randomnerdtutorials.com/latchin ... 6-arduino/

Re: Cutting power of ESP32 with a power switch

Posted: Mon May 10, 2021 7:19 am
by francisaugusto
alanesq wrote:
Mon May 10, 2021 6:48 am
I think this may be what you are looking for?

https://randomnerdtutorials.com/latchin ... 6-arduino/
Thanks! But that's not really what I am looking for. This circuit stays between the power source and the ESP32, using the 5V pin to power it. I want to power mine via USB and using the battery via JST connector that is present on the TTGO T-Display. This way I can also charge the battery.

I would like to know if there's a gpio combination that would simply turn the power off.