by wildekek · 3y ago · 0 comments
Bang-bang controllers with deadzones/hysteresis are really the simplest form of non-linear controllers, and so can do okay at something like an HVAC system, especially when precise tracking of target isn't needed. But you can strap all sorts of non-linear things (gain scheduling, hysteresis, etc) onto the form of PID to try to get decent macro scale behavior, while still having reasonable fine tracking performance. Though obviously, it becomes much much more complicated to tune.
Most of the time people use PID, they use it as a black box which causes a lot of pain.
[1] https://www.tutorialspoint.com/control_systems/control_syste...
[2] https://ctms.engin.umich.edu/CTMS/index.php?example=MotorSpe...
But yes, adding one to a non-controlled machine that is already working well will probably harm its performance.
After many years of fixing things that aren't broken, I've come to appreciate the phrase "If it ain't broken, don't fix it!".
In what way?
Although, a lot of more basic controllers only handle binary states for input. I'd argue that a calibrated (bang-bang with thermistor/thermocouple) on an analog control would be much easier to tune and easier to implement. That way, the hysteresis could be dynamically tuned out of the system with a constant input to stabilize losses.
I did something similar to that with I experimented with a peltier heated 3d printing bed. I fried the first batch of peltiers since I wasn't aware they *HATED* binary states, and would die in a crack of the ceramic matrix. My next round was to implement "Using PWM to Generate an Analog Output" ( https://ww1.microchip.com/downloads/en/Appnotes/90003250A.pd... )
(I’ve never been convinced that a PID controller really makes sense for a heater where there may not be much natural cooling going on, but that’s a different story.)