Pages: [1]   Go Down
Author Topic: Analog reading negative voltage...  (Read 1608 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset 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 Offline
Faraday Member
**
Karma: 29
Posts: 2591
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset 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 Offline
Tesla Member
***
Karma: 224
Posts: 6619
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset 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. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Using the TI INA125P Amplifier...

Magician, can you post a diagram of that? smiley
Logged

Montreal
Offline Offline
Faraday Member
**
Karma: 29
Posts: 2591
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here you are.


* Read_Negative_1_10_divider.png (12.99 KB, 1280x960 - viewed 185 times.)
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6619
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset 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. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pages: [1]   Go Up
Jump to: