I've been trying to drive a 250W (24V, 13A) motor from a pwm signal using a mosfet. So far, every time I turn on the circuit, the pwm starts with a low duty cycle, then I slowly turn it up, and then the mosfet seems to blow and the motor whizzes out of control. In the most recent attempt, it worked perfectly when the motor had little load, however when the load was applied, the same thing happened. I'm using a mosfet rated for 50A, and a flyback diode rated for a constant 3A or a 150A spike. My current hypothesis is that the diode isn't properly getting rid of the voltage spike, caused by the fact that I'm using a very low frequency pwm (around 10Hz). In my next attempt, I'm planning to using a frequency of 1kHz.
What I want to know, is whether this is a likely cause of the problem, and is there anything I should be adding to my circuit (such as a smoothing cap) to stop it happening again.