I have a motor with an optoencoder on it, and I want to keep it matching a certain speed using a an Arduino PI loop. I'm not sure what the units of the P, I and D are or if they are even standard but I hope they are. I have found that using a P of 2-3 makes it ramp up and converge on the process variable in a couple seconds which is ok. But since there is some stiction in the motor, there is some oscillation around the setpoint and I think I need to change the I parameter to damp that out. Is there any kind of guideline for how you should set the I parameter depending on the system or the P parameter? For example, I know there is some stiction at one point in the motor's rotation and i know that happens about 3 times per second because of the motor's speed, so knowing that can I make a swag as to what I should set the I to? Or is there a rule of thumb that says that I should be no more than X fraction of P or anything?