ESP32-S3 Based Smart Water Quality Monitoring System with Wi-Fi Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed using an ESP32-S3 microcontroller and various sensors and actuators. The circuit includes temperature, pH, turbidity, TDS, and DO sensors, as well as a water pump, heater, servo, aerator, and water filter. The ESP32-S3 microcontroller is used to read sensor data and control the actuators via relays.
Component List
ESP32-S3
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: 3v3, EN, GPIO4, GPIO5, GPIO6, GPIO7, GPIO15, GPIO16, GPIO17, GPIO18, GPIO8, GPIO46, GPIO9, GPIO10, GPIO11, GPIO12, GPIO13, GPIO14, 5V, GND, GPIO43, GPIO44, GPIO1, GPIO2, GPIO42, GPIO41, GPIO40, GPIO39, GPIO38, GPIO37, GPIO36, GPIO35, GPIO0, GPIO45, GPIO48, GPIO47, GPIO21, GPIO20, GPIO19
Temperature Sensor (LM35)
- Description: A precision integrated-circuit temperature sensor.
- Pins: +Vs, Vout, GND
PH Meter
- Description: A sensor to measure the pH level of a solution.
- Pins: Signal, VCC, GND
Turbidity Sensor
- Description: A sensor to measure the turbidity (cloudiness) of water.
- Pins: OUT, VCC, GND
TDS Sensor
- Description: A sensor to measure the Total Dissolved Solids (TDS) in water.
- Pins: AI, GND, 5V
DO Sensor
- Description: A sensor to measure the dissolved oxygen in water.
- Pins: Vcc, Gnd, Out
5V Mini Water Pump
- Description: A small water pump powered by 5V.
- Pins: positive pin, negative pin
Water Heater
- Description: A device to heat water.
- Pins: V+, V-
Servo (Wokwi Compatible)
- Description: A servo motor compatible with Wokwi.
- Pins: GND, V+, PWM
Aerator
- Description: A device to aerate water.
- Pins: v-, v+
Water Filter
- Description: A device to filter water.
- Pins: v+, v-
5V Relay
- Description: A relay module to control high-power devices.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
Wiring Details
ESP32-S3
- GPIO4: Connected to the "In" pin of a 5V relay.
- GPIO5: Connected to the "In" pin of a 5V relay.
- GPIO6: Connected to the "In" pin of a 5V relay.
- GPIO7: Connected to the "In" pin of a 5V relay.
- GPIO19: Connected to the "PWM" pin of the Servo.
- GPIO36: Connected to the "Signal" pin of the PH Meter.
- GPIO37: Connected to the "AI" pin of the TDS Sensor.
- GPIO38: Connected to the "OUT" pin of the Turbidity Sensor.
- GPIO39: Connected to the "Out" pin of the DO Sensor.
- GPIO40: Connected to the "Vout" pin of the Temperature Sensor.
- 5V: Connected to the "VCC" pins of various components.
- GND: Connected to the "GND" pins of various components.
Temperature Sensor (LM35)
- +Vs: Connected to the "VCC" pin of a 5V relay.
- Vout: Connected to the "GPIO40" pin of the ESP32-S3.
- GND: Connected to the "GND" pin of a 5V relay.
PH Meter
- Signal: Connected to the "GPIO36" pin of the ESP32-S3.
- VCC: Connected to the "VCC" pin of a 5V relay.
- GND: Connected to the "GND" pin of a 5V relay.
Turbidity Sensor
- OUT: Connected to the "GPIO38" pin of the ESP32-S3.
- VCC: Connected to the "VCC" pin of a 5V relay.
- GND: Connected to the "GND" pin of a 5V relay.
TDS Sensor
- AI: Connected to the "GPIO37" pin of the ESP32-S3.
- 5V: Connected to the "VCC" pin of a 5V relay.
- GND: Connected to the "GND" pin of a 5V relay.
DO Sensor
- Vcc: Connected to the "VCC" pin of a 5V relay.
- Out: Connected to the "GPIO39" pin of the ESP32-S3.
- Gnd: Connected to the "GND" pin of a 5V relay.
5V Mini Water Pump
- positive pin: Connected to the "Common terminal" pin of a 5V relay.
- negative pin: Connected to the "Normally Closed" pin of a 5V relay.
Water Heater
- V+: Connected to the "Common terminal" pin of a 5V relay.
- V-: Connected to the "Normally Closed" pin of a 5V relay.
Servo (Wokwi Compatible)
- GND: Connected to the "GND" pin of a 5V relay.
- V+: Connected to the "VCC" pin of a 5V relay.
- PWM: Connected to the "GPIO19" pin of the ESP32-S3.
Aerator
- v-: Connected to the "Normally Closed" pin of a 5V relay.
- v+: Connected to the "Common terminal" pin of a 5V relay.
Water Filter
- v+: Connected to the "Common terminal" pin of a 5V relay.
- v-: Connected to the "Normally Closed" pin of a 5V relay.
5V Relay
- In: Connected to various GPIO pins of the ESP32-S3.
- VCC: Connected to the "5V" pin of the ESP32-S3.
- GND: Connected to the "GND" pin of the ESP32-S3.
- Common terminal: Connected to various components.
- Normally Closed: Connected to various components.
- Normally Open: Not used in this circuit.
Code
No code is provided for this circuit.