Ball Shooter PID Oscillation Refinement

My team is trying to use a PID for setting the speed of our ball shooter motor in RPM. However, the motor oscillates in its speed. It will reach the target speed, then lower by about 300 rpm, then speed back up again, repeat. It will do this about three times a second. Any idea how we can prevent this? Do we have to change one of the PID values?

Yes. Start by increasing your d a little. D stops oscillations. It is a balance. Too much d will stop you from reaching your setpoint. Too much p will create the oscillations you are seeing.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.