Potentiometer to change speed of DC motor

Ok this works also!! :smiley:

I used my multimeter to look which one is the positive leg, and it is one of the back pins. The front pin is the negative leg.
So the negative and positive pins were switched.

Thank you all for the help!