Author Topic: Differential op amp Vout question  (Read 3498 times)

0 Members and 1 Guest are viewing this topic.

Offline DuncanSteelTopic starter

  • Contributor
  • Posts: 39
  • Country: ee
Differential op amp Vout question
« on: January 24, 2017, 02:03:18 pm »
Hi

I would like to know why my real time measurements & calculation don`t match up?

I have a load & I amplify the difference between 2 wires with an op amp & 1Mohm resistor.  Load cell has 4 resistors. You can see the values in the image below.

In real time I measure Vout as 1.6V but with calculations I get very strange results. (see the image please). Why ?

If I use multimeter to measure voltage between Green & white wire I get 2mV

« Last Edit: January 24, 2017, 02:10:04 pm by DuncanSteel »
 

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: Differential op amp Vout question
« Reply #1 on: January 24, 2017, 02:09:18 pm »
In your differential amplifier, R3 and R4 should have the same value.
 

Offline DuncanSteelTopic starter

  • Contributor
  • Posts: 39
  • Country: ee
Re: Differential op amp Vout question
« Reply #2 on: January 24, 2017, 03:39:17 pm »
In your differential amplifier, R3 and R4 should have the same value.

If R3 = R4 then both = 750 Ohm and output measured is 2,3V and the gain is 0. This cant be right.
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9915
  • Country: us
Re: Differential op amp Vout question
« Reply #3 on: January 24, 2017, 04:13:31 pm »
Section 6.5 might help:

http://www.cypress.com/file/65366/download

I think if I were building such a thing, I would use a true instrumentation amplifier:

http://websrv.mece.ualberta.ca/electrowiki/images/3/3c/Strain_Design.pdf

Perhaps I would use the chip in the document or maybe I would start from scratch with:

http://www.analog.com/media/en/technical-documentation/data-sheets/AD524.pdf or similar


 

Offline tron9000

  • Frequent Contributor
  • **
  • Posts: 423
  • Country: gb
  • Still an Electronics Lab Tech
    • My Hack-a-day project page
Re: Differential op amp Vout question
« Reply #4 on: January 24, 2017, 04:41:25 pm »
The equation:
Vout = (-R3/R1)(V1-V2)

is only true if R3 & R4 are equal and R1 & R2 are equal.

This is a mismatched differential amp and will not work as you expect it to. If you make:

R3=R4 & R2=R1, this should give a gain = R3/R1 = R4/R2

Also I'm not sure where you got Vout = 1400V from? That's way out of the operating range of any op-amp, so that would be ringing alarm bells in my head!
« Last Edit: January 24, 2017, 04:43:12 pm by tron9000 »
Partsbox.io - orangise your parts!
"If you're green you can only ripen. If you're ripe you can only rot!"
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19717
  • Country: gb
  • 0999
Re: Differential op amp Vout question
« Reply #5 on: January 24, 2017, 07:02:54 pm »
Hi

I would like to know why my real time measurements & calculation don`t match up?

I have a load & I amplify the difference between 2 wires with an op amp & 1Mohm resistor.  Load cell has 4 resistors. You can see the values in the image below.

In real time I measure Vout as 1.6V but with calculations I get very strange results. (see the image please). Why ?

If I use multimeter to measure voltage between Green & white wire I get 2mV
The resistances in your strain gauge circuit don't add up. The resistances between red & white and red & green wires are 841R so R1 & R3 = 841. The resistances between white & black and green & black are 750 so R2 & R4 = 750R.

The resistance between red and black should be equal to (R1 + R2) and (R3 + R4) parallel but it isn't.

R1 + R2 = 841 + 750 = 1591
R3 + R4  = 1591

Since both the resistances are the same, we get half the resistance when they're connected in parallel (easier than doing product over sum):
R (between the red & black wires) = 1591/2 = 795.5

But you measured 1091 which can't possibly be right.

Did you measure them with anything else in the circuit?

It is possible to use the resistance of the strain gauge as part of the differential amplifier circuit but R1 & R2 become the equivalent of the top and bottom resistances in parallel and it's important the bridge is well balanced. I would use R1 & R2 in the differential amplifier circuit and add the strain gauge resistance on to them, when performing the calculation. I'll post an example later.
https://datasheets.maximintegrated.com/en/ds/MAX4238-MAX4239.pdf

See attached. The circuit has a gain of 100. The high and low side resistors in parallel equal to 500R which is added to the values of R1 & R2 to make 2k7.

« Last Edit: January 24, 2017, 07:29:46 pm by Hero999 »
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16952
  • Country: us
  • DavidH
