Embedded & Hardware Public Repository Two public repositories
Espresso PID Controllers (Rancilio Silvia & Gaggia Classic)
ESP32-C6 PID temperature controllers for single-boiler espresso machines using PT100 RTD sensors, MAX31865 amplifiers, SSR heater control, Web UI tuning, and Home Assistant MQTT integration.
Overview
Small single-boiler espresso machines like the Rancilio Silvia and Gaggia Classic rely on mechanical thermostats with wide hysteresis, leading to inconsistent brew temperatures. These two ESP32-C6 firmware projects replace thermostat switching with closed-loop PID control over a Solid State Relay (SSR) driven by a PT100 RTD sensor and MAX31865 amplifier.
Implemented Capabilities
- Closed-Loop PID Temperature Control: Continuous boiler temperature sampling over SPI (
MAX31865) feeding a PID loop (QuickPID/ PID library) to modulate SSR heater output. - Responsive Web Dashboard & Settings: Live display of current temperature, target setpoint, heater output, and status, plus browser-based tuning for
Kp,Ki,Kd, temperature offset, reference resistor calibration, and MQTT configuration. - Home Assistant & MQTT Integration: Two-way MQTT communication with Home Assistant auto-discovery (climate, number, and sensor entities) and telemetry suitable for Grafana dashboards.
- Provisioning & Maintenance: Initial Wi-Fi setup through a
WiFiManagercaptive portal, persistent settings stored in flash, and wireless firmware updates via OTA. - Safety Interlocks: Built-in maximum temperature cutoff and sensor fault detection—if a critical sensor fault (such as an open circuit) is detected, the controller forces heater output to 0% to prevent runaway heating.
Repositories
Both repositories target the ESP32-C6 DevKitC-1 with PlatformIO:
- Rancilio Silvia PID (
rancilio-silvia-pid-esp32c6): Built withESPAsyncWebServer,QuickPID,ElegantOTA,ArduinoJson,WiFiManager, andPubSubClient, including a manual override mode protected by sensor-fault safety checks. - Gaggia Classic PID (
gaggia_pid_esp32-c6): Built withAdafruit_MAX31865, responsive web tuning, Home Assistant MQTT auto-discovery, and Grafana telemetry integration.