I am trying to get some reading from torque sensor by using Arduino. The torque sensor I am using has 6 outputs as shown below with attachments or you can find it in the datasheet as well. would somebody help me in that?
I am trying to get some reading from torque sensor by using Arduino. The torque sensor I am using has 6 outputs as shown below with attachments or you can find it in the datasheet as well. would somebody help me in that?
The data sheet of the torque transducer [ here
Thanks
[/quote]
How do you have it wired? Two pins are input, not output (excitation 10 volts).
I used pins 1 and 2 for the power (Arduino 5V), and pins 4 and 5 for the signal (I used digital input pin in Arduino for signals). Actually, my code is to measure the difference between two signals, and depend on the signals, I increment or decrement the counter, and if the signals are the same I set the count to zero.
this is my code
int I=12;
int Q=13;
volatile int num;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
int num=0;
digitalWrite(s,LOW);
digitalWrite(r,HIGH);
//attachInterrupt(0 , handleEncoder, CHANGE);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(num);
delay(10);
//void handleEncoder()
if(digitalRead(I)> digitalRead(Q))
{
num--;
}
if (digitalRead(I) < digitalRead(Q))
{
num++;
}
if (digitalRead(I) == digitalRead(Q))
{
num=0;
}
}
The problem is that I got the same signal for both signals even when I rotate the torque transducer. I thought maybe my wirings are wrong. Also, I am not sure of pin 6 where it should be connected
It is probably a strain gauge, which means you need a strain gauge amplifier. Obviously, the manufacturer wants you to buy the electronics to go with the sensor.
jremington:
It is probably a strain gauge, which means you need a strain gauge amplifier. Obviously, the manufacturer wants you to buy the electronics to go with the sensor.
Thanks for the info. Makes perfect sense, now.
The OP needs to Google "rotational strain gauge" and study all the results. Looks like the system uses a Wheatstone bridge and a DC amplifier, as you indicated. Just connecting to an Arduino cannot work in any way.