Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP32-Based Water Quality Monitoring System with pH, TDS, and Turbidity Sensors

Image of ESP32-Based Water Quality Monitoring System with pH, TDS, and Turbidity Sensors

Circuit Documentation

Summary

The circuit in question is designed to monitor various environmental parameters using an ESP32-WROOM-32UE microcontroller as the central processing unit. The circuit includes sensors for temperature (DS18B20), water quality (TDS Sensor), pH levels (pH Degree Sensor Module), and turbidity (Turbidity Module). It also features a 16x2 I2C LCD for display purposes and a START SWITCH for user interaction. The entire circuit is powered by a 9V Battery.

Component List

ESP32-WROOM-32UE

  • Microcontroller with WiFi capability.
  • It has a variety of digital and analog pins for interfacing with sensors and other peripherals.

DS18B20 Temperature Sensor

  • A digital temperature sensor that provides temperature readings over a one-wire interface.

TDS Sensor

  • A sensor used to measure the total dissolved solids in water, indicating water quality.

START SWITCH

  • A switch used to start the measurement process or any other user-defined action.

pH Degree Sensor Module

  • A sensor module used to measure the pH level of a solution.

9V Battery

  • Provides power to the circuit.

Turbidity Module

  • Measures the turbidity of water, which can be an indicator of water quality.

16x2 I2C LCD

  • An alphanumeric liquid crystal display that allows for the display of 16 characters per line on 2 lines. It uses the I2C protocol for communication.

Wiring Details

ESP32-WROOM-32UE

  • GND connected to the ground network.
  • 5V connected to the positive voltage network.
  • 34 connected to the OUT pin of the Turbidity Module.
  • 35 connected to the A pin of the TDS Sensor.
  • 26 connected to the OUT pin of the DS18B20 Temperature Sensor.
  • 12 connected to the pH A pin of the pH Degree Sensor Module.
  • 13 connected to the NO 1 pin of the START SWITCH.
  • 22 (SCL) connected to the SCL pin of the 16x2 I2C LCD.
  • 21 (SDA) connected to the SDA pin of the 16x2 I2C LCD.

DS18B20 Temperature Sensor

  • GND connected to the ground network.
  • VCC connected to the positive voltage network.
  • OUT connected to pin 26 of the ESP32-WROOM-32UE.

TDS Sensor

  • - connected to the ground network.
  • + connected to the positive voltage network.
  • A connected to pin 35 of the ESP32-WROOM-32UE.

START SWITCH

  • NC 2 connected to the ground network.
  • NO 1 connected to pin 13 of the ESP32-WROOM-32UE.

pH Degree Sensor Module

  • pH Negative connected to the ground network.
  • pH Positive connected to the positive voltage network.
  • pH A connected to pin 12 of the ESP32-WROOM-32UE.

9V Battery

  • - connected to the ground network.
  • + connected to the positive voltage network.

Turbidity Module

  • GND connected to the ground network.
  • VCC connected to the positive voltage network.
  • OUT connected to pin 34 of the ESP32-WROOM-32UE.

16x2 I2C LCD

  • GND connected to the ground network.
  • VCC connected to the positive voltage network.
  • SDA connected to pin 21 (SDA) of the ESP32-WROOM-32UE.
  • SCL connected to pin 22 (SCL) of the ESP32-WROOM-32UE.

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

The documentation.txt file is empty and does not contain any code or comments.