ESP32-Cheap-Yellow-Display icon indicating copy to clipboard operation
ESP32-Cheap-Yellow-Display copied to clipboard

Control two relays and read temperature from DS18B20 (1wire)

Open Misiu opened this issue 6 months ago • 0 comments

Hi there, not sure if this is the right place to ask a question, but I saw a lot of examples and maybe someone had a similar issue/project.

I have bought the display (USB-C version) and I want to build a simple thermostat that would control two pumps based on temperature readings. I'd like to use the display as a single unit to allow changing settings, reading temperature, and control relays. The idea is to have two pairs (two sensors and a relay) to control two pumps.

According to https://randomnerdtutorials.com/esp32-cheap-yellow-display-cyd-pinout-esp32-2432s028r/#extended-io I can use 3 PINS: GPIO 35, GPIO 22 and GPIO 27, so, in theory, I can use two pins to control relays and one pin to read temperature from four sensors.

Did anyone successfully use the display with relays and DS18B20? I've ordered two 3.3V relay boards and a bunch of DS18B20 sensors, but I need to be sure how to connect the relays. I have a board with two USB connectors, so maybe instead of using 3.3V from CN1 I can use 5V relays and power them from USB connector? I have a bunch of 5V relays laying around, so I could use them instead of waiting two weeks for new relays.

image

Misiu avatar Aug 20 '24 13:08 Misiu