I'm currently working on a simple driver for a DC motor, only one rotating direction with PWM control. For information, PWM frequency is 1kHz.
I have some problems with overvoltage at the terminals of MOSFET. Those overvoltages are very short and I can not attenuate them. I tried with zener diodes in parallel to power supply but they do not seem fast enough.
This voltage measurement is taken between the drain and the source of the MOSFET.
Is there a solution to smooth this voltage spikes? Or is it something acceptable? I used this circuit with a labo power supply.
Thank you in advance for helping me to improve this circuit. Regards.
Edit 1:
I did some tests in order to increase the turn-off time. This is the new diagram, I changed the value of the resistor R2 and I found that a bigger resistance decreased the overvoltage spikes! I need to continue to search but that may be a solution.