Only. This File Is Illegal.: Research On Two-Wheeled Self-Balancing Robot Control Strategy Based On LQR-Fuzzy Algorithm
Only. This File Is Illegal.: Research On Two-Wheeled Self-Balancing Robot Control Strategy Based On LQR-Fuzzy Algorithm
L.
Abstract
In this paper, we take two-wheeled self-balancing robot as the experimental object,
A
designing an advanced controller which not only solves the defect of the over-reliance
EG
on precise mathematical model for modern control theory, but also solves the problem of
s I ly.
complex handling issues of the fuzzy controller under multi input and multi output
situation. The designing idea is: firstly, a fusion function is gained through the feedback
ei n
LL
matrix by LQR method; the fusion function is adopted to reduce the input dimensions of
fil O
the fuzzy controller, thus to control the system. Secondly, due to the quantization factor
and proportional factor of fuzzy control are mainly obtained by experience, we use
is on
particle swarm algorithm to optimize the quantization factor and scaling factor of fuzzy
controller in order to get an ideal control effect. Thirdly, constructing two fusion
th si
functions to fuse the six dimensional input variables from the robot, which solve the
y er
existence error between the designed decoupler from theoretical calculation and the
actual situation of the system, also solve the difficulties through decouper designing.
eb eV
Finally, proving the validity of the control strategy through the simulation and real-time
control, it shares a good theoretical and practical significance.
ad in
1. Introduction
Nowadays, the role of robots in the society has become more and more obvious; its
product has been widely used. Due to the vulnerability of the robots and the likely
influence of some uncertain factors from external environment, it belongs to a complex
nonlinear system; therefore the design of its controller becomes a tough issue. Two-
ok
wheeled self-balancing robot has simple structure, and it is easy to analyze, it also shares
the characteristics of nonlinearity, multivariate, instability and high coupling like other
Bo
robots [1]. Hence the research of two-wheeled self-balancing robot has great significance
to the field of robot controller designing; meanwhile it is also an ideal platform for
testing various control algorithms [2]. The two-wheeled self-balancing robot is chosen as
the experimental object in this paper, in order to solve the problem of over-reliance on
precise mathematical models and the problem of complex handling issues of the fuzzy
controller under multi input and multi output situation [3]. The controller is designed.
the X axis, the vertical direction is taken as the Y axis, and the line between two wheels
centers is taken as Z axis, the two center point between two wheels is the origin of the
coordinate system, the coordinate system is shown in figure 1.
yp
y xp
y
XL CG x
CL Mg
L.
HL
L y
A
VL XR
EG
s I ly.
D CR
2
ei n
LL
fil O HR VR
Figure 1. Self-Balancing Robot Force Analysis Diagram
is on
th si
mxl fl H l (1)
ad in
J
xl Cl f l R (2)
R
m Onl
J
xr Cr f r R (4)
R
ok
Mx p Hl H r (5)
My p Vl Vr Mg (7)
D
J (Hl H r ) (8)
2
Among them,
x p x L sin (9)
y p L cos (10)
From the above formulas a nonlinear mathematical model of the robot can be gained:
2 J 1
x ( M 2m 2
) ML( cos 2 sin ) (Cl Cr ) (11)
R R
L.
2 J DJ 1
( Dm 2 ) (Cl Cr ) (13)
A
D R R
EG
s I ly.
The self balancing linearized state equation of rob of can be gained through the
system model linear processing near the equilibrium point:
ei n
LL
x 0 1
fil O 0 0 0 0 x 0 0
23.7097 0 0 0 x 1.8332 1.8332
x 0 0
is on
0 0 0 1 0 0 0 0 Cl
83.7742 0 0 0 4.9798 4.9798 Cr
(14)
0
th si
0
0 0 0 1 0 0
y er
0 0
0 0 0 0 5.1915 5.1915
eb eV
0 0
ad in
The fuzzy rule of fuzzy controller is set up in accordance with reasoning synthesis
method. Here, the optimum quadratic is adopted to gain the required input and output [9].
Therefore, the simulation diagram is shown in figure 2.
L.
A
Figure 2. The Optimal the Two Times Simulation Structure Diagram
EG
s I ly.
3.2 Robot Real-Time Control Test
ei n
LL
The above LQR-fuzzy control strategy is applied into the three degrees of freedom
fil O
robot system to observe and to verify the real-time control effect of algorithm. And then
save the data between 10 to 20 seconds of the robot, and plot it. The effect of real-time
is on
control is shown in figure 3 as follows.
th si
y er
eb eV
ad in
m Onl
ok
the optimal parameter values. This is a repeated alternative simulation and optimization
process. Running time will be relatively longer.
Take a set of data by experience before optimizing, taking two quantitative factors and
a scale factor which are 16, 10, and 28 respectively. After the simulation, the data group
the fitness value is found to be 0.562. Then, running the particle swarm program, the
optimized parameters are 22.7653, 20.7528 and 24.6127 respectively, the fitness value
turns into 0.421. Obviously the better fitness value can be obtained after optimization.
The simulation diagrams before and after optimization are shown in figure 4 and 5.
L.
A
EG
s I ly.
ei n
LL
fil O
is on
Figure 4. System Simulation Diagram Before Optimization
th si
y er
eb eV
ad in
m Onl
From the above simulation diagrams can be seen that, parameters after particle swarm
ok
optimization will not only decrease the adaptive value of the system, meanwhile, we can
also obviously witness the optimized system overshoot volume being significantly
Bo
reduced from the simulation curve, and also speed up the convergence speed. Therefore,
the particle swarm algorithm indeed plays an optimizing effect.
The two LQR-fuzzy controllers are designed, namely, on the basis of K1 and K 2 ,
constructing two fusion functions G1 and G2 . The constructions of two fusion functions
methods are basically the same [13], so only take the construction of G1 as an example.
Recording K1 vector norm as K1 , K1 kr1 2 kr1 2 k1 2 k 2 k1 2 k 2 .
1 1
Therefore:
kr1 k1 k1
0 0 0
K1 K1 K1
G1 (17)
kr1 k1 k1
0
L.
0 0
K1 K1 K1
A
So the input and output of the integration function is as follows:
EG
s I ly.
kr1 k1 k1
0 0 0
ei n
LL
K1 K1 K1
x1 x
fil O
kr1 k1 k1
(18)
0 0 0
is on
K1 K1 K1
th si
y er
Control strategies adopted the synthesis reasoning method with two fuzzy controllers,
firstly, extract the data, and then use the fuzzy synthesis reasoning to derive the fuzzy
rules on the basis of data. By using the optimal quadratic form to obtain the input and
ad in
output data [14]. Then generate he control rules of fuzzy controller 1 and the controller 2,
based on the ideas of fuzzy reasoning synthesis such as table 1 and table 2.
m Onl
Ec NB NM NS ZE PS PM PB
E
NB NB NB NB NM NM NM NS
ok
NM NB NB NM NM NS NS ZO
NS NB NM NM NS NS ZO PS
Bo
ZE NM NS NS ZO PS PS PM
PS NM NS ZO ZO ZO PS PM
PM NS ZO PS PS PM PM PB
PB ZO ZO PS PS PM PB PB
Ec NB NM NS ZE PS PM PB
E
NB NB NM NM NS NS ZO ZO
NM NM NM NS NS NS ZO ZO
NS NM NM NS NS ZO ZO PS
ZE NM NS NS ZO PS PM PM
PS NS NS ZO ZO PS PS PM
PM NS ZO ZO PS PS PM PB
PB ZO PS PS PM PM PM PB
L.
A
EG
s I ly.
ei n
LL
fil O
is on
th si
The above LQR-Fuzzy control algorithms are applied to three degree freedom
eb eV
robot system to verify and check the practical real-time control effect of the
algorithm, save the data of robots between 10 second to 20 second. The real-time
ad in
From the real time response curve of double fusion LQR-fuzzy control, it can be seen
that during the process of control, the dip angle basically fluctuate within the range of [-
0.05, 0.05], and the range of variation is very small. Therefore, we can say that in some
cases, no decoupling to the system also can achieve the expected effect of control. The
robot real time control effect is shown in figure 8.
L.
6. Conclusion
A
This paper takes two-wheeled self-balancing robot as the experimental object,
firstly, the Newton's mechanics equation is adopted to establish the system
EG
s I ly.
mathematical model and conduct the linear process. Then design a LQR-fuzzy
controller, the LQR is adopted to generate the system feedback matrix, in order to
ei n
construct the fusion function and then to reduce the fuzzy controller input dimension,
LL
fil O
lastly using the fuzzy controller to control the whole system. During the design of the
above controller, the obtaining of fuzzy controller quantization factor and scaling factor
is on
are mainly relied on experience and test methods. In order to get a better control effect,
using particle swarm optimization algorithm to optimize the fuzzy controller of
th si
quantization factor and scaling factor in order to get the ideal factor values. There is a
certain difference between the decoupler that is designed based on actual system and the
y er
under actual system. The decoupler has also been a problem in control system designing.
eb eV
Therefore, this paper tries to construct two blending function to the overall integration,
for the six dimensional input variables of the robot, using the fuzzy controller itself
decoupling function instead of decoupler within the original system. Finally, the
ad in
algorithm was verified through SIMULINK and proved to obtain a good simulation
effect which has a wide range of application perspective.
m Onl
Acknowledgements
Harbin application technology research and development projects (Outstanding
subject leaders) No.2014RFXYJ051
References
ok
[1] Googol Technology, “Self-Balancing Robot GBOT1001 User Manual”, (2007), pp. 4-16.
[2] J. Wu and W. Zhang, “Design of fuzzy logic controller for two-wheeled self-balancing Robot”, The
Bo
6th International Forum on Strategic Technology, Harbin, China, (2011), pp. 1266-1270.
[3] Z. Li, “Research on LQR-Fuzzy control algorithm of two-wheeled self-balancing robot”, Harbin:
Harbin university of technology (master's degree thesis), vol. 32, (2014).
[4] L. Xiao, “Two-wheel self-balancing robot modeling and intelligent control”, Harbin: Harbin university
of technology (master's degree thesis), (2011), pp. 60-61.
[5] J. Wu and S. Wang, “Application of fuzzy control in double inverted pendulum”, Journal of Harbin
University of Science and Technology, vol. 4, no. 18, (2013).
[6] W. Zhang, “Two rounds of self-balancing robot fuzzy PD control method research”, Harbin: Harbin
university of technology (master's degree thesis), (2012), pp. 18-24.
[7] J. Qu, W. Wu and J. Sun, “Triple inverted pendulum system fuzzy controller design and simulation
[J]”, Journal of system simulation, vol. 3, no.16, (2004).
[8] S. Jia, “Research and application of two-wheeled self-balancing robot control strategy based on
adaptive neural-fuzzy algorithm”, Harbin: Harbin university of technology (master's degree thesis),
(2012), pp. 38-40.
[9] J. Wu and S. Jia, “T-S adaptive neural network fuzzy control applied in two-wheeled self-balancing
robot”, The 6th International Forum on Strategic Technology, Harbin, China, 1023-1026, August,
(2011), pp. 22-24.
[10] Z. Li, “Study on the fuzzy control of inverted pendulum system”, Xi'an: xi'an university of science and
technology building (a master's degree thesis), 42-54, (2007)
[11] S. Chen, “Using SIMULINK and the optimization toolbox for PID parameter optimization”, Journal of
modern electronic technology, vol. 9, no. 11 (2002)
[12] J. Wu, “Yuxin Liang. Research on the control method of two-wheeled self-balancing robot system
based on variable structure control”, Journal of ICIC Express Letters, Part B: Applications, vol. 3, no.
5, (2012), pp. 1185-1192.
[13] X. Xu, C. Liu, Z. Song and X. Song, “Fuzzy decoupling controller design and application”, Journal of
hebei industrial science and technology, vol. 1, no. 25, (2008).
[14] J. Wu, W. Zhang and S. Wang, “Two-wheeled self-balancing robot with the fuzzy PD control method”,
Mathematical Problems in Engineering, (2012), pp. 112-125.
L.
A
EG
s I ly.
ei n
LL
fil O
is on
th si
y er
eb eV
ad in
m Onl
ok
Bo
L.
A
EG
s I ly.
ei n
LL
fil O
is on
th si
y er
eb eV
ad in
m Onl
ok
Bo