Quote Originally Posted by sayzer View Post
Will the motor run in one direction or you need both directions? CW/CCW

If one direction, then I would use IRFZ44. PIC PWM pin directly goes to the gate with 15K to GND. Easy, reliable, affordable.

If you need both directions then I wish you luck


For the diode, what is your plan to use it? Where, why, idea etc.

-----------------------
Thank for the suggestions.
Yes, I need just one direction: CW
I think to use the diode in order to protect the MosFET from the back EMF while switching on and off the motor because the PWM (like anode to the side where the motor is connected to the GND through the FET and catode to +24Vcc)
I saw from the datasheet of the mosfet you have suggested that the IRFZ44 has an internal avalanche diode. So my one outside is useless.
But I also saw in the datasheet that there is no mention about IRFZ44 to be a "logic level" mosfet. Since I never used it before, it is really enough to drive a PIC pin directly to the Gate and put in the middle of this path a 15K resistor to the GND?

Thank you in advance.