Op amp implementation with DO sensor
Erik Friesen
Posts: 1,071
I am amplifying a 30 - 150 mv signal coming in from 50-100 feet of wire. ( A galvanic oxygen probe).
Here is an op amp I am looking at using - www.analog.com/static/imported-files/Data_Sheets/AD623.pdf
This is probably a dumb question but - will this do what I want? I don't have a full understanding of the bottom input voltage range that will work properly.
I am handicapped also because of trying to keep this in a dip format. 100 feet of wire in water + possible lightning in the area makes me think about replacement.
Post Edited (Erik Friesen) : 4/20/2009 2:07:29 AM GMT
Here is an op amp I am looking at using - www.analog.com/static/imported-files/Data_Sheets/AD623.pdf
This is probably a dumb question but - will this do what I want? I don't have a full understanding of the bottom input voltage range that will work properly.
I am handicapped also because of trying to keep this in a dip format. 100 feet of wire in water + possible lightning in the area makes me think about replacement.
Post Edited (Erik Friesen) : 4/20/2009 2:07:29 AM GMT
Comments
ourworld.compuserve.com/homepages/Bill_Bowden/opamp.htm
You will want to connect your incoming signal to the + (non-inverting input), the output (carrying your amplified signal) to the resistor series as depicted in the diagram on the link.
The -Vs and +Vs connectors will determine how much you will amplify your signal, for example, if you connect -Vs to ground and +Vs to a 5v supply, this range will be used to amplify your input (depending on the resistor values you use, you will need to experiment with those).
I hope this helps.
Russ.
The distance here of '50-100 feet" is sending up a red flag here... what kind of signal are you looking at? Is it a DC voltage, frequency, current loop, what exactly?
Can you process any of the signal closer to the sensor, so that the signal over that distance becomes less critical?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Get this - it is a shielded cable. One cable with all the wires.
Post Edited (Erik Friesen) : 4/17/2009 10:18:42 PM GMT
·
In order to do differential measurements, you need to have a signal that has a differential output.· Otherwise you have no noise immunity.·
·
From what you have indicated the sensor seems to be a single ended type of sensor, i.e. non-differential.· That's not to say that you can't create a differential signal from it, but there are a few questions that need to be answered in order to do that.
·
Does the sensor output share a connection with the shield?· If so, can that be changed to two separate wires?
Is the·power to the sensor·"isolated" from the receiving power?· Could it be?
·
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
-Phil
@phil - I don't see a good way to convert a signal from a galvanic sensor to 20ma, as there is no provision for power in the buoy, and I don't believe the sensor could source 20ma.
Here is a schematic for better understanding.
A 4-20mA transmitter does not need a separate cable for power or a source of power at the probe end. It would work over the same 2-wire cable you're now using. The probe would feed the transmitter, and the transmitter then sinks a current (4-20mA) proportional to the voltage from the probe. The current consumption is then detected at the other end of the cable. This has the advantage of both high noise immunity and zero effects from resistive cable losses. Whatever voltage is used to power the motors could be used to excite the transmitter. This is done at the cable end, though, not on the buoy. At the cable end, the current can be converted back to a voltage (1-5V) by means of a 250-ohm resistor.
Here is an example of a two-wire oxygen probe with a built-in 4-20mA transmitter. This wiki article discusses current loops in general and provides some useful references in the footnotes.
-Phil
Post Edited (Erik Friesen) : 4/18/2009 4:33:26 PM GMT
Yes R4 affects the gain, as seen the equations under the schematic. For the first stage, you want to make the gain x1, so R1=R2=R3=R4 and all of them as high as you can go with accurate (1% or better) resistors. Say 332 kohms. There are two reasons for choosing high values. 1) High values minimize the error due to the output resistance of the sensor, which is probably around 1 kohm, but will change as the sensor ages. 2) The circuit is intrinsically quite resistant to ESD, best when the input resistor values are high. Some low pass filtering can be introduced at the input too, by means of a snap on ferrite core and also by a capacitor in parallel with the input.
You will make up the gain and add more low pass filtering in the second stage, which will be a simple non-inverting amplifier of gain=x30, assuming you want to bring the signal up to around 4 or 5 volts fs. If the noise problem is severe, be sure to use dual supplies for the op amp, so that it won't rectify noise.
The questions about connection to the shield and how it is terminated at each end are important because they will affect the rejection of external noise and ESD.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
This is what I have so far.
Yes, it is the ad623. Do I need capacitance on the input?
I figure on shutting down the motors and waiting for a bit, then reading the sensor. I intend to do a 10+ read average.
I hadn't thought about the DO probe picking up any voltage from the water. Would using a lower value resistor to pull down the low side do any good? I also could bump the voltage with a voltage reference.
I don't see any real way to protect this from a close lightning strike, but I figure that if the chip is replaceable that will help.
Input impedance should be high also to avoid loading sensor, and this amplifier does offer that. The input resistors R47-R49 will help protect against ESD, but they do not seem to enter the gain equation.
A lot depends on how harsh the crosstalk is from other wires in the cable, and especially how much extraneous noise comes in from the DO probe contact to the water. As shown, your circuit appears to be set for a common mode resting voltage near ground, with U7 on a single supply. If the common mode noise is harsh, it could drive the inputs below ground and out of the range that the amplifier can handle. The AD623 can handle signals 0.15 volt below Vss, but that is not much. You would be safer with a +/- 5 volt supply. Or with an industrial strength amplifier that can operate on +/- 15 volts supplies and handle larger common mode excursions. One advantage of the circuit that Kwinn posted above, when operated on dual supplies, is that the op amp inputs sit very near ground and with gains <=1 it can have great common mode capabilities.
Things like DO probes and pH sensors in natural or industrial environments are difficult to instrument, because they by their very nature have to be in contact with the medium, which acts both as an antenna for the nearby country and western station and also as the electrolyte for a battery formed with the hull of the nearby sunken battleship. One solution is to sample the medium and bring it in a small cup to the sensor, and another solution is to use a isolation amplifier, which effectively puts the sensor electrically in a world of its own. Quite often you can go out and get a perfectly good measurement with a hand-held instrument, but then it proves difficult when connected to a system.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
What are some reasons why bumping the ground with a precision reference would not do what I want?
The reference pin 5 sets the output level when the differential input is zero. You have that at ground. The Vss pin 4 is the negative power supply, and in your schematic it is also at ground. But it could be at -5 volts. Then you would connect the bottom of R49 to ground pin 5. That would put the common mode voltage smack in the middle at ground between the -5 and +5 supply, where the common mode rejection for noise going either way will be a maximum.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I also figured out that my signal wire has its own shielding after all, although it is in the same cable as the motors.
I have a 24v supply that I could bring down to 15 or 12 or whatever.
The DO probe I am using has about a 20k ohm resistance from the probe leads to water (tested in my sink)
Galvanic isolation is recommended on some websites. These are small fish ponds.
Options include -
1. Using a ad202 on each input.(there are 3) www.analog.com/static/imported-files/Data_Sheets/AD202_204.pdf $50 each
would I need further signal conditioning or could the input handle these voltages well?
I believe that the ad202 would work on a single supply of 12v
However, there are no sockets to be found for this setup.
2. using a ad629 www.analog.com/static/imported-files/Data_Sheets/AD629.pdf fed from a 12v supply, which would feed into a ad623 www.analog.com/static/imported-files/Data_Sheets/AD623.pdf which would be set to a gain of 10. The ad629 would provide the isolation.(although not a true isolator) I would hold the reference high with somewhere around 2 volts if necessary.
I have some experience with small fish ponds (pH, for growing algae in a paper-making project). It may be a small headache now, but I think you will be rewarded in the long run if you do go with the isolation amplifier.
I haven't used the AD202 myself, but I think it would do the job well. The socket could DIY with SIP socket strips. The AD202 can provide the gain of x10 or x20 that you need on the input side using the circuit shown in the data sheet. However, I think they have a typo on the data sheet figure 8a. There is an extra dot that should not be there showing a connection between the feedback and the input signal.
An alternative option #3 is the ISO122 from TI. It comes in a standard 16 pin DIP package and is around $15. You need to supply it with isolated power, and if you have 24 volts DC available, you could use the DCP012415DB in 14 pin DIP format to supply that (~$10). The ISO122 is x1 gain, but the isolated power can also supply a simple non-inverting x10 or x20 amplifier on the input side.
You option 2 sounds correct. If the sensor does have 20kohm output resistance, that is going to be significant in relation to the 380 kohm nominal input resistance of the AD629.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
The issue with the iso122 is that it appears to require +-15v, which 24v cannot supply. I am leaning toward a simple replaceable setup, and the complexity of the iso122 setup has me a little leery.
Actually what I meant by the 20k ohm measurement is that there is only 20k isolation from the body of water.
There are some very good op amps that run on less than 750 microamps, but I don't think that complication will be necessary for your application.
It is true the ISO122 would require more parts and wiring, but the BOM cost would be less. A DCP012415DB is a separate part in a 14 pin DIP format that can provide +/- 15 volts isolated power directly from a 24 volt industrial power supply. (You have to use a separate power supply for each amplifier, otherwise there might be interaction between the sensors, and you might need one more to supply all three on the output side, ouch!). And each ISO122 would need another op-amp to supply the x10 gain. There are other DIY methods to achieve isolation, for example with photomos switches and a flying capacitor, more complex, but potentially lower cost and lower quiescent current.
I see what you mean about the 20k isolation from the water. That is the resistance through the membrane I guess, but that should be closely related to the output resistance of the sensor. Did you measure that directly? The input resistance of the AD202 in non-inverting configuration will be high enough that it probably won't matter.
Isolation amplifiers makes it as though each sensor is connected to a hand-held meter, each completely in its own electrical space. It is sometimes hard to track down the errors that can arise when multiple sensors and actuators are connected to one system without isolation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Not much protection is needed in the way of a TVS, because the isolation amplifier is just that, isolation to the tune of something like +/- 2000 volts. However, do wrap the wires on a snap on ferrite core before they get to the amplifier, and put a good quality capacitor at the amplifier input. Follow the suggestions in the data sheet. That is to get rid of high noise frequencies in the input.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com