SlideShare a Scribd company logo
1 of 12
Download to read offline
TELKOMNIKA Telecommunication, Computing, Electronics and Control
Vol. 18, No. 5, October 2020, pp. 2642~2653
ISSN: 1693-6930, accredited First Grade by Kemenristekdikti, Decree No: 21/E/KPT/2018
DOI: 10.12928/TELKOMNIKA.v18i5.14717  2642
Journal homepage: http://journal.uad.ac.id/index.php/TELKOMNIKA
Balancing a Segway robot using LQR controller based on
genetic and bacteria foraging optimization algorithms
Ibrahim K. Mohammed, Abdulla I. Abdulla
Systems and Control Engineering Department, College of Electronics Engineering, Ninevah University, Iraq
Article Info ABSTRACT
Article history:
Received Nov 29, 2019
Revised Feb 11, 2020
Accepted Mar 23, 2020
A two-wheeled single seat Segway robot is a special kind of wheeled mobile
robot, using it as a human transporter system needs applying a robust control
system to overcome its inherent unstable problem. The mathematical model of
the system dynamics is derived and then state space formulation for the system
is presented to enable design state feedback controller scheme. In this research,
an optimal control system based on linear quadratic regulator (LQR) technique
is proposed to stabilize the mobile robot. The LQR controller is designed to
control the position and yaw rotation of the two-wheeled vehicle. The proposed
balancing robot system is validated by simulating the LQR using Matlab
software. Two tuning methods, genetic algorithm (GA) and bacteria foraging
optimization algorithm (BFOA) are used to obtain optimal values for controller
parameters. A comparison between the performance of both controllers
GA-LQR and BFO-LQR is achieved based on the standard control criteria
which includes rise time, maximum overshoot, settling time and control input
of the system. Simulation results suggest that the BFOA-LQR controller
can be adopted to balance the Segway robot with minimal overshoot and
oscillation frequency.
Keywords:
Bacteria foraging optimization
algorithm
Genetic algorithm
LQR controller
Segway robot
Yaw rotation
This is an open access article under the CC BY-SA license.
Corresponding Author:
Ibrahim K. Mohammed,
Systems and Control Engineering Department,
College of Electronics Engineering,
Ninevah University,
Mosul, Iraq.
Email: ibrahim.mohammed@uoninevah.edu.iq
1. INTRODUCTION
The Segway robot is an electric, two-wheeled self-balancing human transporter with a computer-
controlled gyroscopic stabilization and control system. This new vehicle is a complex and hybrid machine that
requires engineering competence in many fields; vehicle dynamics, automatic control, battery technology,
power electronics, software engineering, microcomputer programming, network and communication
engineering. The two-wheeled robot was revealed by Dean Kamen in 2001 to replace the car or buggies which
were more polluting [1]. The personal transporter has the wide applications in the military and civilian field due
to its simple construction, high energy using rate, stable movement and ability to adapt with surrounding
environmental conditions. However, the single-seat robot faces many challenges related to nonlinearity, high
order variables, strong coupling and inherent unstable dynamics of the system. Therefore, balance problem and
development of this type of vehicle is a hot research topic of interest to many robotics laboratories around
the world. Segway is a known two-wheeled single-seat mobile robot which has been utilized as a commercial
personal transportation vehicle. In the Segway robotic system a collection of tiltsensors and five gyroscopes are
TELKOMNIKA Telecommun Comput El Control 
Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed)
2643
used to remain the human user in the straight position [2]. Moreover, [3] use two teams, human transporter
platform (HT) and robot mobility platform (RMP), to created a new mobile robot, called Segway Soccer.
The walking robotic system is used to examine the coordination of dynamically formed, mixed personal-mobile
robot teams within the domain of a team function that requires making a decision and response.
An initial model of a digitally controlled mobile robot has been constructed in [4]. In the presented
prototype, which is based on the inverted pendulum, the human rider is simulated by attaching weights to
the scheme. A linear state feedback controller is used to stabilize the proposed personal mobile robot based on
sensory information from motor encoders and a gyroscope. A new two-wheeled inverted pendulum mobile
robot is presented by [5]. A control system based on pole placement technique is designed to stabilize the rider
in an upright position. It is worth considering that, there are another models for two-wheeled self-balancing
human vehicles invented by robotic engineers. In 2003, David P. A. built the Nbot balancing robot used
a human transporter provided by a linear controller used to stabilize the system using information from motor
encoder and the inertial sensor. Furthermore, [6] has successfully fabricated a new model of robot called
Legway based on Mindstorms robotics kit. A linear controller is used to stabilize the electric vehicle based
information of the tilt angle obtained from two electro-optical proximity detector (EOPD) sensors. However,
fine tuning for the controller parameters is required to achieve a peter performance. Hussien et al. [7] introduced
another model for two-wheeled mobile robot. Nonlinear control system based on model reference adaptive
control (MRAC) using Lpayunovs stability theorem is employed to balance the proposed single-seat electric
vehicle. Simulation and experimental results are presented to validate tracking performance of the proposed
robot actuation system. However, the performance of the robot control system is based on the controller
coefficients, which are chosen arbitrary, therefore, for peter performance an optimization algorithm should be
used. All the proposed controllers used to stabilize the mobile robots are not optimized using optimization
methods, the gain parameters are obtained using trial and error procedure. In order to achieve a stable actuation
performance for mobile robot system a proper controller technique based on tuning algorithm should be used.
The linear quadratic regulator (LQR) is among most popular linear state feedback controllers implemented in
field of industrial applications. The implementation of the LQRcontroller can be noticed by research works
published by [4, 8-11].
In this study, the LQR controller is adopted to implement the control system used to balance
the two-round human vehicle as it seeks basically a trade off between the best control performance and
minimum power input [12, 13]. However, using this controller approach includes many problems and
disadvantages such as relying on the designer experience and skill and the trial and error procedure in
the determine of the controller weighting matrices 𝑄 and 𝑅. Therefore, there is a enormous concern by
robotic engineers in computer-aided optimization algorithms that can be considered to obtain the global
optimum solution of 𝑄 and 𝑅 matrices..
There are many optimization approaches that have been adopted by control engineers to obtain
optimum values for elements of LQR matrices, such as a particle swarm inspired evolutionary algorithm
(PS-EA), particle swarm optimization (PSO), genetic algorithm (GA) [14], combination of simulated
annealing (SA) and GA [15], differential evaluation (DE) [16] and ant colony optimization (ACO) [17].
These intelligent optimization tools make the LQR controller system very robust, and insensitive to noisy
and/or missing data. Bacteria foraging optimization algorithm (BFOA) is a new tuning algorithm that can be
applied to optimize the cost function of several problems in different application fields. The BFOA is
a combinatorial optimization algorithm which applied to achieve the best global solution for the proposed
LQR controller. It is worth considering that there is a significant improvement inthe control response of
the LQR controller is achieved by using these tuning algorithms, however, the research work is still open to
explore for further controller improvements and developments. In this research, two tuning algorithms, GA
and BFOA are utilized to improve the behavior of the LQR controller.
The remainder of the paper is organised as follows: section 2 presents modelling and dynamics of
the proposed two-wheeled self-balancing human robot. In section 3, the technique of the controller system is
introduced. Section 4, presents optimization methods of LQR controller. Section 5 and section 6 introduce
controller design and simulation results of GA-LQR and section 7 introduce BFOA-LQR controllers for
the robot system respectively. Conclusions and future work are presented in section 8.
2. SYSTEM MODELING
The performance of a walking robot depends on the reliability of the system modeling and
robustness of the controller design. The structure of the two-wheeled Segway personal robot composes
mainly of an electrical sub system and mechanical subsystem. Figure 1 demonstrates graphic model of
the Segway robot. In this section, the motion equation of the inverted pendulum is derived and the dynamic
model of the motors is formulated. The motor model is then utilized in formulation the dynamic model of
 ISSN: 1693-6930
TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653
2644
the personal robot scheme to give a functional relationship between applied voltage to the DC motors and
adjusting magnetic torque required to stabilize the human mobile robot.
2.1. Electrical subsystem modeling
The main part of the electric sub system is the DC motors, which are used to rotate the left and right
wheel of the robot. The electric circuit of the DC motor is shown in Figure 2. Applying voltage π‘‰π‘Ž (𝑉) to
the motor terminals generates a current 𝑖(𝑑) (𝐴) in the motor armature. The excited motor produces a torque
(π‘π‘š) governed by the following relationship.
𝐢 = 𝐾 π‘š 𝑖 (1)
where 𝐾 π‘š is torque constant (π‘π‘š/𝐴). The back electromotive (emf) voltage 𝑉𝑒 (𝑉) produced in
the motor coil can be approximated as a linear function of motor angular velocity πœƒΜ‡ (π‘Ÿπ‘Žπ‘‘/𝑠), as follows:
𝑉𝑒 = 𝐾𝑒 πœƒΜ‡ (2)
where 𝐾𝑒 is torque constant (𝑉𝑠/π‘Ÿπ‘Žπ‘‘). Applying Kirchoff’s voltage law to the motor circuit shown in
Figure 2 yields the following expression:
Va = Ri + L
di
dt
+ Ve (3)
It is worth considering that the dynamic of the mechanical system is considered slow compared to that of
electrical system, therefore, the current transients of the system can be omitted. Hence, solving (3) for
the current yields:
𝐒 =
π•πšβˆ’π•πž
𝐑
(4)
based on (2), (4) can be written as follows:
i =
Va
R
βˆ’
Ke
R
ΞΈΜ‡ (5)
substituting (5) in (1) gives an expression for the torque produced by DC motor:
C =
Km
R
Va βˆ’
KmKe
R
ΞΈΜ‡ (6)
Figure 1. Model of the two-wheeled robot [18] Figure 2. Electric model circuit of DC motor
2.2. Mechanical subsystem modeling
It consists of chassis, which behaviors as inverted pendulum, and the left and right wheels.
In this study, the parameter of mass, radius and moment of inertia of the two wheels are assumed the same.
Based on this assumption the dynamic modeling of the right wheel is the same as that of the left wheel.
In this research, formulation of the right wheel model is considered in detail. It is worth considering that
the modeling strategy of the mechanical robot subsystem is based on an idea that the dynamics of
TELKOMNIKA Telecommun Comput El Control 
Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed)
2645
the inverted pendulum and wheels are modeled separately at the beginning, and then equations of motion
which completely describe the dynamic behavior of the system are derived [19].
2.2.1. Wheel model
Figure 3 presents the free body diagram of the left and right wheels for the mobile Segway transport
system. Using second Newton’s law of motion, the sum of the external forces 𝐹(𝑁) exerted on the wheel,
which governs its translation motion in the horizontal x-direction is given by [20].
βˆ‘ Fx = Mwa (7)
Mwẍ = Hf βˆ’ H (8)
Figure 3. Free body diagram of the robot wheels
where 𝑀 𝑀(𝐾𝑔) is the wheel mass of the robot, a is the gravity acceleration (π‘š/𝑠2
) and𝐻𝑓is the friction
force between ground and wheels(𝑁). While the rotational motion π‘€π‘œ of the wheel is given by: go
βˆ‘ Mo = Iwθ̈w (9)
Iwθ̈w = C βˆ’ Hfr (10)
where 𝐼 𝑀 (πΎπ‘”π‘š2
) and πœƒΜˆ 𝑀 (π‘š/𝑠2
) are moment of inertia and acceleration of the wheels respectively, and r
is the radius of wheel (π‘š). Based on (6), the above equation becomes:
Iwθ̈w =
Km
R
Va βˆ’
KmKe
R
ΞΈΜ‡w βˆ’ Hfr (11)
Hf =
Km
Rr
Va βˆ’
KmKe
Rr
ΞΈΜ‡w βˆ’
Iw
r
θ̈ (12)
where πœƒΜ‡ 𝑀is the angular velocity of wheel (π‘š/𝑠). Substituting (12) into (8) yields (13) and (14) for the left
and right wheels respectively.
Mwẍ =
Km
Rr
Va βˆ’
KmKe
Rr
ΞΈΜ‡w βˆ’
Iw
r
θ̈w βˆ’ HL (13)
Mwẍ =
Km
Rr
Va βˆ’
KmKe
Rr
ΞΈΜ‡w βˆ’
Iw
r
θ̈w βˆ’ HR (14)
Because the center of the robot wheel is acted by the linear motion, the angular rotation of the wheel can be
transformed into linear motion by the following simple transformation, πœƒΜˆ 𝑀 π‘Ÿ = π‘₯̈ β†’ πœƒΜˆ = π‘₯̈/ π‘Ÿ,
πœƒΜ‡ 𝑀 π‘Ÿ = π‘₯Μ‡ β†’ πœƒΜ‡ = π‘₯Μ‡/ π‘Ÿ. By the linear transformation, (13) and (14) become as follows:
Mwẍ =
Km
Rr
Va βˆ’
KmKe
Rr2
xΜ‡w βˆ’
Iw
r2
ẍ βˆ’ HL (15)
 ISSN: 1693-6930
TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653
2646
Mwẍ =
Km
Rr
Va βˆ’
KmKe
Rr2
xΜ‡w βˆ’
Iw
r2
ẍ βˆ’ HR (16)
Adding (15) and (16) together yields the following expression,
2(𝑀 𝑀 +
𝐼 𝑀
π‘Ÿ2)π‘₯̈ = 2
𝐾 π‘š
π‘…π‘Ÿ
π‘‰π‘Ž βˆ’ 2
𝐾 π‘š 𝐾 𝑒
π‘…π‘Ÿ2 π‘₯Μ‡ 𝑀 βˆ’ (𝐻𝐿 + 𝐻 𝑅) (17)
2.2.2. Chassis model
The chassis of the mobile robot can be modeled as an inverted pendulum, Figure 4 presents the free
body diagram of the chassis. Again, based on Newton’s law of motion, the sum of forces acting on
the chassis in the horizontal x-direction is given by [20]:
βˆ‘ Fx = Mpẍ (18)
Mpẍ = HL + HR βˆ’ MplΞΈp̈ cos ΞΈp + MplΞΈΜ‡2
p sin ΞΈp (19)
where 𝑀 𝑝 is the wheel mass of the robot (𝐾𝑔) and πœƒ 𝑝 is the rotational angle of the chassis (π‘Ÿπ‘Žπ‘‘). The above
equation is rearranged as follows:
HL + HR = Mpẍ + Mplθ̈p cos ΞΈp βˆ’ MplΞΈΜ‡2
p sin ΞΈp (20)
The sum of perpendicular forces acting on the pendulum is:
βˆ‘ Fp = Mpẍ cos ΞΈp (21)
(𝐻𝐿 + 𝐻 𝑅) π‘π‘œπ‘  πœƒ 𝑝 + (𝑃𝐿 + 𝑃𝑅) 𝑠𝑖𝑛 πœƒ 𝑝 βˆ’ 𝑀 𝑝 𝑔 𝑠𝑖𝑛 πœƒ 𝑝 βˆ’ 𝑀 𝑝 π‘™πœƒΜˆ π‘Μˆ = 𝑀 𝑝 π‘₯̈ π‘π‘œπ‘  πœƒ 𝑝 (22)
where 𝑃𝐿and 𝑃𝑅 are the reaction forces between left and right wheel and chassis (𝑁) respectively and πœƒΜˆ 𝑝 is
chassis angular acceleration(π‘š/𝑠2
), sum of moments around the center of pendulum mass is given by:
βˆ‘ Mo = Ipθ̈p (23)
Ipθ̈p = βˆ’(HL + HR)l cos ΞΈp βˆ’ (PL + PR)l sin ΞΈp βˆ’ (CL + CR) (24)
where 𝐢𝐿 and 𝐢 𝑅are the motor torque applied to left and right wheels respectively (π‘π‘š) the motor torque
exerted on the pendulum applied as defined in (6) and after linear transformation,
CL + CR = 2
Km
R
Va βˆ’ 2
KmKe
R
ẋ
r
(25)
substituting (25) into (24) yields,
Ipθ̈p βˆ’ 2
KmKe
R
ẋ
r
+ 2
Km
R
Va = βˆ’(HL + HR)l cos ΞΈp (PL + PR)l sin ΞΈp (26)
substitute (26) in (22) after multiply (22) by(βˆ’π‘™) yields:
Ipθ̈p βˆ’ 2
KmKe
R
ẋ
r
+ 2
Km
R
Va + Mpgl sin ΞΈp + Mpl2
θ̈p̈ = βˆ’Mplẍ cos ΞΈp (27)
Sum of moments around the center of pendulum mass is given:
βˆ’Mplẍ cos ΞΈp = (Ip + Mpl2
)θ̈p βˆ’ 2
KmKe
Rr2 ẋ + 2
Km
Rr
Va + Mpgl sin ΞΈp (28)
to eliminate the term (𝐻𝐿 + 𝐻 𝑅) from the motor dynamic (20) is substituted in (17).
2
Km
Rr
Va = (2Mw +
Iw
r2 + Mp)ẍ + 2
KmKe
Rr2 xΜ‡ + Mplθ̈p cos ΞΈp βˆ’ MplΞΈΜ‡2
p̈ sin θp (29)
TELKOMNIKA Telecommun Comput El Control 
Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed)
2647
for purpose of design a linear control system, the system dynamic (28) and (29) are linearized about
an operating point based on the assumption πœƒ 𝑀 = πœ‹ + πœ™ where οͺ denotes an angle measured from
the vertical upward direction. Therefore, 𝑠𝑖𝑛 πœƒ 𝑝 = βˆ’πœ™, π‘π‘œπ‘  πœƒ 𝑝 = βˆ’1 and (π‘‘πœƒ 𝑝/𝑑𝑑)2
= 0 for purpose of state
space representation, the dynamic (28) and (29) are rewritten as follows:
Ο•Μˆ =
MpI
(Ip+MpI2)
ẍ +
2KmKe
Rr(Ip+MpI2)
ẋ +
MpgI
Rr(Ip+MpI2)
Ο• βˆ’
2Km
(Ip+MpI2)
Va (30)
ẍ =
2Km
RrKw
Va βˆ’
2KmKe
Rr2Kw
ẋ +
MpI
Rr2Kw
Ο•Μˆ (31)
where 𝐾 𝑀 = 2𝑀 𝑀 + 2𝐼 𝑀/π‘Ÿ2
. After a series of algebraic manipulation, the state equation becomes:
[
π‘₯Μ‡
π‘₯̈
πœ™Μ‡
πœ™Μˆ
] =
[
0 1 0
0
𝐾1(𝑀 𝑝 πΌπ‘Ÿβˆ’πΌ π‘βˆ’π‘€ 𝑝 𝐼2)
π‘…π‘Ÿ2 𝛼
𝑀2
𝑝 𝑔𝐼2
𝛼
0 0 0
0
𝐾1(π‘Ÿπ›½βˆ’π‘€ 𝑝 𝐼)
π‘…π‘Ÿ2 𝛼
𝑀 𝑝 𝑔𝐼𝛽
𝛼
0
0
1
0
] [
π‘₯
π‘₯Μ‡
πœ™
πœ™Μ‡
] +
[
0
2𝐾 π‘š(𝐼 𝑝+𝑀 𝑝 𝐼2βˆ’π‘€ 𝑝 πΌπ‘Ÿ)
π‘…π‘Ÿπ›Ό
0
2𝐾 π‘š(𝑀 𝑝 πΌβˆ’π›½)
π‘…π‘Ÿπ›Ό ]
π‘‰π‘Ž (32)
where, 𝐾1 = 2𝐾 π‘š 𝐾𝑒, 𝛽 = 2𝑀 𝑀 +
2𝐼 𝑀
π‘Ÿ2 + 𝑀 𝑝 and 𝛼 = [𝐼 𝑝 𝛽 + 2𝑀 𝑝 𝐼2
(𝑀 𝑀 +
𝐼 𝑀
π‘Ÿ2)]
.
It is worth considering that
the system modeling is based on the supposition that both wheels of the walking robot are assumed in state of
contact with the ground and without sliding. Cornering forces produced by vehicle wheels during cornering
are also considered negligible [19].
Figure 4. Free body diagram of the chassis
3. CONTROLLER TECHNIQUE
In this research, LQR technique is utilized to implement the proposed robot control system. LQR is
a common controller approach used effectively in the control applications of the movement systems. Figure 5
shows block diagram of the Segway robot control system based on LQR controller. The state and output
matrix equations describing the Segway robot equations of motion are given by:
𝑋̇(𝑑) = 𝐴𝑋(𝑑) + 𝐡𝑒(𝑑) (33)
𝑦(𝑑) = 𝐢𝑋(𝑑) + 𝐡𝑒(𝑑) (34)
where 𝐴(𝑛π‘₯𝑛), 𝐡(𝑛π‘₯π‘š), 𝐢(𝑝π‘₯𝑛), 𝐷(𝑝π‘₯π‘š) are the system, input, output and feed forward matrix respectively.
In this approach, the input vector:
𝑒(𝑑) = βˆ’πΎπ‘‹(𝑑) (35)
 ISSN: 1693-6930
TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653
2648
where𝐾 = [𝐾1 𝐾2 𝐾3 𝐾4] is an optimal feedback gain matrix of the controller used to track the input
command while the following performance index:
𝐽 = ∫ (𝑋 𝑇
(𝑑)𝑄(𝑑)𝑋(𝑑) + 𝑒 𝑇
(𝑑)𝑅(𝑑)𝑒(𝑑))𝑑𝑑
∞
0
(36)
where 𝑄(𝑑) and𝑅(𝑑) are weighting state and input matrices respectively. The feedback gain matrix K can be
determined by using the following:
𝐾 = π‘…βˆ’1
𝐡 𝑇
𝑃 (37)
where P denotes the solution of the following Riccati:
𝐴 𝑇
𝑃 + 𝑃𝐴 βˆ’ π‘ƒπ΅π‘…βˆ’1
𝐡 𝑇
𝑃 + 𝑄 = 0 (38)
The controller weighting matrices should be tuned properly in order to minimize the following performance
index )(J :
𝐽 = ∫ (π‘ž11 π‘₯1
2
+ π‘ž22 π‘₯2
2
+ π‘ž33 π‘₯3
2
+ π‘ž44 π‘₯4
2
+ 𝑅𝑒2
)𝑑𝑑
∞
0
(39)
where π‘ž11, π‘ž22, π‘ž33 and 44q represent the weighting elements of position, speed, angle and angular velocity of
the proposed robot system respectively. It is worth considering that by using controller weighting matrices
𝑄(𝑑) and 𝑅(𝑑) which govern the behavior of the robot system states and control effort respectively,
the optimal LQR gain matrix 𝐾 is computed based on the Matlab command ” lqr ”.
Figure 5. Segway robot control system using LQR controller
4. LQR OPTIMIZATION METHODS
In this research, two optimization algorithms, GA and BFOA, are used to tune the 𝑄(𝑑) and 𝑅(𝑑)
matrices of the LQR controller, which are adopted to calculate the gain matrix required to balance
the Segway system. Based on optimized gain matrix 𝐾 a good output time response with minimal of rise time
(𝑑 π‘Ÿ), settling time(𝑑 𝑠), maximum overshoot (π‘€π‘œ) and steady state error(𝑒𝑠𝑠) can be investigated.
4.1. Genetic algorithm
GA is an optimization technique used to find global solution for more control problems. Based on
the mechanisms of natural selection. In this optimization approach, the solution space is selected by
generating a population of candidate individuals to find optimum values for the problem. The procedure of
GA optimization method includes three basic steps, namely selection, crossover and mutation. By applying
these stages new individuals can be created, which, could be better than their parents. Based on the fitness
function of the system, the GA steps are repeated for many generations and eventually stop at generating
candidate individual elements that can represent the best solution for the application problem [14]. Figure 6
shows the graphical illustration of the GA loop.
The definition of the GA steps is as follows Abdulla [14]: Random initial population - Choose
individuals for mating - Mate the population to generate progeny - Mutate progeny - New individuals
inserted into population - Are criteria satisfied? - End of solution searching. Each chromosome represented
by five real value cells that correspond to the LQR controller weighting matrices 𝑄(𝑑) and 𝑅(𝑑) as shown in
Figure 7. The chromosome elements π‘ž11, π‘ž22, π‘ž33, π‘ž44 and R should be adjusted properly by optimum
positive numbers in order to achieve best control performance.
TELKOMNIKA Telecommun Comput El Control 
Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed)
2649
Figure 6. Genetic algorithm loop Figure 7. Chromosome definition
4.2. BFO algorithm
The bacteria foraging behavior is a computational model, which, has attracted more attention as it is
a rich source of potential engineering applications. BFO is a simple and powerful population-based numerical
optimization algorithm that has been introduced by Passino in 2002 [21]. The BFO algorithm has been
gaining a considerable interest in researchers due to its efficiency in solving and optimizing more engineering
problems in several application domains, such as optimal control [22], harmonic estimation [23] and
transmission loss reduction [24]. The strategy of bacteria selection for the BFO algorithm bases on an idea
that the bacteria with poor foraging is eliminated and following up those bacteria which have successful
foraging to maximize energy obtained per unit time [21]. It is worth considering that, in this new
optimization algorithm a social foraging approach of the E-coli bacteria can be applied successfully to solve
multi-optimal function optimization problem. The E-coli bacteria can move in two ways namely, swimming
and tumbling. Figure 8 shows the swim and tumble movement of a bacterium.
Figure 8. movement modes of a bacterium
4.3. BFO foraging strategy [25]
βˆ’ Chemotaxis: This process is related to movement of bacterium during search for food. The E-coli bacteria
can move in two ways namely, swimming and tumbling, and they are able to alternate between these two
movement styles for the whole of their lifetime. In the swimming mode, the bacteria walk in a certain
direction for gathering food, while in the tumbling mode, they move with random directions.
βˆ’ Swarming: The swarming action means the bacteria with a good fitness value, try to attract others to form
groups, so that they all can arrive at the desired location. These groups of E-coli cells arrange themselves,
in which, they can move as concentric patterns for food searching.
βˆ’ Reproduction: In this stage, all the bacteria population are classified based on health status.
The healthier bacteria, which, have had sufficient nutrients will be reproduced, while the less healthy
bacteria will die. The surviving bacteria will split into an identical replica of itself placed in the same
locations with a that number equals to the number of the dead ones.
βˆ’ Elimination and Dispersal: During this evolutionary step, gradual or sudden events or attacks in
the local living environment of the bacteria, may occur due to significant rising of the temperature caused
by occupancy of a high density of bacteria for a specific area. This high temperature may kill a group of
bacteria and dispersal of others into some new locations.
5. ROBOT CONTROL SYSTEM DESIGN
In this research, an optimal control system for the Segway robot is designed using the state feedback
LQR controller. The gain parameters of the controller are tuned effectively, using optimization algorithms,
GA and BFOA. The proposed controller design is validated using Matlab programming. Based on step input,
the control system is designed for the following requirements: rise time less than 10 (ms), settling time less
than 30 (ms), maximum overshoot percentage less than 5%. The fitness function of the robot control system
is as follows:
 ISSN: 1693-6930
TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653
2650
𝐹 = 𝑆. 𝑑 π‘Ÿ, 𝑑 π‘Ÿπ‘šπ‘Žπ‘₯ + 𝑆. 𝑑 𝑠, 𝑑 π‘ π‘šπ‘Žπ‘₯ + 𝑆. 𝑂, π‘€π‘œ (40)
where 𝑆 is the closed-loop transfer function of the Segway robot scheme 𝑑 π‘Ÿ is the rise time (s), 𝑑 π‘Ÿπ‘šπ‘Žπ‘₯ is
the maximum rise time (s), 𝑑 𝑠 is the settling time (s), 𝑑 π‘ π‘šπ‘Žπ‘₯ is the maximum settling time (s), 𝑂 is
the overshoot value of the output response and π‘€π‘œ is the maximum over shoot value. This function is
considered in optimization process of the controller gain matrix using GA and BFO tuning algorithms.
6. GA-LQR CONTROLLER DESIGN AND RESULTS
The block diagram of the Segway control system using GA-LQR controller is shown in Figure 9.
Based on the system parameters (𝑅 =1.6𝛺, 𝐿 =1.2π‘šπ», 𝑙 =0.16π‘š, 𝑀 𝑀 =0.02𝐾𝑔, 𝑀 𝑝 =0.52𝐾𝑔,
𝐼 𝑀 =0.0032πΎπ‘”π‘š2
, 𝐼 𝑝 =0.0038 πΎπ‘”π‘š2
) the state and output equation are given in (41) and (42) respectively.
The global optimal solution for the LQR controller problem is achieved using genetic algorithm
programming. This solution includes determine optimum values for the weighting matrices elements, which,
are given below. Based on the optimized weighting matrices, the LQR gain matrix K was computed using
the Matlab command β€œπ‘™π‘žπ‘Ÿβ€ as follows:𝑄 = π‘π‘™π‘˜π‘‘π‘–π‘Ž(π‘ž11, π‘ž22, π‘ž33, π‘ž44) where π‘ž11 = 8.969., π‘ž22 =0.308,
π‘ž33 =0.121, π‘ž44 =0.0085, 𝑅 =2.123*10βˆ’5
and 𝐾 = [-6.4988 -3.8592 -5.1982 -0.7348].
[
π‘₯Μ‡
π‘₯̈
πœ™Μ‡
πœ™Μˆ
] = [
0 1 0 0
0 βˆ’0.0316 0.3817 0
0 0 0 1
0 0.3927 49.5531 0
] [
π‘₯
π‘₯Μ‡
πœ™
πœ™Μ‡
] + [
0
0.05746
0
βˆ’0.7141
] π‘‰π‘Ž (41)
𝑦 = [
1 0 0 0
0 0 1 0
] [
π‘₯
π‘₯Μ‡
πœ™
πœ™Μ‡
] + [
0
0
] 𝑒 (42)
The response of the system output π›₯π‘₯(𝑑) and π›₯πœ™(𝑑) using the above optimized feedback gain
matrix is shown in Figure 10. Figure 11 presents the input signal of the Segway system. It is clear from
Figures 10 and 11 that the tuned controller utilizing the GA tuning method can effectively perform a fast and
stable response under an acceptable input effort. Based on Figure 10, the output states π›₯π‘₯(𝑑) and π›₯πœ™(𝑑)
tracked the demand input trajectories without overshoot, rise time and settling time of approximately 80 ms
and 95 ms respectively and approximately zero steady state error. Figure 12 presents converging of the LQR
weighting matrices through iterations based on GA tuning method.
Figure 9. Block diagram of Segway controller GA-LQR
TELKOMNIKA Telecommun Comput El Control 
Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed)
2651
Figure 10. System response using
GA-LQR controller
Figure 11. System input based
on GA-LQR controller
(a) (b)
(c) (d)
(e)
Figure 12. Generation elements of 𝑄(𝑑) and 𝑅(𝑑) matrices for GA-LQR controller; (a) π‘ž11 element,
(b) π‘ž22 element, (c) q33 element, (d) π‘ž44 element, and (e) 𝑅 element
7. BFO-LQR CONTROLLER DESIGN AND RESULTS
The design of LQR controller based on BFOA method is analogous to that of the GA-LQR control
system as previously presented in Figure 9. The optimized LQR matrices 𝑄(𝑑) and 𝑅(𝑑) and controller gain
matrix using BFO algorithm are as follows: 𝑄 = π‘π‘™π‘˜π‘‘π‘–π‘Ž(π‘ž11, π‘ž22, π‘ž33, π‘ž44) where π‘ž11 =289.104,
π‘ž22 =-5.15*10βˆ’5
,π‘ž33 =-5*10βˆ’5
, 44q = -5.1*10βˆ’5
𝑅 =0.00028 and 𝐾 = [-1022 -260.2 886.72 77.7].
The time response of the robot states π›₯π‘₯(𝑑), π›₯πœ™(𝑑) using BFOA-LQR controller is shown in
Figure 13. Figure 14 shows the control effort required to stabilize the Segway robot system. Regarding
the optimization of the controller, Figure 15 introduces converging elements of weighting matrices of
the LQR controller through iterations based on BFOA tuning algorithm. By comparing the behavior of
the robot system shown in Figures 10, 11, 13 and 14. It should be noted that the BFOA-LQR controller can
achieve more stable and faster response through following the desired trajectories effectively. Table 1 shows
comparison results between the GA-LQR controller and BFOA-LQR controller based on control criteria
parameters. Based on Table 1, the BFOA-LQR controller enabled the walking robot to follow the demand
trajectories effectively.
 ISSN: 1693-6930
TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653
2652
Figure 13. Robot response using BFOA-LQR Figure 14. Control effort of robot system
(a) (b)
(c) (d)
(e)
Figure 15. Generation elements of 𝑄(𝑑) and 𝑅(𝑑) matrices for BFO-LQR controller; (a) π‘ž11 element,
(b) π‘ž22 element, (c) q33 element(c) q33 element, (c) q33 element,
(d) π‘ž44 element, and (e) 𝑅element (continue)
Table 1. Performance parameters of the Segway using GA-LQR and BFOA-LQR controller
Cont. Type System Output
Control Criteria Parameter
Rise Time Settling Time Max. Overshoot Control Input
GA-LQR Position 1.25 s 1 s 5 % 1.3 V
Yaw Angle 1.8 s 10 ms 120 %
BFOA-LQR Position 0.5 s 0.33 s 0 % 1.4 V
Yaw Angle 0.85 s 4 ms 130 %
8. CONCLUSIONS
In this research, an optimal linear control system was adopted to balance a Segway two-wheeled
mobile robot. The dynamics of the robot system is modeled in state space form in order to design a state
feedback stabilizing controller for the Seqway robot system. A LQR controller was proposed to stabilize
the Segway robot in upright position. The controller is optimized using two tuning algorithms, GA and BFO.
TELKOMNIKA Telecommun Comput El Control 
Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed)
2653
An active stabilizing scheme for the Segway robot system has been implemented successfully using
GA-LQR controller and BFOA-LQR controller. Simulation results of the controllers are introduced and then
compared based on standard stabilizing parameters. The comparison revealed that the BFOA-LQR controller
can be adopted to implement faster and a more stable balancing system for the Segway vehicle.
REFERENCES
[1] Salerno A., and Angeles J., β€œA new family of Two Wheeled Mobile Robot: Modeling and Controllability,”
IEEE Transaction of Robotics, vol. 23, no. 1, pp. 169-173, 2007.
[2] Khaled M., β€œMathematical Modelling and Control of a Two-Wheeled PUMA-LikeVehicle,” Journal of Mechanical
Engineering Research, vol. 6, no. 2, pp. 11-22, 2016.
[3] Searock J., B. Browning, and M. Veloso, β€œSegway CM-RMP Robot Soccer Player,” Proceedings of the RoboCup
International Symposium, Lisbon, Portugal, 2004.
[4] Grasser F., Alonso D., Silvio C., and Alfred C. R., β€œJOE: A Mobile, Inverted Pendulum,” IEEE Transactions on
Industrial Electronics, vol. 49, no. 1, pp. 107-114, 2002.
[5] Nawawi W., Ahmad N. and Osman S., β€œReal-Time Control of a Two-Wheeled Inverted Pendulum Mobile Robot,”
International Journal of Electrical, Computer, Energetic, Electronic and Communication Engineering, vol. 2,
no. 3, pp. 406-412, 2008.
[6] Hassenplug S., β€œSteve's LegWay,” Retrieved September 22, 2018. [Online]. Available: Steve's LegWay:
http://www.teamhassenplug.org/robots/legway.
[7] Hessein A., Daniel A., and Naseem D., β€œModel Reference Adaptive Control of a Two-Wheeled Mobile Robot,”
Proceedings of the International Conference on Robotic and Automation, pp. 1155-1161, 2019.
[8] Shiroma N., Matsumoto O., Kajita S. and Tani K., β€œCooperative Behaviour of a Wheeled Inverted Pendulum for
Object Transportation,” Proceedings of the 1996 IEEE/RSJ International Conference on Intelligent Robots and
Systems, pp. 396-401, 1996.
[9] Nakajima R., Takashi T., Shin’ichi Y. and Eiji K., β€œA Development of a New Mechanism of an Autonomous Unicycle,”
Proceedings of the IEEE International Conference on Intelligent Robots and Systems, pp. 906-912, 1997.
[10] Takahashi, Y., Ishikawa, N. and Hagiwara, T, β€œInverse pendulum controlled two wheel drive system,” Proceedings
of the SICE Annual Conference, International Session Papers, pp. 112 -115, 2001.
[11] Mohammed I., Sharif B., Neasham J., and D. Giaouris, β€œNovel MIMO 4-DOF Position Control for Capsule
Endoscope,” Proceedings of the IEEE ISCAS, Rio de Janeiro, pp. 909-912, Brazil 2011.
[12] Mohammed I., Abdulla I., β€œDesign of optimised linear quadratic regulator for capsule endoscopes based on artificial bee
colony tuning algorithm,” International Journal for Engineering Modeling, vol. 31. no. 1-2, pp. 77-98, 2018.
[13] Mohammed I., Abdulla I., β€œFractional Order PID Controller Design for Speed Control DC Motor based on Artificial Bee
Colony Optimization,” International Journal of Computer Applications, vol. 179, no. 24, pp. 43-49, 2018.
[14] Abdulla A., Mohammed I. and Jasim A., β€œRoll Control System Design Using Auto Tuning LQR Technique,”
International Journal of Engineering and Innovative Technology, vol. 6, no. 2, pp. 11-22, 2017.
[15] Lee Y. J. and Cho K. H., β€œDetermination of the Weighting Parameters of the LQR System for Nuclear Reactor Power
Control using the Stochastic Searching Methods,” Journal of the Korean Nuclear Society. vol. 29, no. 1, pp. 68-77, 1997.
[16] Storn R. and Price K., β€œDifferential Evolution-A Fast and Efficient Heuristic for Global Optimization over
Continuous Spaces,” Journal of Global Optimization, vol. 11, no. 4, pp. 341-359, 1997.
[17] Ali D., Hend L., and Hassani M., β€œOptimized Eigenstructure Assignment by Ant System and LQR Approaches,”
International Journal of Computer Science and Applications, vol. 5, no. 4, pp. 45-56, 2008.
[18] Wei A. and Yangmin L., β€œSimulation and Control of a Two-wheeled Self-balancing Robot,” Proceedings of
the IEEE International Conference on Robotics and Biomimetics (ROBIO) Shenzhen, pp. 34-38, 2013.
[19] Ooi R., β€œBalancing a Two-Wheeled Autonomous Robot,” PhD Thesis, The University of Western Australia School of
Mechanical Engineering, Faculty of Engineering and Mathematical Sciences, University of Western Australia; 2003.
[20] Fang J., β€œThe LQR Controller Design of Two-Wheeled Self-Balancing Robot Based on the Particle Swarm
Optimization Algorithm,” Institute of Engineering and Technology, Changchun: 130052, China 2014.
[21] Passino M. K., β€œBiomimicry of bacterial foraging for distributed optimization and control,” IEEE Control and
System Magnetic, vol. 22, no. 3, pp. 52-67, 2002.
[22] Kim D. H. and Cho J. H., β€œAdaptive tuning of PID controller for multivariable system using bacterial foraging
based optimization,” Proceedings of the 3rd International Atlantic Web Intelligence Conference on Advances in
Web Intelligence (AWIC ’05), vol. 3528 of Lecture Notes in Computer Science, pp. 231-235, 2005.
[23] Mishra S., β€œA hybrid least square-fuzzy bacterial foraging strategy for harmonic estimation,” IEEE Transaction on
Evolutionary Computation, vol. 9, no. 1, pp. 61-73, 2005.
[24] Tripathy M., Mishra S., Lai L., and Zhang, Q. P., β€œTransmission loss reduction based on FACTS and bacteria
foraging algorithm,” Proceedings of the 9th International Conference on Parallel Problem Solving from Nature
(PPSN ’06), pp. 222-231, 2006.
[25] Swagatam D., Arijit B., Sambarta D. and Ajith A., β€œBacteria Foraging Optimization Algorithm: Theoretical Foundations,
Analysis, and Appications,” Foundations of Computational Intelligence, vol. 3, SCI 203, pp. 23-55, 2009.

More Related Content

What's hot

Backstepping control of cart pole system
Backstepping  control of cart pole systemBackstepping  control of cart pole system
Backstepping control of cart pole systemShubhobrata Rudra
Β 
Introduction robotic arm
Introduction robotic armIntroduction robotic arm
Introduction robotic armHardik Sakalsawala
Β 
IOT operated Wheel chair...YOGI
IOT operated Wheel chair...YOGIIOT operated Wheel chair...YOGI
IOT operated Wheel chair...YOGIYOGEESH M
Β 
Updated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptxUpdated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptxMohit Sharma
Β 
Linear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsLinear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsSohaibUllah5
Β 
Hvdc notes
Hvdc notesHvdc notes
Hvdc notesmahesh babu
Β 
Components of industrial robotics
Components of industrial roboticsComponents of industrial robotics
Components of industrial roboticsJayanth Krishna
Β 
robotic arm
robotic arm robotic arm
robotic arm kanishk mahi
Β 
Introduction to Mobile Robotics
Introduction to Mobile RoboticsIntroduction to Mobile Robotics
Introduction to Mobile RoboticsRobots Alive India
Β 
Smart grid communications
Smart grid communicationsSmart grid communications
Smart grid communicationssrikanth reddy
Β 
State of charge estimation of lithium-ion batteries using fractional order sl...
State of charge estimation of lithium-ion batteries using fractional order sl...State of charge estimation of lithium-ion batteries using fractional order sl...
State of charge estimation of lithium-ion batteries using fractional order sl...ISA Interchange
Β 
Feedback linearisation
Feedback linearisationFeedback linearisation
Feedback linearisationRamaiahsubasri
Β 
Industrial robotics
Industrial roboticsIndustrial robotics
Industrial roboticsjjenishmech
Β 
Lecture 17 me 176 (4th) 9 - design via root locus
Lecture 17   me 176 (4th)   9 - design via root locusLecture 17   me 176 (4th)   9 - design via root locus
Lecture 17 me 176 (4th) 9 - design via root locusLeonides De Ocampo
Β 
PLC SCADA report Paras Singhal
PLC SCADA report Paras SinghalPLC SCADA report Paras Singhal
PLC SCADA report Paras SinghalPARAS SINGHAL
Β 
SOLAR INVERTER
SOLAR INVERTER SOLAR INVERTER
SOLAR INVERTER shivam singh
Β 
Cuk dc dc+converter
Cuk dc dc+converterCuk dc dc+converter
Cuk dc dc+converterAir University
Β 

What's hot (20)

Backstepping control of cart pole system
Backstepping  control of cart pole systemBackstepping  control of cart pole system
Backstepping control of cart pole system
Β 
Introduction robotic arm
Introduction robotic armIntroduction robotic arm
Introduction robotic arm
Β 
IOT operated Wheel chair...YOGI
IOT operated Wheel chair...YOGIIOT operated Wheel chair...YOGI
IOT operated Wheel chair...YOGI
Β 
Svpwm
SvpwmSvpwm
Svpwm
Β 
Updated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptxUpdated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptx
Β 
Linear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsLinear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop Systems
Β 
Hvdc notes
Hvdc notesHvdc notes
Hvdc notes
Β 
Components of industrial robotics
Components of industrial roboticsComponents of industrial robotics
Components of industrial robotics
Β 
robotic arm
robotic arm robotic arm
robotic arm
Β 
Introduction to Mobile Robotics
Introduction to Mobile RoboticsIntroduction to Mobile Robotics
Introduction to Mobile Robotics
Β 
Droop control approach for power sharing in AC microgrid
Droop control approach for power sharing in AC microgrid Droop control approach for power sharing in AC microgrid
Droop control approach for power sharing in AC microgrid
Β 
Smart grid communications
Smart grid communicationsSmart grid communications
Smart grid communications
Β 
Pole Placement in Digital Control
Pole Placement in Digital ControlPole Placement in Digital Control
Pole Placement in Digital Control
Β 
State of charge estimation of lithium-ion batteries using fractional order sl...
State of charge estimation of lithium-ion batteries using fractional order sl...State of charge estimation of lithium-ion batteries using fractional order sl...
State of charge estimation of lithium-ion batteries using fractional order sl...
Β 
Feedback linearisation
Feedback linearisationFeedback linearisation
Feedback linearisation
Β 
Industrial robotics
Industrial roboticsIndustrial robotics
Industrial robotics
Β 
Lecture 17 me 176 (4th) 9 - design via root locus
Lecture 17   me 176 (4th)   9 - design via root locusLecture 17   me 176 (4th)   9 - design via root locus
Lecture 17 me 176 (4th) 9 - design via root locus
Β 
PLC SCADA report Paras Singhal
PLC SCADA report Paras SinghalPLC SCADA report Paras Singhal
PLC SCADA report Paras Singhal
Β 
SOLAR INVERTER
SOLAR INVERTER SOLAR INVERTER
SOLAR INVERTER
Β 
Cuk dc dc+converter
Cuk dc dc+converterCuk dc dc+converter
Cuk dc dc+converter
Β 

Similar to Balancing a Segway robot using LQR controller based on genetic and bacteria foraging optimization algorithms

Path tracking control of differential drive mobile robot based on chaotic-bi...
Path tracking control of differential drive mobile robot based  on chaotic-bi...Path tracking control of differential drive mobile robot based  on chaotic-bi...
Path tracking control of differential drive mobile robot based on chaotic-bi...IJECEIAES
Β 
Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...
Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...
Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...IJECEIAES
Β 
IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...
IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...
IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...IRJET Journal
Β 
Fractional order PID for tracking control of a parallel robotic manipulator t...
Fractional order PID for tracking control of a parallel robotic manipulator t...Fractional order PID for tracking control of a parallel robotic manipulator t...
Fractional order PID for tracking control of a parallel robotic manipulator t...ISA Interchange
Β 
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...IRJET Journal
Β 
Qavane_211068691__IEEE_Paper-1
Qavane_211068691__IEEE_Paper-1Qavane_211068691__IEEE_Paper-1
Qavane_211068691__IEEE_Paper-1Mandilakhe Qavane
Β 
Model Validation and Control of an In-Wheel DC Motor Prototype for Hybrid El...
Model Validation and Control of an In-Wheel DC Motor  Prototype for Hybrid El...Model Validation and Control of an In-Wheel DC Motor  Prototype for Hybrid El...
Model Validation and Control of an In-Wheel DC Motor Prototype for Hybrid El...Scientific Review SR
Β 
Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...
Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...
Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...IJECEIAES
Β 
Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...
Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...
Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...IJERA Editor
Β 
Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...
Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...
Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...Waqas Tariq
Β 
Design of Quad-Wheeled Robot for Multi-Terrain Navigation
Design of Quad-Wheeled Robot for Multi-Terrain NavigationDesign of Quad-Wheeled Robot for Multi-Terrain Navigation
Design of Quad-Wheeled Robot for Multi-Terrain NavigationScientific Review SR
Β 
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
IRJET-  	  Design & Development of Two-Wheeled Self Balancing RobotIRJET-  	  Design & Development of Two-Wheeled Self Balancing Robot
IRJET- Design & Development of Two-Wheeled Self Balancing RobotIRJET Journal
Β 
Impact analysis of actuator torque degradation on the IRB 120 robot performan...
Impact analysis of actuator torque degradation on the IRB 120 robot performan...Impact analysis of actuator torque degradation on the IRB 120 robot performan...
Impact analysis of actuator torque degradation on the IRB 120 robot performan...IJECEIAES
Β 
Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...
Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...
Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...IJECEIAES
Β 
PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...
PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...
PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...Waqas Tariq
Β 
Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...
Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...
Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...IRJET Journal
Β 
African vulture optimizer algorithm based vector control induction motor driv...
African vulture optimizer algorithm based vector control induction motor driv...African vulture optimizer algorithm based vector control induction motor driv...
African vulture optimizer algorithm based vector control induction motor driv...IJECEIAES
Β 

