Cutting power of ESP32 with a power switch

francisaugusto
Posts: 2
Joined: Sun May 09, 2021 6:09 pm

Cutting power of ESP32 with a power switch

Postby francisaugusto » Sun May 09, 2021 6:19 pm

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

alanesq
Posts: 84
Joined: Thu Dec 14, 2017 8:38 pm

Re: Cutting power of ESP32 with a power switch

Postby alanesq » Mon May 10, 2021 6:48 am

I think this may be what you are looking for?

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

francisaugusto
Posts: 2
Joined: Sun May 09, 2021 6:09 pm

Re: Cutting power of ESP32 with a power switch

Postby francisaugusto » Mon May 10, 2021 7:19 am

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.

Who is online

Users browsing this forum: No registered users and 37 guests