3 ms·
> It's easy to get this working the naive way with an hysteresis of say +/- 2 degrees Yeah that's a bang bang controller. Those actually work really well as l
by Gibbon1 9y ago
> It's easy to get this working the naive way with an hysteresis of say +/- 2 degrees
Yeah that's a bang bang controller. Those actually work really well as long as you don't mind the temp swing.
It mostly sounds like your temperature control is via the fan and the heating element.
The heating element is the simplest to control with a PID loop. Just use a PWM output to control the heater power. Use a solid state relay to switch the power to the heater.
Once you have that you need someway to record and plot the setpoint and temperature.
Once you have that simplest way to get started is just play around with straight proportional control. Then add integral control with some sort of anti-windup. You don't actually need much theory to implement and tune a PI controller.
Three bits. For your case you likely only have to run the control algorithm at 10Hz. Second when tuning don't adjust your tuning constants linearly, instead double or halve them. On a Raspberry Pi use double precision floating point.