Similar to Balancing a Segway robot using LQR controller based on genetic and bacteria foraging optimization algorithms (20)

Path tracking control of differential drive mobile robot based on chaotic-bi...
Path tracking control of differential drive mobile robot based  on chaotic-bi...Path tracking control of differential drive mobile robot based  on chaotic-bi...
Path tracking control of differential drive mobile robot based on chaotic-bi...
Β 
Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...
Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...
Intelligent swarm algorithms for optimizing nonlinear sliding mode controller...
Β 
IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...
IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...
IRJET- Design and Fabrication of PLC and SCADA based Robotic Arm for Material...
Β 
Fractional order PID for tracking control of a parallel robotic manipulator t...
Fractional order PID for tracking control of a parallel robotic manipulator t...Fractional order PID for tracking control of a parallel robotic manipulator t...
Fractional order PID for tracking control of a parallel robotic manipulator t...
Β 
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...
Β 
Qavane_211068691__IEEE_Paper-1
Qavane_211068691__IEEE_Paper-1Qavane_211068691__IEEE_Paper-1
Qavane_211068691__IEEE_Paper-1
Β 
Self-balancing robot: modeling and comparative analysis between PID and linea...
Self-balancing robot: modeling and comparative analysis between PID and linea...Self-balancing robot: modeling and comparative analysis between PID and linea...
Self-balancing robot: modeling and comparative analysis between PID and linea...
Β 
Model Validation and Control of an In-Wheel DC Motor Prototype for Hybrid El...
Model Validation and Control of an In-Wheel DC Motor  Prototype for Hybrid El...Model Validation and Control of an In-Wheel DC Motor  Prototype for Hybrid El...
Model Validation and Control of an In-Wheel DC Motor Prototype for Hybrid El...
Β 
Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...
Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...
Mathematical modeling and kinematic analysis of 5 degrees of freedom serial l...
Β 
Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...
Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...
Comparative Analysis for NN-Based Adaptive Back-stepping Controller and Back-...
Β 
Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...
Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...
Evolutionary Design of Mathematical tunable FPGA Based MIMO Fuzzy Estimator S...
Β 
A Concise Review of Control Techniques for Reliable and Efficient Control of...
A Concise Review of Control Techniques for Reliable and  Efficient Control of...A Concise Review of Control Techniques for Reliable and  Efficient Control of...
A Concise Review of Control Techniques for Reliable and Efficient Control of...
Β 
E0443037
E0443037E0443037
E0443037
Β 
Design of Quad-Wheeled Robot for Multi-Terrain Navigation
Design of Quad-Wheeled Robot for Multi-Terrain NavigationDesign of Quad-Wheeled Robot for Multi-Terrain Navigation
Design of Quad-Wheeled Robot for Multi-Terrain Navigation
Β 
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
IRJET-  	  Design & Development of Two-Wheeled Self Balancing RobotIRJET-  	  Design & Development of Two-Wheeled Self Balancing Robot
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
Β 
Impact analysis of actuator torque degradation on the IRB 120 robot performan...
Impact analysis of actuator torque degradation on the IRB 120 robot performan...Impact analysis of actuator torque degradation on the IRB 120 robot performan...
Impact analysis of actuator torque degradation on the IRB 120 robot performan...
Β 
Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...
Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...
Elevation, pitch and travel axis stabilization of 3DOF helicopter with hybrid...
Β 
PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...
PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...
PUMA-560 Robot Manipulator Position Computed Torque Control Methods Using MAT...
Β 
Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...
Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...
Modeling and Control of a Spherical Rolling Robot Using Model Reference Adapt...
Β 
African vulture optimizer algorithm based vector control induction motor driv...
African vulture optimizer algorithm based vector control induction motor driv...African vulture optimizer algorithm based vector control induction motor driv...
African vulture optimizer algorithm based vector control induction motor driv...
Β 

More from TELKOMNIKA JOURNAL

Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...TELKOMNIKA JOURNAL
Β 
Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...TELKOMNIKA JOURNAL
Β 
Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...TELKOMNIKA JOURNAL
Β 
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...TELKOMNIKA JOURNAL
Β 
Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...TELKOMNIKA JOURNAL
Β 
Efficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antennaEfficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antennaTELKOMNIKA JOURNAL
Β 
Design and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fireDesign and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fireTELKOMNIKA JOURNAL
Β 
Wavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio networkWavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio networkTELKOMNIKA JOURNAL
Β 
A novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bandsA novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bandsTELKOMNIKA JOURNAL
Β 
Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...TELKOMNIKA JOURNAL
Β 
Brief note on match and miss-match uncertainties
Brief note on match and miss-match uncertaintiesBrief note on match and miss-match uncertainties
Brief note on match and miss-match uncertaintiesTELKOMNIKA JOURNAL
Β 
Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...
Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...
Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...TELKOMNIKA JOURNAL
Β 
Evaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G systemEvaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G systemTELKOMNIKA JOURNAL
Β 
Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...TELKOMNIKA JOURNAL
Β 
Reagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensorReagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensorTELKOMNIKA JOURNAL
Β 
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...TELKOMNIKA JOURNAL
Β 
A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...TELKOMNIKA JOURNAL
Β 
Electroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networksElectroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networksTELKOMNIKA JOURNAL
Β 
Adaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imagingAdaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imagingTELKOMNIKA JOURNAL
Β 
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...TELKOMNIKA JOURNAL
Β 

More from TELKOMNIKA JOURNAL (20)

Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...
Β 
Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...
Β 
Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...
Β 
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Β 
Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...
Β 
Efficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antennaEfficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antenna
Β 
Design and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fireDesign and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fire
Β 
Wavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio networkWavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio network
Β 
A novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bandsA novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bands
Β 
Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...
Β 
Brief note on match and miss-match uncertainties
Brief note on match and miss-match uncertaintiesBrief note on match and miss-match uncertainties
Brief note on match and miss-match uncertainties
Β 
Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...
Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...
Implementation of FinFET technology based low power 4Γ—4 Wallace tree multipli...
Β 
Evaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G systemEvaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G system
Β 
Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...
Β 
Reagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensorReagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensor
Β 
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Β 
A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...
Β 
Electroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networksElectroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networks
Β 
Adaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imagingAdaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imaging
Β 
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Β 

Recently uploaded

Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
Β 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
Β 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
Β 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
Β 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
Β 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
Β 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
Β 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
Β 
πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...9953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
Β 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
Β 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
Β 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
Β 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
Β 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
Β 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
Β 

Recently uploaded (20)

Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
Β 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Β 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
Β 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
Β 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
Β 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
Β 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
Β 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
Β 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
Β 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Β 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
Β 
πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
πŸ”9953056974πŸ”!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
Β 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
Β 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Β 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Β 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
Β 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
Β 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
Β 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
Β 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
Β 

