Skip to main content
WARNING! From February 2022, these pages are no longer maintained.
Please see the current Duet3D documentation at https://docs.duet3d.com/
Help

Revision to Using servos and controlling unused IO pins

David Crocker

* Ensure that the Duet can supply the stall current.
-* Either be very careful not to command the servo beyond its working range, or else command the servo to move, hold it for a short time, then use M280 P# S0 to stop commanding the servo.
+* Either be very careful not to command the servo beyond its working range, or else command the servo to move, hold it for a short time, then use M280 P# S0 to stop commanding the servo (replace # by the pin number or GpOut number as usual).
=== Regenerative braking ===
=== Recommendations ===
-In all cases, problems can be avoided by, either:
-
-* connecting a Schottky diode between Duet +5V output and the servo +5V power input, and a 220uF capacitor between servo +5V and servo ground; or
-* powering the servo from a separate +5 supply.
+* 5V rail voltage rise due to regenerative braking can be solved by connecting a Schottky diode between Duet +5V output and the servo +5V power input, and a 220uF capacitor between servo +5V and servo ground
+* Both issues can be avoided by powering the servo from a separate +5 supply.
==== Duet board 5V current limit ====

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes