Water Tank Overflow Notifier With LinkitONE

by ssarthak598 in Circuits > Arduino

4649 Views, 50 Favorites, 0 Comments

Water Tank Overflow Notifier With LinkitONE

IMG_1081.JPG

Does your water overflow every time? Do you forget to close your water valve when your water tank is full? Then I have a solution to the problem!

Here i'll show you how to make a water overflow notifier that notifies you when ever your water tank leaks. You will automatically get an SMS when your water leaks.

What Do You Need?

IMG_1039[1].JPG
IMG_1069.JPG

1 . LinkitONE board

2. Water tank.

3. Breadboard

5. LinkitONE GSM antena

6. Battery pack

7. Relay module

Hacking Into the Water Tank!

IMG_1070.JPG
IMG_1071.JPG
IMG_1073.JPG
IMG_1072.JPG
IMG_1074.JPG

Now we'll look for all places where we can connect a water sensor and then detect if there's any current flowing (or water is there or not).

I found the top of my water tank to be the right place to install the device easily. So i fixed my breadboard and Linkit there.

Attaching the Electrodes

IMG_1076.JPG
IMG_1075.JPG

Now we need to attach the electrodes which will detect water leaks. We'll attach it from the cap above the tank.

Attaching the LinkitONE

IMG_1077.JPG
IMG_1078.JPG
IMG_1080.JPG

Now attach the LinkitONE to the electrodes. Check it carefully so that water does not leak and destroys the board..

Finalizing the Setup

IMG_1081.JPG
IMG_1079.JPG

Now finalize the setup by sticking it to the tank. It also makes it look cool :P

Setting Up GSM and SMS

IMG_1034[1].JPG
IMG_1031[1].JPG
IMG_1035[1].JPG

Set up the GSM and SIM card by inserting it into the card slot. Attach the GSM antenna as well.

Do it carefully as we are doing everything in water!

Writing Some Code

The code is really simple here!

We're just taking some digital readings from sensor, detecting if circuit is completed and processing them and then sending SMS.

CODE:

------------------------------

#include

void setup() {

Serial.begin(9600); pinMode(8,INPUT);

char smsnum[14]="xxxxxxxxxx";

}

void loop()

{

int iread=digitalRead(9);

if(iread==1) {

char textforsms[]="Fridge door open! Please check!";

sms.beginSMS(smsnum);

sms.println(textforsms);

sms.endSMS();

}

delay(50000);

}

------------------------

Now burn this code and then lets start playing!

Testing It Out

IMG_1095.PNG
IMG_1082.JPG

Now test your system out!

Just overflow get once!

Excited? Impress your friends!