# Position Control of the Single Spherical Wheel Mobile Robot by Using the Fuzzy Sliding Mode Controller

Authors: Hamed Navabi; Soroush Sadeghnejad; Sepehr Ramezani; Jacky Baltes
Journal: Advances in Fuzzy Systems
 (2017)

---

## Abstract

A spherical wheel robot or Ballbot—a robot that balances on an actuated spherical ball—is a new and recent type of robot in the popular area of mobile robotics. This paper focuses on the modeling and control of such a robot. We apply the Lagrangian method to derive the governing dynamic equations of the system. We also describe a novel Fuzzy Sliding Mode Controller (FSMC) implemented to control a spherical wheel mobile robot. The nonlinear nature of the equations makes the controller nontrivial. We compare the performance of four different fuzzy controllers: (a) regulation with one signal, (b) regulation and position control with one signal, (c) regulation and position control with two signals, and (d) FSMC for regulation and position control with two signals. The system is evaluated in a realistic simulation and the robot parameters are chosen based on a LEGO platform, so the designed controllers have the ability to be implemented on real hardware.


---

## Body

## 1. Introduction

Mobile robot stability, positioning control, and navigation are essential issues in robotics and artificial intelligence. Real-time stability control and navigation are easy tasks for human beings but very difficult for robots, especially in unknown and unstructured environments. Research in those areas has employed various wheeled (e.g., differential steering, car-like, and omniwheel) [1, 2] and legged (e.g., hexapods, four-legged, and humanoid) robots [3–6].The spherical wheel robot (Ballbot) is an interesting and novel mobile robot design first introduced by Hollis [7]. A Ballbot is a dynamically stable mobile robot moving on a single spherical wheel [8–10]. The robot sits on top of a rubber ball. The robot can control the motion of the ball below it via two or more motors. This kind of the robot is statically unstable and needs to continuously control its position.The Ballbot has been investigated by many researchers in the past, due to its high maneuverability, ability to have a high ratio of height to width, and many other unique and desirable characteristics [11]. Figure 1 show various generations of spherical wheel robots, which have been developed in recent years and different research centers and universities.Figure 1
Various generations of spherical wheel developed recent robots.Robots designed to be operated in human environments should be tall. For example, this will allow an average person to look the robot in the eye/camera rather than being forced to constantly look down on the robot [7, 12]. In contrast to humanoid robots, these robots stand on only one foot [13]. Similarly, the Segway RMP two-wheeled self-balancing mobile robot has become popular in recent years [14]. Researchers introduced some capable two-wheeled mobile manipulators recently [15]. The Ballbot is more suitable for navigation in human environments because of its omnidirectional drive capabilities [16, 17]. Moreover, unlike its two-wheeled counterparts, the Ballbot is as tall as an adult human, which enhances its ability to interact with human environments [18].Recently, other researchers have developed similar robots [19, 20]. Since the Ballbot is unstable, it requires active positioning control [21, 22]. Otherwise the robot will simply fall over. The controller which was used in the CMU robot has two loops, one proportional-integral (PI) loop which adjusts the angular velocity of the ball and one external linear quadratic regulator (LQR) loop which creates a full-state feedback for the system [9]. The second Ballbot has been designed and introduced by the University of Tohoku Gakuin in Japan [23]. In this robot three stepper motors placed at an angle of 120 degrees, relative to each other, have been used. Usage of these motors increases the accuracy of the system and also removes the need for shaft encoders. Due to the direct connection of the motor’s shaft and the wheel and having no belt in the transmission mechanism, there is much less backlash than in the robot from CMU. A simple PD controller has been sufficient to balance the robot [24]. Fong et al. designed and implemented a Ballbot at the University of Adelaide, Australia [24]. The researchers in that project tried to derive the equations of motion and design and manufacture the robot by using LEGO pieces and blocks. They improved the controller to have better stability and were able to control the robot via remote control. They designed and manufactured a human being sized robot and also developed a virtual model for the single-leg robot [24]. By equipping the robot with two sets of accelerometers and gyroscopes, they could accurately measure the robot deflection angle and angular velocity. The system was implemented using the NXT Mindstorms system, a robotic education system developed by the LEGO Company [25]. In this research, the robot behavior is considered in the linear range only and no solution or suggestion has been made to control the robot’s motion in the nonlinear range.The fourth Ballbot robot was designed by ETH University. The researchers use a linear controller with low pass filters and Kalman controllers which adds robustness against noise and allows the system to better deal with disturbances. The critical characteristics of some Ballbot designs are summarized in Table1.Table 1
Comparison of characteristics of four Ballbot robots.
University CMU TGU UA ETH Year 2006 2008 2009 2010 Weight (Kg) 45 11 34.5 14.5 Height (Cm) 150 50 160 80 Max deviation angle (degree) Less than 1 Less than 5 Less than 1 Up to 20 Max velocity (m/s) Less than 0.1 Less than 0.3 Less than 0.1 Up to 2 Rotation yes Yes No yes Controller LQR/PID PD LQRI LQR/gain schedulingIn 2014, Nagarajan et al. designed new hardware of the Ballbot with a four-wheel inverse mouse-ball drive to actuate the ball and a yaw drive mechanism that enables unlimited rotation about its vertical axis [26]. For having the static stability the robot was equipped with a triad of legs.Also, several experiments were conducted to demonstrate the robot’s balancing and locomotion capabilities. They also proposed a novel trajectory planning algorithm that plans for body lean motions that presented the desired rest-to-rest motions of the robot. Chu and Sung suggested an omnidirectional mobile robot for educational robot platform [27]. To remove the nonholonomic characteristic of conventional wheels they used omnidirectional wheels. They could make control system design much easier by proposing the aforementioned system.In [28], coordinate-invariant equations of motion for the Ballbot has been proposed. Using the linearized equations of motion and excluding the rotary degree of freedom of the ball in the inertial vertical direction, authors provided a proportional-derivative type controller that locally exponentially stabilizes the upward equilibrium point as well as the translation of the ball.This work extends the previous research in two aspects:(i)
Development of a three-dimensional model of the dynamics of the robot.(ii)
Design of a three-dimensional controller for this model using gain scheduling.We derive the governing dynamic equations of the system using the Lagrange method [29, 30]. The nonlinear nature of the equations of motions of a spherical wheel mobile robot makes control nontrivial. The performance comparison of four different fuzzy logic controllers [31–33] has been evaluated in this research: (a) stability controller with one control, (b) stability and position controller with one control, (c) stability and position control with two controls, and (d) Fuzzy Sliding Mode Controller for stability and control with two controls. The systems will be evaluated in a realistic simulation and since the robot parameters used are based on a set of LEGO block and pieces, the designed controllers can be implemented on real experimental robots. By comparison of the results of our evaluation, the best controller for maintaining the robot’s balance and position can be selected.The paper is organized as follows. Section2 presents the dynamics of the Ballbot robot. Section 3 describes the design of fuzzy controllers. In Section 4, we present the results of our evaluation and their discussion and finally, in Section 5, we conclude with some remarks for future work.


