I intend to drive a DC motor through an H-Bridge with PWM Control. Therefore I'm using only NMOS powerfets to drive the bridge. However I'm facing an issue with the current at the MOS gates. As you can see from the image below, the gate currents suffer periodic spikes.
Additionally, the lower the potentiometer value - the one that regulates the PWM Duty Cycle -, the more ripple I obtain in the current going through my DC Motor model. For instance, the image below shows the current going through the motor when the potentiometer is set to 10%.
How can I verify if the gate current spikes and/or rippled current driving the DC motor are harmful to the motor or not? Since, in theory, the motor is powered by a perfectly DC current.
The IC I'm using is the IR2104S, since it has built-in dead-time to avoid shoot-through currents. The powerfets are IRF530 NMOS.
Here's a picture showing M2's drain current measured through a low-resistance high-wattage sensor resistor.