2014-04-11 04:58 AM
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: DoPIDPID 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 Michele2014-04-11 06:59 AM
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Attachments/30831/um05zip
This is v2, I have v1 also2014-04-11 08:38 AM
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's2014-04-12 07:45 AM
I don't have that much experience with this but it looks like full fledged PID controller iteration to me.
2014-04-14 02:58 AM
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