## 2. Dynamics of the Single-Leg Robot

We use the Lagrange method to derive the equations of motion for the robot [34]. The movement of the robot is controlled by two motors. We assume that there is no or negligible slip between the wheels and the rolling ball. The analysis also includes a component for the friction between the ball and the ground. The robot’s dynamic equations will be independent if only the rotational friction between the ball and the ground is ignored. The generalized coordinates, which we used to study the dynamics of the robot, are shown in Figure 2.Figure 2
Generalized coordinates used in motion dynamic analysis [15].θ is the robot’s absolute body angle with the vertical axis and φ is the absolute rotation angle of the motor. Equation (1) shows the equation of motion for robot in the x-z plane. For the y-z plane, the equation of motion is similar with x being replaced by y.(1)Mxq,q´q´+Cxq,q´+Gxq,q´+Dxq,q´=Fxq,q´,vx.In (1), Mx is the mass matrix, Cx is Coriolis matrix, Gx is gravity matrix, Dx is friction matrix, Fx is force matrix, and q is a generalized coordinate’s vector. Each of the parameters in (1) is given in the Appendix.


## 3. Designing Fuzzy Controller

In this paper, we described the design and implementation of four different fuzzy controllers. Stability analysis for the first three controllers cannot be established and they are not the main contribution of this paper. The main contribution of this paper is designing of the Fuzzy Sliding Mode Controller (FSMC) for the robot.(i)
A fuzzy controller to maintain the stability of the robot (regulation) body regardless of the robot position (tracking) with one control signal.(ii)
A fuzzy controller to maintain stability (regulation) and also control the robot position (tracking) with two control signals.(iii)
A fuzzy controller with two control signals to control the robot position (tracking) and also maintain the stability (regulation) of the single-leg robot.(iv)
A sliding mode controller with the use of fuzzy methods to maintain stability (regulation) and also control the robot position (tracking).Due to robot’s sensors and actuators, each of these controllers can be used.


