hallboyone / RaspberryLatte

A full stack suite to add smarts to a single boiler espresso machine using a Raspberry Pi Pico as the brains.
MIT License
15 stars 1 forks source link

Add thermal runaway safeguards #17

Closed hallboyone closed 1 year ago

hallboyone commented 1 year ago

There is currently nothing checking that the boiler is responding as expected to the heater inputs. This can lead to thermal runaways should the sensor come detached or fail. Functionality should be added to monitor the state of the boiler and enter an error state should a thermal runaway be sensed. This could be modeled after the thermal runaway logic in the Marlin 3D printer firmware. The basic rules are

  1. The temp must be changing at some minimum rate when the machine is settling to a temperature (i.e. responding to control inputs)
  2. The temp must not deviate too far from the setpoint after settling (i.e. sensor fails as in #16)