Digital gain control of Opamp.

The gain of U1 can be controlled by a digital binary 1248 nibble at ABC. The gain at digital 000 is unity or 1 and the gain at various stages are set by 4051.

Precision Attenuator with Digital Control – delabs

There are eight different gains as the steps of gain resistor network is chosen by 4051. The on resistance of 4051 channel around 100E gets added to U1 pin 2 internal impedance.

Digital gain control of Opamp

Auto ranging 4-1/2 Digit Digital Voltmeter – delabs

You can use separate resistor networks with trimpots for each channel if you require but keep the networks total burden on U1 pin 6 to around 10K, not less than than. You can use this to set the gain of a amplifier with the help of a microcontroller.

Linearizing Circuit for Thermocouples

This circuit changes the gain of opamp U1B in four steps or segments. It can be used to get a linear output from most transducers to 1% levels.U1A is a amplifying buffer use it to boost the signal to the required level.
Linearizing Circuit for Thermocouples

The resistor values i have put are for an imaginary transducer, you have to design them. The buffered input signal is compared to reference switching points by LM339.

Temperature Measurement and Control

LM339 changes the gain resistors of U1B thru the mux switch 4066. JP1 to JP4 can select either amplification or attenuation of signal. The resistor switched by 4066 can be across R1 or R2 based on JP1 to JP4.

You may have to input transducer values into a spreadsheet and draw a graph. Then divide the graph into 5 segments and deduce the switch points and gain.

Simple Sample and Hold with CD4066

A sample and hold is like an analog memory. If The digital control A is low 4066 switch is open, and when A is high switch is closed. U2B is a buffer so as to ensure quick charging of C1 thru 4066 on resistance of 100E.

Simple Sample and Hold with CD4066

Mixed and Interface Circuits

U2A is a FET input opamp buffer which does not load or drain the cap C1. When A goes high the input analog sample is stored in C1. A has to be high for say 10*1uF*100E = 1mS, so that a proper stable sample is stored. When A is low C1 undergoes very slow discharge as opamp input resistance and 4066 off resistance is in giga ohms. The accuracy of reading Vout falls with respect to time due to leakage currents.

AD590 based Temperature Sensor

Learn how to use the AD590 to measure environment temperatures for display, logging or cold junction compensation.

The voltage at the point 1 of R4 will be :Vo=( 1+ ( 10K/22K)) * Vref = 3.63V as nominal Vref is
2.5V.AD590 is a current source which gives 1 uA / kelvin, It is independent of the voltage across the device. you can treat it like a current source or sink or impedance. total voltage across AD590 is 5V as opamp pin 2 is at virtual ground.

Analog Circuits – OpAmp, Signal Condition, Mixed Signal.

AD590 based Temperature Sensor

This is the way you try to understand the design.

The AD590, here is a constant current sink as cathode goes to -5. The current it sucks away or drains from node pin 2 of OP07 is 1uA/ kelvin. at 0 deg C the current drained is 273 uA at 26 deg C it is 300uA.

You know according to theory that the amount of current entering the node, is equal to the amount of current leaving the node. do not look at voltages now, look at the currents. the AD590 drinks 273uA from Node pin 2 of OP07 at 0 deg C. Now no current can come from opamp OP07 pin 2 as resistance is in giga ohms and leakage in pico amps. now the pot R5 and resistor R4 are just in series and connected to 3.63 V as established earlier. The TL431 is a shunt regulator with reference and has a low impedence. Now the R5 + R4 combination should not load the TL431, that is not the case as 3.6 / 10K = 360uA .

By varying R5 pot you can pump 3.6 / 10K = 360uA down to 130uA when R5 is max into node pin 2 of OP07. This pot will be calibrated with AD590 in ICE to give a 0 mV output of the Op07. When calibrated R5+R4 pump 273 uA into node pin 2 of op07. this is sucked away by the AD590 which is draining 273uA at 0 deg C. This leaves the pin 2 at zero potential as currents leaving = currents entering.

Now to understand the opamp functioning.

