SPI and I²C digital potentiometers

MCP41010 and MCP42010 on SPI, AD5241 and DS1803 on I²C, set by your sketch or firmware.

Find them under Modules › Digital potentiometers. Wire them to a board’s SPI or I²C pins and send the datasheet’s commands; the wiper moves in the analogue circuit.

  • MCP41010, MCP42010: a command byte (0x11 writes pot 0, 0x12 pot 1, 0x13 both; 0x21 shuts down) then the code, with CS low. RS low resets to mid-scale; SHDN low opens end A.
  • AD5241: address 0x2C to 0x2F; an instruction byte (bit 6 resets to mid-scale, bit 5 shuts down) then the code.
  • DS1803: address 0x28 to 0x2F; 0xA9 writes pot 0 (a second byte goes to pot 1), 0xAA pot 1, 0xAF both.

R_WB = R_AB × D / 256 + R_W, with each datasheet’s wiper resistance. Set the end-to-end resistance in the inspector. The X9C up/down potentiometers are under Passive.

Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.