Manual Gain Setting For Op Amp using Digital Potentiometer

Published at : 23 Dec 2025

Playing around with the X9C digital potentiometer in the feedback loop of an op amp to control the gain with an Arduino Uno.

Making use of the Serial Plotter to show the op amp input and output signals!

Sketch: https://github.com/GadgetReboot/Arduino/tree/master/Uno/X9C_OpAmp_Gain_Control

More on controlling the X9C digital potentiometer with Arduino:
https://youtu.be/KqBruMXQjmA

X9C Datasheet:
https://www.intersil.com/content/dam/Intersil/documents/x9c1/x9c102-103-104-503.pdf

Op Amp:
http://www.ti.com/lit/ds/symlink/tlc272.pdf

Patreon: https://www.patreon.com/gadgetreboot
Pinterest: https://www.pinterest.ca/GadgetReboot
Twitter: @GadgetReboot https://twitter.com/gadgetreboot