Development of An Ultrasonic Sensor Based Oil Level Indicator
Development of An Ultrasonic Sensor Based Oil Level Indicator
INDICATOR
ABSTRACT
The quest to save electrical and water resources, we developed an automatic water level
controller with pump switching system for both overhead and underground tanks. This module
monitors and displays level of water in a tank. When water is at the specified lowest level, pump
is automatically turned ON to refill until the tank is filled to its maximum capacity, then pump is
turned OFF thereby saving both inadequate electrical and water resources. The design consist of
Power supply, microcontroller, sensor, display and pump units. Arduino UNO, a microcontroller,
which is commercially available, is replaced with a cost effective, electronically and
environmentally rugged assemblage from available cheap components. The 20kHz ultrasonic
distance sensor, remotely senses level of water by measuring length of emptiness or fullness of the
tank from recorded time of arrival of echo from water surface. This length is interpreted and
displayed by programme based microprocessor in percentage (%) of the capacity on Liquid
Crystal Display (LCD) unit.
I. INTRODUCTION
The facility requirements in many industries, farms, hostels, hotels, offices include an
overhead tank for water, which is usually fed through an electric pump that is switched OFF
when the tank is filled up and switched ON when it is empty. So, the most common way of
knowing when the tank is filled is by observing when it overflows the brim. Depending on the
type of liquid being handled, overfilling of such a tank could lead to a great liquid material losses
ranging in the order of thousands of Naira per week depending on the extent of such application.
These losses can be prevented if the tank is monitored automatically by incorporating a feedback
monitoring mechanism which would be capable of stripping the pump ON or OFF accordingly.
Although pumps with variable speed motors could be more efficient than ON/OFF mechanism,
but the former are expensive to get and maintain especially for homes and small(or medium)
applications in Africa and other developing countries.
More so, commercially available water level sensors are expensive being imported into the
country and as such cannot be used in many homes and facilities. Sustainability of available
water resources in many areas of the globe is now a major issue. This has much to do with poor
water allocation, inefficient use, lack of adequate and integrated water management. Water is
indispensible input in agriculture, industries and homes. Therefore, efficient use and monitoring
of water are critical in proper water management.
Moreover, the common method of water level control for homes and offices is simply to start
the feed pump at a low water level and allow it to run until a higher water level is reached in the
water tank. Proper monitoring is necessary to ensure water sustainability and disbursement
linked to sensing and automation, and such program based approach entails microcontroller
based automated water level sensing and controlling [12].
More importantly, advancement of control system in engineering have created different ways
in which automatic switching systems can solve water management problems in homes and
industries especially in the developing countries. This control system has an automatic pumping
system attached to it so as to refill the tank once the liquid gets to the lower threshold, while
switching off the pump once the liquid gets to the highest threshold [Leigh.D, (2003)]
The aim of this present work is to develop an independent water level control system with
design based on ultrasonic transducer (sensor) thereby addressing problems of untimely response
and frequent breakdown of contact sensors due to surface coating and corrosion from the water
medium which characterized existing water level control based contact sensors. Our developed
system controls, monitors and maintains the water level in the tank (overhead or surface ) and
ensures the continuous flow of water round the clock without the labor stress of manually
switching the pump ON or OFF thereby saving time, electrical energy, water, and prevent
overworking of the feed pump.
The liquid levels determination is done by electronically converting the time of arrival of
echo as recorded by the receiver (R) of the ultrasonic sensor from incident waves from
transmitter (T) as shown in Fig. 6.
It is known that sound travels through air at about 344m/s(1129ft/s),The total distance (D) the
travelled by the sound wave from the transmitter(T) to get water surface and back to the
receiver (R) of the ultrasonic sensor ( as shown in the fig. 1) can be determined by taking the
total time(t) for the round trip distance(to and fro) and multiply it by speed(s) of sound waves in
air, which is 344mls (or 1129ft/s).
In short, we can write
D = t x 344 (or 1129) (1)
Note that the round trip distance means that the sound wave travelled two times distance (to
and fro liquid level) before it was detected by the receiver (R) of the ultrasonic sensor. The actual
distance, d from which we can compute the liquid level (Volume) is obtained from:
𝑫
d= (2)
𝟐
The shape of the tank containing the liquid determines how we compute the volume. In this
work, we consider cylindrical shape and as such the volume (V) is computed using
Volume, V = 𝝅r2h (3)
The r is the structurally measured radius of the circular section of the cylindrical tanks, h,
which is the height of the cylindrical tank and will be taken as the actual distance, d obtained
above. Then, we can write
V = 3.14 xr2d since 𝝅 ≈ 3.14 (4)
These parameters (r and d) will be treated as inputs to a programmable unit of the module as
implemented by Arduino IDE.
More so, for convenience, the level and volume is expressible in percentage of the maximum
volume using the equation:
𝑫𝒆𝒕𝒆𝒓𝒎𝒊𝒏𝒆𝒅 𝒗𝒐𝒍𝒖𝒎𝒆
Volume in Percentage = x 100 (5)
𝐌𝐚𝐱𝐢𝐦𝐮𝐮𝐦 𝐕𝐨𝐥𝐮𝐦𝐞
All these numerically stages are implemented electronically and final results: real time
volume (liquid level) in percentage (%) is display on the Liquid Crystal Display (LCD) unit of
the module.
Fig. 5: Shows the system ready for System Fig. 6: shows the Transmitter (T: up) and
Calibration Receiver (R: down) of the Ultrasonic sensor
VI. RESULTS
An ultrasonic sensor based water level indicator was developed and constructed using
available components and materials and it is successfully tested. The electronic circuitry was
realized, especially by replacing the factory based, commercial and fragile Arduino UNO with
cost effective and electronically rugged assemblage. A transparent cylinder vessel was used as a
water tank model to test the developed system.
The non contact ultrasonic sensor is strategically positioned on the peak of the vessel thereby
solving the problems of frequent replacement of contact and submersible sensor which
characterize existing commercial and expensive water indicator.
The module detected, controlled and maintained the level of water. The level of the water in
the vessel is indicated in % of the volume holding capacity of the tank which is displayed on the
Liquid Crystal Display (LCD) unit as shown in fig.7.
Figure 7 50.81% of Volume displayed as output on the LCD