The Design of a Mobile Phone-Based Remote-Control Application to Submersible Motor for Effective Water Supply

In the last few decades, several monitoring systems integrated with water level detection have been the major research focus. Production boost and its sustainability depend mainly on sustainable water supply, measuring water level, and avoiding waste of water is an essential task for all stakeholders. There-fore, the aim of this paper is to design and implement a mobile phone-based remote control. This will be applied to control the operation of a submersible motor in a water tank. The water level in the tank is detected and the device remotely turns the motor pump on/off. The design process is accomplished by developing an android application that works on GSM technology to man-age the filling of water tank. An AT89C51 microcontroller is used for the desired programming. At the transmitting end, sensor is used for level detection and GSM module is used to send the information to user. According to this information, user controls the on/off operation of the pump. A SIM card is required for its operation and it works on attention (AT) commands. After the design and implementation of the device, the test results showed that all features of the device worked properly, and the device functions exactly as expected. More significantly, the paper has shown that ultrasonic sensors can be used to determine the level of water in a water tank and a GSM module can be used to control a submersible pump. The design and implementation of this device can help to reduce waste of time and power. Ultimately, it avoids water wastage thereby ensuring availability, conservation, and sustainability of water supply.


Introduction
Water is basic need of all lives and it is commonly used in agriculture, in many industries, as well as for domestic purposes. Sustainability of available water resource in many regions of the world is now a pressing issue. This problem is quietly related to poor water allocation, inefficient use, and lack of adequate and integrated water management [1]. Therefore, efficient use and water monitoring potential are of premium concerns for home or office water management system. Many existing systems use computers, database technologies for monitoring and controlling irrigation activity, for example, [2]. In the last few decades, several monitoring systems integrated with water level detection have been accepted [3]. Measuring water level and avoiding waste of water is an essential task for government and residence perspective. To say the least, Galgalikar [4] proposed real-time atomization of agricultural environment for social modernization of Indian Agricultural System which focuses on using an ARM7TDMI Core 32-bit microprocessor, GSM services which operate through SMS as a link between ARM processor and centralized unit. In another study, a remote irrigation monitoring and control system was designed for continuous move systems and was recommended for application in agriculture [5]. In addition, automated drip irrigation systems [6] [7] [8] [9] using linear programming [6] were proposed.
The concept of linear programming properly makes use of available water resource to irrigate the field affected in such a way to get maximum profit at lower cost. Moreover, a smart irrigation technique of remote-controlled irrigation system with the help of voice commands was designed [10].

