Community project

Control Térmico Horno Pizza (copy)

Photo of Control Térmico Horno Pizza (copy)
Generated with AI

Luisana Medina

Published December 3, 2026

This project builds a comprehensive thermal monitoring and control system for wood-fired pizza ovens using an ESP32 microcontroller. It combines multiple temperature sensors (MAX31855 thermocouple amplifiers with K-type probes, DS18B20 ambient sensor) to track both oven stone and air temperatures, while also monitoring particulate matter and controlling ventilation fans. The system displays real-time data on an OLED screen and provides audio alerts when temperatures deviate from target ranges.

This guide provides a complete wiring diagram, parts list, and step-by-step assembly instructions for integrating all sensors and actuators. The included firmware handles temperature monitoring, fan control via MOSFETs, air quality sensing, and alert management. Builders will learn proper sensor placement, safe testing procedures without combustion, and how to interpret the system's warning alerts—though the guide emphasizes this is an informational monitor that does not replace certified oven safety protections.

Wiring diagram

Wiring diagram for Control Térmico Horno Pizza (copy)
Loading diagram…

Gather all the parts

QtyComponent
1

MAX31855 Thermocouple Amplifier

Cold-junction compensated K-type thermocouple-to-digital converter with SPI interface. Reads thermocouple temperatures up to +1350°C and performs on-chip cold-junction compensation. 3.3V compatible on the Adafruit breakout (includes onboard 3.3V regulator and level shifting). 14-bit thermocouple resolution (~0.25°C). Read-only SPI (SCK, CS, SO); no MOSI needed.

1

MAX31855 Thermocouple Amplifier

Cold-junction compensated K-type thermocouple-to-digital converter with SPI interface. Reads thermocouple temperatures up to +1350°C and performs on-chip cold-junction compensation. 3.3V compatible on the Adafruit breakout (includes onboard 3.3V regulator and level shifting). 14-bit thermocouple resolution (~0.25°C). Read-only SPI (SCK, CS, SO); no MOSI needed.

1

Sonda tipo K mineral aislada 3 mm, 1100 °C, unión aislada

Vaina inoxidable 310, unión no conectada a la vaina; positivo Chromel y negativo Alumel. Especificación 002 MI MINI ANSI.

1

Sonda tipo K mineral aislada 3 mm, 1100 °C, unión aislada

Vaina inoxidable 310, unión no conectada a la vaina; positivo Chromel y negativo Alumel. Especificación 002 MI MINI ANSI.

1

SSD1306 OLED

0.96-inch 128 x 64 white monochrome OLED display module driven by an SSD1306 controller over I2C (address 0x3C). It runs from 3 V to 5 V and connects through a 4-pin 2.54 mm header (GND, VCC, SCL, SDA); the self-emitting pixels need no backlight.

1

Piezo Buzzer

Small passive piezo buzzer (TDK PS1240) for beeps, tones and alerts. It has no built-in oscillator, so drive one lead with a 3-30 V square wave from a microcontroller pin using tone() or PWM and connect the other lead to ground. It is loudest around 4 kHz and works from about 2 to 10 kHz; driving both leads in antiphase roughly doubles the volume.

1

DS18B20

Digital temperature sensor using OneWire protocol

1

PMS5003 Particulate Matter Sensor

Plantower PMS5003 laser particulate matter sensor. Reports PM1.0, PM2.5, and PM10 concentrations (plus six particle-size bins) once per second over a 9600-baud UART. The fan and laser diode run on 5V while the SET/RXD/TXD/RESET control and data pins are 3.3V TTL, so only power plus the sensor TX-to-MCU RX line is needed for basic readings. Ships on an 8-pin, 1.25mm-pitch cable; Adafruit sells it with a 0.1in breadboard adapter. PMS7003 is the compact-form-factor sibling in the same family and shares the same wiring/protocol.

1

12V Barrel-Jack Adapter

12 V / 2 A wall adapter with a 5.5 mm / 2.1 mm barrel jack. Used to power motor drivers, LED strips, or boards that need a higher rail.

1

MP1584 Buck Converter

Adjustable buck (step-down) DC-DC converter, 4.5-28 V in -> 0.8-20 V out, ~3 A. Configured to 5 V to step a 9 V / 12 V supply or battery pack down to the board's 5 V rail.

1

Resistor

4.7 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

12 V two-wire brushless fan

