Hi all
I think I have a solution after relaxing with a beer.
I am trying to monitor a 12V battery using the same power to supply a panel meeter. I have problems with precession which I believe might be offset problems.
I am measuring voltage over some resistors. I have 100K in resistors, on 1/3 of top I have 1K. (12V = 120mV) I am thinking of changing it to 1/2 (12V = 1,2V = 10 times more/less effect by the offset).
Next I have a comparator, where I tried to divide the voltage, (R1=R2 = 10 times less than Rf/Rg), but that failed. Anyway I had some some problems with precission -10%. As of now I used
4x10K. NOTE that my Analog ground here is the COM from the panel meter!Since I was working with 132mV only and offset of 1~5mV (LM324) I wonder that 1,32V would be better.
Then I can add an amplifier with a=1/100 or just using resistors.
Disclaimer: This is only a part of what I need and my idea. I could have a battery for this, but since I already have one Id like to use that one. Next I will add an LM335 (or AD592) to have the temperature too.