View Single Post
  #7   Spotlight this post!  
Unread 02-09-2011, 21:15
alphadog0309's Avatar
alphadog0309 alphadog0309 is offline
Registered User
AKA: Karan Hiremath
FTC #0110 (MFS Foxes)
Team Role: Programmer
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Moorestown, New Jersey
Posts: 41
alphadog0309 will become famous soon enoughalphadog0309 will become famous soon enough
Re: [FTC]: New Fuse Protected Motor Power Cables

I have found that using the encoders to detect if the motor isnt running when it is supposed to be running is a great way to cut off power to prevent the motor from burning out.

In psuedo code:

- recieve command to run motor
- wait 30 msec (completely arbritrary... First number i picked, it didnt shut off too soon, so i ran with it. I plan to experiment and get this number as low as possible)
- if motor is not turning after this point, shut off power to motor, play error noise on nxt.

This system doesnt work too well with geared systems with a lot of gears where the motor could still be spinning it just would not be spinning the axle needed

Perhaps a shaft encoder would let us detect if both were spinning which would be good. I was contemplating making a shaft encoder but i dont have access to a cnc mill/lathe so it wouldnt be accurate enough to use with the existing encoders. We need these to be provided by LEGO or some third party sensor company....
__________________
Karan Hiremath
FTC Team 110- MFS Foxes
Facebook: MFS Foxes
YouTube: MFS Foxes
Twitter:
@Foxes_110
Co-Captain
Head Programmer
Service Coordinator
Builder
Electrical
Reply With Quote