Ventilador axial con rejilla, 12 V CC, dos hilos, hasta 0.3 A nominal y 0.5 A al arrancar. Rojo positivo, negro negativo si así lo confirma el fabricante.

1

AO3400A

30V 5.7A N-channel enhancement-mode logic-level MOSFET in SOT-23-3L. Vgs(th) typically ~0.7V (max 1.45V at Id=250 uA), fully enhanced at Vgs=2.5V-4.5V. RDS(on) ~26 mOhm at Vgs=4.5V, ~38 mOhm at Vgs=2.5V. Driven directly by 3.3V or 5V microcontroller GPIO/PWM as a low-side switch for loads up to its Id and VDS limits. No firmware library required.

1

1N4001 Flyback Diode

General-purpose silicon rectifier diode used as a flyback / freewheeling diode to suppress back-EMF voltage spikes from inductive loads (DC motors, relays). Rated 50 V reverse voltage and 1 A forward current. Connected in parallel across the motor terminals with cathode (striped band) to the motor positive (+) / 5 V supply side and anode to the motor negative (−) / transistor collector side. Requires no firmware or library — purely passive protection component. Higher-voltage 1N400x rectifier variants are compatible substitutes when the current and package fit the design.

1

Resistor

220 Ω

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

100 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

12 V two-wire brushless fan

Ventilador axial con rejilla, 12 V CC, dos hilos, hasta 0.3 A nominal y 0.5 A al arrancar. Rojo positivo, negro negativo si así lo confirma el fabricante.

1

AO3400A

30V 5.7A N-channel enhancement-mode logic-level MOSFET in SOT-23-3L. Vgs(th) typically ~0.7V (max 1.45V at Id=250 uA), fully enhanced at Vgs=2.5V-4.5V. RDS(on) ~26 mOhm at Vgs=4.5V, ~38 mOhm at Vgs=2.5V. Driven directly by 3.3V or 5V microcontroller GPIO/PWM as a low-side switch for loads up to its Id and VDS limits. No firmware library required.

1

1N4001 Flyback Diode

General-purpose silicon rectifier diode used as a flyback / freewheeling diode to suppress back-EMF voltage spikes from inductive loads (DC motors, relays). Rated 50 V reverse voltage and 1 A forward current. Connected in parallel across the motor terminals with cathode (striped band) to the motor positive (+) / 5 V supply side and anode to the motor negative (−) / transistor collector side. Requires no firmware or library — purely passive protection component. Higher-voltage 1N400x rectifier variants are compatible substitutes when the current and package fit the design.

1

Resistor

220 Ω

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

100 kΩ

Through-hole resistor (current-limiting in series with an LED)

Assemble it in 10 steps

1. Elegir las sondas correctas

Usa dos sondas tipo K de 3 mm, vaina inoxidable 310, aislamiento mineral y unión aislada de la vaina, especificadas para 1100 °C. No uses las sondas económicas con cable plástico que acompañan algunos módulos. La ficha de referencia es 002 MI MINI ANSI, https://static.rapidonline.com/pdf/555296_v1.pdf.

  • La capacidad del convertidor de leer 1350 °C no significa que cualquier sonda o cable soporte esa temperatura. Los conectores de estas sondas soportan solo 200 °C.

2. Colocar las sondas con el horno frío

Encarga al constructor del horno un alojamiento para que la punta de la sonda de piedra quede cerca de la superficie de cocción, sin sobresalir donde se coloca la pizza. Coloca la segunda en la zona superior, separada de la pared y sin contacto directo con la llama. Su lectura incluye radiación y no representa todo el horno por igual. No perfores la piedra en caliente.

  • La lectura dentro de la piedra puede diferir de su superficie; verifica y ajusta la ubicación antes de usar los objetivos para cocinar.

3. Conectar las sondas a los convertidores

Con USB desconectado, conecta positivo Chromel de cada sonda a T+ y negativo Alumel a T- de su MAX31855K. Respeta los signos del fabricante, no supongas colores universales. Usa los módulos Adafruit MAX31855 para tipo K. Si hace falta prolongar, utiliza cable y conectores de extensión tipo K adecuados, no cobre común.

  • Mantén los convertidores, conectores y electrónica fuera del horno y lejos de la chimenea, en una zona fresca y seca. No conectes sondas con unión a masa.

4. Conectar los convertidores al ESP32

