You are on page 1of 5

World Academy of Science, Engineering and Technology 42 2008

Fuzzy Logic Reasoning to Control Mobile


Robot on Pre-defined Strip Path
S. K. Harisha, Ramkanth Kumar P., M. Krishna, and S. C. Sharma

 mathematical or logical models. Fuzzy control provides a


AbstractThe mobile robot is a small four-wheeled mobile flexible tool to model the relationship between input
platform, which was controlled by a micro-controller. The robot information and control output and is distinguished by its
could sense its surroundings with the aid of various electronic robustness with respect to noise and variation of system
sensors while mechanical actuators were used to move it around.
parameters. Soft computing is concerned with the design of
Robot behaviour was determined by the program, which was loaded
to the microcontroller. In that way, it could be used as a general intelligent and robust systems, which exploit the tolerance for
robotics experimental platform. The autonomous mobile robot was imprecision inherent in many real world problems. In order to
designed and built in order to perform various navigation algorithms. achieve this objective, soft computing suggests fuzzy logic
The design consisted of two main sections: Electronic analysis of the reasoning.
various robot sensors and Programming techniques used to interface The goal of this paper is to create a robot that will follow a
the sensors with the robots microcontroller. In this paper its shown
specific color of line. A line following robot is a precursor to
that the path-guiding robot with IR sensors and obstacle detection is
using IR proximity sensors. The predefined path is having varied other autonomous robots not confined to following a line.
turns, the fuzzy reasoning take care of speed to keep mobile robot in These robots can be used to explore places that are too
the defined path. The results are proved experimentally and the dangerous or otherwise impossible for humans to go. The
surface viewer graph is obtained from the Mat Lab. fuzzy reasoning gives desirable speed control for this type of
application.
KeywordsFuzzy logic, Mobile robot, Strip, Sensors.
II. FUZZY LOGIC THEORY
I. INTRODUCTION
In robotics design, it is often desirable to have a robot act

A main issue in mobile robot is navigation in an uncertain


and complex environment and considerable research has
been done for making an efficient algorithm for the mobile
more like a human being than a machine. Traditional logic is
based on two values, one (true) and zero (false). This is
inadequate for approximating the human decision making
robot navigation. Among them, adaptive control and behavior- process. Fuzzy logic uses the entire interval between zero and
based control are most popular control algorithms and driving one, and can therefore be used to closely mimic human
research in robot navigation. Adaptive navigation control is a reasoning [5]. The design process of a fuzzy logic system can
method using pre-defined equations that represent the robots generally be separated into three stages:
moving path to reach targets and show strong ability in well-
known environment [1]. However it is hard to build precise x Fuzzification
path generating equation for unknown and complex x Rule Evaluation
environment. Evolutionary computation provides an x Defuzzification
alternative design method that adapts the robot's behavior
without requiring a precisely specified model of the world. Its In the fuzzification stage fuzzy inputs are sent into the
adaptive power enables the robot to deal with changes in the fuzzy controller. The inputs are fuzzified by applying with the
environment and to acquire a robust behavior tolerating noisy membership functions. The membership functions change the
and unreliable sensor information. Fuzzy systems employ a input values into degree values of membership for each
mode of approximate reasoning, which allows them to make function. Once the inputs are fuzzified, the rules are applied to
decisions based on imprecise and incomplete information in a determine a response to the inputs. In the defuzzification
way similar to human beings. A fuzzy system offers the stage, the results of the rule evaluation are translated into
advantage of knowledge description by means of linguistic discrete outputs. This can be done in various ways, using
concepts without requiring the complexity and precision of different kind of algorithms. A common and easy approach to
defuzzification is Center-of-Gravity (COG) method.
S. K Harisha is with R.V College of Engineering, Bangalore, Karnataka,
India (e-mail: harisha_rh@rediffmail.com, phone: 0091-80-28601700; fax III. FUZZY CONTROLLERS
:0091-80-28600337, www.rvce.ac.in).
Ramakanth P Kumar is with R. V. College of Engineering, India (e-mail: Two fuzzy controllers are designed in this paper, one for
mechharish76@gmail.com). controlling speed of the mobile robot depending on the radius
M. Krishna, Director R&D, is with RV College of Engineering, India. of curve, other for detecting obstacles on the path. The input
S. C. Sharma, Principal, is with R. V. College of Engineering, India.

642
World Academy of Science, Engineering and Technology 42 2008

and output membership functions are defined and are related V. RULE EVALUATION - DIRECTION CONTROL
with sets of rules. After a fuzzy controller is chosen based on
the information obtained from the surroundings, the fuzzy TABLE I
MOTION WITH RESPECT TO SENSOR POSITION
controller has a process, which consists of three stages:
fuzzification, rule evaluation and defuzzification. The outputs Sensor/Strip LB CW RB
of fuzzy controllers control the velocity of two wheels of the LS F L -
mobile robot under various turns and also in avoiding CS R F L
RS - R F
obstacles. Fig. 1 shows fuzzy inference system with two
inputs and one output.
Rules for desired motion
1. If (LS is LB) and (CS is LB) and (RS is CW) then
(DIRCT is RGT)
2. If (LS is LB) and (CS is CW) and (RS is RB) then
(DIRCT is FWD)
3. If (LS is CW) and (CS is RB) and (RS is RB) then
(DIRCT is LFT)
4. If (LS is LB) and (CS is CW) and (RS is CW) then
Fig. 1 Fuzzy inference table (DIRCT is RGT)
5. If (LS is CW) and (CS is CW) and (RS is RB) then
IV. FUZZIFICATION (DIRCT is LFT)
6. If (LS is LB) and (CS is CB) and (RS is RB) then
Two fuzzy membership functions are designed to fuzzify
(DIRCT is BCK)**
the data from IR and proximity sensors. Membership function
7. If (LS is CW) and (CS is CW) and (RS is CW) then
shown in Fig. 2 is used to fuzzify the value of variables. The
(DIRCT is FWD)**
membership function considered here is triangulation type.
8. If (LS is CW) and (CS is CB) and (RS is CW) then
The input angle is defined with linguistic variables (LHI-Left
(DIRCT is FWD)**
High Inclination, LMI-Left Medium Inclination, LLI-Left
Low Inclination, STR-Straight. Similarly for the right side
In the above rules - Rule no 6 and 7 requires additional
RHI, RMI, RLI).
rules to take decision.

Fig. 2 Membership function for Input angle


Fig. 4 DIRCT Vs CS, RS
The second input considered in our mobile tracking is
obstacle presence and absence. Here we considered classical
set; witch defines with respect to ON and OFF condition. The
robot stops when it detects the obstacle with certain range.

Fig. 5 DIRCT Vs LS, RS

Fig. 3 Membership function for input obstacle distance

643
World Academy of Science, Engineering and Technology 42 2008

inclination with obstacle present output is Velocity zero.

Fig. 6 DIRCT Vs LS, CS

VI. RULE EVALUATION


Speed Controller: Fig. 4 shows the membership function for Fig. 5 Rules viewer for the membership function
the desired output variable Velocity, The fuzzy controller
output is denoted by linguistic variables (SL-Slow, MED- VII. DEFUZZIFICATION
Medium Fast, FST-Fast and MFST- Maximum Fast). If the values considered in the in the fuzzy sets are in terms
of degree variation then in the final output the fuzzy values
should be converted in to crisp value by using any
defuzzification method. The most easy and commonly used
defuzzification method is Center Of Gravity (COG) can be
used. The COG defuzzification method can be expressed as
follows:
m
P j 'U j
1
'U m
Fig. 4 Membership function for output Variable Pj
1

Fuzzy controller Rules for speed control: Fuzzy controller 'U  Output Variable
has total 14 rules for navigation, desired speed, avoiding m  Number of Rules
obstacles and following the pre-defined path. To realize these
navigation skills, following rules are defined. P j  is the grade of jth output of MF
<Rules for desired speed> 'U j  Output label for the value contributed by the jth MF
Rule 1: If (path is straight) and (if obstacle is absent) then
(Velocity is Max Fast) VIII. THE EXPERIMENTAL VEHICLE
Rule 2: If (Path is inclined left high inclination) and
(obstacle is absent) then (Velocity is slow) The vehicle has a custom-made metal frame, which is
Rule 3: If (Path is inclined left medium inclination) and mounted with two independent left and right driving wheels
(obstacle is absent) then (Velocity is medium) driven by two DC motors, respectively. It does not have any
Rule 4: If (Path is inclined left low inclination) and steering mechanism, but can change its navigation direction
(obstacle is absent) then (Velocity is fast) by changing the velocity of the driving wheels independently.
Rule 5: If (Path is inclined right low inclination) and If the velocity of the right wheel is greater than the velocity of
(obstacle is absent) then (Velocity is fast) the left wheel, the robot will turn left vice versa. Using micro
Rule 6: If (Path is inclined right medium inclination) and controller with the input from sensors controls the two motors
(obstacle is absent) then (Velocity is medium fast) of mobile robot. Two separate DC battery sets are used to
Rule 7: If (Path is inclined right high inclination) and provide power to the motors and the control part respectively
(obstacle is absent) then (Velocity is slow) to reduce the switching noise induced by the motors. The
Rule 8: If (Path is inclined left high inclination) and control circuit and the driver circuit are provided on board.
(obstacle is Present) then (Velocity is zero) The robot uses 2 IR sensors at the middle to sense the white
Rule 9: If (Path is inclined right high inclination) and strip path and one on either side to sense black background.
(obstacle is Present) then (Velocity is zero) The sensors are tuned to corresponding black and white colors
Rule 10: If (Path is inclined left medium inclination) and to keep track of predefined path. The rules for the robot to
(obstacle is Present) then (Velocity is zero) keep track and avoid hitting obstacle is feed to the micro
Rule 11: If (Path is inclined right medium inclination) and controller in the form of programme, micro controller decides
(obstacle is Present) then (Velocity is zero) the next move according to the algorithm. The vehicle is
Remaining three rules for low left, Low Right, Straight equipped with two sets of IR sensor provided below the
vehicle to keep track of white strip on black background, the

