0
\$\begingroup\$

I'm designing a battery-operated device driven by an S2 mini board, which is based on an ESP32-S2 microcontroller. In order to save battery the board wakes up every 15 mn, does its thing, and then goes into deep sleep for another 15 mn. I'd like to implement some sort of low-voltage shut-down system to avoid over-draining the batteries.

I can do something like that in software, using the board's ADC to read battery levels, but some small current will continue flowing due to the resistors used to read the battery level, along with the LDO regulator's quiescent current (I'm using a HT733).

Is there a way to block all current out of the batterr once its voltage is below a certain threshold? Could I do something like this with a well-chosen p MOSFET? Or am I just better off with the software option?

\$\endgroup\$
1
  • \$\begingroup\$ Consider a latching relay. These use zero quiescent current; only to change states. The default state enables the device, and the "set" state disconnects everything. Will need a separate button/circuit to reset it when battery is charged/replaced. \$\endgroup\$
    – rdtsc
    Commented Jul 15, 2022 at 13:23

2 Answers 2

1
\$\begingroup\$

If you are using a Li-ion or a Li-pol battery, there are "overcharge/over-discharge" ICs like S-8200A that you can use:

enter image description here

One MOSFET is for overcharge protection and the other is for over-discharge protection.

If you insist on using an ADC from the processor, you can use an N-MOSFET for the divider circuit (between the ground and the resistor) and turn on the MOSFET once you want to measure the battery voltage and turn it off to cut off the resistors from the ground. Once the battery is below the threshold and you turn off the MOSFET, there will be no current drawn via the divider resistors. It will add some error in measurement but can be calibrated in the code to compensate for the error.

\$\endgroup\$
1
\$\begingroup\$

I just use (in the case of lipo) two 50k resistors, connected to the lipo directly and ground. In the dividing part a connection to the esp32. Current used is like 30-40uA, and bypasses the LDO. I can imagine for some cases it’s too much.. but for a case where every 15 min an esp is used to measure it’s peanuts and even for a empty lion would take months to drain critically. Connected to an rtc gpio you could use the ulp to measure in deepsleep and go into hibernation if critical.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.