Water Level Monitoring

7,298

16

14

Introduction: Water Level Monitoring

About: I am a Computer Science Graduate, and a Data Warehouse Engineer by profession. I am a DIY enthusiast, ardiuno/raspi hobbiyst, Love to hack electronics and stuff.

I built this thing, because i was tired up of climbing all the way up to my terrace to check the water level of my tanks, and switch it on/off every time. In this instructable i have built asystem which detects the water level of my water tank and pings the level via a blutooth module to my android phone/tablet. Also I could control the motors remotely from my phone too !! ... Lets get started then..

Things Required :

1) Arduino Uno

2) HC-05 (Bluetooth module)

3) Ultrasonic sensor (HC-SR04)

4) Relays

5) Android smartphone

Step 1: Working Demo of My Project...

Step 2: Getting Your Connections Right..

We use a Ultrasonic Sensor (USS) for the detection of water level. The working of a USS can be found here

(USS Datasheet). Use this to understand its functionality. I will upload the arduino sketch, the same functionality would be implemented over there. Connect your USS to the arduino board and upload the sketch. Once done with the connections, check whether you are receiving any data over the serial port. If it is displaying zero, reset the connections and make sure you point the USS to any obstacle so that you would get some value. Once done connect the Bluetooth module to your arduino board. Check my Night_Light Tutorial for the bluetooth instructions. Now install the android app and select the bluetooth module from there and chek if the correct values are being sent from the arduino. Now deploy the entire system upon the tank. Use an external power source for the arduino, and cover them up from preventing any sort of damage. To control the motors you would need to use relays. Please follow my Home_Automation instructable to know how to hook up your relays with your household appliances. Once done you could control them from your app too. I will upload more details on this soon.

1 Person Made This Project!

Recommendations

  • Robots Contest

    Robots Contest
  • Sewing Challenge

    Sewing Challenge
  • Reclaimed Materials Contest

    Reclaimed Materials Contest

14 Comments

0
ErwinM5
ErwinM5

Question 1 year ago

I made this project for my son water well, only I see something on my smartphone every now and then and the numbers are negative how come this
M son water well is 2.5 meters deep, how can I transfer this to the app, I mean 2.5 m water = full , 1.25 water = half full and 50 cm water is empty
The SFR04 works up to 4.5 meters anyway i think

DSC02035 Klein.jpg
0
ErwinM5
ErwinM5

Answer 1 year ago

Hai

I did some research myself and this is the code now, only now I still have to adjust the aia file for the phone, so that I get full at 2.5 meters, then empty at 30 cm and between 30 and 70 cm almost empty (fill but you still have some time)

[code]
byte trig = 12;
byte echo = 11;
int vcc = 8;
int t = 0;
int d = 0;
#define MAX_Distance
void setup() {
Serial.begin(9600);
pinMode(trig, OUTPUT);
pinMode(echo, INPUT);
pinMode(vcc, OUTPUT);
}
void loop() {
digitalWrite(vcc, HIGH);
trig_fun();
t = pulseIn(echo, HIGH);
d = t * 0.034/2 ; // d = 0.012 * t ;
// String s = String(d);
d = map(d, 250, 0, 0, 250); // d = map(d, 0, 20, 20, 0);
Serial.print(d);
delay(2000);
}
void trig_fun() {
digitalWrite(trig, LOW);
delayMicroseconds(5);
digitalWrite(trig, HIGH);
delayMicroseconds(10);
digitalWrite(trig, LOW);
}
[/code]

0
kasham170
kasham170

Reply 8 months ago

I am use this program..level is working good but motor not working.

0
kasham170
kasham170

8 months ago

How not start motor

0
kasham170
kasham170

Reply 8 months ago

Level is properly work but motor not working...

0
Viki02
Viki02

4 years ago

plz send me the program link

0
AnaA91
AnaA91

4 years ago

plz send me the programme
anaabdoking@gmail.com

0
MDw5
MDw5

5 years ago

Hi dude.

How did the chart, so that the filling of the tank will be shown in real time?

as I get the .aia code? you sell the code? or could you send me to my email: migueldelahoz95@gmail.com please?

0
preethamk3
preethamk3

5 years ago

plz send me the programme

chiteega@gmail.com

0
שיא1
שיא1

5 years ago

can you send me the aia file?????

eizikpc@gmail.com

thanks