I want to monitor the input voltage on a ESP32 for to can handle the percentage and time left before my battery come to 3.3V
I can already handle this using a voltage divider and an average of adc1_get_voltage() values during a small time but prefer to can get this without any external wires/resistors
Note that Ihat I think to use an TP4056 for to handle the battery charging
it is safe to charge the battery when using the output of the TP4056 for to power the ESP32 on the same time ?
And have I to add a regulator between the TP4056 and the ESP32 if the battery voltage can vary betwen 3.3V and 4.2V ?
(if yes, I think that I cannot handle this directly on the ESP32 and have obligatory to use the voltage dvider and adc1_get_voltage() calls for to can have the voltage before the regulator )