Create a schematic for an ESP32 DevKit based temperature and heater controller powered from a 12V 10A supply. The system reads two DS18B20 temperature sensors, drives a 5V relay module for a 12V heater, displays status on a 2.8 inch ILI9341 SPI TFT, and provides buzzer, LED, and push button user interface.
Architecture
Diagram
Design Assumptions
Use the ESP32 DevKit VIN/5V input from a regulated 5V rail generated from the 12V supply.
Use the ESP32 DevKit 3V3 rail for DS18B20 power and OneWire pull-ups to keep sensor data ESP32-safe.
Use two independent OneWire GPIO nets, one per DS18B20 sensor, each with its own 4.7kΩ pull-up to 3V3.
Use a 5V relay module input driven by an ESP32 GPIO. Because this is a module, coil driver and flyback protection are assumed to be included on the relay module.
Relay contacts switch the 12V heater high side through COM and NO.
Planned GPIO Map
Table
Function
ESP32 GPIO
DS18B20 Sensor 1 data
GPIO4
DS18B20 Sensor 2 data
GPIO16
TFT SCLK
GPIO18
TFT MISO
GPIO19
TFT MOSI
GPIO23
TFT CS
GPIO5
TFT DC
GPIO21
TFT RST
GPIO22
Relay control
GPIO25
Active buzzer
GPIO26
Red LED
GPIO27
Push button
GPIO32
Power Rails
12V: external 12V 10A supply and heater load.
5V: buck-regulated logic/module supply for ESP32 VIN, relay module, and TFT module.
3V3: ESP32 DevKit regulated output for OneWire sensors and pull-ups.
GND: shared logic ground for ESP32, sensors, display, relay module input, buzzer, LED, and button.