Electronics Design AU
Components

What Is a Digital Potentiometer IC, and When Should You Use One?

Last updated 8 July 2026 · 7 min read

Direct Answer

A digital potentiometer IC (often shortened to 'digipot') replaces a mechanical trimmer potentiometer with a fixed resistor ladder — typically 32 to 1024 discrete resistor segments in series — and an electronic wiper that connects to one tap along that ladder under digital control, instead of a physical wiper arm moved by a screwdriver. Firmware sets the wiper position over I2C, SPI, or a simple up/down pushbutton-style interface (depending on the part), giving a resistance or voltage-divider ratio that can be adjusted at runtime or during factory calibration without any mechanical adjustment. Common uses are programmable gain or offset trim in an amplifier feedback network, factory calibration that would otherwise need a technician turning a trimpot, and volume, brightness, or threshold-level control set by a microcontroller instead of a front-panel knob.

Detailed Explanation

Every design on this site that uses a voltage divider or a resistor in an op-amp feedback network assumes fixed resistor values chosen at design time. A digital potentiometer IC replaces one or more of those fixed resistors with a value the firmware can change after the board is built — without a mechanical trimmer, without a technician turning a screwdriver during calibration, and without a DAC and its own reference and buffering.

Resistor Ladder Architecture

Inside the package, a digital potentiometer is a series chain of matched resistor segments — commonly 32, 64, 128, 256, or 1024 segments, corresponding to 5-bit through 10-bit resolution — connected end to end between two fixed terminals (labelled A and B on most datasheets). A bank of CMOS switches, one per tap point between segments, connects exactly one tap to the wiper terminal (W) at a time. Firmware selects which switch closes by writing a digital code to the part's control register; the IC's internal decoder handles connecting the correct tap and disconnecting the previous one.

This is fundamentally the same physical structure as the resistor-ladder DACs covered in how a DAC works, but used differently: a DAC's ladder output is buffered and delivered as a low-impedance voltage, while a digital potentiometer's wiper terminal is the raw ladder tap itself, with all the wiper-resistance and loading considerations that implies (see the FAQ below).

Potentiometer Mode vs Rheostat Mode

Like its mechanical namesake, a digital potentiometer can be wired two ways:

  • Potentiometer (voltage-divider) mode uses all three terminals — A and B connected across a voltage source (often a reference voltage and ground, or two points in a circuit), with W tapping off a ratio of that voltage. This is the standard configuration for gain-setting, offset-trim, and threshold-setting applications.
  • Rheostat mode uses only two terminals — typically W and one end (A or B), with the unused end left floating — so the part behaves as a simple two-terminal variable resistor placed directly in series with a circuit node.

Both modes use the identical resistor ladder and wiper mechanism; the only difference is which pins the surrounding circuit connects to.

Digital Interfaces

