Power/Mode Button to control ESP32 with Lipo battery

Hello I’m using SparkFun Thing Plus - ESP32 WROOM (USB-C) with a Lipo battery. I also have a SparkFun Buck Regulator Breakout - 3.3V (AP3429A) and two P-channel mosfet’s FQP27P06-ND and ZVP4424A-ND.

I’m trying to use a push button to power on/off the ESP32 if held down for 3 seconds, and change modes with a single press.

I have tried different combinations with the parts listed with no success.

Any help would be very appreciated.
Thanks

1 Like

The new Soft Power Switch Mk2 should be perfect for your application. You can read the button using the PUSH breakout pad, and can turn the power off via the OFF pad if you want to. A long (10 second) press will turn the power off automatically. A short press will turn it back on again.

If you buy a pair of these cables and connect them together (red-red, black-black), you can connect the output of the soft power switch directly to the battery connector on the Thing Plus. Connect your LiPo to the input of the power switch, and away you go…

I hope this helps,
Paul

1 Like