Automatic Over Head Watertank Filling System Using Arduino

Introduction: Automatic Over Head Watertank Filling System Using Arduino

Problem / Introduction:

My grandma lives in a big house, she has walking difficulty due to age. Most of the time she switches on the electric pump and goes for other household chores, since it takes one and half hours to refill the full tank. When the tank is full it over flows and goes to the drain. On hearing the overflow sound my grandma starts walking to the pump control switch and switches off the pump.it takes approximately 10-12 minutes for this. This wastes lots of precious ground water and expensive electricity. So, I was thinking how to help her in stop wasting precious resources and saving money. Then I got the idea of Arduino based automation.

CAUTION/WARNING: This project involves dangerously lethal high voltage of 220 Volts AC while connecting to the electric water pump. If no proper care taken, it can kill you. Please take help from an adult Electrical Experts /adult technician who knows about electric wiring & its safe operation.

Supplies

Bill of materials

1.) Arduino nano

2.) old unused 5volts USB mobile charger

3.) 5 volts Arduino relay shield

4.) Plastic enclosure

5.) Long wires to connect tank and Arduino (old internet/Ethernet cable will work)

Step 1: How It Works

Here we leverage the natural electrical conductivity property of water to be used as sensing mechanism. Also, we will limit the current to very minimal so that its absolutely safe for humans & animals. We will leverage the built-in pull-up resistor in Arduino. The basic principal is to implement the SR (Set-Rest) Flip Flop.

So, when the water level in the tank goes low, we will start the Motor (Set to True) and when the upper level is reached, we will stop the Motor (Reset to True). To achieve it we just need 3 wires, one is placed physically at the required lowest level, the second one at the top level & one more wire for reference at the lower most level which will be connected to the ground in Arduino.

Step 2: Arduino Code

void setup()
{

pinMode(2,INPUT_PULLUP);

pinMode(4,INPUT_PULLUP);

pinMode(13, OUTPUT);

}

void loop()

{

int STARTPB = digitalRead(2);

int STOPPB = digitalRead(4); if (STARTPB == 1)

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(13, HIGH);

}

if (STOPPB == 0) {

digitalWrite(13, LOW);

}

}

Step 3: Prototype Testing Images

All best! Please try it & let me know if it helps you.

Arduino Contest 2020

Participated in the
Arduino Contest 2020

Be the First to Share

    Recommendations

    • First Time Author Contest

      First Time Author Contest
    • Halloween Contest

      Halloween Contest
    • Fashion Challenge

      Fashion Challenge

    16 Comments

    0
    niranjan2021
    niranjan2021

    Reply 1 year ago

    Thanks for your inputs & pointers. Yes there are many ways to solve a problem. Using discrete components is always good, but it requires strong knowledge on fundamental of analog electronics, which I'm yet to learn in my school(I just finished my 7th grade in school). More over it needs soldering equipment, which I don't have access to. With my limited knowledge I tried to solve a problem, which I felt it might be useful for others as well. Hence shared this in instructables. More over the objective for me was to introduce coding to other kids like me :). Thanks a lot for your inputs, help and time. Good day!

    0
    TonyC150
    TonyC150

    1 year ago

    Great work but one important change needed, don't inject DC current into the water us AC(can be a square wave) because DC will cause corrosion of your equipment

    0
    niranjan2021
    niranjan2021

    Reply 1 year ago

    Hi TonyC150, Thanks for your comments. Yes technically you are right when the Voltage & currents are higher. Here in this circuitry, we are using built-in pull-up resistor which is in the order of several Kilo Ohms @ 5 Volts, which means the current is very minimal in the order of less than 0.5 milli Amps. This will not cause corrosion immediately. But in the long run after several decades, yes there will be corruption of the electrodes may happen. you can mitigate this by using a high grade stainless steel probes or Brass Probes. The targeted life is for about 30 years. So I believe this is long enough for any product to sustain. Hope you will agree with me.
    Alternatively, you can flip the polarity after certain timer elapsed, but it will increase the complexity & decrease the reliability. Hence to keep in simple for now, let us go with DC itself.

    0
    renzjm
    renzjm

    1 year ago

    Good work indeed !

    0
    Prasad Adavi
    Prasad Adavi

    1 year ago

    Good one Niranjan....keep going...Arduino has enormous potential to be creative. Keep exploring...god bless you

    0
    niranjan2021
    niranjan2021

    Reply 1 year ago

    Thanks!!!

    0
    arumugam.anand
    arumugam.anand

    1 year ago on Step 3

    Excellent work, Niranjan! This will help your grandmother a lot to save electricity and also the precious water. Pretty useful innovation.

    0
    niranjan2021
    niranjan2021

    Reply 1 year ago

    Thanks!!!

    0
    niranjan2021
    niranjan2021

    Reply 1 year ago

    Thanks!!!

    0
    mahegaik
    mahegaik

    1 year ago

    Good one .simple but efficient way of solving. Most if time the solution to the problem.is as simple and geniune as this one. Good effort. Keep up the good work.

    0
    niranjan2021
    niranjan2021

    Reply 1 year ago

    Thanks!!!