Re: Differential op amp Vout question
« Reply #6 on: January 25, 2017, 04:07:54 pm »
But you measured 1091 which can't possibly be right.

Did you measure them with anything else in the circuit?

All of the schematics of the bridge shown so far are wrong including yours.  There is at least a modulus compensation resistor in series with one or both of the excitation leads.  Not coincidentally, roughly 90 ohms total is a typical value.  The modulus compensation resistor is temperature sensitive and corrects the bridge for the temperature coefficient of modulus of elasticity of the material.

So the resistance between the excitation leads will be greater than the resistance between the signal leads.
 
The following users thanked this post: Zero999

Offline DuncanSteelTopic starter

  • Contributor
  • Posts: 39
  • Country: ee
Re: Differential op amp Vout question
« Reply #7 on: January 25, 2017, 07:10:12 pm »
But you measured 1091 which can't possibly be right.

Did you measure them with anything else in the circuit?

All of the schematics of the bridge shown so far are wrong including yours.  There is at least a modulus compensation resistor in series with one or both of the excitation leads.  Not coincidentally, roughly 90 ohms total is a typical value.  The modulus compensation resistor is temperature sensitive and corrects the bridge for the temperature coefficient of modulus of elasticity of the material.

So the resistance between the excitation leads will be greater than the resistance between the signal leads.

So what is the not wrong schematic? I built up this schematic (it works, but has bad noise with 10Bit adc - Atmega32u4) but I do not understand how to calculate the gain & output of the circuit. Thats is why im asking how to calculate the numbers.

« Last Edit: January 25, 2017, 07:12:02 pm by DuncanSteel »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19717
  • Country: gb
  • 0999
Re: Differential op amp Vout question
« Reply #8 on: January 25, 2017, 09:45:46 pm »
But you measured 1091 which can't possibly be right.

Did you measure them with anything else in the circuit?

All of the schematics of the bridge shown so far are wrong including yours.  There is at least a modulus compensation resistor in series with one or both of the excitation leads.  Not coincidentally, roughly 90 ohms total is a typical value.  The modulus compensation resistor is temperature sensitive and corrects the bridge for the temperature coefficient of modulus of elasticity of the material.

So the resistance between the excitation leads will be greater than the resistance between the signal leads.

So what is the not wrong schematic? I built up this schematic (it works, but has bad noise with 10Bit adc - Atmega32u4) but I do not understand how to calculate the gain & output of the circuit. Thats is why im asking how to calculate the numbers.
He meant the schematic for the strain gauge is wrong.

You need to know the correct schematic for the strain gauge, in order to calculate the gain of the differential amplifier used in your schematic.

Personally, I'd use the INA101, which has a high input impedance, so the resistance of the strain gauge can be ignored.
http://www.ti.com/lit/ds/symlink/ina101.pdf
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Differential op amp Vout question
« Reply #9 on: January 25, 2017, 10:11:15 pm »
More than you want to know about diff amps, includes gain equations -


http://www.analog.com/en/education/education-library/dh-designers-guide-to-instrumentation-amps.html


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16952
  • Country: us
  • DavidH
Re: Differential op amp Vout question
« Reply #10 on: January 25, 2017, 10:39:34 pm »
He meant the schematic for the strain gauge is wrong.

It is just that practical load cells use elements which are not shown in the typical schematic leading to a surprises when the resistance of the various legs of the bridge are measured.

Quote
You need to know the correct schematic for the strain gauge, in order to calculate the gain of the differential amplifier used in your schematic.

The load cell will have a specified sensitivity from say 0.5 to 3 millivolts per volt of excitation at full load; 2mV/V or 3mV/V is typical.  This takes into account any modulus and other compensation which is not shown in the 4 resistor bridge schematic.  So with a 3mV/V sensitivity and 10 volts of excitation, the full scale differential output will be 30 millivolts and from there, the needed gain of the amplifier can be easily calculated.

If the sensitivity is not marked, then apply a known excitation and measure the change in the differential output between zero and a known load.  Then the sensitivity can be calculated.

Quote
Personally, I'd use the INA101, which has a high input impedance, so the resistance of the strain gauge can be ignored.

The change in resistance of the bridge creates insignificant non-linearity error compared to the non-linearity of the load cell itself so there is no need to use an amplifier with high input impedance; a 4 resistor instrumentation amplifier will work fine in all but the most exacting applications.
 

Offline DuncanSteelTopic starter

  • Contributor
  • Posts: 39
  • Country: ee
Re: Differential op amp Vout question
« Reply #11 on: January 27, 2017, 09:08:07 pm »
Thank you guys you were helpful.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf