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

ESP32-Based Water Quality Monitoring System with Solar Charging

Image of ESP32-Based Water Quality Monitoring System with Solar Charging

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 the Temp VDD Red of the Temperature Sensor, Vin of the ESP32, VOUT+ of the MT3608, VCC of the PH Meter, + of the DFRobot Dissolved Oxygen Sensor, and + of the Sonda Sensor Turbidez.
    • pin2: Connected to D4 of the ESP32 and Temp DQ Data Yellow of the Temperature Sensor.

Microcontroller

  • ESP32 (30 pin)
    • Vin: Connected to the VOUT+ 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 the Signal pin of the PH Meter.
    • D35: Connected to the S pin of the Sonda Sensor Turbidez.
    • D32: Connected to the A pin of the DFRobot Dissolved Oxygen Sensor.
    • Other pins are not mentioned in the provided net list.

Sensors

  • PH Meter

    • Signal: Connected to D34 of the ESP32.
    • VCC: Connected to the VOUT+ of the MT3608 and other components as mentioned above.
    • GND: Common ground as mentioned above.
  • DFRobot Dissolved Oxygen Sensor

    • +: Connected to the VOUT+ of the MT3608 and other components as mentioned above.
    • -: Common ground as mentioned above.
    • A: Connected to D32 of the ESP32.
  • Temperature Sensor

    • Temp GND Black: Common ground as mentioned above.
    • Temp VDD Red: Connected to the VOUT+ of the MT3608 and other components as mentioned above.
    • Temp DQ Data Yellow: Connected to D4 of the ESP32.
  • Sonda Sensor Turbidez / Turbidity

    • S: Connected to D35 of the ESP32.
    • +: Connected to the VOUT+ 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 to OUT+ of the TP4056.
    • VOUT-: Common ground as mentioned above.
    • VIN-: Connected to OUT- of the TP4056.
  • TP4056

    • OUT+: Connected to VIN+ of the MT3608.
    • OUT-: Connected to VIN- 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 to IN+ of the TP4056.
    • -: Connected to IN- of the TP4056.
  • 18650 Li-ion Battery

    • +: Common connection with B+ of the TP4056.
    • -: Common connection with B- 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.