Ambos VCC a 3V3 y GND a GND. Ambos SCK a GPIO18 (reloj), SO de piedra a GPIO19 y SO superior a GPIO32 (datos separados). CS de piedra a GPIO25 y CS superior a GPIO26 (selección de sonda por software; estos pines no requieren SPI dedicado). MOSI queda sin conectar. Mantén estos cables cortos; lleva las sondas hasta los módulos, no el bus digital hasta el horno.

5. Conectar pantalla y avisador

Pantalla VCC a 3V3, GND a GND, SDA a GPIO21 (datos), SCL a GPIO22 (reloj). Verifica las etiquetas porque el orden físico puede variar. Piezo pasivo SIG a GPIO27 y GND a GND. Alimenta la placa por USB; no conectes los motores directamente a la placa ni conectes tensión de red.

6. Probar antes de encender leña

A temperatura ambiente las dos lecturas deben ser parecidas. Calienta suavemente cada punta por separado y comprueba que aumenta el canal correcto. Desconecta cada sonda para comprobar ERROR y el pitido repetido. El pitido inicial confirma alimentación y avisador, no el buen estado de las sondas.

  • Monitor informativo, no sistema de seguridad ni detector de humo o monóxido de carbono. No dejes el horno sin vigilancia. Conserva la chimenea libre; controla los ventiladores manualmente con instalación adecuada.

7. Entender los avisos

Un pitido corto al entrar ambas lecturas en 425 ±10 °C y 525 ±10 °C. Pitidos repetidos por fallo de sonda o pantalla, piedra desde 450 °C o arriba desde 550 °C. Cada aviso alto se libera 5 °C por debajo. Desde 750 °C en cualquier sonda muestra MUY CALIENTE. Son umbrales informativos conservadores, no límites de seguridad certificados. Al enfriarse muestra FUERA DE OBJETIVO sin alarma sonora. La pérdida de alimentación deja el monitor sin avisos.

8. Colocar sensores en el otro ambiente

DS18B20 a 3V3 y GND; DATA a GPIO23 con 4.7 kΩ entre DATA y 3V3. Colócalo lejos del horno, del sol y de la salida de aire. Con el reductor desconectado del sensor, ajusta y mide 5.0 V antes de alimentar el PMS5003. Su TX de 3.3 V va a GPIO33; RX, SET y RESET quedan libres en el modo continuo de fábrica. Mantén cortos los cables digitales y no tapes las entradas de aire del sensor.

9. Cablear los dos ventiladores de 12 V

Con todo apagado, une el negativo del adaptador y el GND del reductor con GND del ESP32. Conecta el positivo de cada ventilador al adaptador y el negativo al drenador de su AO3400A; fuente del transistor a GND. Coloca un diodo por ventilador con la banda al positivo y el otro extremo al drenador. Conecta GPIO13 y GPIO14 a sus respectivas puertas por resistencias de 220 Ω, y cada puerta a GND mediante 100 kΩ. Sigue el diagrama para separar ambos canales. Usa ventiladores con rejilla y fija el extractor en una salida de aire al exterior, con entrada de aire de reposición y sin afectar el tiro de aparatos de combustión.

  • No conectes 12 V ni la salida del reductor al ESP32. El ESP32 usa USB; solo comparte GND con el adaptador. No conectes extractores de tensión de red.

10. Probar el control sin generar humo

Tras pulsar Deploy, abre el monitor serie. Calienta suavemente el sensor de ambiente para probar los dos umbrales; deja enfriar y verifica los apagados. Espera 30 segundos para la lectura de partículas. El extractor responde a tres lecturas consecutivas de PM2.5 de al menos 75 µg/m³ y libera esa orden a 35 µg/m³. El vapor y el polvo también pueden activarlo. Una lectura perdida desactiva solo el criterio del sensor que falló, y el monitor serie muestra SIN DATOS.

  • El PMS5003 no es una alarma de incendio ni de monóxido de carbono. No generes humo para probarlo; conserva detectores independientes certificados.

Review all connections

1. Connections between "piedra" and "ESP32"

FunctionpiedraESP32
powerVCC3V3
groundGNDGND
spiSCKGPIO 18
spiSOGPIO 19
spiCSGPIO 25

2. Connections between "superior" and "ESP32"

FunctionsuperiorESP32
powerVCC3V3
groundGNDGND
spiSCKGPIO 18
spiSOGPIO 32
spiCSGPIO 26

3. Connections between "sonda_piedra" and "ESP32"