The pin 2 of opamp is a 0 potential as calculated above and pin 3 also is at zero pulled down by R7. Now as both inputs are at same potential the output of opamp also is zero. The feedback resistors R1 and R2 will carry no current as both their ends are at 0. the Vout is now 0 mV and AD590 is on a block of ICE and opamp is stable.

If pin 2 (-) becomes more dominant or positive than pin 3 (+) the output swings negative. If pin 3 (+) becomes more dominant or positive than pin 2 (-) the output swings positive. The opamp on feedback tries to maintain both the inputs at the same potential. This thumb rule can be used to make opamp oscillate, amplify or compute.

Now what happens when the AD590 is removed from the block of ICE. It comes to room temperature say 26 deg C which means 300uA. Now the AD590 demands to draw 300uA from node pin 2 of OP07. The R4 + R5 from 3.6 V can give 273uA as it is fixed, not a uA more. The rest which is 300 – 273 = 27uA leads to a drop in potential at pin 2 and it turns negative. as demand is greater than supply. which makes pin 3 which is at zero more positive than pin 2. ( theory : 0 is positive compared to -1) as pin 3 is more dominant opamp swings positive as per thumb rule. and a current starts flowing thru R1 + R2 till the current reaches 27uA. at this point the extra current 27uA drawn by AD590 is supplied by opamp thru R1+R2. The Pin 2 now comes to 0 as currents leaving = currents entering.

Test & Measurement, Instrumentation

At this point the voltage at opamp output is given by ( R1 + R2 ) * 27uA = 270mV (assume R1+R2 is 10K after calibration) now opamp gives 10mV per deg opamp now is a closed loop control the rise and fall in temperature, results in AD590 current variation which produces a proportional OP07 output.

Now the explanation above is in steps but all that happens in real time in an instant.

Three Opamp Differential Instrumentation

This is the best Instrumentation OpAmp, Great CMRR, ensure supply has no ripple and keep analog and digital grounds separate. Ri can be replaced with a trimpot and resistor to alter gain. Connect a preset ends to pins 1 and 8 and preset wiper to VCC for Offset Null when high gains are configured.

Thermocouple and Pt-100 RTD

The Input zeners and diodes form a protective clamp for all voltages above VCC-VDD. If supply is changed to +12 -12 change zeners to 12V zeners. Use similar Zeners at output to protect Output from being zapped by overvoltages or high energy – voltage*frequency transients. Add plastic capacitors across Rf for damping AC operation or ripple. Also avoid floating inputs by providing a bias.

3 Op-Amp Differential Instrumentation Amp

Vout = (Vp – Vn) * (2Rf+Ri)/Ri

Related Reading

Two Op-Amp Differential Amplifier

The Input Impedance of this module is very high and is symmetric. This circuit can be used for strain gauges and for four wire measurements. If inputs are in mV use OP07. The merit is that it uses only 2 OpAmps yet has high differential Input Impedance.

Dual Differential Amp – Interactive Simulation

The Outputs of Opamps are low impedance but still have limits they cannot drive more than a few mA of Current into the Load. If low ohmic value loads are to be applied use external transistors as amplifiers. If inputs Vn-Vp are floating Outputs may be random or Oscillating, it is good to have a bias network of 10M resistors to a potential even zero or COM this enables Vout when input floats.

Two Op-Amp Differential Amplifier

Vout = (Vp – Vn) * (Rf+Ri)/Ri

Related Reading

Precision Instrumentation Amplifiers

Buffer or Unity Gain Op-Amp

If output impedance of a point is a high value then connecting another circuit at that point will load it resulting in malfunction or error. Buffers are used as interface between circuits. Low impedance of an output means it can source sink lot of current, when you need 2 opamps use LF353 or TL072 which are dual opamps.

Blind Dial Proportional Temperature Controller

A non-inv FET input is the best buffer, for inverting buffer use high R values Using very high R values like 2.2M or higher requires a glass epoxy PCB and guard rings around pin 2, 3 to prevent leakage currents on the PCB reaching the PINs. Also moisture and dust has to be prevented by using RTV coating or Varnish. Use 78L05 79L05 for the dual supply required by this circuit.

Buffer or Unity Gain Op-Amp

Vout = -(Vin) for inverting

Vout = Vin for non-inverting