Rewersing directionof stepper motor with limit switch

Hi Dewy,

This time it is working :slight_smile: thanks, thanks ,thanks :slight_smile:

If you do have more time for me,

  1. I do not think that when limit switch is activated motor changes direction straight away.
  2. and I would greatly appreciated if you can advise me how to set minimum speed in random behavior.

I have checked limit switches with simple sketch to activate 2 LEDs, and I am sure that part is ok.

Thanks in advance