Overview
Digital potentiometers are widely used to replace mechanical potentiometers, especially in volume control, due to their high reliability, small size, and ease of use. Considering that the human ear perceives volume attenuation as nonlinear, it will treat logarithmic attenuation as linear attenuation. Therefore, logarithmic digital potentiometers are generally used in audio equipment rather than linear digital potentiometers. If only high-resolution linear digital potentiometers are provided in the system, the following method can be used to convert the linear potentiometer (Figure 1) into a logarithmic potentiometer without changing the system hardware.
Figure 1. This series of digital potentiometers uses a standard configuration with a high-end, low-end, and center tap connection point of the resistor string. The position of the center tap can be moved along the resistor string.
Using Linear Potentiometer to Realize Logarithmic Adjustment
The function of a logarithmic digital potentiometer can be achieved by using a linear tap digital potentiometer with a simple and easy-to-understand mathematical relationship. Since the digital potentiometer is essentially a voltage divider circuit, its output voltage has a certain corresponding relationship with the input voltage VIN (VIN acts on RH) acting on both ends of the potentiometer, which can be expressed by the following formula:
VOUT = VIN(RW-L / RH-L) (Formula 1)
Where RW-L is the resistance value between the center tap (W) and the low end of the resistor string (L), and RH-L is the total resistance between the two ends of the potentiometer.
The voltage attenuation is calculated in decibels as follows:
Attenuation (dB) = 20 * log(VOUT / VIN) (Equation 2)
Substituting VOUT from equation (1) into equation (2), we get the following relationship:
Attenuation (dB) = 20 * log[VIN(RW-L / RH-L)/VIN] = 20 * log(RW-L / RH-L) (Equation 3)
As shown in Figure 2, the resistance value can be expressed in terms of the potentiometer tap position (RW-L) and the total number of taps (RH-L).
Figure 2. The tap points of a linear potentiometer are located at the locations of equally divided resistor strings
The potentiometer tap position (RW-L) can be expressed as:
RW-L = (Total_Taps - x) * R (Equation 4)
Where x = 1, 2, 3...Total_Taps, and Total_Taps is the total number of taps.
Since the first tap point (minimum attenuation) contains no resistor, the total end-to-end resistance is: RH-L = (Total_Taps - 1) * R, and the attenuation can be expressed as follows:
Attenuation (dB) = 20 * log[(Total_Taps - x) / (Total_Taps - 1)] (Equation 5)
where x is Total_Taps. If x = Total_Taps, the attenuation tends to -.
in conclusion
From the above analysis, it can be seen that it is completely feasible to convert a linear potentiometer into a logarithmic potentiometer. This method is very suitable for high-resolution linear potentiometers (128 taps or higher) because the resolution of the logarithmic potentiometer is strictly limited to the range of linear tap points (less than 128). In addition, due to internal structures, such as ESD protection circuits or nonlinear on-resistance of transistors used as switches, accuracy may be affected at the endpoints. The program code given below can realize the conversion between attenuation and tap position (Figure 3) and between the required tap position and attenuation (Figure 4).
Figure 3. The program is used to convert between attenuation and tap position
Figure 4. The program is used to convert between tap position and attenuation
Previous article:Enhanced Gate Drive Capability of the DS39x Family of CCFL Controllers
Next article:Using the MAXQ3210 in an Audio Attenuator Circuit
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- How to calculate the primary inductance of the flyback power supply switch transformer
- [GD32E231 DIY Contest]——04. Build an IoT cloud server based on MQTT communication
- EEWORLD University Hall----Introduction to UCD3138 digital power controller architecture and power peripherals
- [Silicon Labs Development Kit Review] + Ambient Light Sensor VEML6035 and Hall Effect Sensor Si7210
- Playing with Zynq Serial 37——[ex56] AXI HP bus reading and writing examples based on Zynq
- [GD32L233C-START Review] 6. SPI (Hardware SPI Drive OLED)
- [15th Anniversary] Wireless Multi-channel Serial Port--Data Repository Open
- New Tang Nuc972 + STM32 open source project looking for partners to work on
- TYPE-C Application Specification Explanation
- What are the characteristics of 5G transmission and what applications will it have?