replace potmeter on motorctrl with digital potmeter to use arduino to controll

What is the voltage across your potentiometer, excluding the wiper (center pin). Digital potentiometers normally only work up to 5V.