### 3.1. Designing Fuzzy Controller to Maintain Stability with One Control Signal

The controller inputs in this case are the robot’s angular position and velocity error. The fuzzy sets that are considered for angular position error, angular velocity error, and output torque are shown in Figures3–5, respectively. The controller output is the motor torque that acts on angle φ. Around the zero angular velocity, speed variations are large and the system is very sensitive. Therefore, the middle set in Figure 4 is chosen to be very narrow. For output torque, Gaussian membership functions are used, so the output signal is smooth.Figure 3
Fuzzy sets for angular displacement error.Figure 4
Fuzzy sets for angular velocity error.Figure 5
Fuzzy sets for output torque.Single fuzzifier (SF), Minimum Inference Engine (MIE), and Center Average Defuzzifier (CAD) have been applied in the controller. The procedure of the controller is shown in Figure6. The fuzzy rules for the first controller are presented in Table 2. The stability procedure cannot be established for this controller. If fuzzy sets and rules are chosen correctly, the controller performance is good enough.Table 2
Fuzzy rules for first fuzzy controller.
E θ E θ ´ NB NS Z PS PB NB PL PM PS PS Z NS PM PS PS Z Z Z PM PS Z NS NM PS Z Z NS NS NM PB Z NS NS NM NLFigure 6
Control surface for the first controller.


### 3.2. Designing Fuzzy Controller for Position Control with One Control Signal

The previous fuzzy controller is suitable for maintaining the robot regulation; but the robot’s position will drift over the time because of the permanent small error in the body angle. To solve this problem, we extend the previous controller by using the angular position error and angular velocity error for the controller. Thus, the fuzzy controller will have four inputs. If each input uses five fuzzy sets, a maximum of54=625 laws is necessary. Handling of these many laws will increase the probability of mistakes and it is time-consuming. For solving of this problem, the system is decoupled into two fuzzy controllers. The first controller generates a reference angle. This reference angle is used as input for the second controller. The second controller balances the robot around the reference angle. Balancing around a nonzero reference angle produces movement toward the inclination angle of the robot and thusly allows us to control the position of the robot, so the robot position is controlled. The rules for controlling the robot angle are similar to the rules of Section 3.1 and rules for the position controller are consistent with the logic that is applied in Section 3.1—only the ranges of the fuzzy sets are different. The stability procedure cannot be established for this controller too and it is not the contribution of this paper.


### 3.3. Designing Two Fuzzy Controllers with Two Control Signals

In this section, two control signals are considered for the fuzzy controller. It is assumed that the robot has four actuators: two actuators forθ and φ in x-z plane and two others in the y-z plane. In each of the planes the system has two actuators; the first motor controls the angular position of the spherical wheel and the second one controls the body balancing. Regulation and position control of the robot can be done very well with this method; but this method needs two extra actuators. The extra actuators are attached directly to the body. These actuators must be able to generate enough torque to rotate the body. Fuzzy sets for this controller are shown in Figure 7. The stability analysis cannot be done for this type of a controller and it is not the concern of this paper.Figure 7
Fuzzy sets of the third controller.


### 3.4. Designing Fuzzy Sliding Mode Controller (FSMC)

In this section, the controller is designed based on the sliding mode method and then it is combined with the fuzzy procedure. At first the dynamic equations of the system are written like(2)x´1=x2x´2=f1+g1Tx´3=x4x´4=f2+g2T,where f1, g1, f2, and g2 are some dynamical and geometrical unknowns that should be defined. In (2), the states are introduced as(3)x1=θxx2=θ´xx3=ϕxx4=ϕ´x.In (2), the other unknowns are introduced as(4)f1=mx11-μBgθ´x+LMBRbsin⁡θxθ´x2+gLMBsin⁡θx+mx12-μBbϕ´x+LMBnRbsin⁡θxθ´x2g1=mx12f2=mx21-μBgθ´x+LMBRbsin⁡θxθ´x2+gLMBsin⁡θx+mx22-μBbϕ´x+LMBnRbsin⁡θxθ´x2g2=mx22.Parameters in (4) are presented in Table 4. In (4), it can be seen that(5)m=M-1.Sliding surfaces are defined as given in(6)s1=x2+λ1x1;λ1>0s2=x4+λ2x3;λ2>0.The main goal of the controller iss1→0 and s2→0. In this case, all the states will lead to zero. By differentiation of (6), (7) can be achieved. Consider(7)s´1=h1+g1T;h1=f1+λ1x2s´2=h2+g2T;h2=f2+λ2x4.Assume the positive definite Lyapunov function asV=0.5×s12+0.5×s22. Differentiation of the Lyapunov function with respect to the time is established as (8). Both of the terms in (8) should be negative to maintain the robot stability and convergence of the sliding surfaces:(8)V´=s1s´1︸firstterm+s2s´2︸secondterm.For stability requirements, some conditions should be established and only one of them will be discussed here, but in Table3 all the conditions have been represented.(9)s1>0,s2>0→yieldss´1<0,s´2<0s´1=h1+g1T<0s´2=h2+g2T<0⟶g1T<-h1g2T<-h2⟶T<-1g1+g2h1+h2Table 3
Fuzzy rules for sliding mode controller.
T s 2 s 1 T l 1 = - 1 g 1 + g 2 h 1 + h 2 - k P P T l 2 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 2 - k Z P if   g 1 ≥ g 2 ⟶ T l 3 = h 1 + h 2 g 1 - g 2 - k N P if   g 1 < g 2 ⟶ T l 3 = h 1 + h 2 g 1 - g 2 + k T l 4 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 1 - k P Z T l 5 = 0 Z Z T l 6 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 1 + k N Z if  g 2 ≥ g 1 ⟶ T l 7 = h 1 + h 2 g 2 - g 1 - k P N if   g 2 ≥ g 1 ⟶ T l 7 = h 1 + h 2 g 2 - g 1 + k T l 8 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 2 + k Z N T l 8 = - 1 g 1 + g 2 h 1 + h 2 + k N NTable 4
Parameters used in this research.
Quantities Symbol Parameters 0.026 m R b Ball radius 0.132 m L Distance between ball and robots centers of gravity 0.77 kg M B Body mass 0.015 kg M b Ball mass 6.76 e - 6 kg I b Ball moment of inertia 5.4 e - 3 kg⋅m2 I B x Ball moment of inertia alongx-axis 5.4 e - 3 kg⋅m2 I B y Ball moment of inertia alongy-axis 2 e - 5 kg⋅m2 I M Motors and wheels moments of inertia along the motor rotation axis - 18.6 26 n Motor and ball gear ratio 0.0022 μ B b Friction coefficient between body and ball 0 μ B g Friction coefficient between body and groundTo achieve the requirements of (9), the input is considered as (10).If the three fuzzy sets (positive (P), zero (Z), and negative (N)) are considered for the sliding levels, the fuzzy control rules for the system are shown in Table3.(10)Tl1=-1g1+g2h1+h2-k;k>0.In Table3, k, η are positive. Using fuzzy logic will lead to better performance and smooth switching between the rules that are written in Table 3. According to these rules, V´<0 and the stability is guaranteed.


## 3.1. Designing Fuzzy Controller to Maintain Stability with One Control Signal

The controller inputs in this case are the robot’s angular position and velocity error. The fuzzy sets that are considered for angular position error, angular velocity error, and output torque are shown in Figures3–5, respectively. The controller output is the motor torque that acts on angle φ. Around the zero angular velocity, speed variations are large and the system is very sensitive. Therefore, the middle set in Figure 4 is chosen to be very narrow. For output torque, Gaussian membership functions are used, so the output signal is smooth.Figure 3
Fuzzy sets for angular displacement error.Figure 4
Fuzzy sets for angular velocity error.Figure 5
Fuzzy sets for output torque.Single fuzzifier (SF), Minimum Inference Engine (MIE), and Center Average Defuzzifier (CAD) have been applied in the controller. The procedure of the controller is shown in Figure6. The fuzzy rules for the first controller are presented in Table 2. The stability procedure cannot be established for this controller. If fuzzy sets and rules are chosen correctly, the controller performance is good enough.Table 2
Fuzzy rules for first fuzzy controller.
E θ E θ ´ NB NS Z PS PB NB PL PM PS PS Z NS PM PS PS Z Z Z PM PS Z NS NM PS Z Z NS NS NM PB Z NS NS NM NLFigure 6
Control surface for the first controller.


## 3.2. Designing Fuzzy Controller for Position Control with One Control Signal