Nowadays, Global System for Mobile Communication (GSM) based Control
System implements the applications of the GSM technology by using GSM networks as the control system. This technology has been proposed and will act as an embedded system, which can monitor and control appliances and other devices. The data studied here show the results that may be useful for any business that plans to implement a remote monitoring system using Cellular Network (GSM/GPRS). Although submersible pumps variables are used in the experiment, other remote monitoring applications are possible using air communication channels, such as monitoring pollutant emissions, river and reservoir level alerts, landslide warnings, wind turbine.
A GSM-SMS remote measurement and control system for greenhouse based on PC-based database system connected with base station was introduced [2]. Base station was developed by using a microcontroller, GSM module, sensors and actuators. In practical operation, the central station receives and sends messages through GSM module. Criterion value of parameters to be measured in every base station is set by central station, and then in base stations parameters including the air temperature, and air humidity. Embedded System based submersible motor control to prevent it from overload, dry run and single phasing using GSM for water supply was proposed [3]. Mobile phones have been used in the control of irrigation [11] [12]. In [11], an embedded-based remote-control  [12], a GSM-based automatic irrigation control system for effective and efficient resource management via application of android mobile phones was designed.
This application makes use of the General Packet Radio Service (GPRS) feature of mobile phone as a solution for water supply. Control system (GSM) is used to inform the user about the exact field condition. The information is passed onto the user request in the form of SMS. These projects are similar to the device we seek to design and implement in this paper, which can be used to control and monitor the submersible motor used for water supply via a GSM network. This project provides the development of the mobile phone as remote-control application for submersible motor pump, which could be used in water supply. This system was built using GSM with voice recognition technique and moisture sensor unit to control water supply [11]. Remote sensing and control of water supply systems using a distributed wireless sensor network were introduced [11] [13].
Distributed infield sensor-based water supply systems offer a potential solution to support site-specific water supply management that allows producers to maximize their productivity while saving water. A design and implementation of GSM-based fertigation system were implemented [14]. By using GSM system, Start and Stop action of the motor that feeds the field with water can be controlled only by sending the GSM command. Through GSM mobile is used as a control of the whole process and backbone of a whole system. This system can be used to control water from any distance. To add to the record, automatic power meter reading system using GSM network was developed [15]. It utilizes the GSM network to send power usage reading to authorize office to generate the billing cost and send back the cost to the respective consumer through SMS.
The intention of this project is to reduce time, power and avoid the wastage of water. Therefore, this problem can be stopped by developing an android application that works on GSM technology. Thus, the detection of water level is done and accordingly, this pump is turned on/off as the situation applies. An AT89C51 microcontroller is used for the desired operation. At the transmitting end, a sensor is used for level detection and GSM module is used to send the information to user. According to this information, user controls the on/off operation of the pump. A SIM card is required for its operation and it works on attention (AT) commands.
The strategic objectives of this paper are in threefold: design a remote control for submersible pump, construct a remote control for submersible pump, and turn OFF and ON of a submersible pump through SMS Notifications.
This device will help minimize the volume of water wasted or loss during production when the pump is unable to stop pumping. It will also reduce the frequent use of the pump since it sends signal to the operator. In addition, it will reduce production cost and signal the operator about the volume of water in storage tank. Additionally, it can inform the operator about the volume of water used in a day.

Method
This chapter presents the design concept which is the block diagram and circuit diagram of the design. It also presents the construction steps, both the hardware components employed and summary.    Therefore, the microcontroller will cause the ultrasonic sensor to send an ultrasonic sound wave through the echo pin of the sensor. This transmitted sound wave is reflected or bounced back to the receiver of the sensor by any obstacle (water in the tank) in the path of the sound wave. The microcontroller is going to calculate the time the sound wave was reflected back with respect to when it was transmitted. This will make the microcontroller know the distance or level of water in the tank. The microcontroller has been calibrated to the tank during programing. Therefore, when the tank is empty, the microcontroller will sound an alarm through the buzzer and activate the submersible pump through the relay. The microcontroller will display the level of water in the tank and the state of the pump through the LCD screen. When the tank gets full, the microcontroller cut power to the submersible pump through the relay. The submersible pump can be controlled through the GSM module by a text message as well. The text message received by the GSM module shall be interpreted by the microcontroller and either turn ON the submersible pump or turn OFF the submersible pump as may be warranted by the situation. The microcontroller then sends a feedback to the sender of the text message through the GSM module.

Construction Procedure
The circuit was designed on a personal computer using the software named li-Journal of Sensor Technology vewire. The circuit was first constructed on a breadboard; the programming was written using the Arduino IDE programing software and then uploaded unto the microcontroller. The components were then removed from the breadboard and then placed on a Vero board for soldering. The components were carefully connected and soldered together on a Vero board. The output from one of the power supplies was connected to the main circuit by connecting the positive output terminal of the power supply to the V cc terminal of the GSM module together with the main circuit and the negative output terminal of the power supply was also connected to the ground terminal of the GSM module together with the main circuit as ground. The current circuit is connected based on the circuit diagram. The positive terminal of the other power supply connects to the common of the relay and the negative connected directly to the negative terminal of the submersible pump. The output from the power supply module is connected as the V cc and ground of the microcontroller circuit. The LCD screen is soldered to the pins of the microcontroller. The output from the microcontroller was connected to the bases of the amplifier transistors (Q1 and Q2) through the series resistors (R1 and R2). The emitter of the transistors is connected to ground and the collector of Q1 connected to the buzzer, the collector of Q2 connected to the relay (RL1). The transmitter and receiver pins of the GSM module were connected to the corresponding pins of the microcontroller. The trigger pin and echo pin of the ultrasonic sensor were connected to the microcontroller pins. The construction was based on the circuit diagram provided. The circuit was packaged in a plastic box. The ultrasonic sensor was installed under the plastic box and holes were made on top of the water tank. The box was fitted onto the cover or top of the water tank. The circuit was attached to the box by the help of a glue gun and its sticks.

