View Single Post
  #11   Spotlight this post!  
Unread 12-01-2017, 21:07
MetaEngineer's Avatar
MetaEngineer MetaEngineer is offline
Director of magic smoke
AKA: Barden
FRC #0246
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2010
Location: Boston, MA
Posts: 27
MetaEngineer is an unknown quantity at this point
Re: The do's and do not's when shifting

Quote:
So would placing an encoder on the output shaft of the gear box and limit the motor power based on that be enough to prevent overdraw
This is a crude but potentially effective way of estimating motor load, using the commanded motor power, the motor speed, and the current gear ratio.


Quote:
or would we have to monitor the rpm and current draw of each individual cim using a CIMcoder and a current sensor on each motor?
All CIMs on the gearbox will turn the same speed, so you can use a single encoder as part of the gearbox to get both wheel speed and motor speed (taking into account what gear is selected). Talon SRX motor controllers have built in current sensors for individual motors, which can be accessed through CANbus.

This can allow code that can automatically shift gears based on both speed and motor load. Related code can back off the drive motor power and even shut down other motors such as the air compressor to stave off a brownout (with its subsequent total cutoff of motor power).

Auto shifting needs hysteresis and possibly a time delay to prevent rapid cycling when right at the threshold of low gear and high gear. Keep very close tabs on wear and tear, as the gears will get torn up much faster when driven hard with automatic shifting.
Reply With Quote