Hi all,
I have a tricky problem on hand, but one that I am sure has been solved by several of you out there.
I am building a battery charger cum load controller that uses a solar panel for charging the battery. I use the PWM output of a PIC microcontroller for charging the battery. However, the problem is generic for any other microcontroller types.
If I measure the battery voltage while it is getting charge current from the solar panel, the measured voltage tends to be more than the actual battery voltage. If I give a small delay after switching off the charging current(turning off a MOSFET controller by a microcontroller pin), the voltage seems to be closer to the true battery voltage.
What is the method used commonly for measuring battery voltage while it is getting charged? Is a delay as indicated above a good way of doing it? If so what should be the ideal delay between turning off the charging current and measuring the battery voltage?
I wonder how the analog PWM controllers measure the voltage?
thanks for any suggestions, Sreenath