Functionsonda_piedraESP32
analogPLUS → MAX31855 Thermocouple Amplifier T+EXT
analogMINUS → MAX31855 Thermocouple Amplifier T-EXT

4. Connections between "sonda_superior" and "ESP32"

Functionsonda_superiorESP32
analogPLUS → MAX31855 Thermocouple Amplifier T+EXT
analogMINUS → MAX31855 Thermocouple Amplifier T-EXT

5. Connections between "pantalla" and "ESP32"

FunctionpantallaESP32
powerVCC3V3
groundGNDGND
i2cSDAGPIO 21
i2cSCLGPIO 22

6. Connections between "aviso" and "ESP32"

FunctionavisoESP32
pwmSIGGPIO 27
groundGNDGND

7. Connections between "ambiente" and "ESP32"

FunctionambienteESP32
powerVCC3V3
groundGNDGND
dataDATAGPIO 23

8. Connections between "pullup" and "ESP32"

FunctionpullupESP32
digitalP1 → DS18B20 DATAEXT
powerP23V3

9. Connections between "fuente" and "ESP32"

FunctionfuenteESP32
groundGNDGND

10. Connections between "reductor" and "ESP32"

FunctionreductorESP32
powerVIN → 12V Barrel-Jack Adapter +12VEXT
groundGNDGND

11. Connections between "particulas" and "ESP32"

FunctionparticulasESP32
powerVCC → MP1584 Buck Converter VOUTEXT
groundGNDGND
dataTXGPIO 33

12. Connections between "ventilador" and "ESP32"

FunctionventiladorESP32
power12V → 12V Barrel-Jack Adapter +12VEXT
groundGND → AO3400A Drain (D)EXT

13. Connections between "ventilador_q" and "ESP32"

Functionventilador_qESP32
groundSource (S)GND

14. Connections between "ventilador_r" and "ESP32"

Functionventilador_rESP32
digitalP1GPIO 13
digitalP2 → AO3400A Gate (G)EXT

15. Connections between "ventilador_pd" and "ESP32"

Functionventilador_pdESP32
digitalP1 → AO3400A Gate (G)EXT
groundP2GND

16. Connections between "ventilador_d" and "ESP32"

Functionventilador_dESP32
passiveAnode → AO3400A Drain (D)EXT
passiveCathode → 12V Barrel-Jack Adapter +12VEXT

17. Connections between "extractor" and "ESP32"

FunctionextractorESP32
power12V → 12V Barrel-Jack Adapter +12VEXT
groundGND → AO3400A Drain (D)EXT

18. Connections between "extractor_q" and "ESP32"

Functionextractor_qESP32
groundSource (S)GND

19. Connections between "extractor_r" and "ESP32"

Functionextractor_rESP32
digitalP1GPIO 14
digitalP2 → AO3400A Gate (G)EXT

20. Connections between "extractor_pd" and "ESP32"

Functionextractor_pdESP32
digitalP1 → AO3400A Gate (G)EXT
groundP2GND

21. Connections between "extractor_d" and "ESP32"

Functionextractor_dESP32
passiveAnode → AO3400A Drain (D)EXT
passiveCathode → 12V Barrel-Jack Adapter +12VEXT

Deploy the firmware

