ESP32-Controlled Smart Water Management System with Temperature and Flow Monitoring
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question appears to be a monitoring and control system, potentially for a water heating application. It includes temperature sensing via a thermocouple, water pressure measurement, water flow sensing, and control of a water heater, motorized valve, and a plastic solenoid valve. The ESP32 microcontroller serves as the central processing unit, interfacing with various sensors and controlling relays that manage power to the actuators. A power supply provides the necessary voltage for the components, and a piezo speaker is included, possibly for alerting or status indication purposes.
Component List
Thermocouple Type K
- A temperature sensor that measures high temperatures and outputs a small voltage proportional to the temperature.
MAX6675 Module
- An interface module for the K-type thermocouple that converts the thermocouple's voltage to a digital value readable by a microcontroller.
ESP32 38 PINS
- A microcontroller with WiFi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various sensors and actuators.
Gravity: Analog Water Pressure Sensor
- A sensor that measures the pressure of water and outputs an analog voltage corresponding to the pressure.
Float Switch
- A switch that detects the level of liquid within a tank and outputs a digital signal when the liquid reaches a certain level.
PICM SENSOR
- A generic sensor component, possibly for measuring some physical parameter.
POWER SUPPLY 12V 5AMP
- A power supply unit that converts 220V AC to 12V-24V DC, providing power to the circuit components.
Water Flow Sensor
- A sensor that measures the flow rate of water and outputs a pulse signal proportional to the flow rate.
Water Heater
- An electrical device that heats water, controlled by the circuit.
Relay 4 Channel 5v
- A 4-channel relay module that allows the ESP32 to control high-power devices such as the water heater and valves.
Plastic Solenoid Valve
- An electrically-controlled valve used to control the flow of water.
Piezo Speaker
- An electronic device that emits sound when an electric signal is applied.
Motorized Valve
- An electrically-operated valve that can be controlled to regulate the flow of water.
AC Source
- Represents the mains AC power source.
Wiring Details
Thermocouple Type K
-connected to MAX6675 Module-+connected to MAX6675 Module+
MAX6675 Module
GNDconnected to ESP32GNDVCCconnected to ESP323V3SCKconnected to ESP32G5CSconnected to ESP32G23SOconnected to ESP32G19-connected to Thermocouple Type K-+connected to Thermocouple Type K+
ESP32 38 PINS
GNDconnected to PICM SENSOR-, Float SwitchGND, MAX6675 ModuleGND, Gravity: Analog Water Pressure SensorGND, water flow sensorGND, Relay 4 Channel 5vGND3V3connected to Gravity: Analog Water Pressure SensorVCC, water flow sensorVcc, MAX6675 ModuleVCC5Vconnected to Relay 4 Channel 5vVCCG23connected to MAX6675 ModuleCSG22connected to Gravity: Analog Water Pressure SensorSignalG21connected to water flow sensorSignalG19connected to MAX6675 ModuleSOG18connected to Float SwitchDigital PinG5connected to MAX6675 ModuleSCKG17connected to PICM SENSOROutG16connected to Motorized ValveOutG34connected to Relay 4 Channel 5vIN1G35connected to Relay 4 Channel 5vIN2G32connected to Relay 4 Channel 5vIN333connected to Relay 4 Channel 5vIN4
Gravity: Analog Water Pressure Sensor
Signalconnected to ESP32G22VCCconnected to ESP323V3GNDconnected to ESP32GND
Float Switch
GNDconnected to ESP32GNDDigital Pinconnected to ESP32G18
PICM SENSOR
-connected to ESP32GNDOutconnected to ESP32G17
POWER SUPPLY 12V 5AMP
220V Positive Pole (AC)connected to Relay 4 Channel 5vCOM1, AC source+220V Negative Pole (AC)connected to AC source-GNDconnected to Water HeaterV-GND (DC)connected to Motorized Valve-, Plastic Solenoid Valvepin2, Piezo Speakerpin112V-24V Output (DC)connected to Relay 4 Channel 5vCOM2, Relay 4 Channel 5vCOM3
Water Flow Sensor
Signalconnected to ESP32G21Vccconnected to ESP323V3GNDconnected to ESP32GND
Water Heater
V+connected to Relay 4 Channel 5vNO1V-connected to POWER SUPPLY 12V 5AMPGND
Relay 4 Channel 5v
GNDconnected to ESP32GNDIN1connected to ESP32G34IN2connected to ESP32G35IN3connected to ESP32G32IN4connected to ESP3233VCCconnected to ESP325VCOM1connected to POWER SUPPLY 12V 5AMP220V Positive Pole (AC)COM2connected to POWER SUPPLY 12V 5AMP12V-24V Output (DC)COM3connected to POWER SUPPLY 12V 5AMP12V-24V Output (DC)NO1connected to Water HeaterV+NO2connected to Piezo Speakerpin2NO3connected to Plastic Solenoid Valvepin1
Plastic Solenoid Valve
pin1connected to Relay 4 Channel 5vNO3pin2connected to POWER SUPPLY 12V 5AMPGND (DC)
Piezo Speaker
pin1connected to POWER SUPPLY 12V 5AMPGND (DC)pin2connected to Relay 4 Channel 5vNO2
Motorized Valve
-connected to POWER SUPPLY 12V 5AMPGND (DC)Outconnected to ESP32G16
AC Source
+connected to POWER SUPPLY 12V 5AMP220V Positive Pole (AC)-connected to POWER SUPPLY 12V 5AMP220V Negative Pole (AC)
Documented Code
No code was provided for the microcontroller(s) in the circuit. For a complete documentation, the code should be included to illustrate how the ESP32 interacts with the sensors and controls the actuators based on the sensor inputs. The code would typically include initialization of GPIO pins, reading sensor values, implementing control logic, and driving the relay channels to manage the actuators.