The previous fuzzy controller is suitable for maintaining the robot regulation; but the robot’s position will drift over the time because of the permanent small error in the body angle. To solve this problem, we extend the previous controller by using the angular position error and angular velocity error for the controller. Thus, the fuzzy controller will have four inputs. If each input uses five fuzzy sets, a maximum of54=625 laws is necessary. Handling of these many laws will increase the probability of mistakes and it is time-consuming. For solving of this problem, the system is decoupled into two fuzzy controllers. The first controller generates a reference angle. This reference angle is used as input for the second controller. The second controller balances the robot around the reference angle. Balancing around a nonzero reference angle produces movement toward the inclination angle of the robot and thusly allows us to control the position of the robot, so the robot position is controlled. The rules for controlling the robot angle are similar to the rules of Section 3.1 and rules for the position controller are consistent with the logic that is applied in Section 3.1—only the ranges of the fuzzy sets are different. The stability procedure cannot be established for this controller too and it is not the contribution of this paper.


## 3.3. Designing Two Fuzzy Controllers with Two Control Signals

In this section, two control signals are considered for the fuzzy controller. It is assumed that the robot has four actuators: two actuators forθ and φ in x-z plane and two others in the y-z plane. In each of the planes the system has two actuators; the first motor controls the angular position of the spherical wheel and the second one controls the body balancing. Regulation and position control of the robot can be done very well with this method; but this method needs two extra actuators. The extra actuators are attached directly to the body. These actuators must be able to generate enough torque to rotate the body. Fuzzy sets for this controller are shown in Figure 7. The stability analysis cannot be done for this type of a controller and it is not the concern of this paper.Figure 7
Fuzzy sets of the third controller.


## 3.4. Designing Fuzzy Sliding Mode Controller (FSMC)

In this section, the controller is designed based on the sliding mode method and then it is combined with the fuzzy procedure. At first the dynamic equations of the system are written like(2)x´1=x2x´2=f1+g1Tx´3=x4x´4=f2+g2T,where f1, g1, f2, and g2 are some dynamical and geometrical unknowns that should be defined. In (2), the states are introduced as(3)x1=θxx2=θ´xx3=ϕxx4=ϕ´x.In (2), the other unknowns are introduced as(4)f1=mx11-μBgθ´x+LMBRbsin⁡θxθ´x2+gLMBsin⁡θx+mx12-μBbϕ´x+LMBnRbsin⁡θxθ´x2g1=mx12f2=mx21-μBgθ´x+LMBRbsin⁡θxθ´x2+gLMBsin⁡θx+mx22-μBbϕ´x+LMBnRbsin⁡θxθ´x2g2=mx22.Parameters in (4) are presented in Table 4. In (4), it can be seen that(5)m=M-1.Sliding surfaces are defined as given in(6)s1=x2+λ1x1;λ1>0s2=x4+λ2x3;λ2>0.The main goal of the controller iss1→0 and s2→0. In this case, all the states will lead to zero. By differentiation of (6), (7) can be achieved. Consider(7)s´1=h1+g1T;h1=f1+λ1x2s´2=h2+g2T;h2=f2+λ2x4.Assume the positive definite Lyapunov function asV=0.5×s12+0.5×s22. Differentiation of the Lyapunov function with respect to the time is established as (8). Both of the terms in (8) should be negative to maintain the robot stability and convergence of the sliding surfaces:(8)V´=s1s´1︸firstterm+s2s´2︸secondterm.For stability requirements, some conditions should be established and only one of them will be discussed here, but in Table3 all the conditions have been represented.(9)s1>0,s2>0→yieldss´1<0,s´2<0s´1=h1+g1T<0s´2=h2+g2T<0⟶g1T<-h1g2T<-h2⟶T<-1g1+g2h1+h2Table 3
Fuzzy rules for sliding mode controller.
T s 2 s 1 T l 1 = - 1 g 1 + g 2 h 1 + h 2 - k P P T l 2 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 2 - k Z P if   g 1 ≥ g 2 ⟶ T l 3 = h 1 + h 2 g 1 - g 2 - k N P if   g 1 < g 2 ⟶ T l 3 = h 1 + h 2 g 1 - g 2 + k T l 4 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 1 - k P Z T l 5 = 0 Z Z T l 6 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 1 + k N Z if  g 2 ≥ g 1 ⟶ T l 7 = h 1 + h 2 g 2 - g 1 - k P N if   g 2 ≥ g 1 ⟶ T l 7 = h 1 + h 2 g 2 - g 1 + k T l 8 = - 1 g 1 + g 2 h 1 + h 2 + η sgn ⁡ s 2 + k Z N T l 8 = - 1 g 1 + g 2 h 1 + h 2 + k N NTable 4
Parameters used in this research.
Quantities Symbol Parameters 0.026 m R b Ball radius 0.132 m L Distance between ball and robots centers of gravity 0.77 kg M B Body mass 0.015 kg M b Ball mass 6.76 e - 6 kg I b Ball moment of inertia 5.4 e - 3 kg⋅m2 I B x Ball moment of inertia alongx-axis 5.4 e - 3 kg⋅m2 I B y Ball moment of inertia alongy-axis 2 e - 5 kg⋅m2 I M Motors and wheels moments of inertia along the motor rotation axis - 18.6 26 n Motor and ball gear ratio 0.0022 μ B b Friction coefficient between body and ball 0 μ B g Friction coefficient between body and groundTo achieve the requirements of (9), the input is considered as (10).If the three fuzzy sets (positive (P), zero (Z), and negative (N)) are considered for the sliding levels, the fuzzy control rules for the system are shown in Table3.(10)Tl1=-1g1+g2h1+h2-k;k>0.In Table3, k, η are positive. Using fuzzy logic will lead to better performance and smooth switching between the rules that are written in Table 3. According to these rules, V´<0 and the stability is guaranteed.


