ESP32-Based Smart Relay Control System with Ethernet Connectivity and Environmental Sensing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to interface various sensors and a relay module with a Keyestudio Control Board for ESP32. The circuit is capable of monitoring environmental conditions and controlling external devices through the relay module. Communication with a W5500 Lite Ethernet module is also established for potential network connectivity.
Component List
Keyestudio Control Board for ESP32
- Microcontroller board based on the ESP32 chip
- Provides a variety of GPIO pins, power pins, and communication interfaces
Voltage Sensor
- Measures the voltage of an external source
- Outputs an analog voltage proportional to the measured voltage
DHT22
- A sensor for measuring temperature and humidity
- Provides digital output
Relay 4 Channel 5v
- A 4-channel relay module
- Allows for controlling high power devices with digital signals
W5500 Lite Ethernet
- An Ethernet module based on the W5500 chip
- Provides network connectivity to the microcontroller
Adafruit SHTC3 STEMMA QT
- A high-accuracy temperature and humidity sensor
- Uses I2C for communication
Wiring Details
Keyestudio Control Board for ESP32
5Vconnected to Voltage SensorVccand Relay 4 Channel 5vVCCGNDconnected to Voltage SensorGnd, W5500 Lite EthernetGND, Relay 4 Channel 5vGND, DHT22-, and Adafruit SHTC3 STEMMA QTGNDGPIO25connected to W5500 Lite EthernetINTGPIO17connected to Relay 4 Channel 5vIN1GPIO16connected to Relay 4 Channel 5vIN2GPIO27connected to Relay 4 Channel 5vIN3GPIO14connected to Relay 4 Channel 5vIN4GPIO5connected to W5500 Lite EthernetCSGPIO23connected to W5500 Lite EthernetMOSIGPIO19connected to W5500 Lite EthernetMISOGPIO18connected to W5500 Lite EthernetSCLKRSTconnected to W5500 Lite EthernetRSTGPIO36 (VP)connected to Voltage SensorOutGPIO33connected to DHT22OutSCLconnected to Adafruit SHTC3 STEMMA QTSCLSDAconnected to Adafruit SHTC3 STEMMA QTSDA3V3connected to Adafruit SHTC3 STEMMA QT3.3Vand DHT22+
Voltage Sensor
Phase(not connected)Outconnected to Keyestudio Control Board for ESP32GPIO36 (VP)
DHT22
Outconnected to Keyestudio Control Board for ESP32GPIO33+connected to Keyestudio Control Board for ESP323V3
Relay 4 Channel 5v
IN1connected to Keyestudio Control Board for ESP32GPIO17IN2connected to Keyestudio Control Board for ESP32GPIO16IN3connected to Keyestudio Control Board for ESP32GPIO27IN4connected to Keyestudio Control Board for ESP32GPIO14COM1,COM2,COM3,COM4,NO1,NO2,NO3,NO4,NC1,NC2,NC3,NC4(not connected)
W5500 Lite Ethernet
INTconnected to Keyestudio Control Board for ESP32GPIO25CSconnected to Keyestudio Control Board for ESP32GPIO5MOSIconnected to Keyestudio Control Board for ESP32GPIO23MISOconnected to Keyestudio Control Board for ESP32GPIO19SCLKconnected to Keyestudio Control Board for ESP32GPIO18RSTconnected to Keyestudio Control Board for ESP32RST3v3connected to Keyestudio Control Board for ESP323V3
Adafruit SHTC3 STEMMA QT
SCLconnected to Keyestudio Control Board for ESP32SCLSDAconnected to Keyestudio Control Board for ESP32SDA3.3Vconnected to Keyestudio Control Board for ESP323V3
Documented Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt
(No additional documentation provided)