Different product families expose the wiper-position control differently:

  • SPI — a simple, fast register write (e.g. Microchip's MCP41xx/MCP42xx family). Common where an MCU already has a free SPI bus and the part's position doesn't need to be read back over the bus.
  • I2C — a shared two-wire bus, useful when board space or pin count is tight and several digipots (or other I2C peripherals) share the same bus (e.g. Analog Devices AD5241/AD5242, Microchip MCP453x/455x).
  • Up/down (increment/decrement) interface — a minimal three-pin interface (chip-select, up/down direction, and a clock/increment pin) that steps the wiper one tap at a time per pulse, with no register-write protocol to implement (e.g. the Renesas/Intersil X9C103 family, Maxim DS1804). This suits designs replacing a manual trimpot with the fewest possible GPIO pins and no bus overhead, at the cost of needing multiple pulses to move the wiper a large distance.

Volatile vs Nonvolatile Wiper Memory

Whether the wiper position survives a power cycle depends entirely on the specific part — see the FAQ above for the three common patterns. This is one of the first things to check on a candidate part's datasheet, because it directly determines whether firmware needs to rewrite the wiper position on every boot.

Practical Examples

Factory calibration without a trimpot. A sensor front-end needs its gain trimmed to compensate for component tolerance on each individual board. Instead of a mechanical trimmer adjusted by a technician with a screwdriver during test, a digital potentiometer in the op-amp feedback network is set to the correct code during automated test, and — if the part has nonvolatile wiper memory — that value is stored permanently in the IC itself with no firmware involvement required afterward.

Firmware-controlled LED or backlight brightness. A digital potentiometer in rheostat mode, in series with an LED driver's current-set resistor, lets firmware adjust brightness across a fixed number of discrete steps without PWM dimming — useful when PWM's switching noise or flicker is undesirable in the specific application.

Programmable threshold or offset trim. A comparator or op-amp circuit's reference voltage is set by a digital potentiometer in voltage-divider mode instead of a fixed resistor pair, letting firmware adjust a trip point or DC offset within a product's configuration menu rather than requiring a hardware revision.

Design Considerations

  • Check the end-to-end resistance tolerance before relying on absolute values. A digital potentiometer's total end-to-end resistance is typically specified with a much wider tolerance than a discrete resistor — commonly around ±20%, versus 1% or better for a standard fixed resistor — because the manufacturing process trims the ladder for good tap-to-tap matching (linearity), not absolute end-to-end accuracy. Designs relying on an absolute resistance value should either calibrate around this tolerance or use the part in a ratiometric configuration (voltage-divider mode) where only the ratio between taps matters, not the absolute resistance.
  • Budget for wiper resistance in low-impedance or current-carrying applications. As covered in the FAQ above, the wiper's own on-resistance adds directly into rheostat-mode applications and any application where meaningful current flows through the W terminal.
  • Respect the maximum wiper current rating. Digital potentiometers are signal-level parts, not power components — maximum wiper current is typically in the low milliamps. Do not use one to directly carry LED, motor, or heater current; use it to set a control voltage or trim point in a lower-power part of the circuit instead.
  • Account for step resolution in the application. A 256-tap (8-bit) part provides 255 discrete resistance or ratio steps between zero and full scale — fine for most trim and calibration applications, but potentially too coarse for an application needing near-continuous adjustment, where a DAC (see below) may be the better fit.

When a DAC or a Mechanical Trimmer Is the Better Choice

A digital potentiometer is not the right tool for every adjustable-value problem:

  • Choose a DAC instead when the application needs a genuinely continuous, low-impedance, buffered voltage output rather than a resistance element in the signal path — a DAC paired with a voltage reference delivers an output that doesn't depend on downstream loading the way a digipot's wiper-tap voltage does, and typically offers finer resolution and better absolute accuracy.
  • Choose a mechanical trimmer when a value only needs to be set once, at manufacture or first calibration, with no further firmware control ever required — a mechanical trimmer has no digital interface to implement, no power-up default behaviour to account for, and no wiper-resistance budget to design around, at the cost of needing physical access and a manual adjustment step in production.

Zeus Design's electronics design team selects and integrates precision analog trim and calibration circuitry — including digital potentiometers, DACs, and voltage references — as part of complete product development.

Common Mistakes

  • Assuming the wiper position survives a power cycle without checking the datasheet. A volatile-wiper part that isn't rewritten at boot silently reverts to its default position — a gain-trim or calibration value that appeared correct on the bench is lost the moment the board is power-cycled in the field.
  • Using rheostat mode at a low resistance setting and ignoring wiper resistance. At small wiper-position codes, the wiper's own on-resistance can be a large fraction of — or even exceed — the intended resistance value, producing a result well off the expected setting.
  • Treating end-to-end resistance as a precision value. Designing a circuit that depends on the digital potentiometer's absolute total resistance (rather than a ratio) runs into the wide end-to-end tolerance described above; use ratiometric (voltage-divider) configurations wherever the application allows it.
  • Exceeding the maximum wiper current rating by using the part to switch real load current instead of a low-power control or trim signal — this is a common cause of unexpected part failure or drift in parts pushed beyond their signal-level design intent.

Frequently Asked Questions

Does a digital potentiometer remember its position after power is removed?
It depends on the specific part, and this is one of the most important selection criteria. Volatile-wiper parts (many SPI parts in the Microchip MCP41xx/MCP42xx family, for example) reset to a fixed default position — typically midscale or zero-scale, per the datasheet — every time power is applied, so firmware must rewrite the wiper position at every boot if a specific setting needs to be restored. Nonvolatile-wiper parts (such as the Microchip MCP453x/455x I2C family or Analog Devices AD5253/AD5254) store the wiper position in onboard EEPROM-class memory, either automatically or via an explicit store command, and restore it at power-up without firmware intervention. A third pattern, used by up/down interface parts like the Renesas/Intersil X9C103 and Maxim DS1804, keeps the wiper position in a volatile counter during operation but can save it to nonvolatile memory on a controlled power-down sequence. Always check the specific datasheet's power-up default and nonvolatile-store behaviour before assuming either behaviour.
What is the difference between potentiometer mode and rheostat mode?
A digital potentiometer IC has three external terminals per channel, labelled A, B, and W (wiper) on most datasheets, mirroring a mechanical potentiometer's two ends and wiper arm. In potentiometer mode, all three terminals are used: A and B connect across the full resistor ladder (or across a reference voltage and ground), and W taps off a ratio of that voltage — this is the voltage-divider configuration used for gain-setting and level-setting applications. In rheostat mode, only two terminals are used (commonly W and B, with A left unconnected), so the part behaves as a simple two-terminal variable resistor placed in series with a circuit — this is the configuration used when only a variable resistance value is needed, such as in an RC oscillator's timing network or a current-setting resistor. Both modes use the same physical resistor ladder; the difference is purely which terminals the circuit connects to.
Why does wiper resistance matter, and when is it a problem?
The electronic wiper is not an ideal, zero-resistance mechanical contact — it is a CMOS switch network with a typical on-resistance in the tens to low hundreds of ohms (commonly around 50–200 Ω, though this varies by part and supply voltage; check the specific datasheet), and this resistance adds in series with whatever the wiper terminal connects to. This is usually negligible in a high-impedance voltage-divider application (feeding an op-amp or ADC input with megohm-class input impedance) but becomes a real source of error in rheostat-mode applications with a low total resistance setting, or in any application carrying meaningful current through the wiper terminal, where the wiper resistance is a significant fraction of the intended resistance value and also varies with supply voltage and temperature. It is also why digital potentiometers are rated for a maximum wiper current — typically in the low milliamps — well below what a mechanical potentiometer's wiper contact can handle.

References

Related Questions

Related Forum Discussions