Yet Another Circuit with a "Logarithmic" Characteristic

Introduction

While I was looking for different circuits that generate a logarithmic characteristic (voltage, current, or resistance), I stumbled upon a web page that discussed a logarithmic potentiometer approximation using a linear potentiometer with one or two resistors connected to the wiper as shown in Figures 1 and 2. Note that this potentiometer characteristic is actually exponential -- why this nomenclature inconsistency has developed is beyond me.

Figure 1: Logarithmic Approximation Using a Single Resistor Across the Wiper.

Figure 1: Logarithmic Approximation Using a Single Resistor Across the Wiper.

Figure 2: Logarithmic Approximation Using Two Resistors Connected to the Wiper.

Figure 2: Logarithmic Approximation Using Two Resistors Connected to the Wiper.

As I continued hunting, I found an excellent article that describes creating a Verilog model for the same circuit using Qucs  (a circuit simulator that I like).

My goal here is to create a circuit that produces an output voltage that is related approximately to a exponential function with the wiper position as the argument (wiper position is expressed as a percentage of its full scale movement). My plan here is to use Mathcad to pick values for the resistors in both circuits that minimizes the maximum error of the logarithmic approximation.

One-Resistor Version

Figure 3 shows the results of my analysis of Figure 1. There is nothing special here as far as analysis goes. The results do indicate that the one-resistor circuit of Figure 1 produces a relatively poor result.

Figure 3: Setup and Calculation of Optimum Single Resistor Approximation.

Figure 3: Setup and Calculation of Optimum Single Resistor Approximation.

Two-Resistor Version

Figure 4 shows the results of my analysis of Figure 2. The results indicate that the two-resistor circuit of Figure 2 produces a relatively good result for wiper positions of 20% to 80%. I could see me using this approximation for some applications.

Figure 4: Setup and Calculation of Optimum Single Resistor Approximation.

Figure 4: Setup and Calculation of Optimum Single Resistor Approximation.

Conclusion

I included this post for completeness. I wanted to store away all the exponential circuit approximations that I found into a searchable database. See the Appendix for empirical results.

Appendix

Figure 5 shows the circuit as I have it in LT Spice.

Figure 5: Circuit as Tested in Spice.

Figure 5: Circuit as Tested in Spice.


Figure 6 shows the empirical test data. Not too bad.
Figure 6: Empirical Test Data.

Figure 6: Empirical Test Data.

This entry was posted in Electronics and tagged . Bookmark the permalink.

One Response to Yet Another Circuit with a "Logarithmic" Characteristic

  1. Pingback: Some Empirical Potentiometer Results | Math Encounters Blog

Comments are closed.