Need help in development of P.I.D controller

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
prbh_3338016
Level 4
Level 4
10 likes given 5 likes given First like received

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);

0 Likes
3 Replies
SaKu_291986
Level 4
Level 4
10 replies posted 10 questions asked 5 solutions authored

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

0 Likes

I will let the community answer this question.

0 Likes