cancel
Showing results for 
Search instead for 
Did you mean: 

PI controller

florajackson3108
Associate
Posted on August 25, 2016 at 09:05

Hi, I'm beginner in coding, I'm using STM32F407G Discovery with HAL library and I want to implement PI controller.

I tried the code mentioned in

http://stm32f4-discovery.net/2014/11/project-03-stm32f4xx-pid-controller/

 but it works only for proportional regulator for ki=0.

Maybe it's problem of setting time, I don't know how to fix it.

I need help please

2 REPLIES 2
mark239955_stm1
Associate II
Posted on August 25, 2016 at 11:31

The relevant

https://en.wikipedia.org/wiki/PID_controller

page is quite thorough.  There's some pseudocode near the bottom that will give you a starting point, and there is no shortage of references, links & tutorials.

AvaTar
Lead
Posted on August 26, 2016 at 11:42

The

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries/stsw-stm32065.html

used to contain such control algorithm implementations, amongst others. Both integer and single-precision floating point.