lats
Full Member level 4
auto tune pid?
Hi all,
i am new to pid temperature controller. i have studied many links and basics i got a link on this forum were a person has explained pid very basic .the link is
Simple PID
PID = GainP * actual error + GainI * SUM(previous errors) + GainD * (actual error - last error)
error = sp(set point) - pv(process value)
float pid (float sp, float pv)
{
err_old = err;
err = sp - pv;
// note
P_err = err;
I_err += err_old;
D_err = err - err_old;
return 0.1*P_err + 0.3*I_err + 0.02*D_err;
}
now here he has set the values "0.1 ,0.3, 0.02" as constants .
this doesnt seem to be a auto tune code. what changes will i have to make and how.
Hi all,
i am new to pid temperature controller. i have studied many links and basics i got a link on this forum were a person has explained pid very basic .the link is
Simple PID
PID = GainP * actual error + GainI * SUM(previous errors) + GainD * (actual error - last error)
error = sp(set point) - pv(process value)
float pid (float sp, float pv)
{
err_old = err;
err = sp - pv;
// note
P_err = err;
I_err += err_old;
D_err = err - err_old;
return 0.1*P_err + 0.3*I_err + 0.02*D_err;
}
now here he has set the values "0.1 ,0.3, 0.02" as constants .
this doesnt seem to be a auto tune code. what changes will i have to make and how.