Home/Analog Electronics/Op-amp applications/Logarithmic amplifier

Logarithmic amplifier using Op-Amp (IC 741) – Virtual Lab

A logarithmic amplifier uses the exponential current–voltage relation of a diode. With the diode as the feedback element, the output voltage is proportional to the logarithm of the input voltage.

Aim

To build a logarithmic amplifier using IC 741 and a diode, and verify that the output is proportional to the logarithm of the input.

Circuit components

ComponentValuePurpose
IC 741OA1—
R110 kΩConverts Vin into a current
D11N4148Feedback element

Supply: ±12 V dual power supply. Instruments: function generator and two-channel digital storage oscilloscope, all on the virtual bench.

Theory

Because the − input is a virtual ground, the input current is Vin/R1. All of this current flows through the diode, whose voltage is therefore n VT ln(I/IS). The output is the negative of the diode voltage, so it depends on the logarithm of the input.

Each tenfold increase in Vin changes the output by only about 100 mV, so a very wide range of input voltages is compressed into a small output range. The circuit works only for positive inputs; a negative input reverse-biases the diode.

Log amplifiers are temperature sensitive because both VT and IS change with temperature. Practical designs use matched transistors and temperature compensation.

ID = IS eVD / (n VT)
Vo = −n VT ln(Vin / (R1 IS))
ΔVo ≈ n VT ln 10 ≈ 100 mV per decade of Vinn ≈ 1.75, VT ≈ 26 mV for this diode

Procedure

  1. Open the Op-Amp Trainer Kit simulator; it starts with the Logarithmic amplifier application selected.
  2. In Guided mode follow the highlighted connections to place the components from the parts bank and wire the circuit on the kit, or wire it yourself in Free mode.
  3. Set the dual power supply to ±12 V and switch it on.
  4. Switch on the function generator and set: Triangle, 4 Vpp, 200 Hz, offset +2.6 V (0.6 V to 4.6 V).
  5. Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 1 V/div, CH2 0.1 V/div with position offsets, 1 ms/div.
  6. Observe that the output stays near −0.5 V while the input changes from 0.6 V to 4.6 V.
  7. Note the curved (logarithmic) shape of the output.
  8. Record Vo at several input values and plot Vo against log Vin: it should be a straight line.
  9. Capture the oscilloscope screen and compare it with the expected result below.
Function generatorTriangle, 4 Vpp, 200 Hz, offset +2.6 V (0.6 V to 4.6 V)OscilloscopeCH1 1 V/div, CH2 0.1 V/div with position offsets, 1 ms/divSupply±12 V, ON

Expected result

As the input rises from 0.6 V to 4.6 V the output changes only from about −0.46 V to −0.55 V, following a logarithmic curve of about 100 mV per decade.

Viva questions

Why does a log amplifier need a positive input only?
The diode must be forward biased; a negative input would reverse-bias it and break the feedback.
How is an antilog amplifier made?
By interchanging the diode and the resistor, so that the input voltage drives the diode and the output is proportional to its exponential current.
Give applications of log amplifiers.
Signal compression, decibel measurement, analog multiplication and division (log, add, antilog).

Other op-amp applications