5 VDC Power Supply Module
Switching regulated 5 VDC power supplies, sometimes referred to as SMPS power supplies, switchers, or switched mode power supplies, regulate the 5 VDC output voltage using a complex high frequency switching technique that employed pulse width modulation and feedback. Switching regulated power supplies also employed extensive Electromagnetic Interface Filter (EMI) filtering and shielding to attenuate both common and differential mode noise conducted to the line and load. Galvanic isolation was standard in 5 VDC switchers, affording the user input to output and output to ground isolation for maximum versatility. Switching regulated power supplies are highly efficient, small and lightweight, and are available in both AC-DC single and wide-adjust output and DC-DC configurations. Low Profile wide adjusts output switchers can be voltage or current regulated and are externally programmable.
This design uses to separate power supply module, a 5 VDC supplies power to the circuit including the GSM module and a 5 VDC supplies power to the submersible pump. Voice, SMS and data information with low power.
• VDD TTL UART interface The TTL UART serial interface, you can connect the MCU like 51 MCU or ARM or MSP430 directly. The pin of VDD is used to match voltage of the TTL. The GSM module was used in this circuit to send and receive SMS as and when instructed.

Microcontroller (Atmega328)
The atmega328 is a single-chip microcontroller created by Atmel in the megaAVR family (later Microchip Technology acquired Atmel in 2016). It has a modified Harvard architecture 8-bit RISC processor core. The high-performance Microchip 8-bit AVR RISC-based microcontroller combines 32KB ISP flash memory with read-while-write capabilities, 1KB EEPROM, 2KB SRAM, 23 general purpose I/O lines, 32 general purpose working registers, three flexible timer/counters with compare modes, internal and external interrupts, serial programmable USART, a byte-oriented 2-wire serial interface, SPI serial port, 6-channel 10-bit A/D converter (8-channels in TQFP and QFN/MLF packages), programmable watchdog timer with internal oscillator, and five software selectable power saving modes. The device operates between 1.8 -5.5 volts. By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed.
The microcontroller was used as the brain of the circuit by comparing the current before the energy meter and the current after the energy meter.

Resistor
A resistor is an electronic component which offers opposition to the flow of electric current in a circuit. The resistors used in this circuit were used to limit the flow of current to the base of the amplifier transistor. Journal of Sensor Technology

Transistor
A transistor is an electronic component that operates as a switch or as an amplifier. The transistors used in this circuit were used for the purpose of amplification.
Transistor (Q1) was used to amplify the signal from the microcontroller to sound the buzzer. Transistor (Q2) is used to amplify the signal to the relay.

Diode
A diode is an electronic component that allows current to flow in only one direction (D1). A diode has two terminals, namely, the anode and cathode. The diode was connected in a circuit in two ways. Either in the forward biased or reversed biased.

Buzzer
A buzzer is an electronic device or a transducer that converts electrical signal into sound. The buzzer is used in the circuit provides sound notification.

Liquid Crystal Display
The Liquid Crystal Display (LCD) is a type of flat panel display which uses liquid crystals in its primary form of operation. The LCD technology has been able to replay other display technologies. The function of the LCD screen is to convert the electrical signal from the microcontroller into numeric and alphabetical display. The LCD screen used in this design is to display the level of water in the water tank and display the state of the pump.

Ultrasonic Sensor
The ultrasonic sensor is a device that measures distance using ultrasound waves. The ultrasonic sensor consists of an ultrasound transmitter and an ultrasound receiver. The ultrasound transmitter generates and transmits ultrasound waves. The ultrasound receiver also receives ultrasound waves. The ultrasonic sensor is employed in the circuit to determine the level of water in the water tank.

