Current Monitoring & Control - STC1003_0

Supporting 2.7 and 3.2+
Post Reply
jnbull
Fresh meat
Posts: 1
Joined: Fri Jan 31, 2020 5:12 pm
Contact:

Current Monitoring & Control - STC1003_0

Post 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
fraser
Engineering
Posts: 138
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: Current Monitoring & Control - STC1003_0

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests