Water Tank level display with Arduino

By on August 28, 2011
Pin It

We present the candidature of Mr. Danilo Abbasciano that is proposed for the realization of the firmware for the TiDiGino project and that presents us an application with Arduino: Display the level of a tank.

The project reads and displays the height of water level in a well or a cistern.
We will use the open source Arduino hardware device, an ultrasonic Parallax sensor to measure the height of the water, a 16 x 2 LCD display with Hitachi HD44780 driver and a buzzer that is activated when the level exceeds the threshold.

The project, as we have already mentioned, is composed of several parts. A sonar sensor to be placed at the top of the well (at a safe distance from water level) that points downward so as to measure the distance between the point of placement (in our case the highest point of the well) and the surface water. Taking a simple difference between known quantities: the distance between the bottom and the measurement read from the sensor, we get the height of the water surface. Knowing the surface of the well also it is easy to calculate the volume of water present. At predetermined intervals Arduino reads the distances and displays the height and volume of water in the well.

There is a horizontal bar that shows the trend in relative water level inside the well for an easily and immediately read.


If the level exceeds a first threshold warning triggered the alarm buzzer to beep slowly if the level exceeds the second threshold, the ringing frequency increases until the level will drop back below the threshold or when you manually turn off the ringer through a button.

Arduino controls the operating logic, using the following sketches:







 







About Boris Landoni

Boris Landoni is the technical manager of Open-Electronics.org. Skilled in the GSM field, embraces the Open Source philosophy and its projects are available to the community.

Leave a Reply

25 Comments on "Water Tank level display with Arduino"

avatar
  Subscribe  
newest oldest most voted
Notify of
trackback

[…] you need a mechanism to detect the water level within a container or tank, you have several different options. Most people opt for a simple float or probe that sits in the […]

Stefan
Guest

Hello, where can I get a list of the used components? Are they provided by the open-electronics-store?

trackback

[…] here hi plzzzz……… let me know how to do a project " water tank level controller" http://www.open-electronics.org/wate…-with-arduino/ Reply With Quote + Post New Thread « transformer for 555 […]

rojalin
Guest

please give details of this project

Michel Doffagne
Guest

whaow. You are ahead on my project. I want to do similar, but I was wondering about the humidity protection of the ultrasonic detector. Did you do something special ? Nice job.

trackback

[…] We present the candidature of Mr. Danilo Abbasciano that is proposed for the realization of the firmware for the TiDiGino project and that presents us an application with Arduino: Display the level of a tank.  […]

joseph
Guest

can i see the components and and the architectural design of this?

emil
Guest

what is the minimum measurement level?

vedang joshi
Guest

Hey, I am impressed by your project. I am sure that i would try my hand on it but as i am a beginner i don’t know how to write codes. So, i request you to please help me with the code. You can also email me the code at vedangj044@gmail.com Please

Garry Brook
Guest

Where do I find the schematic for this?

shali
Guest

youa progrmmer not working

HASHIM ASHRAF
Guest
its the working program Regards Hashim,Ashraf -(* – *)- #include #define PING_PIN 13 #define BUZZER_PIN 8 #define SWITCH_INT 0 /* 0 => pin 2 */ #define PI 3.1415926535898 #define SUPERFICE_BASE (R_POZZO * R_POZZO * PI) #define SIZE_BAR (16 * 5) #define ALARM_ICON 0 /* code */ #define SOUND_ICON 6 /* code */ #define SOUND_ICON_ON 7 /* code */ #define R_POZZO 0.5 /* raggio pozzo (m) */ #define H_POZZO 146.0 /* cm */ #define SOGLIA_ALLARME_1 100 /* cm */ #define SOGLIA_ALLARME_2 120 /* cm */ #define DELAY_0 60000 /* ms; 1000 * 60 * 1 = 1 min */ #define DELAY_1… Read more »
Davide
Guest

Dear all, I’m trying to assembly one project that §I found on internet, but I have found a few trouble when I have tested it. So, on the display strange characters appear (no number, icon…etc), the sensor doesn’t read the distance. I already checked the connection and with multimeter everything is ok, could be possible the sketchbook is wrong? So my question if is there is somebody can help me to solve this trouble.

