Endstops for 2 x axis motors on Duet 2
-
Hello,
I am building a custom 3D printer, gantry style, using a duet 2 wifi and 2 X - axis motors, 1 y axis motor and 1 z axis motor.
I am wondering how to wire and setup the config. to have 2 endstops on the x axis? One on the back left and one on the back right of the machine, thus keeping the machine square when homing.
Would I need to have individual drives for each motor and endstop? Or could I connect both to a single driver and have two endstops.
Would I need a duex5 expansion board or duet 3 board to get the independent drives?Any help is appreciated.
Thank you
-
@djthuma you would need a driver per motor.
If you only have 1 tool then you have enough on a duet 2.
For the X axis it would be something likeM584 X0:4
assuming you're using the E1 driver for the second motor
for the endstopM572 X1 S1 "xstop+e1stop"
-
That solution also assumes the endstops are moveable so that they can be positioned to eliminated any skew. If you can't move them, then you would need to split the X axis into two independent axis, home them, and them apply a movement offset to cure any skew, and then recombine to X.
Both methods are shown here: https://docs.duet3d.com/en/User_manual/Connecting_hardware/Z_probe_auto_levelling
It focuses on the Z axis, but the concept is the same for other axis.