Stepper Motor control with 1 limit switch

You make the motor move forward or backward in your sketch. You can remember in a flag wether you made it run forward or backward.

1 Like