PID Controller

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

cross mob
Anonymous
Not applicable

Hi everyone,

   

I'd like to make a PID controller but I don't have any idea how to put it in program. Does anyone has any code example so I can guide myself? Actually I know the concepts off continuous process (laplace state) and I can discretize the function. But I don't know to put into codes.

   

Thanks in advance.

0 Likes
1 Solution
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

1. How to Build a Fixed-Point PI Controller That Just Works_ Part I and Part II:

   

https://www.embeddedrelated.com/showarticle/121.php

   

https://www.embeddedrelated.com/showarticle/123.php

   

 

   

2. Improving the Beginner’s PID

   

http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/

   

 

   

3. Motor Control using PWM and PID:

   

https://stratifylabs.co/embedded%20design%20tips/2013/10/15/Tips-Motor-Control-using-PWM-and-PID/

   

 

   

4. PID using CMSIS DSP library (see example e.g. here)

   

http://www.disca.upv.es/aperles/arm_cortex_m3/curset/CMSIS/Documentation/DSP/html/group___p_i_d.html

View solution in original post

0 Likes
2 Replies
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

1. How to Build a Fixed-Point PI Controller That Just Works_ Part I and Part II:

   

https://www.embeddedrelated.com/showarticle/121.php

   

https://www.embeddedrelated.com/showarticle/123.php

   

 

   

2. Improving the Beginner’s PID

   

http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/

   

 

   

3. Motor Control using PWM and PID:

   

https://stratifylabs.co/embedded%20design%20tips/2013/10/15/Tips-Motor-Control-using-PWM-and-PID/

   

 

   

4. PID using CMSIS DSP library (see example e.g. here)

   

http://www.disca.upv.es/aperles/arm_cortex_m3/curset/CMSIS/Documentation/DSP/html/group___p_i_d.html

0 Likes
Anonymous
Not applicable

Thank odissey1, I'm now reading it. 

   

Regards.

0 Likes