1
\$\begingroup\$

I am currently designing a PCB based on the ESP32-C3, and I need help integrating a Li-ion cell for power management and controlling the Vext pin for switching between external and battery power. I am a bit unsure how to properly design the circuitry for:

1- Safely charging the Li-ion cell while using the ESP32-C3.

2- Managing power switching between the cell and an external power source (Vext control).

3- Monitoring cell State of Charge level to ensure proper power management.

Could anyone provide some guidance or examples on how to integrate the Li-ion charging circuit with the ESP32-C3 and manage the Vext control? Any help or references to similar designs would be much appreciated.

enter image description here

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

You implemented protection during Li-ion cell charging with the TP4056 Li-ion charger IC. But you didn't implement a Li-ion cell discharge protection. As you have it, the Li-ion cell will be over-discharged and permanently damaged.

The best solution is to add a Li-ion protector BMS circuit, which adds a second layer of protection during Li-ion cell charging, and protection from Li-ion cell over-discharge. However, you may be able to simply add an under-voltage cutout circuit, one that disconnects the Li-ion cell from every load if its voltage is too low, and that uses no more than a few microamps to operate. If it were me, I'd go for the protector BMS IC solution because it solves problems you haven't yet even considered.

Monitoring cell State of Charge level to ensure proper power management.

Buy or implement a ready-made solution: a BMS that includes a "fuel gauge" function. Look at "bq" chips from TI.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Thank you for the clarification! What I'm specifically looking for is a way to monitor the battery voltage directly to ensure proper battery management, such as checking the charge level or determining when the battery is running low. I'm considering adding a voltage divider circuit between the battery and an ADC pin on the ESP32-C3 to read the battery voltage. Do you have any suggestions or recommended circuits for this purpose? Also, any advice on best practices for safely monitoring the battery voltage without significantly draining the battery would be really helpful! Thanks again. \$\endgroup\$ Commented Oct 16 at 15:43
  • \$\begingroup\$ "adding a voltage divider circuit " Don't! That's how you kill your cell. Instead, buy or implement a ready-made solution: a BMS that includes a "fuel gauge" function. Look at chips from TI. \$\endgroup\$ Commented Oct 16 at 17:14

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.