ESP32-Based Water Quality Monitoring System with Solar Charging
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to monitor various environmental parameters such as temperature, pH level, dissolved oxygen, and turbidity. It utilizes an ESP32 microcontroller to process sensor data and control the system. The circuit is powered by a solar panel charging a series of 18650 Li-ion batteries through a TP4056 charger module, with a MT3608 boost converter to step up the voltage as needed. The sensors include a temperature sensor, a pH meter, a dissolved oxygen sensor, and a turbidity sensor. The circuit also includes resistors for voltage division or current limiting purposes.
Component List
Resistors
- 200 Ohm Resistor: Used for current limiting or voltage division.
- 10k Ohm Resistor: Used for current limiting or voltage division.
Microcontroller
- ESP32 (30 pin): A powerful microcontroller with Wi-Fi and Bluetooth capabilities, used for processing sensor data and controlling the circuit.
Sensors
- PH Meter: Measures the pH level of a solution.
- DFRobot Dissolved Oxygen Sensor: Measures the dissolved oxygen in water.
- Temperature Sensor: Measures the temperature.
- Sonda Sensor Turbidez / Turbidity: Measures the turbidity of water.
Power Management
- MT3608: A boost converter module that steps up the voltage.
- TP4056: A lithium battery charger module for charging the 18650 Li-ion batteries.
- Solar Panel: Provides power to charge the batteries via the TP4056.
- 18650 Li-ion Battery: Stores electrical energy for powering the circuit.
Wiring Details
Resistors
200 Ohm Resistor
pin1: Not connected in the provided net list.pin2: Not connected in the provided net list.
10k Ohm Resistor
pin1: Connected to theTemp VDD Redof the Temperature Sensor,Vinof the ESP32,VOUT+of the MT3608,VCCof the PH Meter,+of the DFRobot Dissolved Oxygen Sensor, and+of the Sonda Sensor Turbidez.pin2: Connected toD4of the ESP32 andTemp DQ Data Yellowof the Temperature Sensor.
Microcontroller
- ESP32 (30 pin)
Vin: Connected to theVOUT+of the MT3608 and other components as mentioned above.GND: Common ground with the Temperature Sensor, MT3608, PH Meter, DFRobot Dissolved Oxygen Sensor, and Sonda Sensor Turbidez.D34: Connected to theSignalpin of the PH Meter.D35: Connected to theSpin of the Sonda Sensor Turbidez.D32: Connected to theApin of the DFRobot Dissolved Oxygen Sensor.- Other pins are not mentioned in the provided net list.
Sensors
PH Meter
Signal: Connected toD34of the ESP32.VCC: Connected to theVOUT+of the MT3608 and other components as mentioned above.GND: Common ground as mentioned above.
DFRobot Dissolved Oxygen Sensor
+: Connected to theVOUT+of the MT3608 and other components as mentioned above.-: Common ground as mentioned above.A: Connected toD32of the ESP32.
Temperature Sensor
Temp GND Black: Common ground as mentioned above.Temp VDD Red: Connected to theVOUT+of the MT3608 and other components as mentioned above.Temp DQ Data Yellow: Connected toD4of the ESP32.
Sonda Sensor Turbidez / Turbidity
S: Connected toD35of the ESP32.+: Connected to theVOUT+of the MT3608 and other components as mentioned above.-: Common ground as mentioned above.
Power Management
MT3608
VOUT+: Connected to various components as mentioned above.VIN+: Connected toOUT+of the TP4056.VOUT-: Common ground as mentioned above.VIN-: Connected toOUT-of the TP4056.
TP4056
OUT+: Connected toVIN+of the MT3608.OUT-: Connected toVIN-of the MT3608.B-: Common connection with the-of all 18650 Li-ion Batteries.B+: Common connection with the+of all 18650 Li-ion Batteries.IN-: Connected to-of the solar panel.IN+: Connected to+of the solar panel.
Solar Panel
+: Connected toIN+of the TP4056.-: Connected toIN-of the TP4056.
18650 Li-ion Battery
+: Common connection withB+of the TP4056.-: Common connection withB-of the TP4056.
Documented Code
No code was provided for the microcontroller(s) in the circuit. If code is available, it should be documented here with explanations for each function and routine, including setup and loop structures for microcontrollers like the ESP32.