garg29
Advanced Member level 1
hi friends,
A old problem, still trying to understand, I'm trying to design a AutoTune PID Temperature controller using PIC16f877A uC & SSR type output.
I have read theories regarding AutoTune PID on many sites but still can’t get clear.
Ziegler and Nichols method says :-
a. Reduce the integrator and derivative gains to 0.
b. Increase Kp from 0 to some critical value Kp=Kcr at which sustained oscillations occur. If it does not occur then another method has to be applied.
c. Note the value Kcr and the corresponding period of sustained oscillation, Pcr
Kp=0.6Kcr; Ti=Pcr/2; Td=Pcr/8;
Now, my doubts are as follows:
1. It says Increase Kp (i.e. Proportional gain) from 0 to some critical
But, Proportional Band = 100/ Proportional gain
& I think Proportional Band ranges from 0-100%
so will I increase Proportional Band value(in steps of 1% ?????) from 0 to a critical value at which sustained oscillations occur?
Then get back the Kp value from Proportional Band = 100/ Kp
2. I’m familiar with C coding but, How can I make a C routine which would conclude whether the oscillations are sustained or not
3. For this proportional controlling part will I require a Cycle Time; If so how to decide what value has to be set for it.
4. How can I make a C routine which would calculate corresponding period of sustained oscillation
5. After I get Kp, Ti & Td how do I use them
I’m not even able to understand how to start designing. I’m trying to understand Autotune PID Temperature since past 3 months but don’t know If I would ever be able to design a Autotune PID Temperature controller.
Please do reply.
With Best Regards,
Garg
A old problem, still trying to understand, I'm trying to design a AutoTune PID Temperature controller using PIC16f877A uC & SSR type output.
I have read theories regarding AutoTune PID on many sites but still can’t get clear.
Ziegler and Nichols method says :-
a. Reduce the integrator and derivative gains to 0.
b. Increase Kp from 0 to some critical value Kp=Kcr at which sustained oscillations occur. If it does not occur then another method has to be applied.
c. Note the value Kcr and the corresponding period of sustained oscillation, Pcr
Kp=0.6Kcr; Ti=Pcr/2; Td=Pcr/8;
Now, my doubts are as follows:
1. It says Increase Kp (i.e. Proportional gain) from 0 to some critical
But, Proportional Band = 100/ Proportional gain
& I think Proportional Band ranges from 0-100%
so will I increase Proportional Band value(in steps of 1% ?????) from 0 to a critical value at which sustained oscillations occur?
Then get back the Kp value from Proportional Band = 100/ Kp
2. I’m familiar with C coding but, How can I make a C routine which would conclude whether the oscillations are sustained or not
3. For this proportional controlling part will I require a Cycle Time; If so how to decide what value has to be set for it.
4. How can I make a C routine which would calculate corresponding period of sustained oscillation
5. After I get Kp, Ti & Td how do I use them
I’m not even able to understand how to start designing. I’m trying to understand Autotune PID Temperature since past 3 months but don’t know If I would ever be able to design a Autotune PID Temperature controller.
Please do reply.
With Best Regards,
Garg