Arduino Ina125 reading a positive and negative sensor

Hi guys

I hope you can help me.
I have connected a torque sensor to an INA125P and a Arduino. I have connected the wires as shown in the image below.The code is below, and is just the standard example AnalogReadSerial.

My problem is, that the torque sensor is only measuring in one direction (like a load cell), but I need it to measure and output when turning it in the other direction as well.

Can you help me with the wiring? I assume I should wire the INA125P in a different way?

Kind regards
Kasper

 /*
  AnalogReadSerial
  Reads an analog input on pin 0, prints the result to the serial monitor.
  Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
 
 This example code is in the public domain.
 */

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // print out the value you read:
  Serial.println(sensorValue);
  delay(1);        // delay in between reads for stability
}

Pin 5 is the reference terminal, you need to connect it to a mid-rail virtual ground, not 0V.

Hi Mark
Thanks for your reply.
I have just been reading about virtual grounds, but I'm a bit confused. Should I make a virtual ground with resistors or should I just connect pin 5 to a different pin on the Arduino ?

Could you clarify how to make the setup ?

Kind regards
Kasper

when you put 2.5 volt on the ref then output will be 2.5 volt. when -n is higher the output will be lower so negative is below2.5 volt
zero point is 512

Hi Shooter
Thanks for your reply :slight_smile:
Sadly I´m very new, so I dont know how to put 2.5 volt on the reference..?
I think I understand the rest. From 0-512 i negative values from my sensor, and 513-1023 is positive.

My big problem is, that I dont know how to wire the setup. I have read that I might break the board if I feed the ADC a negative voltage. So I´m abit afraid of just trying.

Can you guys help with the wiring? I guess I should make a setup like the one in the image, but I dont understand where the wires should go.

Kind regards
Kasper

same problem with me
but I try this one from data sheet

connect pin5 to pin 4,
and the pin10 to Analog input in arduino

I have the same problem my friend.did u manage to make it work?
any code for this?

With only 5volt supply on the INA, you CAN'T make 5volt or 10volt Aref.
So don't use pin 15 or pin 16.
Connect pin 4 to pin 14, so you have 2.5volt Aref.

You might have to supply the load cell from INA's ref output (pin 4).
Leo..

I cant supply the load/torque sensor from INA's ref...
I need to supply it with 9-10V...
so any idea how to wire it and make it work?

karanan:
I cant supply the load/torque sensor from INA's ref...
I need to supply it with 9-10V...
so any idea how to wire it and make it work?

Please explain further.
Do you mean a 9volt battery.

If you don't supply the load sensor from a stable voltage, the resulting output also won't be stable.

If you supply the load cell from a higher voltage, then the output voltage of the load cell might be out of range for the INA125.

I want to supply the torquesensor with 10 volts...then give it a Gain 100 and get my signal. My problem is that the torque sensor give negative signal too..so I am thinking to use the voltage refernce 2.5Volt as pseudoground to get a signal like 2.5V+(signal*Gain)...
Does someone have tried it or have any idea if it will work?
Do i have to use that 2.5v as emiticion voltage to the sensor or it will work with those 10V?
Do i ground the sensor to real ground or to pseudoground?
If i use the pseudoground the emiticion voltage of sensor will be something like 10-2.5=7.5V and I should bigger the gain?

So you want to supply the IC with 15volt, so you can operate the sensor on 10volt.
Leo..

Yes
I did so
all fine
thanks

Hi,

I know this is an old discussion, but in case you are looking, the attached TIFF shows a fix to the Tension compression problem with the INA125 using the 5V from an Arduino Nano (can use other Arduino boards). Basically you use a HX711 for the load cell excitation and tie the -E to the psuedogroud.