# Opamp-Circuits (Page 5)

## Precision Op-Amp Current Source

In this circuit we tackle the error indicated in the earlier Current Source. The LM336-2.5V eliminates the tiny error of the regulated supply and resistors. Thereby increasing Precision to a higher degree.

The opamp mirrors the stable 2.5V across P3 + R13. With P3 Bourns 10 Turn Trimpot you can trim the current for calibration. Q1 BC557B having a Beta – hfe of 200 is used. But a higher gain or a FET here may reduce error further, that may be needed if you are going for 16 Bit or more resolution. Then even opamp needs to change.

Suppose you build it with the best Opamp, FET etc., but place it close to a Warm transformer, Regulator chip or even a Cooling Fan, you will see the lower digits of a 5-1/2 DMM spinning fast.

## Current Source for Resistance Measurement

Here is a current source you can build for resistance measurement. When the current is held constant, you know as per Ohm’s Law the Voltage across Resistor is proportional to Resistance value.

The supply is +12 and -12, The total voltage across R6 + R7 is 24V. Then 24V / 120K = 0.2mA. The voltage across R6 is (10K * 0.2mA) = 2V. The same is reflected across R5 in this feedback configuration. That means Q3 is a 2V / 1K = 2mA source. If my calculations are right.

There are sources of errors in this circuit. The temperature variation of all resistor values, which is 100ppm for general calculations in 1% MFR. Let us assume you use OP07 which is close to an ideal opamp, but for this application it is not needed. The second error is Ib, the base current of Q3 which may be 0.2mA / Hfe(200) = ~ 1 uA. Then the variation of Hfe, Vcc and Vdd w.r.t. Temperature, should not be overlooked. Use LM7812 and LM7912.

So you see, design knowing that all these components are not ideal. Leakage currents, Humidity, EMI, Stray Capacitance and Inductance and much more. It is just like, even when the motor is fixed firmly on the machine, some parts Vibrate and create a Noise due to Mechanical Resonance. So Build and evaluate your design in the real environment, to learn.

Discover how resistors are color coded – Interactive Java Resistors Tutorial.

## Ammeter and Precision Rectifier

Studying current measurement is a prerequisite for many of the measuring techniques. The current parameter mainly specifies the power consumption in a circuit, given the value of resistance. It is found convenient to measure current rather than voltage for knowing power output and determining efficiency. It may be required to measure leakages in circuits at certain times. Hence the measurement of current constitutes a priority.

Measurement of DC Current –

The circuit diagram for the measurement of current (d.c. and a.c. modes) is shown aside. For measurement of current switch SI is operated. The switch S-ad is kept in d.c. mode. This enables the current to pass through a shunt circuit consisting of resistors R26, R27, R28, R29 and R 30. The current ranges are provided in 5 decades i.e. 200 micro-amps, 2 milli-amps, 20 milli-amps, 200 milli-amps and 2 amps. An additional current range that can be read upto 20 Amps is also provided. However, for measuring this high current the green terminal provided on the meter should be used. When a current to be measured is fed to the input terminals of the instrument appropriately, a voltage proportional to the current through the shunt resistor is fed into the DPM which measures the d.c. voltage which in turn indicates the d.c. current being fed.

Measurement of AC Current –

In case of a.c. measurement, the switch S-ad is kept in a.c. mode. The a.c. current path is similar to the d.c. current path in the shunt resistor. However the voltage tapped across the shunt resistor is fed into IC2 which is a buffer. The output of IC2 is fed to IC3 through capacitors C10 and C11. This IC is an operational amplifier acting as a precision rectifier. The output of IC3 is fed to the input of the DPM for measuring the a.c. current being fed to the input terminals. It can be seen that the current measurement is similar to the voltage measurement except that the attenuator chain is replaced by the shunt resistor circuit.

(This is scanned-ocr from my earlier file, some mistakes corrected – delabs)

## Dual Polarity Analog Output Op-Amps

When you have to buffer and invert the polarity of mV input levels. This is the circuit you can use, as OP07 has uV offset. R9 and R10 can be 100K 1% MFR or better. Use a symmetrical dual supply.

OP07: Ultralow Offset Voltage Operational Amplifier

## InfraRed Detector for Proximity Switch

The proximity switch can work for a wide range of power, from 8v to 18v DC, D3 protects reverse power supply connections, and U1 regulates the supply to +5v , -5v is derived from U2 555 oscillator which serves dual purpose.

Circuit Operation

Part of – InfraRed LED Flasher for Optical Switch

The infra red diode D2 detector gets the reflected light from LED and some ambient light, The forward voltage drop of D2 will vary with the amount of light falling on it. Ambient light causes a DC component and the pulsing light from D1 causes an AC component.

The capacitor C6 blocks DC and only transfers AC pulses if any to opamp amplifier U3A whose gain is set by R18, D9 rectifies the pulses to DC and this DC voltage is used by opamp comparator U3B which drives Q1 through Q2 for an open collector output for relays. LED D7 turns on when relay Output is high.