## 4. Results and Discussion

The results of the different controllers are considered in this section.


### 4.1. Fuzzy Controller to Maintain Stability with One Control Signal

In this section, the results of first fuzzy controller are presented. Using this controller, only the robot’s body stability is maintained and there is no control applied over the position of the robot; therefore, in the steady state time, the robot does not come to equilibrium because of the small angular position error. The results are shown in Figure8. According to Figure 8(a), very small angle error remains (0.003 degrees). This error will produce constant velocity for robot stability (Figure 8(b)). According to Figure 8(b), the angular velocity of robot body will become zero.Figure 8
Fuzzy controller to maintain stability with one control signal with respect to initial condition,θ=5° and θ´=0.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Robot position (d)
Control signal


### 4.2. Fuzzy Controller for Position Control with One Control Signal

As can be seen, the position of the robot will not be stable given the pervious controller. To resolve this problem, two controllers are designed. The results of this controller are shown in Figure9. In this simulation, the initial robot body position and angular velocity are set to 5 degrees and zero, respectively. The objective is robot movement 1 m in x direction (Figure 3). Existing oscillations in Figure 9(c) can be improved by tuning the fuzzy rules or fuzzy sets. According to Figure 9(c), the robot is able to control its position in contrast to the pervious controller.Figure 9
Fuzzy controller for position control with one control signal with respect to initial condition,θ=5°, θ´=0, and the referenced input xd=1 m.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Robot position


### 4.3. Two Fuzzy Controllers with Two Control Signals

Two parallel controllers can have a better performance. In the simulation of this part, initial robot body position and angular velocity are 5 degrees and zero, respectively. The objective is robot movement 0.3 m inx direction. According to Figures 10(a) to 10(b), angle error and angular velocity error have been zero. Robot after about 2 seconds reached the desired position. Using two controllers instead of one increases costs. On the other hand this method may be impractical. Since two inputs are used in this section, better control can be exerted over the robot. Comparison with Figures 10(a) to 10(c) will show this issue.Figure 10
Two fuzzy controllers with two control signals with respect to initial condition,θ=5°, θ´=0, and the referenced input xd=0.3 m.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Robot position


### 4.4. Fuzzy Sliding Mode Controller

In Figure11, first and second states’ responses (angular body position of the robot and its angular velocity) are represented. In Figure 11(c) the control signal is illustrated. Changes in angle and angular velocity are so smooth. Using fuzzy rules for sliding mode controller will eliminate chattering phenomenon and the controller will have a very smooth operation. This signal unlike previous control signals has smooth changes. In the simulation of this part, initial robot body position and angular velocity are 15 degrees and zero, respectively.Figure 11
Fuzzy logic sliding mode controller with respect to initial condition,θ=15° and θ´=0.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Control signal


## 4.1. Fuzzy Controller to Maintain Stability with One Control Signal

