Hi all,
I built the circuit of the photo to control the speed of two different DC motors, but when I test the circuit I saw that regulation any of the pots changes the speed on both of the motors. Can anyone tell me why that happens?
I attach the circuit.
In the code I simply write that
AnalogWrite(10,pot1/8);
AnalogWrite(11,pot2/8);
Your circuit has diodes in a daft place - MOSFETs already have body diodes there, not that
they do anything useful in this circuit. The free-wheel diodes go across the motor terminals,
not the MOSFETs.
You should probably add 150 ohm gate resistors to protect the Arduino pins from over-current
surges.
Without seeing your whole sketch its impossible to say where the problem is.