Latch circuit for ESP32 (Solved)

Thread Starter

statieva

Joined Nov 27, 2024
40
Hey everyone, I have a latch circuit designed for powering an ESP32. Here's how the circuit operates: when the SW6 button is pressed, it activates transistor Q6 NPN, which, in turn, opens the U1 MOSFET to power the MCU. Once the MCU boots up, it sets pin D8 to HIGH, which activates transistor Q4, keeping the U1 MOSFET open. D11 is also used to read the button state, enabling power cut-off after a long press.

Here's the circuit:

2fPvYBuM.jpg

This circuit works well with a 7.2V power source. However, I need to switch to a 4.8V and ensure it operates effectively at voltages down to 3.3V. Currently, this circuit does not function at lower voltages.

When the button is pressed, the MOSFET activates, and the MCU begins to boot up. However, there are a couple of problems:

  • The MCU does not fully boot, as the display remains non-functional; only the LED on the development board lights up.
  • Although the MOSFET opens, it fails to maintain its position. As mentioned earlier, everything works fine when the system is powered by 7.2V. Here is the video: youtu.be/CUsgkXfuH38
  • ESP32 doesn't set D8 to HIGH (the voltage is below 1V)

I believe some components need to be modified. Unfortunately, my limited knowledge of electronics doesn't allow me to determine the necessary changes. Could anyone suggest any directions I should explore?
Thank you in advance!

Update: The issue was caused by a significant voltage drop in the voltage regulator on the ESP32 Devkit. The solution is adding an LDO regulator, I used MCP1702T-3302E/MB.
 
Last edited:

sghioto

Joined Dec 31, 2017
8,633
4.4v seems low for that mosfet.
What is the voltage on the collector of Q6 when the button is pressed and held
I believe the ESP module requires a minimum of 5 volts to operate correctly.
 
Last edited:

Thread Starter

statieva

Joined Nov 27, 2024
40
4.4v seems low for that mosfet.
What is the voltage on the collector of Q6 when the button is pressed and held
I believe the ESP module requires a minimum of 5 volts to operate correctly.
The ESP32 can be powered by 3.3V. However, after your comment, I realized that in my setup, the power goes through an AMS1117 3.3V voltage regulator. With a dropout voltage of the AMS1117, 4.4V input is likely insufficient. I’ll need a low-dropout voltage regulator instead. I've already ordered a few to test.
 

Thread Starter

statieva

Joined Nov 27, 2024
40
Still feel that 4.4 volt output is low did you get voltage reading mentioned in post #10?
I just checked the drain voltage again, and it's 4.57V. There was likely a bad connection. When the button is pressed, the voltage at the Q6 collector is 0.06V.
 
Top