ESP32 · Sensors · Power Control

Hardware

Overview of the physical components used in the system: display, sensors, control electronics, and the ESP32. This page also lists the wiring and pin mappings used in our prototype.

Display

We use a 128×64 OLED (SSD1306) connected via I²C to present real-time temperature and pressure, along with the on-device menu controlled by a rotary encoder.

Sensors

Pressure Sensor

  • Analog transducer with 0.5–4.5 V output
  • Read via ADC with averaging filter
  • Converted to MPa/psi for control & display

MAX6675 Thermocouple (K-Type)

  • Replaces the original bimetallic strip control
  • Accurate boiler temperature sensing
  • With PID, we target ≈ ±2 °C around setpoint

Control Electronics

PID Controller

Computes control output in 0–100 % based on error to setpoint.

MCPWM (PWM Generator)

Maps PID output to a duty cycle (0–100 %) to regulate the heater.

SSR-40DA Solid-State Relay

Switches the heater according to PWM, providing isolated on/off control for AC load.

Dimmer / PSM for Pump

Phase-Skip Modulation with zero-cross detection adjusts effective AC power to the pump, enabling indirect pressure control.

Microcontroller

ESP32 runs the dual-loop control, sensor sampling/filtering, OLED UI, rotary encoder input, PWM generation (MCPWM), and the PSM dimmer interface.

Mechanical / 3D-Printed Enclosure

Two-box design: Interface box (OLED + rotary encoder) and Components box (ESP32, SSR/triac, sensors). Inspired by Gaggiuino; printed in PETG with M3 heat-set inserts.

3D-printed interface and components enclosure with OLED opening and ESP32 mount
Current 3D-printed enclosure prototype (single photo).
Final 3D printed parts
Final product (single photo).

Print & Assembly Notes

Wiring & Pin Map (Prototype)