Who knows ESP-32?

Ri22o

Known around here
Jul 30, 2020
2,302
4,556
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.
I have a Lenovo Thinkcenter on the way to run Home Assistant on. When that gets here I'll get ESPHome loaded on it.

I had ordered the parts above, but am now considering going with the one below to simplify wiring and everything inside of the enclosure. Will I lose anything by going with this one? I know I will need to solder the header pins on, but this does simplify a lot of things for the design and implementation. Can you do an initial provision over Wifi? Or does it need to be done via USB?

The fact that this can take 24v in helps too, since that is what I decided on for the fans and heaters this will control.


1767630018376.png
 
As an Amazon Associate IPCamTalk earns from qualifying purchases.
  • Like
Reactions: VorlonFrog
I have a Lenovo Thinkcenter on the way to run Home Assistant on. When that gets here I'll get ESPHome loaded on it.

I had ordered the parts above, but am now considering going with the one below to simplify wiring and everything inside of the enclosure. Will I lose anything by going with this one? I know I will need to solder the header pins on, but this does simplify a lot of things for the design and implementation. Can you do an initial provision over Wifi? Or does it need to be done via USB?

The fact that this can take 24v in helps too, since that is what I decided on for the fans and heaters this will control.


View attachment 235741
Only thing about that 8-relay board is there is no external antenna connector for the ESP32. If you get good wifi signal strength, no problem. You can always scrape the antenna leads on the ESP32 board and cut and solder a cable onto it. As for the board itself, they work very well. I have two of them running as outdoor lighting controllers for a few years now.
 
As an Amazon Associate IPCamTalk earns from qualifying purchases.
Well, I bought a $40 Lenovo Thinkcenter, got HA loaded onto it, and now have ESPHome running. I just need to wait for the USB TTL adapter to arrive, but I should probably also buy a better soldering station, too.
 
  • Like
Reactions: Mike
Only thing about that 8-relay board is there is no external antenna connector for the ESP32. If you get good wifi signal strength, no problem. You can always scrape the antenna leads on the ESP32 board and cut and solder a cable onto it. As for the board itself, they work very well. I have two of them running as outdoor lighting controllers for a few years now.
Ok, I am lost.

I have tried following along with videos, but what I am seeing doesn't flow with the videos. Any suggestions? I have added a new device in ESPHome. I thought this flashed the device, but apparently not and now I need to load a bin file to it. I can't get the board to show as connected to keep going with any steps.
 
I may have made some progress. It's confusing on which machine it needs to be plugged into at certain steps. I updated the serial drivers and got to the next step, but now need to figure out how the buttons need to be pressed for it to initialize.
 
The offline you are seeing simply means the device isn't connected to your network. Have you verified your wifi ssid and password is correct in your !secret yaml?