Warning to users of servomotors!
-
Yikes! That sounds exciting in a bad way.
Dealing with overvoltage during deceleration can be very tricky.
One product I wrote firmware for ended up with something like a dozen Zener diodes in parallel to dump the extra voltage generated when a customer stopped moving their bed in an emergency situation and we dumped all the motor EMF back into the power supply.
-
@mrehorstdmd Ouch! Genuinely sorry to hear of your mishap (and thanks for the warning).
-
@mrehorstdmd, what power supply model? Reputable?
-
@zapta Meanwell LRS-200-24
-
-
Ouch!
My guess is that when the servo motor hit the hard stop, it first increased the current to maximum to try to overcome the resistance. When that failed, it turned the current off, at which time all the energy stored in the motor inductance was dumped into the power supply rails, causing a voltage spike that blew both the PSU and the Duet. The stepper driver chips and the fan mosfets on the Duet are rated at 30V, although if the drivers are not energised then in theory they can take 60V. The capacitors on the VIN line are rated at either 35V or 50V. Your PSU most likely had output capacitors rated at 35V.
Using a separate PSU for the servo motors is certainly a good idea. You might also consider connecting a large (e.g. 10000uF) capacitor between the power rails, to help absorb the surge if this happens again. More complex schemes are possible, e.g. turning on a mosfet to provide additional load when the power rail voltage exceeds a limit.
-
Back in the days of GeckoDrive, they documented a simple circuit to clamp the supply in situations like this:
https://www.geckodrive.com/support/returned-energy-dump.htmlI'm thinking that a sufficiently sized TVS diode would would resolve the issue, although given that the JMC iHSV servos are rated up to 50V with 36V nominal, you're probably better running them at 36V separate from the Duet anyway as suggested above.
-
@yngndrw Excellent! Thanks! I will put a couple of those together when I rewire everything.
-
Some power supply have 'over voltage protection'. Will this solve the problem?
E.g.
-
@zapta The supply I used had overvoltage protection. good for 28.8-33.6 V. Apparently the voltage spike exceeded 33.6...