Hi,
I would like to do a project to monitor my charging Li-Po battery over the time. The battery will be charged by PV cells with the use of Genasun MPPT. Is there any way to measure the voltage and current of the battery during charging with the use of voltage sensor, current sensor and Arduino UNO.
Measuring the voltage during charging is doable. I don't know the exact process of charging the cells You use but in general the voltage is higher during charging and it can't be compared with the cell voltage during idle nor in discharge.
Trying to measure the current during charging can't be recommended. It might influence the charging and wouldn't be good.
I have 30Watts of solar feeding into a PWM controller to a 12V LiFoPo4 16Ah battery. I have, on the + of the battery a Gikfun 20A Range Current Sensor ACS712 Module and a voltage divider off the battery to measure voltage. Works well. Will need a Multi Meter to calibrate the current and voltage readings.
I used a 100K, R1, and a 10K, R2 variable resistor to set up the voltage divider. By using 2 variable pots, I was able to setup a voltage measurement range of good accuracy.
Try placing the current sensor in front of the battery charging control circuits. Then when measuring subtract the idle current from your reading and you should be close. A lot of this depends on your circuit.
The ACS712 is a 5volt only device, and will have zero current drift and bad resolution.
An INA226 breakout board could have been a better match for your ESP32.
Leo..
Measuring the current/voltage is, along with a few other things, is still a work in progress. I will check out the INA226 and check it out, thanks for the suggestion.