Skip to content

yashnayan8795/Water-Quality-Monitoring-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Water-Quality-Monitoring-Project

A real-time water quality monitoring system using Arduino Nano to measure TDS, EC, and temperature, with results displayed on a 16x2 I2C LCD. Ideal for sustainable water management and analysis.

Sustainable Water Quality Monitoring System with Arduino Nano

This project is designed to monitor water quality in real-time by measuring Total Dissolved Solids (TDS), Electrical Conductivity (EC), and Temperature using an Arduino Nano. The system displays the readings on a 16x2 LCD with I2C interfacing for easy monitoring and decision-making regarding water quality.

Features

  • Real-time water quality monitoring.
  • Measures TDS, EC, and Temperature.
  • Displays data on a 16x2 I2C LCD screen.
  • Utilizes a TDS sensor and digital temperature sensor.
  • Simple and cost-effective solution for water quality management.

Components Used

  • Arduino Nano: Microcontroller for processing data.
  • TDS Sensor: Measures Total Dissolved Solids in water.
  • Temperature Sensor: Measures water temperature.
  • 16x2 LCD with I2C: Displays the sensor data.
  • Jumper wires, Breadboard: For connecting the components.

Circuit Diagram

Circuit Diagram

Real one

Installation

Libraries Required:

  • DallasTemperature: For interfacing with the temperature sensor.
  • OneWire: For communication with the Dallas temperature sensor.
  • LiquidCrystal_I2C: For displaying data on the LCD screen.

You can install these libraries via Arduino IDE:

  1. Open Arduino IDE.
  2. Go to Sketch > Include Library > Manage Libraries.
  3. Search for each library by name and click Install.

Code:

  • Clone this repository or download the files.
  • Open the WaterQualityMonitor.ino file in the Arduino IDE.
  • Select your board and port under Tools.
  • Upload the code to the Arduino Nano.

Steps to Use This Code in the Arduino IDE:

  1. Create a New Folder:

    Create a folder with a name like TdsReader. Arduino requires the .ino file to be in a folder with the same name.

  2. Save the File:

    Save the file as TdsReader.ino inside the TdsReader folder.

  3. Open in Arduino IDE:

    Open the TdsReader.ino file in the Arduino IDE.

  4. Add Required Libraries:

    Install the necessary libraries in the Arduino IDE: OneWire library DallasTemperature library LiquidCrystal_I2C library Go to Tools > Manage Libraries and search for these libraries to install them.

  5. Select the Correct Board and Port:

    Go to Tools > Board and select the appropriate board (e.g., Arduino Uno, Nano, etc.). Go to Tools > Port and select the correct COM port for your connected Arduino.

  6. Upload the Code:

    Click the Upload button in the Arduino IDE to upload the code to your board.

Formulae Used

  1. Temperature Coefficient:
    T.C. = 1.0 + 0.02 * (Twater - 25.0)

  2. Electrical Conductivity (EC):
    EC = (rawEC / (T.C)) * EC_Calibration

  3. Total Dissolved Solids (TDS):
    TDS = (133.42 * EC^3 - 255.86 * EC^2 + 857.39 * EC) * 0.5

Example Output

The system displays the TDS, EC, and temperature values on the LCD as shown below: TDS EC Temp 333 0.53 25.44

Applications

  • Water Quality Monitoring: Suitable for aquariums, hydroponics, and household water analysis.
  • Sustainable Water Management: Helps ensure safe and healthy water usage.

Conclusion

This simple and affordable water quality monitoring system provides real-time insights into water contamination levels, empowering users to make informed decisions about water consumption.

Acknowledgments

We would like to thank Professor Debashish Dash from VIT Vellore for providing valuable guidance and support throughout this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributors

Kamalesh Chakraborty
Vedant Singh Jadon
Yash Nayan

About

A real-time water quality monitoring system using Arduino Nano to measure TDS, EC, and temperature, with results displayed on a 16x2 I2C LCD. Ideal for sustainable water management and analysis.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors