To start with, I know this circuit doesn't include an Arduino, however I hope you can help / enlighten me some...
I'm basically using this pretty standard MOSFET circuit:
(I also have a capacitor and flyback diode included, my MOSFET is an IRF540, with 10k pot and resistor)
The motor runs, however there is no change when adjusting the potentiometer??? I've tried different pots and MOSFETS, all appear to be functioning, yet I get no variance in output!
No... As you said, put the motor Drain side didn't appear to work... I looked at the following (which shows it done as said), and set up a 5v input and tried that too.
Again the motor runs but no variance, so I tried the following, which puts it back down on the Source side.
Anyway, time ran out for today.
The AddOhms video is what I used when did this using an Arduino, so I'm a bit miffed at the moment... It'll probably come down to my foolishness in the end...
IIRC, an IRF540 (if that's what you're using) will not conduct much with a 5V input so if you want to control the motor with a pot like this, you should have the high side of the pot at 12V.
We don't do power control that way (analog) (perhaps back in the 1970's we did, but not for 50 years. You would need a sizable heatsink on the MOSFET and it would get very hot.
You use PWM to switch the MOSFET, have the motor on the drain, add a free-wheel diode across the motor, and probably not need any heatsink. This is switch mode motor control, universally used these days.
I set up a quick circuit using a nano to drive the gate... It all worked fine, but then the potentiometer didn't do anything and the motor ran at full... This has now happened 3 times today... No unplugging, yes there is a heatsink, flyback diode, pull down resistors...
Have I bought a cheap bad batch of MOSFETS or why has this happened three times?