Using the EN pin as a power switch

Mael19
Posts: 3
Joined: Fri Aug 31, 2018 8:04 am

Using the EN pin as a power switch

Postby Mael19 » Sun Oct 04, 2020 3:52 pm

Hello,

I'm using a LOLIN D32 board for a project. My system is battery powered (with the built in battery chip on the D32), and I'd like to have a switch to power off the whole system while keeping the possibility to charge my battery.

My thought was to simply use a switch on the EN pin and toggle it LOW to switch off everything then toggle it HIGH with the battery pin to power on everything. It seems that it could work but when I switch back on my modules don't seem to start... Would you have any idea how to fix that ?

PS: I'm sorry but I got very poor hardware knowledge on this side...

Regards,
Mael

ESP_Sprite
Posts: 9594
Joined: Thu Nov 26, 2015 4:08 am

Re: Using the EN pin as a power switch

Postby ESP_Sprite » Mon Oct 05, 2020 7:29 am

Hard to say... perhaps the ESP32 has issues with the switch bounce behaviour... perhaps try to solder a small capacitor (1uF or so) over the switch?

Who is online

Users browsing this forum: No registered users and 137 guests