[SOLVED] Problems with motor and potentiometer

(deleted)

could you give details of the motor and it driver and post your code?

(deleted)

Connect the power buses like spycatcher2k says.

What transistor are you using? Is the base resistor really 1k? It needs to be lower, 150 ohms or so,
if the transistor is a BJT

(deleted)

(deleted)

(deleted)