1

How does one design an op amp circuit which calculates the logarithm of the incoming voltage? I.E. if \$V_{in}\$ is the voltage at the input of the circuit and \$V_{out}\$ is the voltage at the output of the circuit, then the relationship between the two should be $$ V_{out}=\log_{10}\left(\frac{V_{in}}{V_{ref}}\right), $$ where \$V_{ref}\$ is some reference voltage such as 1 V.

1 Answers1

1

For a BJT, \$V_{BE} \approx\$ \$V_T \cdot ln(\$ \$ I_c \over I_S\$), where \$V_T = \$\$k \cdot T\over q\$, and \$I_S \$ is a transistor characteristic (saturation current).

So, it's a matter of scaling to get what you're asking for.

Recall that \$log_{10}(x)\$ = \$ ln(x)\over ln(10) \$.

enter image description here

The devil is in the details, however, and both \$I_S\$ and \$ V_T\$ are temperature dependent, so compensation is required, perhaps with a temperature-dependent resistance.

See this answer.

Spehro Pefhany
  • 376,485
  • 21
  • 320
  • 842