Skip to main content
florajackson3108
Visitor II
August 25, 2016
Question

PI controller

  • August 25, 2016
  • 2 replies
  • 2666 views
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

    This topic has been closed for replies.

    2 replies

    mark239955_stm1
    Visitor II
    August 25, 2016
    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
    Senior III
    August 26, 2016
    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.