Project showcase


Waterman is a device in form of a box which will check the contamination level of water and also the availability of water in the pipeline.

  • 20 respects

Components and supplies

Necessary tools and machines

Hy gluegun
Hot glue gun (generic)
PVC Pipe

Apps and online services

About this project

Waterman is a device in form of a box which will check the contamination level of water and also the availability of water in the pipeline. The Waterman box is about 24 x 10 x 10 cm, having a flow sensor on one square side and small PVC pipe on another square side for leaving of water. There is one turbidity sensor and a conductivity sensor inside the box which are connected to the Arduino at the top of the box. There is also a buzzer connected with Arduino to produce signal alarm in case if needed.


When the water will come in the pipe it will check the quality of water according to the values of sensors. It will also check if water is not coming then it will also send a message to the owner. If the value of quality testing of water is above the threshold, i.e. water is contaminated, it will raise siren and send the warning message to alert that contaminated water is coming through the pipeline. Other than that it sends an email to municipality in case water comes dirty 'n' number of times.

What Inspired Us?

Many time municipal cooperation cut the water supply without giving prior notice. Apart from that, contaminated water which is unsuitable even for bathing purposes. Our problem is mainly based on the CONTAMINATED WATER by the municipal. Underground constructions sometimes result in the leakage of the pipeline leading to mixing of water with undesirable substances or sewage water. Also, a lot of sludge(silt particles) gets mixed with the water and makes water unfit for domestic use.

Initially, to overcome from these problems, people have to manually check whether water is coming or not by hit and trial method. For this, they are bound to wait until late night or earlier in the morning.

To overcome this problem, we started to make this project.

Some of the Testing and Acquired Sensor Data

Turbidity sensor gives us values near to 0 when water is milky/translucent and vica versa.

Conductivity sensor gives us values directly proportional to the amount of salts present in water and our tests shows that value of more than 300 out of 1023 from the conductivity sensor confirms that water is not drinkable.

Flow sensor was used to support our IoT controllable thing, so that user could know whether water is coming or not.


Water Man Code Arduino
void setup() {
  // put your setup code here, to run once:
pinMode(A2,INPUT);attachInterrupt(A2, pulse, FALLING);
float a,b,c;int count=0,flag=0;
void pulse()
void loop() {
  // put your main code here, to run repeatedly:
attachInterrupt(A2, pulse, FALLING);

if(b>400 || c==0 || a>2)
  printf("%f %f %f %d",a,b,c,flag);

void turbidity()
  a= analogRead(A0)*(5/1023);
  void conduct()
    b= analogRead(A1);
    void flow()
        c= 1;}
        else{ 0;}
Arduino CodeArduino
We used it for sending data to the NODE MCU from our sensors
byte sensorInterrupt = 0;  // 0 = digital pin 2
byte sensorPin       = 2;

float calibrationFactor = 4.5;

volatile byte pulseCount;  

float flowRate;

unsigned long oldTime;

void setup()

  pinMode(sensorPin, INPUT);
  digitalWrite(sensorPin, HIGH);

  pulseCount        = 0;
  flowRate          = 0.0;
  flowMilliLitres   = 0;
  totalMilliLitres  = 0;
  oldTime           = 0;
  attachInterrupt(sensorInterrupt, pulseCounter, FALLING);

 * Main program loop
void loop()
   if((millis() - oldTime) > 1000)    // Only process counters once per second
    // Disable the interrupt while calculating flow rate and sending the value to
    // the host
    // Because this loop may not complete in exactly 1 second intervals we calculate
    // the number of milliseconds that have passed since the last execution and use
    // that to scale the output. We also apply the calibrationFactor to scale the output
    // based on the number of pulses per second per units of measure (litres/minute in
    // this case) coming from the sensor.
    flowRate = ((1000.0 / (millis() - oldTime)) * pulseCount) / calibrationFactor;
    // Note the time this processing pass was executed. Note that because we've
    // disabled interrupts the millis() function won't actually be incrementing right
    // at this point, but it will still return the value it was set to just before
    // interrupts went away.
    oldTime = millis();
    // Divide the flow rate in litres/minute by 60 to determine how many litres have
    // passed through the sensor in this 1 second interval, then multiply by 1000 to
    // convert to millilitres.
    flowMilliLitres = (flowRate / 60) * 1000;
    // Add the millilitres passed in this second to the cumulative total
    totalMilliLitres += flowMilliLitres;
    unsigned int frac;
    // Print the flow rate for this second in litres / minute
    Serial.print(int(flowRate));  // Print the integer part of the variable
    Serial.print(" ");  
    Serial.print(analogRead(A0));// Print tab space
    Serial.print(" ");  
    // Print the cumulative total of litres flowed since starting
    // Reset the pulse counter so we can start incrementing again
    pulseCount = 0;
    // Enable the interrupt again now that we've finished sending output
    attachInterrupt(sensorInterrupt, pulseCounter, FALLING);

Insterrupt Service Routine
void pulseCounter()
  // Increment the pulse counter
NODE MCU Arduino
We used this to recieve the data from Arduino and send to our App made on Blynk. App will recieve the data through Wi-Fi module ESP8266 in nuilted in Node Mcu
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
  // Debug console

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "", 8442);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);

void loop()

Custom parts and enclosures

3D model and layout of the project
It will somewhat make you understand ,where each sensor will be placed


Similar projects you might like

Room temperature sensor with display on Mobile

Project showcase by Kaustubh Agarwal

  • 54 respects

Eco-Thing #1 "Eco-Smart-Container V1.0"

Project tutorial by Alexis Santiago Allende

  • 28 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 75 respects


Project in progress by biswa11

  • 12 respects

Monitoring Temperature Remotely with Blynk for Dummies

Project in progress by Cmtelesann

  • 11 respects
Add projectSign up / Login