1. I have to make a low cost dc voltmeter with range +-20V
2. I am using the circuit as attached.
3. problem is if I applu any voltage across j1 two terminals, I get correct voltage J2 terminal.
If I apply 10V at j1, then voltage divider across 90K & 10K forms 1V across 10K.
& net voltage at J2 is 2.5V+1V = 3.5V.
4. But as soon as i connect microcontroller the voltage starts varying randomly, no particular value.
I have configured pin properly as adc.
5. If I apply direct voltage at pin say 1V, I am able to measure it properly.
6. What could be error.
2. I am using the circuit as attached.
3. problem is if I applu any voltage across j1 two terminals, I get correct voltage J2 terminal.
If I apply 10V at j1, then voltage divider across 90K & 10K forms 1V across 10K.
& net voltage at J2 is 2.5V+1V = 3.5V.
4. But as soon as i connect microcontroller the voltage starts varying randomly, no particular value.
I have configured pin properly as adc.
5. If I apply direct voltage at pin say 1V, I am able to measure it properly.
6. What could be error.
Attachments
-
9.3 KB Views: 29