Hello Russ

The ADC Pi contains a voltage divider on each input consisting of a 10K and 6.8K resistor so the simplest way to measure the position on your linear actuator would be to connect one end of the sensor to the ADC Pi input and connect a stable voltage reference to other end of the sensor. This will in effect change the resistance of the 10K side of the voltage divider between 10K and 27K so you can then measure the voltage on the ADC Pi to get your position.

The schematic below shows how it would work with the ADC Pi voltage divider in the green box and your sensor is the potentiometer at the top.

You will need to use a stable voltage reference connected to your sensor as any variations in the input voltage will change the output voltage and in turn your position calculations.

With a 5V reference the voltage would range between 1.00592V at one end and 2.023V at the other end. The ADC Pi libraries we wrote to work with the board compensate for the voltage divider by multiplying the input voltage by 2.471 so when using the ADC Pi library the voltage should be displayed as 2.485V to 5V.

Our ADC Differential Pi python library also works with the ADC Pi but does not multiply the value by 2.471 so it may be worth using that library for your calculations as it will display the voltage as 1.00592V to 2.023V

If you want to use a different value for the voltage reference we have a voltage divider calculator which will help you with the calculations.