Introduction: Water Level Indicator Cum Notifier Using HCSR04
Water level indicator cum notifier is a device which continuously monitors the level of water in the water tank and notifies you if needed. It notifies you if the tank is full or empty so that you can turn on or off the pump to stop wastage of water and unexpected water shortage.
- After installing this device you won't need to worry about waterwastage or watershortage.
- It continuously monitors the level of water in the water tank and plot a graph showing the current level of water.
- It also indicate the level by showing Full, Enough, Low and VeryLow on the LCD.
- If you are filling the water tank, then at Full level (before over flow) it will inform you by Sirensound and it won't stop the siren sound until you turn off the pump. So feel free to do other works when you turn on the pump and stop worrying about waterwastage
- If water level is below VeryLow level then it will also inform you by sirensound and display TurnOnPump. The siren won't stop until the water limit is above VeryLow level.
Step 1: Tools and Material
- Arduino UNO (or any arduino compatible board)
- Ultrasonic sensor (preferably HCSR04)
- Speaker (preferably smaller one than what I have)
- An on/off push button (if not available then also fine. Its only to turn ON/OFF the back lighting of LCD)
- Power supply
- Connecting wires (Female to female jumper wires)
- A Long wire for connecting ultrasonic sensor with the arduino (Length depends on the distance between controller board and sensor)
- Soldering iron (if not available then also it's fine)
- Electronic multimeter
- Wire stripper
- Drill machine
- A computer
Step 2: Connect Electronic Stuffs Together
Follow the image given above to connect ultrasonic sensor, LCD, button, speaker and arduino all together.
- Vss - GND
- Vdd - +5v
- Vee - GND
- rs - 4 (arduino pin number)
- rw - 5
- enable - 6
- D4 - 8
- D5 - 9
- D6 - 10
- D6 - 11
- Anode(pin 15 of LCD) - +5v
- Cathode(pin 16 of LCD) - button
Ultrasonic Sensor :
- Vcc - +5v
- Trig - 3 (arduino pin number)
- Echo - 2
- GND - GND
- +ve pin - A5 (arduino pin number)
- -ve pin / GND - GND
- pin 1 - cathode pin of LCD
- pin 2 - GND
Step 3: Mounting the Ultrasonic Sensor
We are going to mount ultrasonic sensor on the cap of the water tank. For this purpose drill two holes as shown in the image to pass the cylindrical part (Receiver and Transmitter) of the sensor through it. Water tank in my house is placed on the roof so I used a very long wire as you can see in the image.
Now mount the sensor and wire it (Vcc, Trig, Echo, GND) and also place a plastic top on it and seal it using glue or glue gun so as to make it water proof.
- Drill an extra hole on the water tank top (not shown in the image), because in summer season water vapor will condense in the inner side of the water tank cap and may damage the sensor or interfere with the reading.
- Use four strands of wire because there are four pins in the sensor.
- If you are not experienced with the drill machine then take some help from the elders.
Step 4: Final Assembly and Programming
- Use a project box to assemble all the components and keep the mouth of the speaker outside of the box so that you can hear the siren clearly and loudly.
- Also take care of padding so as to avoid short circuit.
- Connect arduino to the computer and upload given program.
- In the program you may need to change some variables. Its all mentioned in the program.
If you do everything as instructed in this instructable you will surely make it and save some water. So Happy Making :-)