ESP32 · Azure TTS · PID Control

Cooking,
intelligently
automated.

Smart Chef AI is an embedded cooking system that parses natural-language recipes, autonomously controls temperature with PID precision, and speaks to you through Azure Neural TTS.

Explore system
±0.5°
PID accuracy
4h
Max cook time
10
Recipe steps

Every sense,
engineered
in firmware.

Six tightly integrated modules — audio, display, safety, network, recipes, and PID control — running on an ESP32-S3 at the heart of a complete cooking intelligence platform.

01
Natural Recipe Parsing
Feed the cooker plain English cooking instructions. The AI Recipe Engine extracts temperatures, durations, and actions automatically using a curated culinary knowledge base.
RecipeEngine.h
02
PID Temperature Control
Kp=5.0, Ki=0.1, Kd=1.0 — hand-tuned PID constants driving relay-based heat control with a 5-second window for tight temperature regulation.
Cooker.ino · PID
03
Azure Neural Voice
Azure Cognitive Services TTS (en-US-JennyNeural) streams 8kHz PCM audio directly to the MAX98357A I2S amplifier. Cooking instructions, warnings, and confirmations spoken aloud.
AudioManager.h
04
ILI9341 Live Display
320×240 TFT with zone-based partial redraws, custom 16×16 bitmap icons, animated progress bars, and a full emergency red-screen mode.
DisplayManager.h
05
REST API + OTA
Built-in WebServer with JSON API, mDNS as smartchef.local, ArduinoOTA for wireless firmware updates, and auto-reconnect WiFi with command queue.
SmartNetworkManager.h
06
4-Layer Safety System
Real-time sensor validation, 125°C hard limit, 3-strike failure detection, 4-hour timeout, and a 5-minute post-emergency cooldown lockout.
SafetySystem.h

Embedded to the core.

Every pin assignment, every interrupt, every I²C/I2S peripheral selected for minimal latency and maximum integration density on a single ESP32-S3 board.

MCU
ESP32-S3
240 MHz · 8MB Flash
🌡
Temp Sensor
DS18B20
1-Wire · Pin 4 · ±0.5°C
📺
Display
ILI9341
320×240 TFT · SPI · CS=10
🔊
Audio
I2S Out
BCLK=7 · LRC=5 · DIN=6
🔴
Relay
Pin 1
Mains isolation · PID driven
💡
Status LED
RGB NeoPixel
Pin 38 · WS2812B
🛜
Network
802.11 b/g/n
mDNS · REST · OTA
Cloud TTS
Azure CogSvc
Central India · 8kHz PCM

Four layers.
Zero compromises.

🌡
Overheat Guard — 125°C Hard Limit
Any temperature reading above MAX_SAFE_TEMP triggers an immediate emergency stop. Non-negotiable — implemented before PID feedback, not after.
📡
3-Strike Sensor Validation
Consecutive invalid readings accumulate. Three failures trigger CRITICAL_SENSOR_FAIL. Stale data older than 5 seconds without fresh reads halts cooking.
4-Hour Max Cooking Timeout
Absolute wall-clock limit regardless of recipe length. Prevents runaway sessions from unattended operation or software bugs.
5-Minute Cooldown Lockout
After any emergency stop, the relay remains locked out for 300 seconds. Re-entry attempts during cooldown are silently rejected.
AI Recipe Engine

Words become heat.

RecipeEngine.h — parseRecipe()
input "Sear chicken at high heat for 5 minutes"
detectTemperature ( "sear" → priority 10 )
→ 200.0°C // keyword match: sear
estimateCookingTime ( explicit "5 minutes" )
→ 5 min // explicit match
PARSED STEPS — CONFIDENCE 100%
01 Sear chicken at high heat for 5 minutes 200°C · 5m
02 Simmer in sauce until tender 95°C · 15m
03 Keep warm before serving 60°C · 5m
01
38 cooking keyword mappings
From "sear" (200°C, priority 10) to "steep" (80°C, priority 8) — a hand-crafted culinary knowledge base built directly into firmware with zero external dependencies.
02
Ingredient-aware time estimation
22 ingredient mappings provide base time estimates (chicken: 12 min/100g, fish: 8 min/100g) that combine with keyword modifiers like "until golden" for composite estimates.
03
Step optimiser
Adjacent steps within ±5°C of each other are merged automatically — reducing relay cycling, saving time, and improving energy efficiency.
04
Confidence scoring
Each parsed step carries a 0–100% confidence score based on how much information was explicitly detected vs. estimated. Low-confidence steps trigger extra voice prompts.
Default PIN: 1234
Telemetry
°C
Target: °C
Idle
Heater OFF
Uptime
WiFi
Step
Progress
Current Step
No active recipe
Awaiting command.
Activity Log
--:-- Dashboard opened
AI Suggestion

Ask the cooker for ingredient or cooking method suggestions.