This PID control simulator allows you to try out a PID controller interactively by adjusting the tuning parameters in realtime.
Arduino PID library and the
Process function (model): control input = function(time, input, noise, output, user):
Process function parameters:
output: control output
function return value: control input
noise: user-defined process noise
input: last control input (optional)
user: custom variable to store long-term data (optional)
time: current time (ms) (optional)
Manual tuning hints
If it overshoots a lot and oscillates, either the integral gain (I) needs to be increased or all gains (P,I,D) should be reduced
Too much overshoot? Increase D, decrease P.
Response too damped? Increase P.
Ramps up quickly to a value below target value and then slows down as it approaches target value? Try increasing the I constant.