NFHertz
Newbie level 2
Hello. I need some advice.
I'm building a custom nimh battery charger and i'm doing the ADC routines to detect the peak voltage of the nimh cell (independent cell charger).
The problem is that the readings are not stable/accurate.
I have tried Vref+ 1.800v but the reading are 20mv off, then with 4.5v i get the correct value sometimes, but it's not stable, even tried the average value but it's jumps all the time.
I tried a 15nP cap with gnd and a series resistor 1k in AN0 but it's the same.
What are the correct procedures to get a stable value?
Am i reading it too fast?
With vref+ 1.800v i get (1.8/ 1024) = 1,7578125 resolution witch is very good, but the adc reading get it's wrong by 20mV reading a single cell don't know why.
Some ideias plz.
Thanks
I'm building a custom nimh battery charger and i'm doing the ADC routines to detect the peak voltage of the nimh cell (independent cell charger).
The problem is that the readings are not stable/accurate.
I have tried Vref+ 1.800v but the reading are 20mv off, then with 4.5v i get the correct value sometimes, but it's not stable, even tried the average value but it's jumps all the time.
I tried a 15nP cap with gnd and a series resistor 1k in AN0 but it's the same.
What are the correct procedures to get a stable value?
Am i reading it too fast?
With vref+ 1.800v i get (1.8/ 1024) = 1,7578125 resolution witch is very good, but the adc reading get it's wrong by 20mV reading a single cell don't know why.
Some ideias plz.
Thanks