#include <Arduino.h>
#include <Wire.h>
#include <Adafruit_MAX31855.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <math.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <Adafruit_PM25AQI.h>
// Monitor informativo: no controla combustión ni sustituye protecciones.
Adafruit_MAX31855 piedra(18,25,19), arriba(18,26,32);
Adafruit_SSD1306 oled(128,64,&Wire,-1);
constexpr int BUZZER=27;
constexpr double OBJ_P=425, OBJ_A=525;
// Avisos de desviación, NO límites certificados de seguridad del horno.
constexpr double ALTA_P=450, ALTA_A=550, AVISO_MAX=750;
bool screen=false, initP=false, initA=false, listoPrev=false;
bool altaP=false, altaA=false;
uint32_t muestra=0, pitido=0;
String anterior;
constexpr int FAN=13, EXTRACT=14;
OneWire busAmbiente(23);
DallasTemperature ambiente(&busAmbiente);
Adafruit_PM25AQI particulas;
bool fan=false, extractorCalor=false, polvo=false, pmInit=false;
uint8_t pmAltas=0;
uint16_t pm=0;
uint32_t pmUltima=0, pmInicio=0;
void setup(){
 pinMode(FAN,OUTPUT); digitalWrite(FAN,LOW);
 pinMode(EXTRACT,OUTPUT); digitalWrite(EXTRACT,LOW);
 ambiente.begin(); ambiente.setWaitForConversion(false); ambiente.requestTemperatures();
 Serial2.begin(9600,SERIAL_8N1,33,-1);
 pmInit=particulas.begin_UART(&Serial2); pmInicio=millis();
 Serial.begin(115200); pinMode(BUZZER,OUTPUT);
 pinMode(25,OUTPUT); digitalWrite(25,HIGH);
 pinMode(26,OUTPUT); digitalWrite(26,HIGH);
 Wire.begin(21,22); Wire.beginTransmission(0x3C);
 bool found=Wire.endTransmission()==0;
 screen=found && oled.begin(SSD1306_SWITCHCAPVCC,0x3C);
 if(screen){oled.clearDisplay();oled.setTextSize(1);oled.setTextColor(SSD1306_WHITE);oled.setTextWrap(false);oled.display();}
 delay(500); initP=piedra.begin(); initA=arriba.begin();
 tone(BUZZER,4000,150);
}
void loop(){
 uint32_t now=millis();
 PM25_AQI_Data datos;
 if(pmInit && particulas.read(&datos) && now-pmInicio>=30000){
   if(!pmUltima || now-pmUltima>8000) pmAltas=0;
   pmUltima=now; pm=datos.pm25_env;
   if(pm>=75){if(pmAltas<3) ++pmAltas; if(pmAltas>=3) polvo=true;}
   else {pmAltas=0; if(pm<=35) polvo=false;}
 }
 if(now-muestra<1000) return;
 muestra=now;
 float t=ambiente.getTempCByIndex(0); ambiente.requestTemperatures();
 bool tempOk=isfinite(t)&&t>=-20&&t<=65;
 if(!tempOk || t<=24) fan=false; else if(t>25) fan=true;
 if(!tempOk || t<=28) extractorCalor=false; else if(t>30) extractorCalor=true;
 bool pmOk=pmUltima && now-pmUltima<=8000;
 if(!pmOk){polvo=false; pmAltas=0;}
 bool extrae=extractorCalor||polvo;
 digitalWrite(FAN,fan); digitalWrite(EXTRACT,extrae);
 Serial.printf("Ambiente: %s | PM2.5: %s | Vent: %s | Extr: %s\n",
   tempOk?String(t,1).c_str():"SIN DATOS", pmOk?String(pm).c_str():"SIN DATOS",
   fan?"ON":"OFF", extrae?"ON":"OFF");
 double p=initP?piedra.readCelsius():NAN;
 double a=initA?arriba.readCelsius():NAN;
 bool fp=!isfinite(p)||p < -50||p>1100;
 bool fa=!isfinite(a)||a < -50||a>1100;
 if(fp) altaP=false; else if(p>=ALTA_P) altaP=true; else if(p<ALTA_P-5) altaP=false;
 if(fa) altaA=false; else if(a>=ALTA_A) altaA=true; else if(a<ALTA_A-5) altaA=false;
 bool listo=!fp&&!fa&&fabs(p-OBJ_P)<=10&&fabs(a-OBJ_A)<=10;
 bool maximo=(!fp&&p>=AVISO_MAX)||(!fa&&a>=AVISO_MAX);
 bool alarma=fp||fa||altaP||altaA||!screen||maximo;
 String estado=fp||fa?"FALLO SONDA":(!screen?"FALLO PANTALLA":(maximo?"MUY CALIENTE":(altaP||altaA?"TEMPERATURA ALTA":(listo?"EN OBJETIVO":"FUERA DE OBJETIVO"))));
 if(alarma && now-pitido>=2000){tone(BUZZER,4000,650);pitido=now;}
 else if(listo&&!listoPrev&&!alarma){tone(BUZZER,2500,250);}
 listoPrev=listo;
 String texto="HORNO - SOLO MONITOR\nPiedra: "+(fp?String("ERROR"):String(p,0)+" C")+"\nMeta: 425 C\nArriba: "+(fa?String("ERROR"):String(a,0)+" C")+"\nMeta: 525 C\n"+estado;
 Serial.println(texto);
 if(screen&&texto!=anterior){oled.clearDisplay();oled.setCursor(0,0);oled.print(texto);oled.display();anterior=texto;}
}

Remix this project

Make it yours in one click

Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.

Open in Schematik