Projects / Ideas / ESP32 12 V fan thermostat

ESP32 12 V fan thermostat

IntermediateSmart HomeIdeaReviewed
In short

How do you build an ESP32 12 V fan thermostat?

An ESP32 reads a DS18B20 and switches a 12 V DC fan through a transistor and a 12 V relay when a small enclosure gets warm, with a flyback diode and a hysteresis band so it does not chatter. You need ESP32 DevKit V1, DS18B20 waterproof probe, Resistor 4.7 kΩ, Relay 12 V SPDT (sugar cube), NPN Transistor 2N2222, Resistor 1 kΩ, Signal Diode 1N4148, 12 V DC fan 80 mm and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 150 min
Parts
9
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Cool a small box automatically.

How to build it

  1. Wire the sensor and read it
  2. Drive the relay coil through the transistor
  3. Add the flyback diode
  4. Set on and off temperatures
  5. Test with warm water

Related projects

Common questions

What parts do I need for the ESP32 12 V fan thermostat?

ESP32 DevKit V1, DS18B20 waterproof probe, Resistor 4.7 kΩ, Relay 12 V SPDT (sugar cube), NPN Transistor 2N2222, Resistor 1 kΩ, Signal Diode 1N4148, 12 V DC fan 80 mm and Breadboard 830 Tie Points.

How long does the ESP32 12 V fan thermostat take to build?

About 150 minutes for a intermediate maker.