Log and Antilog amplifier are electronics circuit that outputs log or antilog values for a given input. If x is the input then the output from log amplifier is ln(x) and the output from antilog amplifier is ex. Log and Anti-log amplifier are build using operational amplifier and diodes or transistors. In case of log or logarithmic amplifiers a diode or transistor is placed in the feedback loop. In case of anti-log(anti-logarithmic) or exponential amplifier the diode is placed at the input. Here we will discuss how log and anti-log amplifiers works.
Basic Log or Logarithmic Amplifiers using Diode
The circuit diagram of a basic Log amplifier using diode is shown below.
In the circuit diagram above, the diode is used in the negative feedback. The analysis of this basic log amplifier is as follows.
In the above circuit, the node A is grounded and therefore the node B is at virtual ground. Therefore the voltage V2 at node B is grounded. Hence V2=0 and we have,
Vin=V2+IR
or,
IR=Vin−V2
or,
I=Vin−V2R
With V2=0 we have,
I=VinR−−−−−−−−−−−−−−−−−−−−−−−−−>(1)
As the op-amp input current is zero, we have, I=If, which is the current that flows through the diode path.
Now the basic volt-ampere relation for a diode is given by,
I=I0(eVμVT−1)
where, I = diode current
I0 = reverse current
V= diode voltage
μ = 1 for Ge diode and 2 for Si diode
VT = kT = voltage equivalent of temperature
k = Boltzmann's constant = 8.62×105eV/oK
T = temperature in Kelvin
From solid state physics it can be derived that at room temperature of T=27oC, VT=26mV
When the diode is forward biased, the current through the diode I is If and in this case the term eVμVT is much greater than 1, that is eVμVT>>1 and we can write,
If=I0eVμVT
Taking natural logrithm on both sides and solving for voltage V across the diode,
ln[If]=ln[I0eVμVT]
or, ln[If]=ln[I0]+ln[eVμVT]
or, ln[If]=ln[I0]+VμVT
or, V=μVT[ln(If)−ln(I0)]
therefore, V=μVTln[IfI0]
which is the basic equation for log and anti-log amplifiers
The voltage across the diode V is,
V=VB−Vout
and since VB=0 because of virtual ground
V=−Vout
And we can write ,
−Vout=μVTln[IfI0]
using eqn(1),
Vout=−μVTln[VinI0R]
Let Vref=I0R which is just a constant voltage then we get,
Vout=−μVTln[VinVref]−−−−−−−−−−−−−−>(2)
From the above log amplifier equation we can see that the output voltage Vout is function of logarithm of the input voltage Vin. The above equation gives natural logarithm with base e. To obtain logarithm to the base 10 using the following relation,
log10X=0.4343ln(X)
Consider the following log amplifier designed with LM358 operational amplifier and 1N4148 switching diode.
If the input signal is a sine wave of amplitude 100mV and frequency of 1KHz, then the waveform of the input signal and the output signal from the log amplifier is shown below.
In the above waveform graph, the green colored signal is the input sine wave signal and the red signal is the output from the logarithm amplifier.