Try this MobaTools example, it homes the X&Y motors by
- slowly backing off CCW a set amount, then
- moves CW slowly at a slow speed until it hits the limit switch (someone pushes their buttons) and then
- it zeros and
- it runs full speed CCW.
Try this MobaTools example, it homes the X&Y motors by