Design, Development and Fuzzy Logic Based Control of A Remotely Operated Underwater Vehicle
Design, Development and Fuzzy Logic Based Control of A Remotely Operated Underwater Vehicle
Abstract Underwater marine exploration still remains a A single or dual %.()! (.()# %$)'%"( ) +"5(
mystery. The purpose of this paper is to address the issues in thrusters, enabling the pilot to alter the heading, depth or
design and development of underwater vehicles with obstacle position of the ROV. In this paper, three major aspects related
avoidance and maneuvering assistance for operator in marine to the design of ROV is discussed in detail and is represented
environment using fuzzy logic controller. A symmetrical, cost
as block diagram in the Fig.1.
effective and small sized underwater Remotely Operated Vehicle
(ROV) with three thrusters is designed for testing control The objective of this paper is to design and develop a low cost
algorithm and performance of system. Kinematics of the ROV is and upgradable ROV (for accomplishing complicated tasks in
developed relating speed of rotation of thrusters with future) which overcomes navigational complications.
linear and angular acceleration. A comparative study of the
response for simple if-else logic and with fuzzy logic
Mechanical design is made using SolidWorks software. User
controller for navigation is made and evaluated. A Graphical interface is designed using Python and obstacle avoidance
User Interface (GUI) with live feed is provided to the operator feature is incorporated using Fuzzy logic. Flex sensors are
for wider range of visual observation of underwater used to sense obstacles $ 5( &'%-#). and interfaced
environment and navigational aid. with microcontroller to avoid obstacles and to achieve better
maneuverability. An inbuilt power source is used to enable
KeywordsROV; Fuzzy logic controller; Obstacle avoidance; the ROV to come up to the surface in case of tether cut or
computer simulation failure.
INTRODUCTION II. MECHANICAL DESIGN
An ROV is a tethered underwater robot which is Design parameters to maintain symmetry of the ROV
controlled remotely from a device usually placed in a boat or which in return affects the buoyancy, propellers to achieve the
ship. Tether is a group of cables that carry electrical power, required thrust and to have low drift coefficient are selected.
control signals, video and data signals back and forth between The hull is made out of acrylic tube to have an aerodynamic
the operator and the ROV. Additional equipment like flow that decreases drag resistance. Such a choice is made to
SONAR, magnetometer, a still camera, a manipulator or have less weight and the structural dimension of the ROV is
cutting arm, water samplers, instruments that measure water finalized to 40 cm length, 30 cm width and 10 cm height, with
clarity, light penetration and temperature are commonly an estimated weight of 3.2 kg with all electromechanical
added to exp$)+"5(&")( components and circuit accommodated within the ROV itself.
The weight was determined using SolidWorks Model during
the design phase of the ROV by using datasheet of all the
components and weighed after assembly.
A. CAD Modeling
Mechanical structure is the backbone of the ROV [1] and
is built from components as simple as possible without
compromising any functionality in such a way that the
dynamics of the vehicle is not affected. Transparent acrylic
tube of 3 mm thickness, 300 mm length, and 100 mm diameter
is chosen for making hull because of its strength and ability to
repel water. The circular shape allows for smooth
aerodynamic flow of water. A camera housed inside the
transparent hull would give a clearer and smooth picture. Two
such tubes with different diameters, one for circuit housing
and other for battery housing are used. End Caps are machined
from a thick block of propylene to fit the acrylic tube tightly
and a groove is made to fix the O-rings to seal the tube
Fig. 1. Major Aspects in ROV Design
properly.
the distance between thruster 2 and 3 (0.15 m). For the thrust
Flex sensor 2 Flex sensor 1 coefficient Kt = 0.35 (from datasheet using P/D ratio 1.4) and
465, the viscous factor of water (1.002 * 10-3 Ns/m2), the thrust
45$').))*)%'(+$.
Thruster 2
* I &A 70; , = (1)
Hence maximum thrust from a single thruster having four
Thruster 3
blades with high angles is,
Thruster 1
* I >< ' (2)
Flex sensor 3
"')%$45))$.)(+$.
Flex sensor 4
+ I */ (3)
Fig. 2. Top View of 5( Model
Maximum linear acceleration of ROV = 2*a = .6313 mm/s2
Holes are drilled on it to accommodate for the screw threads
to pass through. Polypropylene sheets are used in construction Acceleration in all the three translational degrees of freedom
of the ROV5( outer structure in order to give it high strength, surge, sway and heave is as follows,
rigidity, durability and less weight. 1 I 4N I Q&A 7, = O0;; G 0<; PR/ (4)
2I (5)
3 I -N I Q&A 7, = 0:; R/ (6)
Acceleration in all the three rotational degrees of freedom roll,
pitch and yaw is as follows,
5I (7)
8I (8)
9 I Q&A 7, = O0;; H 0<; PR/. (9)
where n1, n2 and n3 are the speed of rotation of the thrusters
T1, T2 and T3 in RPM respectively. Fig.5 gives the Cartesian
parameter representation of the ROV in 3 axes [6] and thruster
Fig. 3. Isometric ,%5( odel position in the physical system.
The sheet was cut out and holes were drilled as per design in
order to accommodate the hull, battery pod and the motors.
The top view and isometric view of CAD model of the ROV
are shown in Fig. 2 and Fig. 3 respectively. The completely
assembled ROV system with components mounted on it is
shown in the Fig.4.
To simulate the movement of the robot [4], [5], a GUI is shows the flowchart for ROV control in traverse mode.
created in MATLAB using the above kinematic equation and Control is accomplished in such a way that previous
path of the ROV can be calculated from the same by giving actuation is dismissed before any new actuation takes place.
thruster speed as input. The simulated path for sample thruster
inputs is shown in the Fig.6.
A robust electrical design has been implemented to control B. Tether Cut or Recovery Mode
the actuator direction by using both GUI and semi-automated In this mode, tether cut or failure would have occurred
control using flex sensors for obstacle avoidance. ATMEGA so that input command through serial connection will not be
328P microcontroller is chosen for interfacing sensors, available. So, microcontroller makes its own decision to
actuators and serial communication. Three H-Bridge motor control the motor by relay actuation using analog reading
driver with ULN2003A current driver IC is used for driving from each of the flex sensors. The level of analog voltage
the thruster motors. The electrical components integration of received from the flex sensors will be proportional to the
the ROV is shown in the Fig. 7. physical bend caused by an obstacle if present. So, the ROV
will try to avoid the obstacle by taking reverse path for a
preset time and continuously moves upward to reach the water
surface. Fig. 9. shows the flowchart for ROV control in
recovery mode.
fuzzy logic controller acts as brain of the ROV in taking 60 150 160] and [140 150 240 255] for both thruster 2 and 3.
decisions [3]. Fuzzy logic controller reduces the operator Fig.12 shows output membership function in fuzzy toolbox.
fatigue and strain, as obstacle detection and avoidance is taken
care of. The Obstacle Avoidance Control (OAC) layer is
implemented using fuzzy logic. T1, T2 and T3 represent the
thrust of center, left and right thrusters respectively, which are
calculated from each layer. Of the two signals reaching the
ROV, one from the operator and the other from flex sensors
on detecting the obstacle, the human control input has the Fig. 11. Trapezoidal Input Membership Function for Flex Sensor
highest priority. Simulation of membership functions and and Operator Input
rules are done using fuzzy editor tool in MATLAB.
OAC layer consists of two modes. The first is 4dodge mode5
which manages the ROV speed and turning to achieve
collision-free navigation. The other is 4escape mode5 in which
ROV heads upwards, if the ROV finds no space in front or
rear directions. After completing escape mode, OAC layer
changes back to dodge mode. Each of the modes has the same
number of fuzzy behavior rules. The last fuzzy rule in dodge
mode represents the activation condition for escape mode [8].
TABLE II. Comparison of Control Signal Results from Simple If-Else and Fuzzy Controller
Ex. GUI INPUT (Max value 255) FLEX SENSOR (Max 255) M1 (Max 255) M2 (Max 255) M3 (Max 255)
No Front Back Left Right S1 S2 S3 S4 IF-Else Fuzzy IF-Else Fuzzy IF-Else Fuzzy
1 200 5 5 5 15 15 15 15 0 25.4 255 197 255 197
2 5 5 200 5 15 15 15 15 0 25.4 -255 -197 255 199
3 5 5 5 200 15 15 15 15 0 25.4 255 197 -255 -199
4 5 200 5 5 15 15 15 15 0 25.4 -255 -197 -255 -197
5 200 5 5 5 190 15 15 15 255 136 255 105 -255 -199
6 200 5 5 5 15 190 15 15 255 136 -255 -199 255 105
7 5 5 200 5 190 15 15 190 255 136 255 197 -255 -199
8 5 5 5 200 15 190 190 15 255 136 -255 -199 255 197
9 100 5 5 5 150 15 15 15 255 136 255 105 -255 -105
10 150 5 5 5 190 15 15 15 255 136 255 105 -255 -154
TABLE III. Comparison of Linear and Angular Displacement Results for Simple If-Else and Fuzzy Controller
IF-ELSE CONTROL FUZZY LOGIC BASED CONTROL
Direction, Linear Angular X-axis Y-axis Linear Angular X-axis Y-axis
Obstacle displacement displacement Motion Motion displacement displacement Motion Motion
Start 0 0 0 0 0 0 0 0
Front, No 5 0 5 0 5 0 0 5
Front, s3(255) 0 3.038 0 0 3.25 .021 -1.63 4.37
Front, s3(150) 0 3.038 0 0 1.85 0.009 -2.32 3.15
Front, s3(190) 0 3.038 0 0 1.05 0.014 -2.89 2.59
Front, s3 0 3.038 0 0 -.7 -0.021 -1.26 1.97
Left, No 0 -3.038 0 0 -.65 -.032 -1.31 1.95
Left, s1,s4 0 -3.038 0 0 -.7 0.032 -1.36 1.97
Right, No 0 3.038 0 0 -.75 0.032 -1.41 1.98
Right,s2,s3 0 -3.038 0 0 -1.25 -0.032 0.48 0.13
V. RESULT AND DISCUSSION operator had more ease of operating and navigating the ROV
Multiple input 0 multiple output fuzzy logic controller with the aid of fuzzy logic controller. The results of the test
is implemented for semi-autonomous control of ROV. run through test environment is shown in Table II. The
Comparative study on performance of simple If-Else loop and position results in X and Y plane obtained in test run for both
fuzzy logic controller that provides control signal to thrusters the control logics are shown in Table III. Using the positional
with same sensor input conditions is done. During test trial, information, the path followed by the ROV with the aid of
simple If-Else logic is shown in blue line and with the aid of
2016 International Conference on Robotics and Automation for Humanitarian Applications (RAHA)
fuzzy logic controller is shown in dashed red line. It can be conventional skill and experience is not required for the
observed from Fig. 14 that test run with fuzzy logic control is operator. The wireless camera provides better view of the
more convenient for operator to navigate through underwater environment. The failsafe mode is made so as to
unstructured environment than simple If-Else logic, due to the give the ROV a backup power when there is loss of tether
reason that If-Else logic uses binary values as sensor inputs which makes it reach the surface by obstacle avoidance using
whereas fuzzy logic uses range of sensor input values. flex sensors. Further, better semi-autonomous control for
underwater vehicle is proposed. Fig.16 shows the proposed
fuzzy-PID controller for ROV with heading direction
correction for semi-autonomous capability[7].
Implementation of proposed system can increase the ease of
operator control further more.