Design and Simulation
Design and Simulation
1. INTRODUCTION:
ABSTRACT: Basic tank water level control utilizes 2 control
In this study, a multi-tank water level controller circuit switches; one low water level switches that
was developed using the Arduino Nano makes to ON the filling borehole pump and one
microcontroller board as the PLC of the system. high water level switch that breaks contact to shut
The use of this PLC allowed for flexibility of OFF the borehole pump power source. With this
control, display and reduction of human inference control, the level and volume of water in the tank
in operating the system. A hydrostatic pressure between these two control points is not known.
based approach was adopted in measuring the This simple design is ideal for a one-water Tank
volume of liquid in each of the six tanks. Six system, consequently, this water tank must be
MPX4115 pressure sensors were used in obtaining sufficiently big to meet the estate or building’s
the pressure in the tanks. The outputs of these water demand.Because conventional storage water
sensors are fed to the analog input of the Arduino level control assumes that the storage unit is ONE
Nano (PLC). These inputs are calibrated to a scale tank, most estate now resort to manual operation in
of 100% to give the volume of liquid in the tanks. refilling of the water in a multi-tank utility system.
The volume of liquid in each individual tank is This project aims to control the water inflow and
used in controlling the supply valve of that tank storage in 2-8 tanks using one Arduino Nano
when filling. When the volume of liquid in a tank is programmable logic controller.The level in each
less than 80%, the valve is opened to allow for tank is calculated by sensing the pressure due to
filling, and closed at 80% full. The volume of each the height of water column, that is, the hydrostatic
of the six tanks is summed to give the volume of pressure head of the water column. Each tank will
liquid in the entire system. This volume controls have a 0 -3psig MPX4115 pressure sensor attached
the borehole pumping machine. to it at the base to sense the hydrostatic pressure
Keywords: Programmable Logic Controller (PLC), due to the water height within the tank.With the
Arduino Nano, Multi tank, Water level controller, pressure sensed and inputted as a voltage signal
MPX 4115. into the analogue input of the Programmable Logic
Controller (PLC), the height of water in that
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 832
particular tank and hence its volume is calculated Alam (2016), developed an Automated Water
and displayed as a percentage. Pump Controller (AWPC). This system used three
Several attempts have been made by previous water level sensors to monitor the water level of
researchers in developing tank water level control both the ground-level water reservoir and the
systems. rooftop residential water tank. Once the supply of
Anyanwu (2012) in his work used MC14066 water decreases down to a point of concern,
integrated circuit to realize automatic regulator roughly 10% of the tank capacity, the controller
suitable for water level sensing and control. This turns off the water pump. This prevented the water
water level sensor was tested in real time pump from siphoning air which can result in the
application by using it to control the level of water water pump’s malfunction or complete breakdown.
in a tank fed by a single phase 0.5 HP AC pump. Similarly, the controller turned off the water pump
This system recorded inaccurate volume when the rooftop tank reached a water level of
calculation and display due to limited sensor greater than or equal to 95%. This prevented the
capabilities.Again, it is still limited to one tank per tank from overflowing and wasting water.
sensor per Arduino. Considering the works of previous researchers
In the works of Asaad et al. (2013), Arduino was reviewed in this chapter, the automatic water level
used in automating the process of water pumping controller and pump controllers developed thus far
into a tank by detecting the level of water in the fail to address the issues of presenting a graphic
tank per time using a floating water level sensor. indication or display of the volumetric amount of
This sensor was designed out of a floating material water present in the tank being studied or
attached to the arm of a potentiometer. The system controlled per time. They also failed to develop
had the ability to detect the level of water in a tank, water level controller systems which could be
switch on or off the pump accordingly and display applied in a multi-tank system where the pump and
the status on an LCD screen.This system was filling of the different tanks is dependent on the
limited to 12v pumps therefore making it collective average volume of water in all tanks and
unsuitable for industrial or domestic application. independent of the level of water in another tank
Erua & Anyasi (2014), developed a closed loop respectively.
automatic water level controller using a mercury This project looks at automating the water filling
float sensor. Their system incorporates two mains and availability aspect. It provides a system that
contactors which are energized to provide a direct can measure, to reasonable accuracy, the quantity
online start of the motor. An over load relay which of water used by a small community.The system
senses the presence of excess current and designed in this work is one which intends to solve
disconnect the supply and a mercury flood switch the afore mentioned challenges by developing a
which uses the Archimedes principle of floatation multi-tank water level controller, which can
to provide the electrical contact to switch ON or effectively control the pump (supply) of water to
OFF supply to the motor when the tank is empty or six tanks. This is to be based on the cumulative
full respectively. This was capable of providing a average volume of water in all six tanks. Also, in
seamless utilization of water at domestic and this system, filling of each tank is independent of
industrial level without causing spillage. This another tank as separate valves are to be used in
controller is not feasible for application in controlling the supply of water into each tank. This
residential homes as the mercury float sensor used work intends to achieve this using an Arduino
is expensive and not readily available. Nano, six MPA4115 pressure sensors, a pump, and
Yuriy et al. (2015) designed a PLC based system to six/eight valves. This work is to be designed and
control liquid level by using Radar sensor simulated on the Proteus professional Suite
remotely. This system measures the liquid level, environment, with the program governing the
volume, temperature, and pressure and controls system developed on the Arduino IDE.
these measurements remotely. The system consists 2. MATERIALS AND METHODS:
of the Radar sensor, temperature sensors, discrete The volume of liquid in a vessel of measure level
level sensors and a programmable logic controller. depends solely on the shape of the vessel. For the
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 833
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 834
2 2
To linearize equation 3.4, around the desired p = pressure in liquid (N/m , Pa, lbf/ft , psi)
height, the out-flow equation can be linearized. ρ = density of liquid (kg/m3, slugs/ft3)
And equation 3.6 is rewritten approximately as: g = acceleration of gravity (9.81 m/s2, 32.17405
𝑄𝑄2 𝐶𝐶 ∗𝑎𝑎
≈ 2 = 𝑐𝑐1 (10) ft/s2)
2gH �2𝑔𝑔ℎ
𝑄𝑄2 = 𝑐𝑐1 ∗ 2𝑔𝑔𝑔𝑔 h = height of fluid column - or depth in the fluid
(11)
𝑑𝑑𝑑𝑑 where pressure is measured (m, ft).
𝐴𝐴 𝑑𝑑𝑑𝑑 = 𝑄𝑄1 − 𝐶𝐶1 ∗ 2𝑔𝑔𝑔𝑔 (12) For the purpose of this work, a MPX4115 pressure
Dividing through by A sensor is used.
𝑑𝑑𝑑𝑑 𝑄𝑄 𝐶𝐶 ∗2𝑔𝑔𝑔𝑔
= 𝐴𝐴1 − 1 𝐴𝐴 (13)
𝑑𝑑𝑑𝑑 MPX4115 pressure Sensor
Where
𝐶𝐶 ∗𝑎𝑎 This is an integrated Silicon Pressure Sensor
𝐶𝐶1 = 1 (14)
�2𝑔𝑔ℎ designed to sense pressure in an altimeter or
𝐼𝐼𝑎𝑎𝑎𝑎𝑎𝑎
𝐶𝐶2 = 𝐼𝐼 (15) barometer (BAP) application. In interfacing the
𝑚𝑚𝑚𝑚𝑚𝑚
𝐼𝐼𝑎𝑎𝑎𝑎𝑎𝑎 = 𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴ℎ𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 sensor to the Arduino Nano, only three pins are
𝐼𝐼𝑚𝑚𝑚𝑚𝑚𝑚 = 𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚 required. Pins 1, 2, and 3. Pin 1 is connected to an
Substituting C1 and C2 into equation 3.13 ADC pin of the Arduino Nano, pin 2 connected to
𝑑𝑑𝑑𝑑 𝑄𝑄 a∗𝐼𝐼𝑎𝑎𝑎𝑎𝑎𝑎 ∗2𝑔𝑔𝑔𝑔 the common GND and pin 3 to the +5V output of
𝑑𝑑𝑑𝑑
= 𝐴𝐴1 − (16) the Arduino Nano. In this work, six of this sensor
�2𝑔𝑔ℎ∗𝐴𝐴∗𝐼𝐼𝑚𝑚𝑚𝑚𝑚𝑚
2.2 Circuit Components and Design are required to determine the pressure in all six
The multi tank water level controller designed in tanks. The connection of the six sensors to the
this work consists of an Arduino Nano PLC board, Arduino ADC pins is shown in Fig 3.
a MA4115 pressure sensors, a 16 X 2 LCD screen,
six 5V DC low trigger relays, 2N3904 NPN
transistors, IN4007 diodes and a 5V DC power
source. This design was executed on the Proteus 8
professional design suit.
i. Pressure Sensors/Transducers.
A Transducer is a device that converts variations in
a physical quantity, such as pressure or brightness,
into an electrical signal. This study is aim at
measuring Tank volume by it liquid level/height
and this height is calculated based on the pressure
a known column height of liquid will exert at the
tank base.
Fig 3: MPX 4115 Arduino Connection.
Consequently, the Transducer chosen for this ii. Relay
project is a differential pressure transducer. In order to effectively control the filling of the six
Considering Fig 1 and relating to storage tank tanks, relays are used in cutting off voltage supply
liquid (water) level measurement, Hydrostatic to the supply valves of the tanks and also in
pressure p can be calculated as controlling the switching ON and OFF of the pump
p=ρgh based on the average percentage water volume in
all six tanks. A total of seven relays are used. Six
for controlling the valves of the tanks and one for
Where
controlling the pump actuation. These relays
require a driver circuit in order to operate thus,
IN4007 diodes and 2N3904 NPN transistors are
used in driving/controlling the relays from the
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 835
Arduino digital output pins. The relay/Valve driver The Arduino Nano is a Programmable logic
circuit is shown in Fig 4. controller with an onboard ATMega 328
microcontroller IC chip. The Arduino Nano serves
as the main processor in this design. It is
responsible for interpreting and calibrating analog
inputs from the pressure sensors, performing the
actuations on the valve and pump and also
controlling the Display of the LCD.
v. Proteus 8.7 SP3 Professional
This is a version of the Proteus Design suite
developed by Labcenter Electronics. It is widely
used for electrical schematic design, PCB layout
design and Virtual simulation. This software
application is chosen for the purpose of this work
due to its user friendly interface, vast Library of
components, Virtual Terminal display and real
time simulation. The entire circuit is designed on
this platform. With each individual component
picked form the component library. The complete
circuit designed on Proteus can be seen in Fig. 6.
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 836
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 837
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 838
GSJ© 2020
www.globalscientificjournal.com
GSJ: Volume 8, Issue 3, March 2020
ISSN 2320-9186 839
GSJ© 2020
www.globalscientificjournal.com