This is an old revision of the document!
Student: Negulescu Irina
Video:
Project archive: Project Arhive
Web app URL: Water Quality SYstem Web Application]
======1. Objective ======
You might think of water quality as a factual declaration of how healthy and suitable a waterbody is for serving its designated function, whether that goal is drainage, enjoyment, or both. The term "water quality" refers to a wide range of data measurements, or "key water health indicators," that take into account a waterbody's physical, chemical, and biological qualities based on its use as well as any direct or indirect effects on flora and fauna. It serves as the standard against which water management strategies are evaluated and their effectiveness is measured. The following factors are determined by the water quality and related water health indicators:
* **Health of ecosystems**
* **Extent of pollution**
* **Safety of human contact**
* **Condition of drinking water**
With the help of an ESP32 WiFi module, a TDS/EC sensor, and a temperature sensor, we will create an IoT-based drinking water quality monitoring system in this project. This entire system can be used to keep track of the water's electrical conductivity, also known as EC, and temperature. On an IoT server called Thingspeak, the EC & temperature values may be checked online from any location in the world.
=== Why do we need to know our water quality ===
<note>
* **Human Health**: The WHO reports that over 80% of diseases are due to drinking contaminated water. Effective water quality monitoring and management ensure that drinking water is safe and not contaminated.
* **Wildlife Protection**: Monitoring water quality helps in identifying pollutants and sources of pollution. That way, stressors to aquatic life can be identified and addressed.
* **Sustainability**: Waterbodies that have been impacted by heavy development and land usage may be negatively impacted and water quality left impaired. Monitoring and management can be an effective tool to increase water quality and maintain a healthy waterbody.
* **Public Health**: Good water monitoring and management ensure that water is clean and safe and that aquatic ecosystems are functioning optimally. It protects public health.
</note>
======2. Hardware description & implementation ======
== ESP32 Board ==
* This is the main harware component of the project. It is used to aquire data from the senosrs and upload them via WiFi to the Real Time Database
{{ :iothings:proiecte:2022:lolin32.jpg?200 |}}
== Water resistant sensor DS18B20 ==
* The DS18B20 uses a single wire to communicate with a central microcontroller and gives 9- to 12-bit (adjustable) temperature readings.
* Requires a 4.7kOhm resistor to connect to the GPIO port
{{ :iothings:proiecte:2022:ds18b20-pinout.png?200 |}}
== Arduino compatible analog TDS meter ==
* The amount of soluble solids that are dissolved in one liter of water is measured by TDS (Total Dissolved Solids). Generally speaking, the more soluble solids that are dissolved in water and the higher the TDS value, the less pure the water is. As a result, one benchmark for measuring the water's cleanliness is the TDS value.
{{ :iothings:proiecte:2022:tds_meter.png? 200 |}}
===== 2.1 Implementation: =====
==== Project Connection Diagram ====
{{ :iothings:proiecte:2022:wqs_circuit_diag.jpg? 600 |}}
[https://how2electronics.com/iot-based-drinking-water-quality-monitoring-with-esp32/ | Image Source
The IoT-based drinking water quality monitoring software with ESP32's source code was created using the Arduino IDE and C/C++. In this project, the code makes extensive use of the following libraries:
Used for this project's front-end development. Used coding languages include HTML, JavaScript, and CSS.
Is a backend platform for creating Web, Android, and iOS applications. It provides a hosting platform, many APIs, a real-time database, and various methods of authentication.
Why was Firebase chosen
Features used
During the elaboration of this project I've encountered some challenges:
This project gives a brief overview of the challenges facing the IoT sector. These are only a few challenges faced in creating these little initiatives with enormous impact, such as choosing the best hardware, making sure all of its components work, and working out how to communicate the acquired data to a large user base.
https://randomnerdtutorials.com/esp32-tds-water-quality-sensor/ TDS meter with ESP32
https://randomnerdtutorials.com/esp32-ds18b20-temperature-arduino-ide/ DS18B20 with ESP32
https://randomnerdtutorials.com/esp32-firebase-realtime-database/ From ESP32 to Firebase