Replace a Trim Pot with a Digital Potentiometer: Limits, Calibration and Startup Behaviour
Replacing a small trim pot with a digitally controlled part can make calibration repeatable and allow software adjustment. The change is more involved than matching the resistance printed on the original component.
A mechanical potentiometer can sit in many circuits without a separate supply. A digital potentiometer contains semiconductor switches and has limits on terminal voltage, current and power sequencing. Start by understanding the original adjustment before selecting the replacement.
Identify the original circuit's job
Determine whether the trim pot is a three-terminal voltage divider or a two-terminal variable resistor. Record the voltage at each terminal, the current through the adjustable path and the required adjustment range. Include startup, shutdown and fault conditions, not just the normal setting.
Analog Devices' digital potentiometer selection guide distinguishes divider and rheostat operation. The distinction affects how resistance tolerance, wiper resistance and loading influence the result.
For a first project, choose a low-voltage signal adjustment whose full range is benign. Avoid starting with an unknown power supply's feedback network: an incorrect setting or interrupted connection could produce an unwanted output voltage.
Choose a device with the right architecture
PMD Way lists the AD5204BRUZ10 digital potentiometer, a nominal 10 kohm, four-channel part in the listed TSSOP-24 package. Verify the supplied marking and package drawing before selecting a PCB footprint or adaptor.
The official AD5204 product page describes 256 positions, independently programmable channels, an SPI-compatible interface and a power-on midscale preset. Its settings are volatile: software must establish the intended operating configuration after power-up.
Four channels can be useful for independent adjustments, but they do not make four isolated mechanical potentiometers. Check the shared supply arrangement and each channel's permitted terminal conditions.
Keep analogue terminals within their limits
The AD5204/AD5206 datasheet specifies a 2.7–5.5 V single-supply range and constrains the analogue terminals between VSS and VDD. Check the full current, dissipation and power-sequencing requirements as well.
For a circuit operated from a single positive supply with VSS at ground, an audio waveform swinging below ground requires appropriate biasing or a different compatible supply arrangement. A small signal amplitude does not make a negative terminal voltage acceptable.
Likewise, a 12 V adjustment node cannot be connected directly to a part whose analogue terminals are limited by a much lower supply. The digital control interface and the analogue terminal limits are separate compatibility checks.
Estimate the adjustment steps
For an ideal 256-position divider with A at 3.3 V and B at ground, a nominal step is 3.3/256, or about 12.89 mV. Code 128 gives an ideal midpoint of 1.65 V. Code 255 gives approximately 3.287 V, rather than a mathematically perfect 3.300 V endpoint.
These calculations describe an ideal unloaded divider. Actual endpoint error, wiper resistance and load current change the result. If the application requires finer adjustment than one step provides, adding decimal places to the software setting will not help. Reconsider the analogue range, device resolution or circuit architecture.
Measure the controlled quantity, not just the wiper voltage. In an amplifier, for example, equally spaced resistance codes need not produce equally spaced gain. A useful calibration table maps code to the final behaviour of the circuit.
Account for loading and wiper resistance
A load connected to the wiper becomes part of the divider. If the receiving circuit draws appreciable current, its input resistance can alter the expected relationship between code and voltage. A suitable buffer may help, but the buffer's own input, output and stability requirements must be considered.
In rheostat operation, the wiper contributes resistance even at the lowest code. End-to-end resistance tolerance also matters directly. Analog Devices' digital potentiometer FAQ discusses these distinctions and common selection questions.
As an illustrative ideal calculation, 10 kohms divided into 256 steps gives about 39.06 ohms per step before wiper resistance and tolerance. A design expecting a precise zero-ohm connection at code zero is therefore asking the wrong kind of component to behave like a switch.
Check current at every permitted setting. A low-resistance code can create the largest current even when the middle setting appears harmless. Add appropriate fixed resistance or other limits when the application requires the adjustable range to remain bounded.
Plan startup as part of the circuit
A volatile part's startup position may be unsuitable for the final application even if it is convenient for bench testing. Decide what the downstream circuit should do before the controller has booted and sent its first command.
Possible design measures include holding a downstream function disabled, limiting the analogue adjustment range with fixed components or choosing a device with a more suitable storage and startup scheme. The right choice depends on the consequences of an incorrect temporary setting.
Test a controller reset separately from a complete power cycle. The digital potentiometer may remain powered while firmware restarts, so the two events need not produce the same initial state. Document both cases.
Calibrate one channel before scaling up
- Inspect supply, terminal voltages and serial wiring before enabling the analogue circuit.
- Send a small set of known codes and verify the selected channel changes.
- Measure the resulting voltage, resistance-related behaviour or gain at each point.
- Repeat with the real load connected.
- Check the lowest and highest allowed application settings.
- Repeat after reset, power cycling and the expected warm-up interval.
Store calibration data with the hardware revision and measurement conditions. Use a known-good reference instrument and allow the circuit to settle before recording each point. Changing several channels at once during early tests makes it harder to identify an addressing or wiring mistake.
Check frequency behaviour if the signal varies quickly
A digital potentiometer is not an ideal resistor at every frequency. Parasitic capacitance and code-dependent behaviour affect bandwidth and distortion. Analog Devices' guide to digital potentiometer AC performance explains why an adjustment that works at DC still needs validation with the intended signal.
When choosing from the digital potentiometer collection, match the complete circuit conditions. The most useful replacement gives the required adjustment resolution, stays within its terminal limits and enters a predictable state whenever power or firmware changes.