Electronic – PWM motor control – weird voltage ringing issue

dc motoremcpwmringing

I'm having some issues with a specific 24V brushed DC motor I'm PWM controlling.
I'm seeing some rather nasty voltage spikes and ringing on every PWM on and off cycle.

Motor 1
Motor 1 zoom low to high
Motor 1 zoom high to low

All scope measurements are made with a differential probe across the motor at DO19+ and DO19-

Motor control circuit

At first I thought it was the internal diodes of the MOSFETs that couldn't handle the inductive spike, so I added another flyback diode directly across the motor – no difference.

Then I tried replacing the 0 Ohm gate resistors with 50 Ohm resistors to slow down the on/off time of the MOSFETs – no difference. (Maybe 50 Ohms was a bit on the low side?)

So I tried a different 24V brushed DC motor (no detailed data on this motor unfortunately) very similar to the first one, except this one had a lower gear ratio – so less resistance:

Motor 2

Everything looks great, so I'm slightly confused and left wondering what to do about the first motor?

Any hardware changes that I can make so the first motor will look as good as the 2nd motor?

Motor 1 data

UPDATE!

After removing the ferrite beads FB3 + FB4 it looks a lot better. I think Marko is on to something regarding the LC resonance.

After removing FB3 and FB4

Best Answer

One possibility is that you placed MOSFETs too far from IC and you have parasitic inductivity. As the problem persist when adding gate resistance, it would mean that ringing is not an artifact of gate driver circuitry, rather a load problem.

Further you say, that when changing the motor with a different one, this problem vanishes. In my opinion, you have kind of capacitor mounted in between brushes, like EMI filter. With your series inductor this makes a LC circuit with its own resonance as you see on the scope.

EDIT:

Further, it seems some weird form of oscillations, like peaking generator. Could be that you series chokes are saturated?