View Single Post
  #34   Spotlight this post!  
Unread 20-03-2012, 13:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,058
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Flywheels and Shooter Wheels

Quote:
Originally Posted by Ether View Post
This could very well be the ideal way to control a shooter wheel's speed.
  • Fastest possible spin-up and recovery time
  • No tuning necessary
  • Stable over a wide range of loads
  • Extremely simple to code in any language
Think about how this works. Whenever the measured speed is below the setpoint, full voltage is applied to the motor, providing the fastest possible spin-up and recovery. When the motor reaches the desired speed, the power is removed (voltage set to zero). Since we are controlling speed (not position), there is no overshoot due to "momentum". There is no "momentum" to carry it past the setpoint, since the setpoint is speed, not position. Once the power is removed from the motor, the acceleration goes to to zero immediately*, so there is no further increase in speed.

The only overshoot is caused by the sample time: since this is not a continuous (analog) but rather a discrete (digital) controller, the power to the motor is updated only once each execution cycle. But if the execution cycle time is 20ms (e.g. TeleOp), then the maximum overshoot in rpm would be 0.020*wheel_acceleration_in_rpm_per_second. At motor speeds typical for a shooter and with sufficient moment of inertia in the wheel, the wheel acceleration is low enough that when multiplied by 0.02 creates a very small maximum overshoot.

Once the wheel is at the setpoint speed and the power has been removed, the wheel will of course begin to decelerate (due to friction, windage, etc). But the moment it goes below the setpoint, maximum voltage is again applied* and the cycle repeats.


*subject to any voltage ramping that may be in use

Last edited by Ether : 20-03-2012 at 13:59.