I'd like to be able to monitor the current output of my stepper motor to stop operating when it hits a certain value.
Currently, I can set a current limit using setCurrentLimit(), however I cannot monitor the current output and am not sure how to read when the current limit has been reached.
When I attempt to load the motor shaft to force the motor to reach the current limit, it stalls and does not continue moving according to my program. I would like to detect this and stop the motor before continuing movement.
Any help is appreciated.