- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have understood the theory of P.I.D controllers but having trouble to implement the same. I am confuse on integral and derivative part. As most pid controllers take input of I and D in seconds. What is exactly minute per repeat or repeats per minute of integral and derivative section. Can anybody explain . It will be of great help.
i have implemented the basic PID but this works good for motor control. But doesn't work great for heater or other applications
this is executed in while loop();
error_value=set_value-present_value;//calculating error //420ma pid
/*******************INTEGRAL**********************/
integral=integral+error_value;
/*************************************************/
/*******************END INTEGRAL******************/
/******************DERIVATIVE*********************/
derivative=error_value-pre_error;
pre_error=error_value;
pid_output= (kp*error_value) + (ki*integral) + (kd*derivative);
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hope the following links help:
Anatomy Of A Feedback Control System
Basics of PID Control (Proportional+Integral+Derivative)
Best regards,
Sampath Selvaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As most pid controllers take input of I and D in seconds. What is exactly minute per repeat or repeats per minute of integral and derivative section.
how to calculate the i and d as . whats the formula?
ki kp kd gains are the parameter to be passed.
but some pid controllers pass kc , i and d in seconds which formula they use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will let the community answer this question.