cancel
Showing results for 
Search instead for 
Did you mean: 

PID controller STM32F10x DSP library UM0585

B.Michele
Associate III
Posted on April 11, 2014 at 13:58

PID controller STM32F10x DSP library

Hy, do you know where i can find the DSP library of the  STM32F10x  MCU

explain in the UM0585  User manual ?? 

PID controller:

DoPID 

PID controller in C, error computed outside the routine

DoFullPID 

PID controller in C, error computed inside the routine

PID_stm32

PID controller in ASM, error computed outside the routine

Where can i find this functions??  in the  STM  site ??

Thank'you very much at all

Michele

4 REPLIES 4
Posted on April 11, 2014 at 15:59

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Attachments/30831/um05zip

This is v2, I have v1 also

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
B.Michele
Associate III
Posted on April 11, 2014 at 17:38

Thank'you!! very much.

But if you or other have experience, is possible that this simplex function:

uint16_t DoFullPID(uint16_t In, uint16_t Ref, uint16_t *Coeff)

{

  uint16_t Kp, Ki, Kd, Output, Error;

  Error = Ref - In;

  Kp = Coeff[0];

  Ki = Coeff[1];

  Kd = Coeff[2];

  IntTerm_C += Ki*Error;

  Output = Kp * Error;

  Output += IntTerm_C;

  Output += Kd * (Error - PrevError_C);

  PrevError_C = Error;

  return (Output);

} calculate the digital PID ???

thank's

zzdz2
Associate II
Posted on April 12, 2014 at 16:45

I don't have that much experience with this but it looks like full fledged PID controller iteration to me.

B.Michele
Associate III
Posted on April 14, 2014 at 11:58

Thank'you. Hey seem me very simple, the two functions of the ST  STM32F10x_DSP_Lib_V2.0.0

 Now I try the operation

Thank'you