I tried it with voltage divider, adc does not reflect the actual values when the battery starts charging. It only measures accurately when not chargedWhat voltage divider. I don't see a voltage divider. I see two batteries and a PIC microcontroller with it's reset line pulled up. At least I think you mean for it to be pulled up. Since there is no voltage divider, I'm tempted to ask why "it did not give correct results". Your statement contains no verifiable factual information. Am I missing something?
We don't know what your voltage divider looked like, and we don't know how your charger was connected. What voltages did you expect to find on the two batteries while they were connected to the charger? There are all kinds of possible mistakes you could have made but we will never know what they were or be able to help you if you keep the information to yourself.I tried it with voltage divider, adc does not reflect the actual values when the battery starts charging. It only measures accurately when not charged
We don't know what your voltage divider looked like, and we don't know how your charger was connected. What voltages did you expect to find on the two batteries while they were connected to the charger? There are all kinds of possible mistakes you could have made but we will never know what they were or be able to help you if you keep the information to yourself.
Gee..That is kind of a hole that you could drive a monster truck through...Double Tap!AN2 and AN3 could be configured as ADC inputs using Vdd as Vref.. if the 16F628A had an ADC module.. which it doesn’t.
You have to be aware of the following;hi,
How can I measure the healthiest one by one while the 2 connected batteries are in charge state?
voltage divider did not give correct results.
View attachment 207548
I'm thinking he's thinking we are not being sufficiently helpful.Indeed. So it would help if @EYT1 :
Told us what PIC he’s using.
Posted the code.
Showed an accurate schematic.
Reported the voltages at the pins when the charger is off and on.