644
World Academy of Science, Engineering and Technology 42 2008

proximity sensor is provided at the front to detect obstacle When graph of desired speed and angle of turn plotted, the
during navigation. Specially designed Atmega 16 micro graph obtained is shown in figure. We can see the variation of
controller is used to control the robot navigation. speed from high angle to straight path. The speed is maximum
for straight path.
Proximity Sensors

IR Sensors

Steering wheel
Fig. 5 Vehicle model

IX. RESULTS AND DISCUSSION


Test Course: Fig. 6 illustrates a predefined test Path for
Fig. 8 Graph of Speed Vs Angle
mobile robot navigation. The path defined is having various
turns and curves to check the output speed variation. One
In this experiment the proximity sensor is tuned to the range
obstacle has been placed along the vehicles route to check
of 8cm to 4 cm. When the vehicle reaches near to the obstacle
obstacle hitting. The vehicle is positioned at the initial place
the speed of the vehicle reduces and finally stops maintaining
directing left direction and obstacle behind it, the vehicle
distance of 4 cm.
traverse with different speeds and stops at the obstacle. The
variation obtained can be observed from the Mat Lab surface
viewer.

Vehicle Obstacle Fig. 8 Graph of Speed Vs Obstacle

Fig. 6 Predefined path for experimental Results


X. CONCLUSION
Surface viewer: 3D Graph of two input Vs one output is An autonomous vehicle equipped with commercially
shown (Inputs: Obstacle, Angle of turn, Output: Desired available Proximity sensor and sets of IR sensors which are
speed). tuned to the black and white color in order to trace the pre-
defined path. Fuzzy logic reasoning is adapted to the
navigation control of the mobile robot and it is tested on real
platform, the experimental result shows that the developed
vehicle could navigate along the strips with different speeds
and stops when vehicle approaches to obstacle.

ACKNOWLEDGMENT
The authors would like to acknowledge the help of Dr. M
Krishna Director R&D and also thank each and every one
whom is directly and indirectly involved in the experimental
Fig. 7 Surface viewer- 3D graph work.

645
World Academy of Science, Engineering and Technology 42 2008

REFERENCES
[1] J. C. Latombe, Robot Motion Planning, Norwell, MA: Kluwer, 1991.
[2] M.-R. Akbarzadeh, K. Kumbla, E. Tunstel, and M. Jamshidi, "Soft
computing for autonomous robotic systems," Computers and Electrical
D Engineering, vol. 26, 2000, pp. 5-32.
[3] A. Stafylopatis and K. Blekas, "Autonomous vehicle navigation using
evolutionary reinforcement learning," European Journal of Operational
Research, vol. 108, 1998, pp. 306-318.
[4] D. B. Fogel, Evolutionary Computation: Toward a New Philosophy of
Machine Intelligence, New York, NY: IEEE Press, 2000.
[5] A. C. Nearchou, "Adaptive navigation of autonomous vehicles using
evolutionary algorithms," Artificial Intelligence in Engineering, vol.
13,1999, pp. 159-173.
[6] D. K. Pratihar, K. Deb, and A. Ghosh, "A genetic-fuzzy approach for
mobile robot navigation among moving obstacles," Intl J of
Approximate Reasoning, vol. 20, 1999, pp. 145-172.
[7] S.G. Tzafestas and K.C. Zikidis, A 3-level neuro-fuzzy autonomous
robot navigation system, Proc. IEEE Int'l Conf. on Fuzzy Systems,
1994, pp 1626-1631.
[8] Brooks, R. A., A Robust Layered Control System for a Mobile Robot.
IEEE Journal of Robotics and Automation, Vol. RA-2, No. 1, 1986, pp.
14-23.
[9] Payton, D., Rosenblatt, J., Keirsey, D., Plan Guided Reaction. IEEE
Transactions on Systems, Man and Cybernetics, Vol. 20, No. 6, pp.
1370-1382, Nov. 1990.
[10] Yen, J., Pfluger, N., A Fuzzy Logic Based Extension to Payton and
Rosenblatts Command Fusion Method for Mobile Robot Navigation.
IEEE Transactions on Systems, Man and Cybernetics, Vol. 25, No. 6,
pp. 971-978, June 1995.

S. K. Harisha born on 18.07.1976, in Madikeri, Karnataka, India. He has


obtained his first degree in mechanical engineering from Kuvempu university
securing distinction in the Year 1998. he passed out successfully from Sir M
visveshvaraya Institute of Technology, VTU, getting his post graduation in
Computer Integrated manufacturing in the Year 2004 at Bangalore ,
Karnataka, India. Presently he is engauged in securing his doctorate from
avinashilingam university, coimbatore, Tamil nadu, India.
He is presently working in R V College of Engineering, he has Previous
experience in East Pont College of Engineering for a period of two years and
in New Horizon College of Engineering for period of three years.

646

You might also like