Hi Mike the resister divider will generate 4V output when the battery voltage is 12V.
I don't know what is shunt and what is anti-alias filtering???
Is there any changes to do?
Using high resistances so that they do not rapidly discharge your battery if you loose AC. The capacitor satisifies the PIC AD requirement for a low source impedance.
Hi there,
The values of R1=200k and R2=100k are not compatible with most ADC inputs
due to the leakage current specification...
Thévenin's_theorem, in this case it tells us that 100k in parallel with 200k is a 67k impedance as seen by the ADC pin, as well as the cap. However, it is a 300k impedance as seen by the battery.Oznog where did you get that 67Kohm?
Yeah most PICs have a specified 2.5Kohm max input impedance. That filter is 67Kohm. Way, way over.
Besides, I have done this, and it works just fine...
I disagree. The DC input leakage spec on the AD input pin is +-1uA. The error caused by a 1uA change in input leakage current using the 200k/100K resistor divider is about 1% (about the same error as using 1% resistors), besides, the leakage current will me more or less constant, so it causes an initial offset.
The requirement that the A/D input is fed from a voltage source with a source impedance of <10K is met by the 10uF capacitor. The settling time is long, but since the OP is measuring a battery, who cares.
Besides, I have done this, and it works just fine...
I agree with Mike that the source impedance doesn't need to comply with the less than 10k requirement due to the capacitor. The low source impedance is required so the internal sample and hold capacitor will charge quickly. With the 10uF cap (I think 1uF is more than enough) then the internal cap will charge almost instantly. However, I would suggest dropping the values to 50k and 22k and making sure you have a low leakage capacitor.
Mike.
Suraj, 67K comes from 1/(1/200+1/100). I.E. series resistors.
Hi all
I have a lead acid battery charger. It’s a simple charger.
What I want to do is measure its battery voltage from a PIC. The problem is the output voltage is unsmoothed DC (there is no any capacitor).
Will this be a problem when sampling? What are the precautions do I have to make?
You need Thévenin's theorem to calculate the output resistance of the filter. Look up my link, it shows how you calculate the output impedance seen by any two nodes even when there's a voltage source in there somewhere (the battery). A multimeter will not read this impedance correctly due to the DC voltage on the filter output.Hi Oznog sorry for troubling.
I 'm confused how it comes 67Kohms impedance
Does it need Thévenin's_theorem?
Cant it calculate like this ---> 100K is parallel with impedance of the capacitor = Total impedance seen by ADC?
Keep in mind that the capacitor we are trying to charge is only 25pF. A 1uF external cap will charge it almost instantly and it's voltage will not be effected (that you can measure).
Mike.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?