2022-08-14 04:23 AM
The following document explains the DSP library for STM32F10x which contains the functions for the PID controller, is it compatible with STM32G474RE? If not, would you please guide me about its implementation on a microcontroller?
https://community.st.com/s/question/0D50X00009XkhcESAR/pid-controller-stm32f10x-dsp-library-um0585
Solved! Go to Solution.
2022-08-14 11:31 AM
A good introduction with clear and well-commented code:
http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/
It is not always necessary to use float or double. It often happened to me to use integers or "fixed point"
2022-08-14 10:35 AM
The G4 has the same CM4F floating point unit, the CMSIS directories for the DSP code/example should be in CubeG4 repositiory.
Not sure there's PID examples, but it's not exactly rocket science.
I'm not even sure the integer example is particularly helpful.
Arduino has some PID libraries, if you need examples, and perhaps range checking, but I think at this point reading a College Level theory book might be more helpful.
2022-08-14 11:31 AM
A good introduction with clear and well-commented code:
http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/
It is not always necessary to use float or double. It often happened to me to use integers or "fixed point"
2022-08-15 03:21 AM
Thank you for your response. If you don't mind me asking where can I find CubeG4 repository or CMSIS directories with DSP code?
I searched within my project's folder structure and within that, I could not find it.
2022-08-15 03:30 AM
Thanks for sharing the link, the code is well-documented and explains each step. I appreciate it.