In this section, the results of first fuzzy controller are presented. Using this controller, only the robot’s body stability is maintained and there is no control applied over the position of the robot; therefore, in the steady state time, the robot does not come to equilibrium because of the small angular position error. The results are shown in Figure8. According to Figure 8(a), very small angle error remains (0.003 degrees). This error will produce constant velocity for robot stability (Figure 8(b)). According to Figure 8(b), the angular velocity of robot body will become zero.Figure 8
Fuzzy controller to maintain stability with one control signal with respect to initial condition,θ=5° and θ´=0.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Robot position (d)
Control signal


## 4.2. Fuzzy Controller for Position Control with One Control Signal

As can be seen, the position of the robot will not be stable given the pervious controller. To resolve this problem, two controllers are designed. The results of this controller are shown in Figure9. In this simulation, the initial robot body position and angular velocity are set to 5 degrees and zero, respectively. The objective is robot movement 1 m in x direction (Figure 3). Existing oscillations in Figure 9(c) can be improved by tuning the fuzzy rules or fuzzy sets. According to Figure 9(c), the robot is able to control its position in contrast to the pervious controller.Figure 9
Fuzzy controller for position control with one control signal with respect to initial condition,θ=5°, θ´=0, and the referenced input xd=1 m.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Robot position


## 4.3. Two Fuzzy Controllers with Two Control Signals

Two parallel controllers can have a better performance. In the simulation of this part, initial robot body position and angular velocity are 5 degrees and zero, respectively. The objective is robot movement 0.3 m inx direction. According to Figures 10(a) to 10(b), angle error and angular velocity error have been zero. Robot after about 2 seconds reached the desired position. Using two controllers instead of one increases costs. On the other hand this method may be impractical. Since two inputs are used in this section, better control can be exerted over the robot. Comparison with Figures 10(a) to 10(c) will show this issue.Figure 10
Two fuzzy controllers with two control signals with respect to initial condition,θ=5°, θ´=0, and the referenced input xd=0.3 m.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Robot position


## 4.4. Fuzzy Sliding Mode Controller

In Figure11, first and second states’ responses (angular body position of the robot and its angular velocity) are represented. In Figure 11(c) the control signal is illustrated. Changes in angle and angular velocity are so smooth. Using fuzzy rules for sliding mode controller will eliminate chattering phenomenon and the controller will have a very smooth operation. This signal unlike previous control signals has smooth changes. In the simulation of this part, initial robot body position and angular velocity are 15 degrees and zero, respectively.Figure 11
Fuzzy logic sliding mode controller with respect to initial condition,θ=15° and θ´=0.
(a)
Robot body angular position (b)
Robot body angular velocity (c)
Control signal


## 5. Conclusion

In this research, Fuzzy Control Synthesis of Dynamically Stable Single Spherical Wheel Mobile Robot has been considered. By applying the Lagrange method, one can derive the system governing dynamic equations. Also the paper presents novel fuzzy systems used to control a Ballbot. We designed and implemented four different fuzzy logic controllers: (a) regulation with one signal, (b) regulation and position control with one signal, (c) regulation and position control with two signals, and (d) FSMC for regulation and position control with two signals. We evaluated and compared the performances of the various fuzzy logic controllers.These comparisons between the four fuzzy controllers are presented in Figures12 and 13. This comparison is just for stabilization of robot body. If dynamics of the trajectory are smooth, the proposed method can perform well in trajectory tracking, but, for high speed dynamic trajectories, the method is not efficient. As can be seen, the Fuzzy Sliding Mode Controller has better performance. Initial condition for each of them is equal. The fuzzy controller for position control with one control signal also converges to zero in the long run.Figure 12
Robot body angular position with respect to initial condition,θ=5° and θ´=0.Figure 13
Robot body angular velocity with respect to initial condition,θ=5° and θ´=0.It is for this reason that the first controller makes reference angle and then second controller stabilizes robot body about it. However the second controller has no steady state error. But the first controller has a small steady state error. An important issue is the type of control signal. Type of control signal is torque and torque is related to DC motor current. This signal is generated by the DC motor. Equation (11) represents this torque in the terms of DC motor parameters. Consider(11)T=Ktv-Kbϕ´xR.In (11), v is motor voltage, Kt is constant for motor torque, Kb is BEMF motor constant, R is electrical resistance of motor, ϕ´x is angular velocity of the motor, and T is generated torque of motor.



---

*Source: 2651976-2017-01-12.xml*