2
\$\begingroup\$

I want build a negative and positive voltage sensor with an Arduino. I found this article: Read Positive and Negative Voltage in Arduino.

There is the circuit I need, but with some modifications. I want to measure cell voltage so I want only voltages around -1.5 V to 1.5 V. So in my case I will use 3.3 V from the Arduino as power supply. I have few questions:

  1. What should be the new values of the resistors (please specify one by one) (blue ones)
  2. Should the measurement probes be in the positions marked in purple?
  3. Did I mark correctly how I will connect the pins (green text)?

enter image description here

enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ If posible pls also explain how did you count new resistor values. Im only statistician :D non electronic guy :) \$\endgroup\$ Commented Dec 23, 2022 at 0:02

1 Answer 1

1
\$\begingroup\$

This voltage divider will give you the most dynamic range without an amplifier. R1 is chosen to provide a voltage drop of 1.5V at 500uA, so for -1.5V the ADC will see zero. R2 is chosen to drop 3.3V at 500uA. So the ADC input will be 0, 1.06, and 2.12 volts. You can make the values of R1 and R2 equal if you want to have the ADC centered at 1.65V (1/2 Vdd) for 0V input.

schematic

simulate this circuit – Schematic created using CircuitLab

ADC Input Scaler +/-1.5V to 3.3V

\$\endgroup\$
11
  • \$\begingroup\$ But i need to measure values bettwen -1.5v : 1.5v and as i understand your propousal can measure only 3 values. In my cause every 1mV is important \$\endgroup\$ Commented Dec 23, 2022 at 1:48
  • \$\begingroup\$ No, those are just the limits of measurement. For +1.5V, the ADC will read 639 counts out of the maximum of 1024. So that is 4.7 mV/count. If you can set the reference to 2.12V you could get 2.9 mV/count. \$\endgroup\$
    – PStechPaul
    Commented Dec 23, 2022 at 3:01
  • \$\begingroup\$ Please also explain me what is( csv v1 pwl), what is input and what is output (probes)? \$\endgroup\$ Commented Dec 23, 2022 at 6:04
  • \$\begingroup\$ And also can you tell me if I make 5v it will make my measurements more detailed? \$\endgroup\$ Commented Dec 23, 2022 at 6:05
  • 1
    \$\begingroup\$ Do i understan it fine? In red points should be measuerment electrodes. And rest also i understand fine like PIN 3.3, PIN GND, PIN A1? my schematic \$\endgroup\$ Commented Dec 25, 2022 at 2:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.