Digital Potentiometers & the Resistor Ladder: Replace Analog Potentiometers with Digital

게시자

Digital potentiometers, like their mechanical counterparts, are resistors whose values can be changed via an external input. The difference is that analog potentiometers are controlled by the rotational position of a control shaft, and the resistance of a digital potentiometer is determined by a digital input presented to the device. Unlike their mechanical, or analog counterparts, digital potentiometers are not continuously variable, but change value only by steps. They are also very limited in the amount of current they can handle, so they are most often used in the feedback loops of operational amplifiers to control the op amp’s gain, and in other similar low-current environments.

The Resistor Ladder

The key element in a digital potentiometer is the resistor ladder, which is a series of resistors, of equal value, connected in series.

 

Figure 1: Digital potentiometer block diagram. (Source: Analog Devices)

In the aforementioned example, the resistor ladder is composed of seven resistors. If each resistor were 1,000 ohms, the total resistance, Terminal B to Terminal A, would be 7,000 ohms. The adjustable element of the unit is the wiper.

At each of the six junctions between the seven resistors there is a switch, which connects to the wiper. There are also two more switches to connect the wiper, if chosen, to terminals A or B. It is important to keep in mind that only one of the wiper switches can engage at any one time. Thus, the wiper’s resistance, with respect to Terminal B and Terminal A would be, in this example, adjustable in steps of 1,000 ohms, from 0 to 7,000. Note the “3-To-8 decoder.” An N-bit digital word can be decoded into 2^N choices, and 2^3 is 8. Each of those eight possible numbers uniquely defines which of the eight switches is to be engaged at any one time.

It can readily be seen that by using the two terminals and the wiper to implement a voltage divider, the digital potentiometer can be used as a volume control. By using just the wiper and either terminal A or B, a simple variable resistor is available.

How Does a Digital Potentiometer Work?

Upon powering up, some digital potentiometers will simply assign the wiper’s position to the middle of the ladder, or to some other point defined in the datasheet. More often, the device will include enough EEPROM to remember the unit’s last position at the time of the previous power-down. The actual switches that connect the resistors to the wiper are generally implemented in CMOS within the device, as illustrated in the diagram.

Of course, different digital potentiometers can be controlled in a variety of ways. The well-known Serial Peripheral Interface (SPI) bus is a popular choice, as is the simple I2C serial bus. The latter requires only two inputs, one for clock and one for data.

Pins of a Potentiometer

The Analog Devices AD5160BRJZ50 is an 8-pin digital potentiometer that fits into a tiny 2.9 mm x 1.6 mm package. In order to save pin count and real estate, this device doesn’t include EEPROM and employs the SPI bus and not a parallel digital interface. The datasheet reveals the AD5160 family of devices. All members of this group include a resistor ladder composed of 255 separate resistors.

Figure 2: The AD5160 from Analog Devices. (Source: Analog Devices)

The chip is selected via pin 6. The clock enters via pin 4, and the data that selects the wiper position enters on pin 5. Terminals A and B are accessed on pins 7 and 8, and the wiper on pin 1.

Tiny mechanical devices can be fashioned to create electrical pulses that can be used to control a digital potentiometer. This allows them to be controlled by humans, and not only via microcontrollers. They are often fitted into devices only barely bigger than an old-fashioned mechanical potentiometer would be just by itself.

최신 뉴스

Sorry, your filter selection returned no results.

개인정보 보호정책이 업데이트되었습니다. 잠시 시간을 내어 변경사항을 검토하시기 바랍니다. 동의를 클릭하면 Arrow Electronics 개인정보 보호정책 및 이용 조건에 동의하는 것입니다.

당사의 웹사이트에서는 사용자의 경험 향상과 사이트 개선을 위해 사용자의 기기에 쿠키를 저장합니다. 당사에서 사용하는 쿠키 및 쿠키 비활성화 방법에 대해 자세히 알아보십시오. 쿠키와 추적 기술은 마케팅 목적으로 사용될 수 있습니다. '동의'를 클릭하면 기기에 쿠키를 배치하고 추적 기술을 사용하는 데 동의하는 것입니다. 쿠키 및 추적 기술을 해제하는 방법에 대한 자세한 내용과 지침을 알아보려면 아래의 '자세히 알아보기'를 클릭하십시오. 쿠키 및 추적 기술 수락은 사용자의 자발적 선택이지만, 웹사이트가 제대로 작동하지 않을 수 있으며 사용자와 관련이 적은 광고가 표시될 수 있습니다. Arrow는 사용자의 개인정보를 존중합니다. 여기에서 당사의 개인정보 보호정책을 읽을 수 있습니다.