Page 1 of 1

Current Monitoring & Control - STC1003_0

Posted: Fri Jan 31, 2020 5:22 pm
by jnbull
Hi there,

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.
Thanks,
Jadon

Re: Current Monitoring & Control - STC1003_0

Posted: Mon Feb 03, 2020 9:49 am
by fraser
Reaching the current limit does not guarantee the motor will stall, so knowing the limit has been reached won't really tell you much. Since the controller has no way of knowing when your motor stalls (whether it's due to the current limit or other means), the best way of dealing with this is to use an encoder on the stepper motor shaft in order to introduce feedback from the shaft so you can detect when a stall happens.