By connecting a limit switch to the digital input port of this board, you can set the initial position in a system that requires initial positioning. The procedure for setting is as follows.
Driving the motor
Drive the stepper motor to the direction of initial position when the system is started.
Stopping the motor
Stop the stepper motor once the limit switch is closed. You can stop the motor automatically or manually.
Setting the Initial Position
When the motor stops, check the current position of the counter referring to Getting States and use it as the initial position.