Result
This chapter presents the testing and results of the project.
Before the system was completely connected to the power source, series of test were carried out from the power supply through the ultrasonic sensor to the GSM module. Again, from the power supply through the microcontroller to the buzzer, LCD screen and then to the submersible pump. Connections between the various sections are also checked. Tests like the continuity test and the polar-Journal of Sensor Technology ity test were performed to ensure that there is no short circuit in the system; also, there are no breaks or no joint in the connections. The polarity test was done to ensure that all positives are connected to the positive source and all negatives are connected to the negative source. After the series of checking were carried out, we then powered the system and the results were positive. The LCD screen display was good, the ultrasonic sensor could read the level of water in the water tank. The microcontroller was able to compare codes and control the relay. The submersible pump was able to pump water and the GSM module was successful in sending and receiving SMS.
The design of submersible pump control using GSM system consisting of an ATmega328 microcontroller, an ultrasonic sensor, GSM module, power supply module, diodes, relay, transistors, buzzer, etc. The power supplied 5 VDC energy and the 12 VDC energy. The 5 VDC was able to supply the microcontroller circuit and the GSM module and the 12 VDC was able to supply the submersible pump.
The main function of the ultrasonic sensor which is to read the level of water in the water tank was successful. The microcontroller was able to communicate with the ultrasonic sensor. The microcontroller was able to process the information from the ultrasonic sensor and take action. The LCD screen was able to display the instructed information.

Discussion
The design of the water pumping system in this project considered the manual and automatic operation of a submersible pump. The system uses an ultrasonic sensor to automatically control the submersible pump by measuring the distance of water from the top direction of the water tank to the bottom of the water tank.
The system again uses a GSM module to manually operate the submersible pump. The discussion of the project result is in two parts. The first part talks about the automatic control and the second part talks about the manual control mode.
In the automatic control, when the circuit was initially connected to the power supply, the ultrasonic sensor reads the level of water in the water tank. When the tank is empty, the submersible pump is activated to start pumping water into the water tank. When the water in the water tank was full, the submersible pump was deactivated. The LCD screen displayed the level of water in the water tank.
In the manual control, when the circuit was initially connected to power supply, the GSM module went into the initializing mode. The "remote start" SMS is received by the GSM module, the GSM module communicates with the microcontroller to start the submersible pump. After the activation of the submersible pump, the GSM module sends SMS to notify the user that the pump is activated. When "remote stop" SMS was received by the GSM module, the GSM module communicated with the microcontroller to stop the submersible pump.
After the deactivation of the submersible pump, the GSM module sends SMS to notify the user that the pump is deactivated. Table 1 presents the cost analysis of the construction of the design. Based on the item description, specification and quantity, a total amount of GH¢ 1000.00 is needed to implement the design. 10% (GH¢ 100.00) and 5% (GH¢ 50.00) of the total amount are allocated for preliminaries and contingency, respectively.
Therefore, for the successful implementation of the research, a sum total of GH¢ 1150.00 is required (Table 1).

Conclusion
The aim of this research is to design and construct a system that uses a GSM module to start and stop a submersible pump. The constructed work employs an Atmega328 microcontroller, power supplies, an ultrasonic sensor, a relay module, a GSM module and a submersible water pump. The system employs SMS to manually control the submersible pump and employs an ultrasonic sensor to automatically control the submersible pump. The ultrasonic sensor senses the level of water in the water tank. The GSM module also receives SMS and sends the signal to the microcontroller. The microcontroller will activate or deactivate the relay controlling the pump based on the signal from the ultrasonic sensor.
The microcontroller again provides the information or characters displayed by the LCD screen and the GSM module. The LCD screen displays the level of water in the water tank and displays the state of the pump. The GSM sends a notification message. The system also employs a buzzer that provides a sound output when the water tank is empty. The constructed work will help reduce power and water wastage in most institutions. More significantly, the research has shown that ultrasonic sensors can be used to determine the level of water in a water tank and a GSM module can be used to control a submersible pump. If used on a large scale, the device can provide major contribution to the conservation of water for both present and future generations.

Recommendation
It is recommended that the system be interfaced with a radio frequency module to reduce the operation cost of the project.