This page provides an overview of how to tune a PID for a shooter.
Below are a few graphs showcasing different situations that you might encounter.
The process we use for flywheels is as follows:
Kf until the motor starts moving on its own, then back it off just below the threshold point. This parameter compensates static friction and stiction. For a relatively frictionless flywheel, this is 0.Kp until the system correctly follows the target in desired time. Oscillations are acceptable.Kd (small values) until oscillations are compensated for and the system is not too damped.Ki until the error dissapears in a time equivalent with twice the settling time with only Kp and Kd. Keeping this value low can help avoid systematic instability.The result of this procedure is often an overcompensated PID. If the system does not tolerate aggressiveness well, back off all values by about 15-30%.
Systems with higher inertia (mass) can tolerate too high Kd values. Low-inertia and overlapped control values can cause unwanted vibrations at high frequencies.
The tests are done using a 4200 RPM motor attached to a AndyMark 4inch 30A compliant wheel.





