Who knows ESP-32?

Ri22o

Known around here
Jul 30, 2020
2,273
4,534
Indiana
I have gone round and round with the best way to control temps in an outdoor projector enclosure, and I think I have finally settled on trying to build a multi-channel ESP-32 controller.

The catch? I know nothing about ESP-32.

How did I get here? My current enclosure uses an Inkbird wifi temp controller. With the metal enclosure, the wifi for tracking temp is useless. I also only get one set of logic. It either turns on/off exhaust fans, or turns on/off the heater. There is no way to stage the fans as the temp increases. I also can't run only the exhaust, I have to also run the intake. With it being cold when I use this for my holiday decorations, this draws in cold air which causes a huge swing in the temp and cycles the fans on/off, instead of just trying to maintain the temp.

I use Hubitat for my home automations. I was going down this path with Zigbee Shelly relays, but the signal would still be blocked by the pseudo-Faraday cage unless I had another hub inside and used it as a mesh device. I am concerned this would mess things up when I take it all down for the season.

For any devices that need it, I planned to add a wifi AP in the enclosure. Having this would let me use the Shelly relays via wifi with their app, which you can program logic in, but then I am reliant on the app and cloud connectivity for controlling the temp. There may also be latency and lag with triggering the relays.

That all being said, Shelly with wifi is my current plan, but I would like to look into building an ESP-32 controller that I can program to run inlet/exhaust fans and a heater. The logic would be when temp is +5 from the set point, the exhaust fans come on. If the temp continues to rise, then an inlet fan comes on. Once the temp gets back down to the set point, the fans turn off. Again, if the temp gets to -5 from the set point, the heater turns on until the set point is reached.


I am looking for guidance on what I would need for this, and how to get it all to work. I already have some DS18B20 temp probes that I planned to use with the Shelly Add On, but other than that I have been looking for 8 channel ESP-32s on Amazon.
 
I use ESP32's with Home Assistant for BLE Proxies and to measure distance with an Ultrasonic in my water softener. To get started I would recommend taking a look at the ESPHome website.


Also here's some info on the dallas temperature sensor:

 
Home assistant provides a nice interface for managing all your devices, but you can use ESPHome's web ui if you don't have HA.

Screen Shot 2025-12-26 at 4.30.50 PM.png
 
Right now I only plan to build two of these, so I'm not sure I want to also go through and do Home Assistant, but maybe later on if I find more uses or other reasons.

Would I use the Command Line install method?
 
Right now I only plan to build two of these, so I'm not sure I want to also go through and do Home Assistant, but maybe later on if I find more uses or other reasons.

Would I use the Command Line install method?
I'd try the Web UI first.
 
Right now I am trying to wrap my head around hardware so I can get it on the way while I look into set up and programming.

My thoughts are a simple setup of the controller, relays, DS18B20 temp probe, and an LCD screen to display temp locally.

Which is the better/easier path? Is there a specific version of ESP32 that is better than another or that I should avoid? ESP32 vs ESP32-S2 vs ESP32-S3 vs ESP32-???

ESP32 with 8 relay channels, but I need to add a USB adapter for programming.

ESP32 that has USB, but I need to get a multi channel relay set.

Integrated relays is less wiring, but I think the second option makes more sense for the end goal.
 
As an Amazon Associate IPCamTalk earns from qualifying purchases.
This is what I ended up with:

8 Channel, 5v Relay Module

1767048498313.png

ESP-WROOM-32 Dev Board with Expansion Board

1767048472979.png

I plan to use 12v fans off of the relays. To keep power wire confusion at a minimum, I would like to power the ESP32 with 12v. Can I do that via the barrel connector on the expansion board? Will this affect the 5v relay module?
 
As an Amazon Associate IPCamTalk earns from qualifying purchases.