Design Low-Order Robust Controller for Self-Balancing Two-Wheel Vehicle

When there is no driver, balancing the two-wheel vehicle is a challenging but fascinating problem. +ere are various solutions for maintaining the balance of a two-wheel vehicle. +is article presents a solution for balancing a two-wheel vehicle using a flywheel according to the inverted pendulum principle. Since uncertainties influence the actual operating environment of the vehicle, we have designed a robust controller RH∞ to maintain the vehicle equilibrium. Robust controllers often have a high order that can affect the actual control performance; therefore, order reduction algorithms are proposed. Using Matlab/Simulink, we compared the performance of the control system with different reduced-order controllers to choose a suitable low-order controller. Finally, experimental results using a low-order robust controller show that the vehicle balances steadily in different scenarios: no-load, variable load, stationary, and moving.


Introduction
Bicycles have appeared in the world for centuries as a popular means of transport. Two-wheel vehicles (including bicycles, motorbikes, and electric bicycles) have the advantage of low fuel consumption, fast acceleration, flexibility, narrow parking space, low cost, and being particularly suitable for limited road conditions in large cities. e most significant limitation of two-wheel vehicles is not being able to balance themselves like a car. Driving two-wheel vehicles is not as comfortable as driving a car. Besides, when colliding with another vehicle, the standard two-wheel vehicle will fall and cause injury to the driver. erefore, the need to develop a two-wheeled vehicle that can balance itself both when stationary, in motion, and in a collision, creating comfort for the driver like when driving a car, is essential. If well designed, the self-balancing two-wheel vehicle will only drop off in the collision and remain vertical thanks to the selfbalancing system mounted on it, ensuring the user's safety. However, the problematic issue is how to control the system so that the system can balance itself under different working conditions, and the load carried can be changed simultaneously. Because the attractiveness of self-balancing twowheel vehicles comes from theoretical and practical problems, research on self-balancing two-wheel vehicles has attracted the attention of many scientists and manufacturing companies.
In Vietnam today, two-wheel vehicles are still used more widely than cars. erefore, the development of selfbalancing two-wheel vehicles is essential and suitable for the traffic situation of Vietnam. is article builds a model to study and experimentally control the balance of the selfbalancing two-wheel vehicle. is study will contribute to determining an appropriate model and algorithm for maintaining the balance of two-wheeled vehicles and then apply them into practice.
To be able to control the vehicle's balance, we must understand its dynamics. e bicycle model is nonintuitive and strongly depends on the speed [1]. When the vehicle is not in motion, it is an unstable model like an inverted pendulum [1]. However, when the vehicle is in constant motion under certain conditions, it can be stable [1]. In [1], the authors mention that two-wheel vehicles can be described by various models with different complexity from the second-order linear model to fourth-order linear and nonlinear models. ere are multiple methods to solve a two-wheel vehicle's balance problem without a driver, divided into two groups: with and without a stabilizer.
With the group without a stabilizer [2][3][4][5][6], to maintain the equilibrium state of the vehicle, the control system controls the vehicle's steering angle using an electric motor.
is method is built on the nature of the bicycle when there is a driver. When the bicycle moves in the direction of control, it will generate a centrifugal force to maintain the equilibrium.
erefore, this method is very difficult to maintain the equilibrium when the vehicle is stationary.
With the method group with stabilizers, there are many solutions to design stabilizers to maintain vehicle equilibrium. In studies [7][8][9][10][11][12][13][14], the flywheel was energized by allowing it to rotate at high speed, and the control system controls the flywheel's tilt angle to generate force according to the principle of the gyroscope to maintain vehicle balance. e more the flywheel number, the faster the flywheel rotation speed, the greater the accumulated energy of the flywheel, and the better balance the vehicle. However, the number of flywheels used is usually one flywheel in [7][8][9][10][11] or two flywheels as in [12][13][14]. e advantage of this approach is that it responds quickly; the force to maintain the balance is significant, but the downside is that the flywheel rotates at high speed, so it dissipates a massive amount of energy.
In [15], the author added weight to the vehicle model and changed the position of the weight to change the vehicle's center of gravity to maintain equilibrium. e advantage of this method is that it is possible to keep the vehicle's balance when the vehicle is stationary and when the vehicle is in motion. However, to ensure a large balance force, the added weight is also large, leading to an increase in the size and weight of the vehicle, and the response of the system is often slow.
To overcome the disadvantage of the study in [15], the studies in [16,17] suggested using flywheel-type weights to change the CoG. Accordingly, a flywheel will be installed on the vehicle. e flywheel structure can be altered to change its CoG, thereby changing the CoG of the vehicle. e stabilizer using flywheel according to the principle of an inverted pendulum is proposed in [18][19][20][21][22][23]. In this method, the rotation direction of the flywheel will be changed to create a force that balances the gravity of the vehicle to maintain the equilibrium state. e advantage of this method is that the flywheel usually rotates at a low speed, so it dissipates less energy, and the response of the system is fast. e disadvantage of this method is that the balancing force is not large, so the vehicle can only balance within a small angle range.
We see that each group has its advantages and disadvantages. Some studies are looking to combine these methods, as specific as combining steering angle control with changing the CoG [24]. rough analysis of two-wheel vehicle balance control solutions, this article chooses the technique using a flywheel to build a self-balancing twowheel vehicle.
To control the self-balancing two-wheel vehicle according to the inverted pendulum principle, there are various methods such as PD [20], PID [17][18][19], LQG and MPC [21], SMC [25][26][27], and robust control [11,[28][29][30][31][32][33][34][35][36][37][38]. However, when a two-wheel vehicle works in reality, it will suffer many uncertain effects such as load, noise, and external force. erefore, the two-wheel vehicle model can be considered as an uncertain object [10]. To control unstable objects, there are many different algorithms, of which the most used algorithm is sliding-mode control (SMC) [25][26][27] and robust control algorithm [11,[28][29][30][31][32][33][34][35][36][37][38]. Key features of the SMC are its ability to resist parameter uncertainty, a fast response rate, no sensitivity to bounded external disturbances, and simple design computation. e SMC control algorithm has been proven to control the balance of twowheel vehicles according to the inverted pendulum model in [25]. SMC was improved and converted to NFTSM (nonsingular fast terminal sliding-mode control) in [26] to better meet the requirements of robust control under the presence of uncertainties and disturbances. Robust finite-time composite nonlinear feedback control can be used to control uncertainties, as shown in [27]. e robust optimal control algorithm RH¥ [11,[28][29][30][31][32][33][34][35][36][37][38] is designed to shape the system's response to achieve the desired behavior and maintain this behavior from model parameter variation or disturbances. However, to ensure the two above functions, the robust optimal controller H¥ is often high. e high-order controller can make the controller's calculation time longer, hence the response speed of the controller slower, reducing the practical applicability of the controller. erefore, the design of a low-order robust controller is a very concerning issue in robust control. To design a robust low-order controller, there are usually two basic solutions. In Solution 1, a low-order control structure with unknown parameters is selected; then, based on the robust optimization controller design criteria, these parameters are determined [11]. In Solution 2, a high-order stable controller is designed; then, the model order reduction algorithm is applied to reduce the controller [34,38]. To implement Solution 1, we need to solve two problems simultaneously, namely, the controller design problem that satisfies the robust optimization criteria and the problem of finding controller parameters. e complexity of Solution 1 is high, and the problem of finding parameters can be inexhaustible if the selected controller structure is not suitable. In contrast, Solution 2 usually finds a low-order controller in all cases.
is article designs a low-order robust controller for the self-balancing vehicle control system according to Solution 2. After designing a robust controller, we propose using order reduction algorithms to reduce the order of the controller. e purpose of reducing the order of the controller is to make the control program code simpler and straightforward to practical applications while the system still meets the requirements of robust stability. e rest of the article is structured as follows. e dynamics and mathematical model of the two-wheel vehicle are described in Section 2. Section 3 introduces steps to design a robust controller for an uncertain object and then a two-wheel vehicle. Section 4 presents the order reduction of a high-order controller and the simulation and testing of a balanced control system using a low-order controller. Finally, the conclusion is given in Section 5.

Dynamics and Mathematical Model of Self-
Balancing Two-Wheel Vehicle 2.1. Dynamic of Self-Balancing Two-Wheel Vehicle. e selfbalancing two-wheel vehicle, built at the ai Nguyen University of Technology, is used as the model to verify control algorithms' performance. e vehicle is designed on a children's bicycle, as shown in Figure 1. It is designed to move forward or backward, carry loads, and change loads without falling over. e self-balancing vehicle is made up of the following components: a flywheel with a diameter of 0.26 m and a weight of 3,796 kg is used to generate torque; DC motor, 15 V, 100 w, and 3400 rpm, is used to rotate the flywheel around its shaft; a DC motor is used to control the vehicle forwards or backward; H-bridge circuit is used to control the DC motor; a 5 VDC 100-pulse Sharp Encoder is used to measure flywheel speed; a sensor GY-521 MPU-6050 is used to measure the tilt angle of the vehicle. e dimensions of the vehicle are as follows: 1.19 m long, 0.5 m high, and 0.4 m wide.
e two-wheel vehicle's balance system is built based on the inverted pendulum principle. When the motor spins the flywheel around its axis with a certain acceleration, a torque is generated, acting on the vehicle to keep the vehicle balanced. e balance control system configuration of the vehicle is shown in Figure 2. e control program of the self-balancing two-wheel vehicle is loaded into an Adruino Uno to control the balance of the two-wheel vehicle.

Modeling of Self-Balancing Two-Wheel Vehicle.
To build the dynamic model, we make the following assumptions: all vehicle components form a rigid bond with a degree of freedom (DOF) orbiting the Z-axis. e flywheel is firmly attached to the vehicle, and the center of gravity (CoG) is fixed to the chassis. e simplified model of the vehicle is shown in Figure 3, where F is the center of the flywheel and B is the center of the vehicle. e tilt angle of the vehicle around the Z-axis is defined as α , the rotation angle of the flywheel is defined as δ.
e dynamic model of the two-wheel vehicle is shown in Figure 3.
Since the center of the flywheel is not moving relative to the CoG of the vehicle, the absolute speed at points F and B is given as follows: where h b is the height of the vehicle's CoG (without the flywheel) and h f is height of the flywheel's CoG.
Set T b as the kinetic energy of the two-wheel vehicle and T f as the kinetic energy of the flywheel. We have T b and T f calculated as follows: where m b is the weight of the vehicle including the motors, m f is the weight of the flywheel, I b is the moment of inertia of the vehicle, and I f is the moment of inertia of the flywheel. e total kinetic energy of the system is given by the following: Defining V as the total energy of the system, we have the following: To describe the dynamics of the two-wheel model, we use the Lagrange equation [8] as follows: where Q i is the external force and q i is the general coordinate system. For q i � α, applying (3)-(6), we have the following: For q i � δ, applying (3)-(6), we have the following: where C m is the torque of the DC motor shaft attached to the flywheel by a shaft coupling with a gear ratio k:1, determined by the following formula: where R is the resistance of the motor; T m is the torque constant; T e is the electromotive force constant of the motor. Applying (9) into (8), we have e set of equations for the vehicle kinematic is (7) and (10). We see that these equations are nonlinear.

Mathematical Problems in Engineering
By linearizing (7) around the equilibrium point (α � δ � 0, sin α � α) assuming that the tilt angle of the vehicle when operating is tiny (α ≤ 10 0 ), we obtain Combining (10) and (11), we obtain a set of equations describing vehicle states as follows: with the following system parameters:

Design Optimal RH∞ for Uncertain
Object. Consider a SISO control system according to the structure diagram shown in Figure 4, where S(s) is the model of control object, R(s) is cotroller, p is the unwanted signal acting on the system, and z is the unwanted output. e design of RH ∞ controller consists of two steps: Step 1. Define the set of all the controllers that make the closed system from w to y stable. is set is denoted by R(s).
Step 2. Find specific element R(s) in set R(s) such that it has the smallest sensitivity to model error and noise and the smallest ‖G p⟶z (s)‖ ∞ .

Determine Set R(s) of Controllers to Make the SISO System
Stable. (a) Case S(s) is stable. Consider the system containing SISO stages with the structure shown in Figure 4, assuming object S(s) is stable or S(s) ∈ RH∞. e objective is to determine set R(s), including all controllers, to stabilize the system. Define the following: With the above controller, the transfer function of the closed system G y w (s), i.e., the transfer function between the input signal w(t)and the output signal y(t), is us, if function Q(s) is stable that means Q(s) ∈ RH ∞ and G y w (s) is also a stable function; i.e., the closed system is robustly stable with the output noise. Accordingly, if the closed system has a stable object S(s) ∈ RH ∞ , all controllers R(s) determined by (14) would make the closed system stable and robust with noise. In other words, set R(s), including all the controllers that stabilize the system, has the following Q-dependent form: is unstable, it means that S(s) ∉ RH ∞ or A(s) is not a Hurwitz polynomial. We can always convert S(s) back to case (a) described above by converting at is, S will be the real function-rational, with both N(s) and M(s) being stable functions. Indeed, we divide both B(s)and A(s) of (17) by some Hurwitz polynomial C(s): We will get two stable functions: Assume the controller R(s) has the following structure: e transfer function G y w (s) of the closed system, describing the relationship between the input signal w(t) and the output signal y(t), is as follows: Obviously, if there is a Bezout similarity relation, then G y w (s) is a stable function; i.e., the closed system is robustly stable.
us, the problem of determining the controller (21) to make the system stable is only finding U, V ∈ RH ∞ to satisfy (23).
However, the Bezout equation (23) has infinite solutions because once there is one solution, with all parameters Q ∈ RH ∞ will also be its solution. erefore, if the object has the following transfer function, with M, N ∈ RH ∞ , set R(s) including all controllers that make the closed system stable would have the following structure:

Mathematical Problems in Engineering
To find R(s), it usually follows the Youla parameterization method [37,38].

Find R(s) in R(s) So at the System Has the Smallest Sensitivity
(a) Determine the sensitivity function with respect to the model error.
For a simplicity purpose, we consider the closed system in Figure 4. e closed-loop transfer function of the system is given by the following: Because the object contains deviations ΔS, there is also a corresponding deviation ΔG in the closed system transfer function. It represents the performance deviation caused by ΔS. e sensitivity function representing the effect of ΔS on system performance is defined as follows: e next control objective is to determine R * (s) ∈ R(s) that has the potential to minimize the sensitivity, i.e., (b) Convert the optimization problem (30) into a model equilibrium problem.
(c) Find the optimal problem solution (32) for the SISO system.
Consider the special case T, U ∈ RH ∞ , where U(s) has a unique zero s 0 , on the right side of the imaginary axis (including s 0 � ∞).
According to the definition of the infinity norm, we have the following: Besides, for Q � (T(s) − T(s 0 ))/U(s) ( * ), we have |T − UQ| � |T(s 0 )|, Q in ( * ) has poles including all poles of T and the remaining zeros (except s 0 ).
at's why Q is a robust function, or Q ∈ RH ∞ . erefore, if (T(s) − T(s 0 ))/U(s) is valid, then Q � (T(s) − T(s 0 ))/U(s) is the solution of the optimization problem (32). Consequently, where: Expanding the above particular case to the problem with U(s) having m zeros, s 1 , s 2 . . . , s m , on the right side of the imaginary axis, we will apply the Nevanlinna-Pick interpolation formula to transform the problem into a form with only m − 1 zeros, s 1 , s 2 . . . , s m−1 , on the right side of the imaginary axis. en, we apply Nevanlinna-Pick again and again until the problem has only a unique zero s 1 , on the right of the imaginary axis. In this last case, we will obtain the solution R * calculated by (34).

Design of Robust Control for Self-Balancing Two-Wheel
Vehicle. Parameters of the self-balancing two-wheel vehicle are given in Table 1. By substitution of these parameters into equation (10), the nominal transfer function of the balancing system of vehicle is described as follows: where U is the voltage applied to the DC motor to rotate the flywheel and α is the tilt angle of the vehicle. e actual operation of self-balancing two-wheel vehicle shows that a change in the vehicle's load will lead to a change in the vehicle's CoG. Besides, external force and uncertain noise due to changes in the vehicle's terrain are uncertain factors affecting the vehicle. ese uncertainties alter the self-balancing two-wheel vehicle model, so we can consider the two-wheel vehicle model as an uncertain object. Among the uncertainties affecting the vehicle, we mainly concern about the load variation. Specifically, consider the following cases.
Case 2. When the load is 2.9 kg, the height of the CoG of the vehicle h b � 0.16m is the transfer function of the vehicle model as follows: Case 3. When the load is 5 kg, the height of the CoG of the vehicle h b � 0.05m is the transfer function of the vehicle model as follows: Case 4. When the load is 10 kg, the height of the CoG of the vehicle h b � 0.12m is the transfer function of the vehicle model as follows: e Bode plots of two-wheel vehicle models with different loads are shown in Figure 5.
As shown in Figure 5, uncertainties can reduce the accuracy of the mathematical model, leading to a decrease in the control performance and even making the system unstable. Due to uncertainty in the two-wheel vehicle model, robust control [11,34] is the most suitable control algorithm to control the balance of the two-wheel vehicle model among proposed control algorithms, including PD [20], PID [17][18][19], LQG and MPC [21], and SMC [25][26][27].
e robust control of a two-wheel vehicle is designed according to the structure diagram given in Figure 6.
Designing the robust controller for the self-balancing two-wheel vehicle according to the procedure presented in Section 3 [35,36], we obtain the following controller: Applying Matlab/Simulink to simulate the two-wheeled vehicle balance control system using the 15 th -order controller, we obtained the results shown in Figures 7 and 8.
When the two-wheel vehicle loads the different circumstances, we obtained the results shown in Figure 9 as follows.
( * ) Comment: Figures 8 and 9 show that the 15 th -order robust controller is capable of maintaining a stable balance of the two-wheel vehicle when the model parameters change. However, using a 15 th -order controller to control a twowheel vehicle results in a complex control program code, which can affect the actual control system's response speed and hence make the system unstable. erefore, we seek to reduce the order of the 15 th -order controller to simplify the control program code and ensure that the real-time control system always maintains a stable balance.

Reducing Order of Controller.
e requirement for the order reduction problem is that a low-order controller has the lowest possible order; the response of a control system using a low-order controller should match that of a control system using the 15 th -order controller or the control system using a low-order controller ensures stability control for two-wheel vehicle.
To reduce order of the controller, there are two basic solutions as follows: Solution 1: Select a low-order controller with a fixed structure and then apply optimal algorithms to select the parameters of the low-order controller so that the control system using the low-order controller ensures stability control for a two-wheel vehicle. Solution 2: Applying the order reduction algorithms to reduce the order of a high-order controller, we will obtain a set of reduced-order controllers. e lowest reduced-order controller that still meets the requirements for stable balance control of a two-wheel vehicle will be selected to replace the high-order controller.
In this article, we choose Solution 2 to reduce the order of the 15 th -order controller. Analyzing the 15 th -order controller, we find that it is an unstable system. In order to reduce the order of an unstable system, we need to use algorithms that reduce the order of an unstable system. e order reduction algorithms for unstable systems are classified into two groups. One group consists of algorithms for the indirect order reduction of an unstable system. ese algorithms divide the unstable system into an unstable subsystem and a stable subsystem. e order of the stable subsystem will be reduced to obtain a low-order stable subsystem. e unstable subsystem will then be added to the low-order stable subsystem to get a low-order unstable system. e other group consists of algorithms for direct order reduction of an unstable system. ese algorithms perform order reduction of an unstable system without performing subsystem division. Aiming to select the best low-order controller to replace the 15 th -order controller, we use both groups of reduction methods and then compare the obtained results.  Since the unstable subsystem does not change during order reduction, the 4 th -order controller is the smallest order controller obtained by indirect order reduction algorithms.

Direct Order Reduction Algorithms.
Applying direct order reduction algorithms [40,[48][49][50] (using programmed code and the available ncfmr function in Matlab/Simulink), to reduce the order of the 15 th -order controller, we obtained the results in Table 4.

Simulation Results.
To evaluate the efficiency of loworder controllers, we build a simulation model of the selfbalancing two-wheel vehicle control system with low-order controllers using Matlab/Simulink; results are obtained as follows.
Using the 4 th -order controller as given in Table 2 to control a self-balancing two-wheel vehicle, as shown in Figure 10, we obtain results as depicted in Figure 11. Figure 11 shows that a self-balancing two-wheeled vehicle control system using the 4 th -order controller can not stabilize the vehicle. us, the 4 th -order controller does not meet the requirements of reducing the order of the 15 thorder controller.
Using the 5 th -order controllers in Table 3 to control the self-balancing two-wheeled vehicle, as in Figure 12, we obtained results as depicted in Figure 13. Figure 13 shows that the self-balancing two-wheel vehicle using the 5 th -order controller can stabilize the vehicle with an initially off-angle of (2π/180)(radian). Comparing the control system performance using the 5 th -order controller to the system using the 15 th -order controller, we see that the control system using the 5 th -order controller, according to the bstmr algorithm, has the largest number of fluctuations and the longest settling time. When the control system using the 5 th -order controller according to the balancmr algorithm, the amplitude of the oscillation is small. Meanwhile, the settling time of the control system using the 5 th -order controller according to the balancmr algorithm is equivalent to that of the control system using the 15 th -order controller.
Using the 2 nd -order controllers in Table 3 to control the self-balancing two-wheel vehicle, as shown in Figure 14, we obtained the following results. Figure 15 shows that the control system using the 2 ndorder controller, according to Zilochian's algorithm, can not stabilize the vehicle. In contrast, Figure 16 depicts that the control system using the 2 nd -order controller, either according to the ncfmr algorithm or Zhou's algorithm, ensures stability balance control for the self-balancing twowheel vehicle. Out of these two algorithms, the quality of the control system using the 2 nd -order controller, according to Zhou's algorithm, is better (smaller number of the oscillation and smaller amplitude of the oscillation) than the quality of the control system using the 2 nd -order controller according to the ncfmr algorithm.
By comparing and evaluating the reduced-order controllers by direct and indirect order reduction algorithms, we selected the 2 nd -order controller according to Zhou's algorithm to control the self-balancing two-wheel vehicle. Verifying the control system using the 2 nd -order controller according to Zhou's algorithm in variable load cases, we obtained the results as shown in Figure 17.
As shown in Figure 17, the self-balancing two-wheel vehicle control system using the 2 nd -order controller, according to Zhou's algorithm, can stabilize the vehicle when the vehicle's load changes.

Experimental Results.
e structure of the control system is shown in Figure 2. First, we perform the controller with the model built on Matlab/Simulink. After verifying the control system's control capability using the Simulink model, we loaded the control program using the 2 nd -order controller into the Arduino Uno board's chip with a sampling time of 10 ms. e tilt angle of the vehicle will be read by sensor GY-521 MPU-6050. Based on the received tilt angle signal, the control program in the Arduino will calculate the control signal sent to the H-bridge circuit. Accordingly, the H-bridge circuit will generate the appropriate voltage signal to control the DC motor. e DC motor will rotate the flywheel so that the torque induces an impact on the vehicle against the gravity torque due to the vehicle tilting away from its balanced position.
For experimental validation, Arduino is connected to the ESP32 wifi module to measure the vehicle's tilt angle. is measured tilt angle will be sent to the server of the Blynk application by Arduino via the ESP 32 wifi module. en, the computer will receive the tilt angle information from the server of the Blynk application. Using Matlab/Simulink software installed on the computer, the vehicle's tilt angle is obtained, as shown in the following figures.  Experimental control results of self-balancing twowheeled vehicle when the vehicle is stationary and at no-load are shown in Figure 18 as follows Figure 18 depicts that the control system can stabilize the vehicle at no-load with the tilt angle fluctuating around 0 degrees, from −0.08 degrees to 0.08 degrees.
e results of experimenting with the vehicle balance control system when the vehicle is stationary and carrying a load of 1.8 kg are obtained, as shown in Figure 19. Figure 19 shows that the vehicle balance control system can stabilize the vehicle when the vehicle carries a load of 1.8 kg with the tilt angle of the vehicle fluctuating around 0°, Table 4: e 2 nd -order controllers using direct order reduction algorithms.
Mathematical Problems in Engineering 13 from −0.2 degrees to 0.2 degrees. Compared to the no-load case, the amplitude of the tilt angle variation of the loaded case is higher. Experimenting with the vehicle balance control system when the vehicle is stationary and carrying a 2.9 kg load, we obtained the results shown in Figure 20. Figure 20 shows that the control system can stabilize the vehicle when the vehicle carries 2.9 kg with the tilt angle oscillating around 0 degrees, from -0.6 degrees to 0.6 degrees. Comparing the results between Figures 19 and 20, we see that the angular oscillation amplitude increases when the load weight increases.

Scope1
x ′ = Ax + Bu y = Cx + Du  Step response of the self-balancing two-wheel vehicle control system using 5 th -order controllers.
Experimenting with the control system when the vehicle is stationary and placing a load of 1.8 kg at the eccentric position of the vehicle, we obtained the results given in Figure 21. Figure 21 shows that when the vehicle is not loaded, the control system can stabilize the vehicle with the vehicle's tilt angle fluctuating around 0 degrees. When the vehicle carries a load of 1.8 kg at the eccentric position of the vehicle, the control system automatically finds a new equilibrium with the tilt angle fluctuating around 2 degrees.
Experimenting with the vehicle balance control system when the vehicle moves while carrying a load of 1.8 kg, we obtained the results given in Figure 22. Figure 22 shows that when the vehicle is not moving, the vehicle's tilt angle fluctuates around 0 degrees with amplitude ranging from -0.2 to 0.2 degrees. When the vehicle is moving, from 5 s to 30 s, the tilt angle will fluctuate around 0 degrees with an amplitude of 0.8 to 1 degree. When the vehicle stops, the tilt angle is stabilized around 0 degrees with the same oscillation amplitude as when the vehicle is not   Figure 16: Step response of the self-balancing two-wheel vehicle control system using 2 nd -order controllers according to Zhou's algorithm and ncfmr algorithm. Step response of the self-balancing two-wheel vehicle control system using 2 nd -order controllers according to Zhou's algorithm when the vehicle's load changes.    us, when the vehicle is moving, the angular oscillation amplitude increases, but balance and stability of the vehicle are still maintained.

Conclusions
e article introduces a self-balancing two-wheel vehicle model using flywheels according to the inverted pendulum principle. Modeling of the vehicle shows that the twowheeled vehicle is a nonlinear and uncertain object. A highorder robust controller RH ∞ is designed to maintain a stable balance of the two-wheel vehicle. To reduce the order of the controller, the article has used different order reduction algorithms.
is study evaluated the two-wheel vehicle balance control system utilizing the reduced-order controllers and chose the most suitable low-order controller (2 nd -order controller) through the simulation. When used to control the balance of the two-wheel vehicle, a low-order control helps stabilize the vehicle when being stationary and moving and when the load changes. In the upcoming studies, we will apply optimal algorithms to find the loworder robust controller that meets the requirements of the self-balancing two-wheel control problem.

Future Recommendation Study
Research on solutions to increase the steady angle for selfbalancing two-wheel vehicle; research on how to reduce the flywheel mass while maintaining the moment of inertia of the flywheel; research on how to improve the load-carrying capacity of self-balancing two-wheel vehicle; research on solutions to combine steering angle control with two-wheel vehicle balance control; comparing the efficiency of the robust control algorithm for the self-balancing two-wheel vehicle with other control algorithms are warranted.

Data Availability
is publication is supported by multiple datasets, which are available at locations cited in the reference section.

Conflicts of Interest
e authors declare that they have no conflicts of interest.