Anthony
Guest

hello I am new to Arduino, I copied and pasted the code but I get an error when compiling, please help

Anthony
Guest
when I copy and paste I have this compiling errors: Arduino: 1.7.6 (Windows 10), Board: “Arduino Uno” LCD_Tank_Level_Meter.ino: In function ‘void setup()’: LCD_Tank_Level_Meter.ino:58:11: error: assigning to an array from an initializer list LCD_Tank_Level_Meter.ino:70:11: error: assigning to an array from an initializer list LCD_Tank_Level_Meter.ino:82:11: error: assigning to an array from an initializer list LCD_Tank_Level_Meter.ino: In function ‘void loop()’: LCD_Tank_Level_Meter.ino:146:25: error: call of overloaded ‘write(int)’ is ambiguous LCD_Tank_Level_Meter.ino:146:25: note: candidates are: In file included from LCD_Tank_Level_Meter.ino:7:0: D:ArduinolibrariesLiquidCrystalsrc/LiquidCrystal.h:83:18: note: virtual size_t LiquidCrystal::write(uint8_t) virtual size_t write(uint8_t); ^ In file included from D:ArduinolibrariesLiquidCrystalsrc/LiquidCrystal.h:5:0, from LCD_Tank_Level_Meter.ino:7: D:Arduinohardwarearduinoavrcoresarduino/Print.h:49:12: note: size_t Print::write(const char*) size_t write(const char *str) {… Read more »
Kami Reddy Thejesh
Guest

Hi, I too doing on the Same type of Project .
But need to read the Data Measured on the Tank And So As to control the Flow, Using a Flow Meter .
My Project needs to be Continued From the Point of Reading the data .
Any one Please Suggest, How to read the values .

joe conery
Guest

I made something along these lines awhile back for the sump of my saltwater aquarium. Eventually evaporation/humidity/salt splashing… interfered with it’s ability to function.
The beam is not that focused, so you need to put it fairly close to the water surface so that it doesn’t read the top edges of your container where it becomes susceptible to this.

HASHIM ASHRAF
Guest
Thanks Boris Landoni for this awsome -(* – *)- i figured out some mistakes on your pgm Its the final one; #include #define PING_PIN 13 #define BUZZER_PIN 8 #define SWITCH_INT 0 /* 0 => pin 2 */ #define PI 3.1415926535898 #define SUPERFICE_BASE (R_POZZO * R_POZZO * PI) #define SIZE_BAR (16 * 5) #define ALARM_ICON 0 /* code */ #define SOUND_ICON 6 /* code */ #define SOUND_ICON_ON 7 /* code */ #define R_POZZO 0.5 /* raggio pozzo (m) */ #define H_POZZO 146.0 /* cm */ #define SOGLIA_ALLARME_1 100 /* cm */ #define SOGLIA_ALLARME_2 120 /* cm */ #define DELAY_0 60000 /*… Read more »
Jon Biddell
Guest

I know this is old, but I’m going to get my daughter to build this as a learning experience… Just wondering if it would be possible to incorporate a flow sensor in it as well ??

BorisLandoni
Guest

HI, this is open source, of course you can modify it to insert new features ;-)

Pratik Singhal
Guest

Hi! Very nice project. I have a question. Mostly water tanks are kept on roof and water level needs to be displayed at ground level.
One thing that can be done is connecting sensor wirelessly to Arduino so that sensor can send readings from roof tank to Arduino at ground level.
Can you please suggest any way to accomplish this?
Thank you.

trackback

[…] this are really limited to your imagination! To get started on this project check out the following link. […]

John Schtein
Guest

Thank you for the article, I think that Arduino is indeed the future. I work for the company implementing different remote monitoring solutions (for example, http://www.dataonline.com/tank-level-monitoring/), but not Arduino yet.

Shijil
Guest

Not working, display shows nothing. tried in real and also tried online simulation!