R14 and R13 can be replaced with potentiometer for threshold adjustment if required.

Testing
Connect 12v DC supply to +V and GND Ports, Connect a relay coil Between OUT and GND Ports, you can use the relay contacts as you require to turn on a lamp, heater, fan or motor.

If all connections are ok and ICs are working you should see a +5V at U3 pin8 VCC and around -4 to -5 at U3 pin4 VDD.

Construction

The Optic switch can be used for both reflecting detection (retro reflective) or obstacle detection. The mechanical construction will decide this, for obstacle detection the diodes D1 and D2 could be put in two different tubes and can be kept far apart 2mts+ and both should be exactly opposite each other, any obstacle like a passing person will be detected.

To make a retro reflective proximity switch this circuit is ideal, it can be housed in a cylindrical 30mm by 70mm metal unit with m30 threads and nuts for mounting, both D1 and D2 have to be fitted in the front of this tube on a plastic plug optically insulated from each other yet beside each other.

## Voltmeter Attenuator Rectifier

Measurement of Voltage : –

In testing electronic circuits, Measurement of voltages is important for diagnosing faults and making the circuits work. In circuit diagrams given in equipment manuals, voltages at various points in the circuit are usually marked. A deviation from these values indicates that some component has failed and eventually leads to clues for isolating the faulty areas.

Specifications :-

D.C. Voltage
Ranges : +/- 200 mV, 2V, 20V, 200V, 2000V.
Input impedance: 10 mega ohms.
Circuit protection: + 2000V D.C. all ranges.
Over range: 100% to 1999.
Accuracy: +/- 0.5%.

A.C. Voltage
Note: Average responding Ranges calibrated for sine wave.
Ranges: 200 mV, 2V, 200V, 2000V
Input impedance 10 mega ohms.
Circuit protection : 750V r.m.s., all ranges.
Over range: 100% to 1999.

Description :-

As our DPM is capable of measuring only 200 mv full scale deflection, the input voltage in the case of exceeding the range needs scaling down. This is achieved by an attenuator chain.

D.C-voltage -measurement:

The circuit for the measurement of voltage (AC. and DC) from 0.2V to 2000V is as shown. In case of DC voltage measurement, A mode switch selects the input voltage and passes it via an attenuator chain. Resistors R6, R7, R8, R9 and R 10 comprise the attenuator chain. The attenuation chain is in fact the range selection network.

The voltage ranges are provided in 5 decades i.e. 200 mV, 2V, 20V, 200V, and 2000V. The input voltage after attenuation is fed, depending on the range selected by switch Rs, through switch Sad to the DPM input point. The reading on the DPM gives the value of DC voltage being measured.

A.C-voltage measurement:

Most D.C. measurements are made with AC. to DC. converters which produce a DC. proportional to the AC. input being measured and apply this DC. signal to the DPM. Converting the signal to DC at an early stage minimizes the serious errors which otherwise could result from frequency selective circuits.

When an AC voltage is to be measured, the switch Sad is to be operated. This switches enables the signal to pass through a buffer and precision rectifier and then to the DPM input while measuring AC. but passes it directly to the DPM input while measuring DC. So, now the signal after passing via the attenuator chain is fed to IC2. The buffered output of IC2 is fed through the capacitors C 10 and C 1 1 to IC3 (CA 3140-TL071) which is an FET input operational amplifier, acting as a precision rectifier. By means of diode D4 and resistor R24, rectification with gain is obtained for positive half cycles of the AC. signal while the negative half cycles are directly fed back by the diode D3. The half-wave rectified voltage is filtered by the resistor R25 and capacitor C12 combination.

The capacitors C6, C7, C8, C9 connected across resistors in the attenuator chain provide some frequency correction during AC input. The presence of offset voltage in IC3 is to be compensated using variable preset VR2. Preset VR3 is used to correct the reading so as to indicate the true a.c. value of the voltage. On passing the preset VR3, the signal enters the DPM. The reading on the panel gives the value of AC voltage being measured.

Parts List :-

1. Semiconductors
IC2 and IC3-CA3140 or TL071. D1 and D2-5V Zener 1W, D3 and D4-IN4148,

2. Resistors.
a. 1/2 W 1%,
R6-1M, R7-100KE, R8-IOKE, R9-1KE, R10-100E,
R18 and R19-10K, R23-15KE, R24-100 KE, R25-1 KE,

3. Presets.
VR3-220KE

4. Capacitors
C10 and C11 10MFD, C6-47PF, C7-1 KPF, C8-6.8KPF, C9-8KPF, C12-1MFD.

5. Miscellaneous
SSG/T-SOCKET, 51,52-DPDT, A,B,C,D-BNC,SKT, F2-100mA fuse, RS-8P2Wx5 INTERLOCKED. S-2p2wx7 Interlocked