What you can do (not tested this myself though), is:
- Connect the ADC directly over the battery (not the OUT-terminals, if you're using the PCB with the DW01 and 8205 MOSFET protection circuit).
- Lift the CE pin (pin 8) of the TP4056 and pull it HIGH with a 10k, or so, resistor)
- Connect a free GPIO pin of the ESP to this same CE pin of the TP4056
- In your firmware, before you take a measurement, pull the GPIO pin LOW to temporary disable the charger
Attachments
(59.49 KiB) Downloaded 65 times
I do exactly the same thing. Theoretically the 2 positive pins on the TP4056 are connected But the grounds are not. I connect directly from the battery + to 100K to A0.
I use a 5 volt step up module instead of all of that circuitry. They cost about $1 each on Amazon.