Thread: Stall detection
View Single Post
  #2   Spotlight this post!  
Unread 05-03-2013, 19:04
efoote868 efoote868 is online now
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,420
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Stall detection

Under a stall condition, current will be relatively high after the motor has been free spinning for a while (if the motor is starting from stop, it will have a similar current as a stall, briefly). With CAN, you should be able to get the current output on the motors. Someone with more experience with CAN might be able to help you there.


If you're using an encoder, you should get a reading of # ticks / timeframe with a certain motor output. If you get near zero ticks / timeframe, the wheel isn't spinning and you could be in a stall condition.
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!