ESP32-Based Water Quality Monitoring System with LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to monitor water quality parameters using an ESP32 microcontroller as the central processing unit. The circuit includes sensors for measuring pH and turbidity, an LCD screen for displaying measurements, and a mini water pump for water sampling or circulation. The USB power module provides the necessary power for the circuit, and the ESP32 handles sensor data processing and controls the water pump.
Component List
ESP 32 DEVKIT V1 (30 pins)
- Description: A microcontroller board based on the ESP32 chip, featuring Wi-Fi and Bluetooth connectivity, with a wide range of GPIO pins.
- Purpose: Acts as the central processing unit for the circuit, reads sensor data, controls the water pump, and displays information on the LCD screen.
PH Meter
- Description: A sensor module designed to measure the pH level of a liquid.
- Purpose: Provides pH level readings to the ESP32 for water quality monitoring.
Turbidity Module
- Description: A sensor that measures the turbidity (cloudiness) of water, which can be an indicator of water quality.
- Purpose: Supplies turbidity data to the ESP32 for assessing water clarity.
5v mini water pump
- Description: A small water pump that operates at 5 volts.
- Purpose: Used for water sampling or circulation, controlled by the ESP32.
USB power
- Description: A power module that provides a 5V supply from a USB source.
- Purpose: Powers the entire circuit, including the ESP32, sensors, and the water pump.
LCD screen 16x2 I2C
- Description: A 16x2 character LCD display with an I2C interface for easy communication.
- Purpose: Displays the sensor readings and other information processed by the ESP32.
Wiring Details
ESP 32 DEVKIT V1 (30 pins)
- EN, VP, VN, D34-D27, D14-D13, VIN, 3V3, D15-D2, D4, RX2, TX2, D18-D19, D21, RX0, TX0, D22-D23: Various GPIO and power pins used for interfacing with sensors, actuators, and communication modules.
PH Meter
- Signal: Connected to the VP pin of the ESP32 for pH level readings.
- VCC: Connected to the USB power module's + pin for power.
- GND: Connected to the USB power module's - pin for ground.
Turbidity Module
- OUT: Connected to the D34 pin of the ESP32 for turbidity readings.
- VCC: Connected to the USB power module's + pin for power.
- GND: Connected to the USB power module's - pin for ground.
5v mini water pump
- positive pin: Connected to the D5 pin of the ESP32 for control.
- negative pin: Connected to the USB power module's - pin for ground.
USB power
- +: Provides 5V to the VCC pins of the PH Meter, Turbidity Module, and the VIN pin of the ESP32.
- -: Provides ground to the GND pins of the PH Meter, Turbidity Module, the water pump, and the GND pin of the ESP32.
LCD screen 16x2 I2C
- SDA: Connected to the D21 pin of the ESP32 for I2C data.
- SCL: Connected to the D22 pin of the ESP32 for I2C clock.
- VCC: Connected to the 3V3 pin of the ESP32 for power.
- GND: Connected to the GND pin of the ESP32 for ground.
Documented Code
No code was provided for the microcontroller. The documentation of the code would typically include a description of the functionality, setup, and main loop, along with comments explaining the purpose of each function and code block. Since no code is available, this section cannot be completed. If code becomes available, it should be added here with appropriate explanations and comments for each part of the program.