Thread: Stall detection
View Single Post
  #1   Spotlight this post!  
Unread 05-03-2013, 18:51
jvriezen jvriezen is offline
Registered User
FRC #3184 (Burnsville Blaze)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Burnsville, MN
Posts: 636
jvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond repute
Stall detection

We've been having some issues with discs getting jammed in our shooter and the motors stalling.. So far, its only been in scenarios where someone is standing next to the shooter so we e-stop or whatever to avoid damage.

Does anyone have some code they can point me to that will detect a stall condition in software and shutdown the motor? Right now we don't have encoders installed (hope to soon) so I'm thinking of something that relates requested voltage detects amp draw and shutdown if amp draw stays too high for the given voltage for too long. Using CAN & Labview.

What would the code look like if we have encoders ? (Although I'd like to have both 'safety nets' in case the encoder fails and we have to go back to running without)

Thanks !
__________________
John Vriezen
FRC, Mentor, Inspector #3184 2016- #4859 2015, #2530 2010-2014 FTC Mentor, Inspector #7152 2013-14