How to change speed of dc motor using potentiometer

dc motorfanpotentiometervoltage-regulator

I want to change the speed of a DC motor(12V,2000RPM) using a pot and operate a table fan(where I've replaced its AC motor with DC).Now the problem is I get a regulated output at o/p of 7812 but not after connecting the pot(10k)!
Need ua help guys!
Thanks!

Best Answer

LM317:

enter image description here

To use your 10K pot you can use it for R2 and change R1 to 1.2K ohms. It will not work correctly without the fan connected because the load current will be too low for the LM317 to regulate.

Adjustment range (with fan connected) should be 1.25 to around 12V, assuming at least 14V in. Check it doesn't get too hot- you might have to add a heatsink or bolt it to something- at least you have a fan to cool it.