Possibly useful: A header-only proportional-integral-derivative (PID) controller. https://github.com/RhysU/helm
It's a nice theoretical implementation but few practical examples would be found using floating-point math, running as they are on systems that don't support it.
PID Control Challenges
21–30 of 123 posts
Re: PID Control Challenges
#22Earlier quoted context omitted.
It's a nice theoretical implementation but few practical examples would be found using floating-point math, running as they are on systems that don't support it.
Maybe that was true up until the 90's, but doing anything but floating point for a PID is just a waste of development time, even on an 8-bit AVR.
There are also many cases where floating point is the clear winner, but again, you should think about it and not just choose floating point reflexively because it seems easier. Its convenience makes it very easy to sweep errors under a rug, and they always come back to haunt you later.
Re: PID Control Challenges
#23Possibly useful: A header-only proportional-integral-derivative (PID) controller. https://github.com/RhysU/helm
It's a nice theoretical implementation but few practical examples would be found using floating-point math, running as they are on systems that don't support it.
Both are useful.
Re: PID Control Challenges
#24Earlier quoted context omitted.
Most PID applications are not IoT. Many use a cortex M0 which doesn't have hardware float support, or non Arm, even 8bit. When you are selling millions it pays to use the cheapest part you can get away with.
What do those things go in anymore? Surely there are asic pid controllers that are insanely cheap? Tuning an analog one I can see probably doesn't make sense anymore, but there is something nice about being able to do that with a screwdriver instead of jtag. What do these M0s go into?
Re: PID Control Challenges
#25Earlier quoted context omitted.
It's a nice theoretical implementation but few practical examples would be found using floating-point math, running as they are on systems that don't support it.
Not all PID controllers are destined for embedded. They’re quite useful in gamedev, for example.
Re: PID Control Challenges
#26My control systems prof said every engineer has done an inverted pendulum problem in school and nobody in their career has ever been asked to balance an inverted pendulum. So our final was a thermostat instead.
Thats what all those self-balancing scooters are.
Re: PID Control Challenges
#27Possibly useful: A header-only proportional-integral-derivative (PID) controller. https://github.com/RhysU/helm
It's a nice theoretical implementation but few practical examples would be found using floating-point math, running as they are on systems that don't support it.
Re: PID Control Challenges
#28My control systems prof said every engineer has done an inverted pendulum problem in school and nobody in their career has ever been asked to balance an inverted pendulum. So our final was a thermostat instead.
Re: PID Control Challenges
#29https://backreaction.blogspot.com/2022/12/how-chaos-control-...
Re: PID Control Challenges
#30My control systems prof said every engineer has done an inverted pendulum problem in school and nobody in their career has ever been asked to balance an inverted pendulum. So our final was a thermostat instead.
> nobody in their career has ever been asked to balance an inverted pendulum Thats what all those self-balancing scooters are.