Project tutorial
Arduino Tank Monitor

Arduino Tank Monitor © GPL3+

This project consists of monitoring the level of water in two tanks.

  • 5,997 views
  • 1 comment
  • 12 respects

Components and supplies

About this project

Introduction

Level measurement, together with pressure, temperature and flow, are the most important and common variables in refineries, textile, food, pharmaceutical and chemical plants. At the level of plant automation, HMI (Human Machine Interface) is also required.

In this project, I included both measurement and HMI in an easy way. This project consists in monitoring the level of water in two tanks. Information about the level of the liquid in the tank will be shown in a screen where you will be able to see the numeric values and the graphic values.

There are many ways to sense level. You could use pressure sensors, ultrasonic or discrete (switches) sensors. I use potentiometers attached to a floating mechanism to bring “analog data” information to the Arduino board.

For the HMI, I found an application for Arduino in the web, develop by Ulrich Albert Maassen. The web address to download this application is: www.SerialComInstruments.com

In the next figure, I show the screen for my project. Blue boxes represent the tanks; in the upper side are the numeric values expressed in % (0-100). At the top of the screen, you can see the trending of both levels of the tanks.

SerialComInstruments allows  you to create environments to see trends, X-Y graphics, numeric displays, vertical meters and digital displays. By selecting the field “instruments,” you can select a diversity of resources for your project.

Then, you can select the serial “Interface” where you specify: Com Port, Baud Rate,and you can also change the Data Protocol.

If you select “Show”, you will be able to Connect and Disconnect the interface, and you can go to the Edit Mode. In this mode, you can build your display.

Next, some pictures of the project:

Code

Tank_MonitorArduino
// This routine let you to monitor level in two tanks:
// Standard protocol to select instruments:
 void SendString(byte InstrNr, int MW) { 
Serial.print('#');
Serial.print(InstrNr);
Serial.print('M'); 
Serial.print(MW); Serial.print('<'); }
void setup() {
  // initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue0 = analogRead(A0);
   // read the input on analog pin 1:
  int sensorValue1 = analogRead(A1);
  // Convert the analog readings (which goes from 0 - 1023) to a level value(0 - 100%):
  float voltage0 = sensorValue0 * (100.0 / 1023.0);
  float voltage1 = sensorValue1 * (100.0 / 1023.0);
    // print out the value you read:
SendString(2,voltage0); // Instrument #02 - Vert Meter
SendString(3,voltage1); // Instrument #03 - Vert Meter
SendString(41,voltage0); // Instrument #41 - Num Display
SendString(42,voltage1); // Instrument #42 - Num Display
SendString(90,voltage0); // Instrument #90 - Min Trend
SendString(91,voltage1); // Instrument #91 - Min Trend
delay(100); 
}

Schematics

Circuit Diagram:
Wiring:

Comments

Author

Zezarandrade
zezarandrade
  • 3 projects
  • 13 followers

Additional contributors

Published on

June 14, 2016

Members who respect this project

Dscn9663DefaultPhoto

and 9 others

See similar projects
you might like

Similar projects you might like

FlowerPot Monitor

Project tutorial by Andrei Florian

  • 2,059 views
  • 1 comment
  • 13 respects

Arduino PC Monitor

Project tutorial by zakrzu

  • 29,113 views
  • 13 comments
  • 39 respects

Monitor Your Garage Door

Project showcase by victormarinus

  • 4,383 views
  • 1 comment
  • 11 respects

Event Monitor for Independent Senior Citizens

Project tutorial by Rethink IoT

  • 3,868 views
  • 4 comments
  • 26 respects

Battery Charger Monitor

Project tutorial by David Kanceruk

  • 3,503 views
  • 1 comment
  • 18 respects

Monitor Fire and Temperature Using ARTIK Cloud

Project tutorial by Samsung IoT

  • 2,806 views
  • 0 comments
  • 21 respects
Add projectSign up / Login