Switching between analog and digital pot

Thread Starter


Joined Jun 8, 2017
I'm trying to design an electronic nose, where I need a 50k pot.
During the start up operation, I would have to tweak the pot to keep the
sensor voltage close to say 2 V. The problem is that this is time consuming,
as there are 8 gas sensors. As an alternative, one could use a digi-pot and
control it in an Arduino code. So I have created a simple circuit to show how
I can use a jumper to select between an analog pot and a digi-pot. My main
question is how to do this in code using an Arduino Nano? I Know how to do
it with the analog pot, but my main concern is how to tell the Arduino when the
analog pot is up and when the digi-pot is up. Any help will be appreciated. Thanks.POT_figure.jpg