Balancing a Segway robot using LQR controller based on genetic and bacteria foraging optimization algorithms

  • 1. TELKOMNIKA Telecommunication, Computing, Electronics and Control Vol. 18, No. 5, October 2020, pp. 2642~2653 ISSN: 1693-6930, accredited First Grade by Kemenristekdikti, Decree No: 21/E/KPT/2018 DOI: 10.12928/TELKOMNIKA.v18i5.14717  2642 Journal homepage: http://journal.uad.ac.id/index.php/TELKOMNIKA Balancing a Segway robot using LQR controller based on genetic and bacteria foraging optimization algorithms Ibrahim K. Mohammed, Abdulla I. Abdulla Systems and Control Engineering Department, College of Electronics Engineering, Ninevah University, Iraq Article Info ABSTRACT Article history: Received Nov 29, 2019 Revised Feb 11, 2020 Accepted Mar 23, 2020 A two-wheeled single seat Segway robot is a special kind of wheeled mobile robot, using it as a human transporter system needs applying a robust control system to overcome its inherent unstable problem. The mathematical model of the system dynamics is derived and then state space formulation for the system is presented to enable design state feedback controller scheme. In this research, an optimal control system based on linear quadratic regulator (LQR) technique is proposed to stabilize the mobile robot. The LQR controller is designed to control the position and yaw rotation of the two-wheeled vehicle. The proposed balancing robot system is validated by simulating the LQR using Matlab software. Two tuning methods, genetic algorithm (GA) and bacteria foraging optimization algorithm (BFOA) are used to obtain optimal values for controller parameters. A comparison between the performance of both controllers GA-LQR and BFO-LQR is achieved based on the standard control criteria which includes rise time, maximum overshoot, settling time and control input of the system. Simulation results suggest that the BFOA-LQR controller can be adopted to balance the Segway robot with minimal overshoot and oscillation frequency. Keywords: Bacteria foraging optimization algorithm Genetic algorithm LQR controller Segway robot Yaw rotation This is an open access article under the CC BY-SA license. Corresponding Author: Ibrahim K. Mohammed, Systems and Control Engineering Department, College of Electronics Engineering, Ninevah University, Mosul, Iraq. Email: ibrahim.mohammed@uoninevah.edu.iq 1. INTRODUCTION The Segway robot is an electric, two-wheeled self-balancing human transporter with a computer- controlled gyroscopic stabilization and control system. This new vehicle is a complex and hybrid machine that requires engineering competence in many fields; vehicle dynamics, automatic control, battery technology, power electronics, software engineering, microcomputer programming, network and communication engineering. The two-wheeled robot was revealed by Dean Kamen in 2001 to replace the car or buggies which were more polluting [1]. The personal transporter has the wide applications in the military and civilian field due to its simple construction, high energy using rate, stable movement and ability to adapt with surrounding environmental conditions. However, the single-seat robot faces many challenges related to nonlinearity, high order variables, strong coupling and inherent unstable dynamics of the system. Therefore, balance problem and development of this type of vehicle is a hot research topic of interest to many robotics laboratories around the world. Segway is a known two-wheeled single-seat mobile robot which has been utilized as a commercial personal transportation vehicle. In the Segway robotic system a collection of tiltsensors and five gyroscopes are
  • 2. TELKOMNIKA Telecommun Comput El Control  Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed) 2643 used to remain the human user in the straight position [2]. Moreover, [3] use two teams, human transporter platform (HT) and robot mobility platform (RMP), to created a new mobile robot, called Segway Soccer. The walking robotic system is used to examine the coordination of dynamically formed, mixed personal-mobile robot teams within the domain of a team function that requires making a decision and response. An initial model of a digitally controlled mobile robot has been constructed in [4]. In the presented prototype, which is based on the inverted pendulum, the human rider is simulated by attaching weights to the scheme. A linear state feedback controller is used to stabilize the proposed personal mobile robot based on sensory information from motor encoders and a gyroscope. A new two-wheeled inverted pendulum mobile robot is presented by [5]. A control system based on pole placement technique is designed to stabilize the rider in an upright position. It is worth considering that, there are another models for two-wheeled self-balancing human vehicles invented by robotic engineers. In 2003, David P. A. built the Nbot balancing robot used a human transporter provided by a linear controller used to stabilize the system using information from motor encoder and the inertial sensor. Furthermore, [6] has successfully fabricated a new model of robot called Legway based on Mindstorms robotics kit. A linear controller is used to stabilize the electric vehicle based information of the tilt angle obtained from two electro-optical proximity detector (EOPD) sensors. However, fine tuning for the controller parameters is required to achieve a peter performance. Hussien et al. [7] introduced another model for two-wheeled mobile robot. Nonlinear control system based on model reference adaptive control (MRAC) using Lpayunovs stability theorem is employed to balance the proposed single-seat electric vehicle. Simulation and experimental results are presented to validate tracking performance of the proposed robot actuation system. However, the performance of the robot control system is based on the controller coefficients, which are chosen arbitrary, therefore, for peter performance an optimization algorithm should be used. All the proposed controllers used to stabilize the mobile robots are not optimized using optimization methods, the gain parameters are obtained using trial and error procedure. In order to achieve a stable actuation performance for mobile robot system a proper controller technique based on tuning algorithm should be used. The linear quadratic regulator (LQR) is among most popular linear state feedback controllers implemented in field of industrial applications. The implementation of the LQRcontroller can be noticed by research works published by [4, 8-11]. In this study, the LQR controller is adopted to implement the control system used to balance the two-round human vehicle as it seeks basically a trade off between the best control performance and minimum power input [12, 13]. However, using this controller approach includes many problems and disadvantages such as relying on the designer experience and skill and the trial and error procedure in the determine of the controller weighting matrices 𝑄 and 𝑅. Therefore, there is a enormous concern by robotic engineers in computer-aided optimization algorithms that can be considered to obtain the global optimum solution of 𝑄 and 𝑅 matrices.. There are many optimization approaches that have been adopted by control engineers to obtain optimum values for elements of LQR matrices, such as a particle swarm inspired evolutionary algorithm (PS-EA), particle swarm optimization (PSO), genetic algorithm (GA) [14], combination of simulated annealing (SA) and GA [15], differential evaluation (DE) [16] and ant colony optimization (ACO) [17]. These intelligent optimization tools make the LQR controller system very robust, and insensitive to noisy and/or missing data. Bacteria foraging optimization algorithm (BFOA) is a new tuning algorithm that can be applied to optimize the cost function of several problems in different application fields. The BFOA is a combinatorial optimization algorithm which applied to achieve the best global solution for the proposed LQR controller. It is worth considering that there is a significant improvement inthe control response of the LQR controller is achieved by using these tuning algorithms, however, the research work is still open to explore for further controller improvements and developments. In this research, two tuning algorithms, GA and BFOA are utilized to improve the behavior of the LQR controller. The remainder of the paper is organised as follows: section 2 presents modelling and dynamics of the proposed two-wheeled self-balancing human robot. In section 3, the technique of the controller system is introduced. Section 4, presents optimization methods of LQR controller. Section 5 and section 6 introduce controller design and simulation results of GA-LQR and section 7 introduce BFOA-LQR controllers for the robot system respectively. Conclusions and future work are presented in section 8. 2. SYSTEM MODELING The performance of a walking robot depends on the reliability of the system modeling and robustness of the controller design. The structure of the two-wheeled Segway personal robot composes mainly of an electrical sub system and mechanical subsystem. Figure 1 demonstrates graphic model of the Segway robot. In this section, the motion equation of the inverted pendulum is derived and the dynamic model of the motors is formulated. The motor model is then utilized in formulation the dynamic model of
  • 3.  ISSN: 1693-6930 TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653 2644 the personal robot scheme to give a functional relationship between applied voltage to the DC motors and adjusting magnetic torque required to stabilize the human mobile robot. 2.1. Electrical subsystem modeling The main part of the electric sub system is the DC motors, which are used to rotate the left and right wheel of the robot. The electric circuit of the DC motor is shown in Figure 2. Applying voltage π‘‰π‘Ž (𝑉) to the motor terminals generates a current 𝑖(𝑑) (𝐴) in the motor armature. The excited motor produces a torque (π‘π‘š) governed by the following relationship. 𝐢 = 𝐾 π‘š 𝑖 (1) where 𝐾 π‘š is torque constant (π‘π‘š/𝐴). The back electromotive (emf) voltage 𝑉𝑒 (𝑉) produced in the motor coil can be approximated as a linear function of motor angular velocity πœƒΜ‡ (π‘Ÿπ‘Žπ‘‘/𝑠), as follows: 𝑉𝑒 = 𝐾𝑒 πœƒΜ‡ (2) where 𝐾𝑒 is torque constant (𝑉𝑠/π‘Ÿπ‘Žπ‘‘). Applying Kirchoff’s voltage law to the motor circuit shown in Figure 2 yields the following expression: Va = Ri + L di dt + Ve (3) It is worth considering that the dynamic of the mechanical system is considered slow compared to that of electrical system, therefore, the current transients of the system can be omitted. Hence, solving (3) for the current yields: 𝐒 = π•πšβˆ’π•πž 𝐑 (4) based on (2), (4) can be written as follows: i = Va R βˆ’ Ke R ΞΈΜ‡ (5) substituting (5) in (1) gives an expression for the torque produced by DC motor: C = Km R Va βˆ’ KmKe R ΞΈΜ‡ (6) Figure 1. Model of the two-wheeled robot [18] Figure 2. Electric model circuit of DC motor 2.2. Mechanical subsystem modeling It consists of chassis, which behaviors as inverted pendulum, and the left and right wheels. In this study, the parameter of mass, radius and moment of inertia of the two wheels are assumed the same. Based on this assumption the dynamic modeling of the right wheel is the same as that of the left wheel. In this research, formulation of the right wheel model is considered in detail. It is worth considering that the modeling strategy of the mechanical robot subsystem is based on an idea that the dynamics of
  • 4. TELKOMNIKA Telecommun Comput El Control  Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed) 2645 the inverted pendulum and wheels are modeled separately at the beginning, and then equations of motion which completely describe the dynamic behavior of the system are derived [19]. 2.2.1. Wheel model Figure 3 presents the free body diagram of the left and right wheels for the mobile Segway transport system. Using second Newton’s law of motion, the sum of the external forces 𝐹(𝑁) exerted on the wheel, which governs its translation motion in the horizontal x-direction is given by [20]. βˆ‘ Fx = Mwa (7) Mwẍ = Hf βˆ’ H (8) Figure 3. Free body diagram of the robot wheels where 𝑀 𝑀(𝐾𝑔) is the wheel mass of the robot, a is the gravity acceleration (π‘š/𝑠2 ) and𝐻𝑓is the friction force between ground and wheels(𝑁). While the rotational motion π‘€π‘œ of the wheel is given by: go βˆ‘ Mo = Iwθ̈w (9) Iwθ̈w = C βˆ’ Hfr (10) where 𝐼 𝑀 (πΎπ‘”π‘š2 ) and πœƒΜˆ 𝑀 (π‘š/𝑠2 ) are moment of inertia and acceleration of the wheels respectively, and r is the radius of wheel (π‘š). Based on (6), the above equation becomes: Iwθ̈w = Km R Va βˆ’ KmKe R ΞΈΜ‡w βˆ’ Hfr (11) Hf = Km Rr Va βˆ’ KmKe Rr ΞΈΜ‡w βˆ’ Iw r θ̈ (12) where πœƒΜ‡ 𝑀is the angular velocity of wheel (π‘š/𝑠). Substituting (12) into (8) yields (13) and (14) for the left and right wheels respectively. Mwẍ = Km Rr Va βˆ’ KmKe Rr ΞΈΜ‡w βˆ’ Iw r θ̈w βˆ’ HL (13) Mwẍ = Km Rr Va βˆ’ KmKe Rr ΞΈΜ‡w βˆ’ Iw r θ̈w βˆ’ HR (14) Because the center of the robot wheel is acted by the linear motion, the angular rotation of the wheel can be transformed into linear motion by the following simple transformation, πœƒΜˆ 𝑀 π‘Ÿ = π‘₯̈ β†’ πœƒΜˆ = π‘₯̈/ π‘Ÿ, πœƒΜ‡ 𝑀 π‘Ÿ = π‘₯Μ‡ β†’ πœƒΜ‡ = π‘₯Μ‡/ π‘Ÿ. By the linear transformation, (13) and (14) become as follows: Mwẍ = Km Rr Va βˆ’ KmKe Rr2 xΜ‡w βˆ’ Iw r2 ẍ βˆ’ HL (15)
  • 5.  ISSN: 1693-6930 TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653 2646 Mwẍ = Km Rr Va βˆ’ KmKe Rr2 xΜ‡w βˆ’ Iw r2 ẍ βˆ’ HR (16) Adding (15) and (16) together yields the following expression, 2(𝑀 𝑀 + 𝐼 𝑀 π‘Ÿ2)π‘₯̈ = 2 𝐾 π‘š π‘…π‘Ÿ π‘‰π‘Ž βˆ’ 2 𝐾 π‘š 𝐾 𝑒 π‘…π‘Ÿ2 π‘₯Μ‡ 𝑀 βˆ’ (𝐻𝐿 + 𝐻 𝑅) (17) 2.2.2. Chassis model The chassis of the mobile robot can be modeled as an inverted pendulum, Figure 4 presents the free body diagram of the chassis. Again, based on Newton’s law of motion, the sum of forces acting on the chassis in the horizontal x-direction is given by [20]: βˆ‘ Fx = Mpẍ (18) Mpẍ = HL + HR βˆ’ MplΞΈp̈ cos ΞΈp + MplΞΈΜ‡2 p sin ΞΈp (19) where 𝑀 𝑝 is the wheel mass of the robot (𝐾𝑔) and πœƒ 𝑝 is the rotational angle of the chassis (π‘Ÿπ‘Žπ‘‘). The above equation is rearranged as follows: HL + HR = Mpẍ + Mplθ̈p cos ΞΈp βˆ’ MplΞΈΜ‡2 p sin ΞΈp (20) The sum of perpendicular forces acting on the pendulum is: βˆ‘ Fp = Mpẍ cos ΞΈp (21) (𝐻𝐿 + 𝐻 𝑅) π‘π‘œπ‘  πœƒ 𝑝 + (𝑃𝐿 + 𝑃𝑅) 𝑠𝑖𝑛 πœƒ 𝑝 βˆ’ 𝑀 𝑝 𝑔 𝑠𝑖𝑛 πœƒ 𝑝 βˆ’ 𝑀 𝑝 π‘™πœƒΜˆ π‘Μˆ = 𝑀 𝑝 π‘₯̈ π‘π‘œπ‘  πœƒ 𝑝 (22) where 𝑃𝐿and 𝑃𝑅 are the reaction forces between left and right wheel and chassis (𝑁) respectively and πœƒΜˆ 𝑝 is chassis angular acceleration(π‘š/𝑠2 ), sum of moments around the center of pendulum mass is given by: βˆ‘ Mo = Ipθ̈p (23) Ipθ̈p = βˆ’(HL + HR)l cos ΞΈp βˆ’ (PL + PR)l sin ΞΈp βˆ’ (CL + CR) (24) where 𝐢𝐿 and 𝐢 𝑅are the motor torque applied to left and right wheels respectively (π‘π‘š) the motor torque exerted on the pendulum applied as defined in (6) and after linear transformation, CL + CR = 2 Km R Va βˆ’ 2 KmKe R xΜ‡ r (25) substituting (25) into (24) yields, Ipθ̈p βˆ’ 2 KmKe R xΜ‡ r + 2 Km R Va = βˆ’(HL + HR)l cos ΞΈp (PL + PR)l sin ΞΈp (26) substitute (26) in (22) after multiply (22) by(βˆ’π‘™) yields: Ipθ̈p βˆ’ 2 KmKe R xΜ‡ r + 2 Km R Va + Mpgl sin ΞΈp + Mpl2 θ̈p̈ = βˆ’Mplẍ cos ΞΈp (27) Sum of moments around the center of pendulum mass is given: βˆ’Mplẍ cos ΞΈp = (Ip + Mpl2 )θ̈p βˆ’ 2 KmKe Rr2 xΜ‡ + 2 Km Rr Va + Mpgl sin ΞΈp (28) to eliminate the term (𝐻𝐿 + 𝐻 𝑅) from the motor dynamic (20) is substituted in (17). 2 Km Rr Va = (2Mw + Iw r2 + Mp)ẍ + 2 KmKe Rr2 xΜ‡ + Mplθ̈p cos ΞΈp βˆ’ MplΞΈΜ‡2 p̈ sin ΞΈp (29)
  • 6. TELKOMNIKA Telecommun Comput El Control  Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed) 2647 for purpose of design a linear control system, the system dynamic (28) and (29) are linearized about an operating point based on the assumption πœƒ 𝑀 = πœ‹ + πœ™ where οͺ denotes an angle measured from the vertical upward direction. Therefore, 𝑠𝑖𝑛 πœƒ 𝑝 = βˆ’πœ™, π‘π‘œπ‘  πœƒ 𝑝 = βˆ’1 and (π‘‘πœƒ 𝑝/𝑑𝑑)2 = 0 for purpose of state space representation, the dynamic (28) and (29) are rewritten as follows: Ο•Μˆ = MpI (Ip+MpI2) ẍ + 2KmKe Rr(Ip+MpI2) xΜ‡ + MpgI Rr(Ip+MpI2) Ο• βˆ’ 2Km (Ip+MpI2) Va (30) ẍ = 2Km RrKw Va βˆ’ 2KmKe Rr2Kw xΜ‡ + MpI Rr2Kw Ο•Μˆ (31) where 𝐾 𝑀 = 2𝑀 𝑀 + 2𝐼 𝑀/π‘Ÿ2 . After a series of algebraic manipulation, the state equation becomes: [ π‘₯Μ‡ π‘₯̈ πœ™Μ‡ πœ™Μˆ ] = [ 0 1 0 0 𝐾1(𝑀 𝑝 πΌπ‘Ÿβˆ’πΌ π‘βˆ’π‘€ 𝑝 𝐼2) π‘…π‘Ÿ2 𝛼 𝑀2 𝑝 𝑔𝐼2 𝛼 0 0 0 0 𝐾1(π‘Ÿπ›½βˆ’π‘€ 𝑝 𝐼) π‘…π‘Ÿ2 𝛼 𝑀 𝑝 𝑔𝐼𝛽 𝛼 0 0 1 0 ] [ π‘₯ π‘₯Μ‡ πœ™ πœ™Μ‡ ] + [ 0 2𝐾 π‘š(𝐼 𝑝+𝑀 𝑝 𝐼2βˆ’π‘€ 𝑝 πΌπ‘Ÿ) π‘…π‘Ÿπ›Ό 0 2𝐾 π‘š(𝑀 𝑝 πΌβˆ’π›½) π‘…π‘Ÿπ›Ό ] π‘‰π‘Ž (32) where, 𝐾1 = 2𝐾 π‘š 𝐾𝑒, 𝛽 = 2𝑀 𝑀 + 2𝐼 𝑀 π‘Ÿ2 + 𝑀 𝑝 and 𝛼 = [𝐼 𝑝 𝛽 + 2𝑀 𝑝 𝐼2 (𝑀 𝑀 + 𝐼 𝑀 π‘Ÿ2)] . It is worth considering that the system modeling is based on the supposition that both wheels of the walking robot are assumed in state of contact with the ground and without sliding. Cornering forces produced by vehicle wheels during cornering are also considered negligible [19]. Figure 4. Free body diagram of the chassis 3. CONTROLLER TECHNIQUE In this research, LQR technique is utilized to implement the proposed robot control system. LQR is a common controller approach used effectively in the control applications of the movement systems. Figure 5 shows block diagram of the Segway robot control system based on LQR controller. The state and output matrix equations describing the Segway robot equations of motion are given by: 𝑋̇(𝑑) = 𝐴𝑋(𝑑) + 𝐡𝑒(𝑑) (33) 𝑦(𝑑) = 𝐢𝑋(𝑑) + 𝐡𝑒(𝑑) (34) where 𝐴(𝑛π‘₯𝑛), 𝐡(𝑛π‘₯π‘š), 𝐢(𝑝π‘₯𝑛), 𝐷(𝑝π‘₯π‘š) are the system, input, output and feed forward matrix respectively. In this approach, the input vector: 𝑒(𝑑) = βˆ’πΎπ‘‹(𝑑) (35)
  • 7.  ISSN: 1693-6930 TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653 2648 where𝐾 = [𝐾1 𝐾2 𝐾3 𝐾4] is an optimal feedback gain matrix of the controller used to track the input command while the following performance index: 𝐽 = ∫ (𝑋 𝑇 (𝑑)𝑄(𝑑)𝑋(𝑑) + 𝑒 𝑇 (𝑑)𝑅(𝑑)𝑒(𝑑))𝑑𝑑 ∞ 0 (36) where 𝑄(𝑑) and𝑅(𝑑) are weighting state and input matrices respectively. The feedback gain matrix K can be determined by using the following: 𝐾 = π‘…βˆ’1 𝐡 𝑇 𝑃 (37) where P denotes the solution of the following Riccati: 𝐴 𝑇 𝑃 + 𝑃𝐴 βˆ’ π‘ƒπ΅π‘…βˆ’1 𝐡 𝑇 𝑃 + 𝑄 = 0 (38) The controller weighting matrices should be tuned properly in order to minimize the following performance index )(J : 𝐽 = ∫ (π‘ž11 π‘₯1 2 + π‘ž22 π‘₯2 2 + π‘ž33 π‘₯3 2 + π‘ž44 π‘₯4 2 + 𝑅𝑒2 )𝑑𝑑 ∞ 0 (39) where π‘ž11, π‘ž22, π‘ž33 and 44q represent the weighting elements of position, speed, angle and angular velocity of the proposed robot system respectively. It is worth considering that by using controller weighting matrices 𝑄(𝑑) and 𝑅(𝑑) which govern the behavior of the robot system states and control effort respectively, the optimal LQR gain matrix 𝐾 is computed based on the Matlab command ” lqr ”. Figure 5. Segway robot control system using LQR controller 4. LQR OPTIMIZATION METHODS In this research, two optimization algorithms, GA and BFOA, are used to tune the 𝑄(𝑑) and 𝑅(𝑑) matrices of the LQR controller, which are adopted to calculate the gain matrix required to balance the Segway system. Based on optimized gain matrix 𝐾 a good output time response with minimal of rise time (𝑑 π‘Ÿ), settling time(𝑑 𝑠), maximum overshoot (π‘€π‘œ) and steady state error(𝑒𝑠𝑠) can be investigated. 4.1. Genetic algorithm GA is an optimization technique used to find global solution for more control problems. Based on the mechanisms of natural selection. In this optimization approach, the solution space is selected by generating a population of candidate individuals to find optimum values for the problem. The procedure of GA optimization method includes three basic steps, namely selection, crossover and mutation. By applying these stages new individuals can be created, which, could be better than their parents. Based on the fitness function of the system, the GA steps are repeated for many generations and eventually stop at generating candidate individual elements that can represent the best solution for the application problem [14]. Figure 6 shows the graphical illustration of the GA loop. The definition of the GA steps is as follows Abdulla [14]: Random initial population - Choose individuals for mating - Mate the population to generate progeny - Mutate progeny - New individuals inserted into population - Are criteria satisfied? - End of solution searching. Each chromosome represented by five real value cells that correspond to the LQR controller weighting matrices 𝑄(𝑑) and 𝑅(𝑑) as shown in Figure 7. The chromosome elements π‘ž11, π‘ž22, π‘ž33, π‘ž44 and R should be adjusted properly by optimum positive numbers in order to achieve best control performance.
  • 8. TELKOMNIKA Telecommun Comput El Control  Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed) 2649 Figure 6. Genetic algorithm loop Figure 7. Chromosome definition 4.2. BFO algorithm The bacteria foraging behavior is a computational model, which, has attracted more attention as it is a rich source of potential engineering applications. BFO is a simple and powerful population-based numerical optimization algorithm that has been introduced by Passino in 2002 [21]. The BFO algorithm has been gaining a considerable interest in researchers due to its efficiency in solving and optimizing more engineering problems in several application domains, such as optimal control [22], harmonic estimation [23] and transmission loss reduction [24]. The strategy of bacteria selection for the BFO algorithm bases on an idea that the bacteria with poor foraging is eliminated and following up those bacteria which have successful foraging to maximize energy obtained per unit time [21]. It is worth considering that, in this new optimization algorithm a social foraging approach of the E-coli bacteria can be applied successfully to solve multi-optimal function optimization problem. The E-coli bacteria can move in two ways namely, swimming and tumbling. Figure 8 shows the swim and tumble movement of a bacterium. Figure 8. movement modes of a bacterium 4.3. BFO foraging strategy [25] βˆ’ Chemotaxis: This process is related to movement of bacterium during search for food. The E-coli bacteria can move in two ways namely, swimming and tumbling, and they are able to alternate between these two movement styles for the whole of their lifetime. In the swimming mode, the bacteria walk in a certain direction for gathering food, while in the tumbling mode, they move with random directions. βˆ’ Swarming: The swarming action means the bacteria with a good fitness value, try to attract others to form groups, so that they all can arrive at the desired location. These groups of E-coli cells arrange themselves, in which, they can move as concentric patterns for food searching. βˆ’ Reproduction: In this stage, all the bacteria population are classified based on health status. The healthier bacteria, which, have had sufficient nutrients will be reproduced, while the less healthy bacteria will die. The surviving bacteria will split into an identical replica of itself placed in the same locations with a that number equals to the number of the dead ones. βˆ’ Elimination and Dispersal: During this evolutionary step, gradual or sudden events or attacks in the local living environment of the bacteria, may occur due to significant rising of the temperature caused by occupancy of a high density of bacteria for a specific area. This high temperature may kill a group of bacteria and dispersal of others into some new locations. 5. ROBOT CONTROL SYSTEM DESIGN In this research, an optimal control system for the Segway robot is designed using the state feedback LQR controller. The gain parameters of the controller are tuned effectively, using optimization algorithms, GA and BFOA. The proposed controller design is validated using Matlab programming. Based on step input, the control system is designed for the following requirements: rise time less than 10 (ms), settling time less than 30 (ms), maximum overshoot percentage less than 5%. The fitness function of the robot control system is as follows:
  • 9.  ISSN: 1693-6930 TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653 2650 𝐹 = 𝑆. 𝑑 π‘Ÿ, 𝑑 π‘Ÿπ‘šπ‘Žπ‘₯ + 𝑆. 𝑑 𝑠, 𝑑 π‘ π‘šπ‘Žπ‘₯ + 𝑆. 𝑂, π‘€π‘œ (40) where 𝑆 is the closed-loop transfer function of the Segway robot scheme 𝑑 π‘Ÿ is the rise time (s), 𝑑 π‘Ÿπ‘šπ‘Žπ‘₯ is the maximum rise time (s), 𝑑 𝑠 is the settling time (s), 𝑑 π‘ π‘šπ‘Žπ‘₯ is the maximum settling time (s), 𝑂 is the overshoot value of the output response and π‘€π‘œ is the maximum over shoot value. This function is considered in optimization process of the controller gain matrix using GA and BFO tuning algorithms. 6. GA-LQR CONTROLLER DESIGN AND RESULTS The block diagram of the Segway control system using GA-LQR controller is shown in Figure 9. Based on the system parameters (𝑅 =1.6𝛺, 𝐿 =1.2π‘šπ», 𝑙 =0.16π‘š, 𝑀 𝑀 =0.02𝐾𝑔, 𝑀 𝑝 =0.52𝐾𝑔, 𝐼 𝑀 =0.0032πΎπ‘”π‘š2 , 𝐼 𝑝 =0.0038 πΎπ‘”π‘š2 ) the state and output equation are given in (41) and (42) respectively. The global optimal solution for the LQR controller problem is achieved using genetic algorithm programming. This solution includes determine optimum values for the weighting matrices elements, which, are given below. Based on the optimized weighting matrices, the LQR gain matrix K was computed using the Matlab command β€œπ‘™π‘žπ‘Ÿβ€ as follows:𝑄 = π‘π‘™π‘˜π‘‘π‘–π‘Ž(π‘ž11, π‘ž22, π‘ž33, π‘ž44) where π‘ž11 = 8.969., π‘ž22 =0.308, π‘ž33 =0.121, π‘ž44 =0.0085, 𝑅 =2.123*10βˆ’5 and 𝐾 = [-6.4988 -3.8592 -5.1982 -0.7348]. [ π‘₯Μ‡ π‘₯̈ πœ™Μ‡ πœ™Μˆ ] = [ 0 1 0 0 0 βˆ’0.0316 0.3817 0 0 0 0 1 0 0.3927 49.5531 0 ] [ π‘₯ π‘₯Μ‡ πœ™ πœ™Μ‡ ] + [ 0 0.05746 0 βˆ’0.7141 ] π‘‰π‘Ž (41) 𝑦 = [ 1 0 0 0 0 0 1 0 ] [ π‘₯ π‘₯Μ‡ πœ™ πœ™Μ‡ ] + [ 0 0 ] 𝑒 (42) The response of the system output π›₯π‘₯(𝑑) and π›₯πœ™(𝑑) using the above optimized feedback gain matrix is shown in Figure 10. Figure 11 presents the input signal of the Segway system. It is clear from Figures 10 and 11 that the tuned controller utilizing the GA tuning method can effectively perform a fast and stable response under an acceptable input effort. Based on Figure 10, the output states π›₯π‘₯(𝑑) and π›₯πœ™(𝑑) tracked the demand input trajectories without overshoot, rise time and settling time of approximately 80 ms and 95 ms respectively and approximately zero steady state error. Figure 12 presents converging of the LQR weighting matrices through iterations based on GA tuning method. Figure 9. Block diagram of Segway controller GA-LQR
  • 10. TELKOMNIKA Telecommun Comput El Control  Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed) 2651 Figure 10. System response using GA-LQR controller Figure 11. System input based on GA-LQR controller (a) (b) (c) (d) (e) Figure 12. Generation elements of 𝑄(𝑑) and 𝑅(𝑑) matrices for GA-LQR controller; (a) π‘ž11 element, (b) π‘ž22 element, (c) q33 element, (d) π‘ž44 element, and (e) 𝑅 element 7. BFO-LQR CONTROLLER DESIGN AND RESULTS The design of LQR controller based on BFOA method is analogous to that of the GA-LQR control system as previously presented in Figure 9. The optimized LQR matrices 𝑄(𝑑) and 𝑅(𝑑) and controller gain matrix using BFO algorithm are as follows: 𝑄 = π‘π‘™π‘˜π‘‘π‘–π‘Ž(π‘ž11, π‘ž22, π‘ž33, π‘ž44) where π‘ž11 =289.104, π‘ž22 =-5.15*10βˆ’5 ,π‘ž33 =-5*10βˆ’5 , 44q = -5.1*10βˆ’5 𝑅 =0.00028 and 𝐾 = [-1022 -260.2 886.72 77.7]. The time response of the robot states π›₯π‘₯(𝑑), π›₯πœ™(𝑑) using BFOA-LQR controller is shown in Figure 13. Figure 14 shows the control effort required to stabilize the Segway robot system. Regarding the optimization of the controller, Figure 15 introduces converging elements of weighting matrices of the LQR controller through iterations based on BFOA tuning algorithm. By comparing the behavior of the robot system shown in Figures 10, 11, 13 and 14. It should be noted that the BFOA-LQR controller can achieve more stable and faster response through following the desired trajectories effectively. Table 1 shows comparison results between the GA-LQR controller and BFOA-LQR controller based on control criteria parameters. Based on Table 1, the BFOA-LQR controller enabled the walking robot to follow the demand trajectories effectively.
  • 11.  ISSN: 1693-6930 TELKOMNIKA Telecommun Comput El Control, Vol. 18, No. 5, October 2020: 2642 - 2653 2652 Figure 13. Robot response using BFOA-LQR Figure 14. Control effort of robot system (a) (b) (c) (d) (e) Figure 15. Generation elements of 𝑄(𝑑) and 𝑅(𝑑) matrices for BFO-LQR controller; (a) π‘ž11 element, (b) π‘ž22 element, (c) q33 element(c) q33 element, (c) q33 element, (d) π‘ž44 element, and (e) 𝑅element (continue) Table 1. Performance parameters of the Segway using GA-LQR and BFOA-LQR controller Cont. Type System Output Control Criteria Parameter Rise Time Settling Time Max. Overshoot Control Input GA-LQR Position 1.25 s 1 s 5 % 1.3 V Yaw Angle 1.8 s 10 ms 120 % BFOA-LQR Position 0.5 s 0.33 s 0 % 1.4 V Yaw Angle 0.85 s 4 ms 130 % 8. CONCLUSIONS In this research, an optimal linear control system was adopted to balance a Segway two-wheeled mobile robot. The dynamics of the robot system is modeled in state space form in order to design a state feedback stabilizing controller for the Seqway robot system. A LQR controller was proposed to stabilize the Segway robot in upright position. The controller is optimized using two tuning algorithms, GA and BFO.
  • 12. TELKOMNIKA Telecommun Comput El Control  Balancing a Segway robot using LQR controller based on genetic and… (Ibrahim K. Mohammed) 2653 An active stabilizing scheme for the Segway robot system has been implemented successfully using GA-LQR controller and BFOA-LQR controller. Simulation results of the controllers are introduced and then compared based on standard stabilizing parameters. The comparison revealed that the BFOA-LQR controller can be adopted to implement faster and a more stable balancing system for the Segway vehicle. REFERENCES [1] Salerno A., and Angeles J., β€œA new family of Two Wheeled Mobile Robot: Modeling and Controllability,” IEEE Transaction of Robotics, vol. 23, no. 1, pp. 169-173, 2007. [2] Khaled M., β€œMathematical Modelling and Control of a Two-Wheeled PUMA-LikeVehicle,” Journal of Mechanical Engineering Research, vol. 6, no. 2, pp. 11-22, 2016. [3] Searock J., B. Browning, and M. Veloso, β€œSegway CM-RMP Robot Soccer Player,” Proceedings of the RoboCup International Symposium, Lisbon, Portugal, 2004. [4] Grasser F., Alonso D., Silvio C., and Alfred C. R., β€œJOE: A Mobile, Inverted Pendulum,” IEEE Transactions on Industrial Electronics, vol. 49, no. 1, pp. 107-114, 2002. [5] Nawawi W., Ahmad N. and Osman S., β€œReal-Time Control of a Two-Wheeled Inverted Pendulum Mobile Robot,” International Journal of Electrical, Computer, Energetic, Electronic and Communication Engineering, vol. 2, no. 3, pp. 406-412, 2008. [6] Hassenplug S., β€œSteve's LegWay,” Retrieved September 22, 2018. [Online]. Available: Steve's LegWay: http://www.teamhassenplug.org/robots/legway. [7] Hessein A., Daniel A., and Naseem D., β€œModel Reference Adaptive Control of a Two-Wheeled Mobile Robot,” Proceedings of the International Conference on Robotic and Automation, pp. 1155-1161, 2019. [8] Shiroma N., Matsumoto O., Kajita S. and Tani K., β€œCooperative Behaviour of a Wheeled Inverted Pendulum for Object Transportation,” Proceedings of the 1996 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 396-401, 1996. [9] Nakajima R., Takashi T., Shin’ichi Y. and Eiji K., β€œA Development of a New Mechanism of an Autonomous Unicycle,” Proceedings of the IEEE International Conference on Intelligent Robots and Systems, pp. 906-912, 1997. [10] Takahashi, Y., Ishikawa, N. and Hagiwara, T, β€œInverse pendulum controlled two wheel drive system,” Proceedings of the SICE Annual Conference, International Session Papers, pp. 112 -115, 2001. [11] Mohammed I., Sharif B., Neasham J., and D. Giaouris, β€œNovel MIMO 4-DOF Position Control for Capsule Endoscope,” Proceedings of the IEEE ISCAS, Rio de Janeiro, pp. 909-912, Brazil 2011. [12] Mohammed I., Abdulla I., β€œDesign of optimised linear quadratic regulator for capsule endoscopes based on artificial bee colony tuning algorithm,” International Journal for Engineering Modeling, vol. 31. no. 1-2, pp. 77-98, 2018. [13] Mohammed I., Abdulla I., β€œFractional Order PID Controller Design for Speed Control DC Motor based on Artificial Bee Colony Optimization,” International Journal of Computer Applications, vol. 179, no. 24, pp. 43-49, 2018. [14] Abdulla A., Mohammed I. and Jasim A., β€œRoll Control System Design Using Auto Tuning LQR Technique,” International Journal of Engineering and Innovative Technology, vol. 6, no. 2, pp. 11-22, 2017. [15] Lee Y. J. and Cho K. H., β€œDetermination of the Weighting Parameters of the LQR System for Nuclear Reactor Power Control using the Stochastic Searching Methods,” Journal of the Korean Nuclear Society. vol. 29, no. 1, pp. 68-77, 1997. [16] Storn R. and Price K., β€œDifferential Evolution-A Fast and Efficient Heuristic for Global Optimization over Continuous Spaces,” Journal of Global Optimization, vol. 11, no. 4, pp. 341-359, 1997. [17] Ali D., Hend L., and Hassani M., β€œOptimized Eigenstructure Assignment by Ant System and LQR Approaches,” International Journal of Computer Science and Applications, vol. 5, no. 4, pp. 45-56, 2008. [18] Wei A. and Yangmin L., β€œSimulation and Control of a Two-wheeled Self-balancing Robot,” Proceedings of the IEEE International Conference on Robotics and Biomimetics (ROBIO) Shenzhen, pp. 34-38, 2013. [19] Ooi R., β€œBalancing a Two-Wheeled Autonomous Robot,” PhD Thesis, The University of Western Australia School of Mechanical Engineering, Faculty of Engineering and Mathematical Sciences, University of Western Australia; 2003. [20] Fang J., β€œThe LQR Controller Design of Two-Wheeled Self-Balancing Robot Based on the Particle Swarm Optimization Algorithm,” Institute of Engineering and Technology, Changchun: 130052, China 2014. [21] Passino M. K., β€œBiomimicry of bacterial foraging for distributed optimization and control,” IEEE Control and System Magnetic, vol. 22, no. 3, pp. 52-67, 2002. [22] Kim D. H. and Cho J. H., β€œAdaptive tuning of PID controller for multivariable system using bacterial foraging based optimization,” Proceedings of the 3rd International Atlantic Web Intelligence Conference on Advances in Web Intelligence (AWIC ’05), vol. 3528 of Lecture Notes in Computer Science, pp. 231-235, 2005. [23] Mishra S., β€œA hybrid least square-fuzzy bacterial foraging strategy for harmonic estimation,” IEEE Transaction on Evolutionary Computation, vol. 9, no. 1, pp. 61-73, 2005. [24] Tripathy M., Mishra S., Lai L., and Zhang, Q. P., β€œTransmission loss reduction based on FACTS and bacteria foraging algorithm,” Proceedings of the 9th International Conference on Parallel Problem Solving from Nature (PPSN ’06), pp. 222-231, 2006. [25] Swagatam D., Arijit B., Sambarta D. and Ajith A., β€œBacteria Foraging Optimization Algorithm: Theoretical Foundations, Analysis, and Appications,” Foundations of Computational Intelligence, vol. 3, SCI 203, pp. 23-55, 2009.