Water Tank Overflow Notifier With LinkitONE
by ssarthak598 in Circuits > Arduino
4649 Views, 50 Favorites, 0 Comments
Water Tank Overflow Notifier With LinkitONE
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?
1 . LinkitONE board
2. Water tank.
3. Breadboard
5. LinkitONE GSM antena
6. Battery pack
7. Relay module
Hacking Into the Water Tank!
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
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
Now attach the LinkitONE to the electrodes. Check it carefully so that water does not leak and destroys the board..
Finalizing the Setup
Now finalize the setup by sticking it to the tank. It also makes it look cool :P
Setting Up GSM and SMS
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
Now test your system out!
Just overflow get once!
Excited? Impress your friends!