I want to move a knob to send input data to the digital pot, how do I do that?

What would be better would be to use a rotary encoder, such that you can detect its rotation direction and pulses; then use that information to increase or decrease a variable, and pass that value on to the digital potentiometer. Doing it this way would give you the ability to rotate your knob freely and without end-stops.