Pages: [1]   Go Down
 Author Topic: Analog reading negative voltage...  (Read 462 times) 0 Members and 1 Guest are viewing this topic.
Offline
Newbie
Karma: 0
Posts: 12
 « on: January 04, 2013, 11:09:30 pm » Bigger Smaller Reset

My load cell unfortunately starts at a negative voltage (-8 to 0 volts depending on amplifier gain).  I dont believe the Arduino UNO will read negative voltages (i just get a value of 0).  My issue is compunded by the fact that when force is applied the voltage goes ABOVE 0 (up to +8v depending on amp gain).  So, my question is, how can i "reverse" a circuit while the value is a negative and then "unreverse" the circuit when it becomes positive again?

Thanks,
Ryan
 Logged

Montreal
Offline
Edison Member
Karma: 17
Posts: 2207
 « Reply #1 on: January 05, 2013, 12:16:42 am » Bigger Smaller Reset

Put 2 resistors as voltage divider, +5V - R1 - R2 - Ground. Connect arduino analog input to middle point R1 and R2.  Than take 3-rd resistor and connect to same middle point. Input is other end R3. Voltage divider form by R3 and (R1||R2). Example: R1 =  R2 = 2k. So (R1||R2) = 1k. Picking 9.1k as R3 and you have 10:1 divider. Now when input goes negative, arduino reads less than 2.5V, nothing connected = 2.5V and positive +8 - more than 2.5V Do a math.
 Logged

United Kingdom
Offline
Karma: 131
Posts: 4681
 « Reply #2 on: January 05, 2013, 09:38:24 am » Bigger Smaller Reset

What amplifier are you using? If it's under your control, the easiest option is to adjust the gain in the amplifier and add an offset voltage to get the output in the range 0 to +5V.
 Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com

Offline
Newbie
Karma: 0
Posts: 12
 « Reply #3 on: January 05, 2013, 10:13:51 am » Bigger Smaller Reset

Using the TI INA125P Amplifier...

Magician, can you post a diagram of that?
 Logged

Montreal
Offline
Edison Member
Karma: 17
Posts: 2207
 « Reply #4 on: January 05, 2013, 10:32:44 am » Bigger Smaller Reset

Here you are.
 Logged

United Kingdom
Offline
Karma: 131
Posts: 4681
 « Reply #5 on: January 05, 2013, 10:48:21 am » Bigger Smaller Reset

Using the TI INA125P Amplifier...

You probably have the IAref pin connected to ground. Connect it to the +2.5V reference output instead, as shown on page 13 of the datasheet http://www.ti.com/lit/ds/symlink/ina125.pdf.
 Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com

 Pages: [1]   Go Up