Skip to content

πŸ’§ An IoT-based Smart Water Meter system for real-time monitoring of water quality (pH, TDS) and flow rate using ESP32 and Arduino UNO. It includes automatic motor control, cloud logging via ThingSpeak, and a web dashboard for remote access.

Notifications You must be signed in to change notification settings

Sandeepkumar-S-18/Smart_wireless_water_meter_with_Web_DB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚰 Smart Wireless Water Meter with Web Dashboard

A Smart IoT-based Water Metering System that enables real-time monitoring of water usage, ensures water quality, and supports automated pump control. Built using the ESP32 and Arduino UNO, and integrated with the ThingSpeak IoT platform, this system enables remote access, live data visualization, and intelligent automation for water conservation.

Banner


🎯 Project Objectives

  • Optimize water consumption through smart metering
  • Monitor flow rate, pH, TDS, and tank levels
  • Enable automated water pump control
  • Provide alerts and visualizations via a web dashboard

πŸ“¦ Features

  • πŸ“‘ Wireless Monitoring using ESP32 & Wi-Fi
  • 🌐 ThingSpeak Dashboard for real-time IoT analytics
  • 🌊 Flow Rate Measurement with flow sensor
  • πŸ’§ Water Quality Detection via TDS & pH sensors
  • πŸ” Automated Pump Control with Relay Module
  • πŸ–₯ LCD Display for local data output
  • πŸ›  Reliable Dual MCU Setup using ESP32 + Arduino UNO

πŸ› οΈ Tech Stack

Component Description / Role
ESP32 Main microcontroller with Wi-Fi
Arduino UNO Secondary controller for sensor interfacing
pH Sensor Measures water pH level
pH Amplifier Amplifies pH sensor signal
TDS Module Monitors total dissolved solids
Flow Rate Sensor Measures water flow rate
Relay Module Switches water pump on/off
Water Pump Controls water supply
LCD 16x2 Display Displays real-time readings locally
Flyrobo Supplier of components
Software Arduino IDE, Embedded C
Cloud Platform ThingSpeak IoT Platform

🧰 Prerequisites

  • ESP32 Development Board
  • Arduino UNO
  • Flow Sensor
  • TDS Sensor
  • pH Sensor with Amplifier
  • Relay Module
  • Water Pump
  • LCD 16x2 Display
  • Jumper Wires, Breadboard, Power Supply
  • Arduino IDE + ThingSpeak Account

βš™οΈ Hardware Setup

Schematic

  1. Connect all sensors to Arduino UNO and ESP32 accordingly.
  2. Ensure correct voltage levels and power supply.

πŸ’» Firmware Installation

  1. Install Arduino IDE and add board support for ESP32.
  2. Install libraries
  3. Upload the respective firmware to:
    • ESP32: for Wi-Fi and ThingSpeak communication
    • Arduino UNO: for reading and preprocessing sensor data
  4. Configure:
    • Wi-Fi credentials
    • ThingSpeak channel & API keys

🌐 ThingSpeak Setup

  1. Create a new ThingSpeak Channel
  2. Add the following fields:
    • TDS Level
    • pH Level
  3. Copy the Write API Key and use it in your ESP32 code.

πŸš€ System Workflow

  1. The sensors gather real-time data via Arduino UNO and ESP32.
  2. Data is sent to ESP32, which uploads it to ThingSpeak.
  3. ThingSpeak displays data using dynamic graphs.
  4. The Relay triggers the pump based on sensor thresholds.
  5. The LCD displays key metrics locally for manual monitoring.

πŸ“‚ Repository Setup

  1. Clone this repository:
    git clone https://github.com/sandeepku-s/Smart_wireless_water_meter_with_Web_DB.git
  2. Navigate to the project directory:
    cd Smart_wireless_water_meter_with_Web_DB
  3. Open the project in VS Code.

Software Requirement:

Arduino IDE used to upload programming in ESP32 Board with required library.

ThingSpeak is a cloud-based IoT analytics platform service that lets you collect, view, and examine real-time data streams. Data can be sent from your devices to ThingSpeak, enabling instantaneous live data display.


πŸ“ˆ Results

πŸ’§ Flow Rate

Real-time flow rate monitoring using FS400 sensor.

Flow Rate Result

🌫 TDS (Water Quality)

TDS module captures Total Dissolved Solids in water and sends values to ThingSpeak.

TDS Result

πŸ§ͺ pH Level

The pH sensor with amplifier circuit helps determine the acidity or alkalinity of water.

pH Result

🌐 ThingSpeak Dashboard

Live analytics with charts for all monitored parameters.

ThingSpeak Channel

🧱 Working Prototype

Physical setup of the smart water metering system using ESP32, Arduino UNO, and sensors.

Model 1 Model 2


Under the Guidence:

Team members:


πŸ“ Folder Structure

Here is an overview of the project structure:

Smart_wireless_water_meter_with_Web_DB/
β”‚
β”œβ”€β”€ Images/
β”‚   └── ...
β”‚
β”œβ”€β”€ Reports/
β”‚   └── ...
β”‚
β”œβ”€β”€ Paper/
β”‚   └── ...
β”‚
β”œβ”€β”€ Arduino_Code/
β”œβ”€β”€ Esp32_Code/ 
└── README.md

About

πŸ’§ An IoT-based Smart Water Meter system for real-time monitoring of water quality (pH, TDS) and flow rate using ESP32 and Arduino UNO. It includes automatic motor control, cloud logging via ThingSpeak, and a web dashboard for remote access.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages