Next Article in Journal
Study on the Service Performance of a Two-Stage Floating-Ring Isolation Seal for a High-Speed Turbopump with a Cryogenic Medium
Next Article in Special Issue
Enriched Finite Element Method Based on Interpolation Covers for Structural Dynamics Analysis
Previous Article in Journal
Controller Design for Parallel Mechanism Solar Tracker
Previous Article in Special Issue
Multi-Objective Optimization of Magnetorheological Mount Considering Optimal Damping Force and Maximum Adjustable Coefficient
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Frame Angular Velocity Control Design of SGCMG for Unmanned Two-Wheeled Motorcycle

1
Key Laboratory of Advanced Manufacturing Technology for Automobile Parts, Ministry of Education, Chongqing University of Technology, Chongqing 400054, China
2
School of Vehicle Engineering, Chongqing University of Technology, Chongqing 400054, China
3
College of Computer Science and Engineering, Chongqing University of Technology, Chongqing 400054, China
*
Author to whom correspondence should be addressed.
Machines 2023, 11(3), 371; https://doi.org/10.3390/machines11030371
Submission received: 20 December 2022 / Revised: 1 March 2023 / Accepted: 2 March 2023 / Published: 9 March 2023
(This article belongs to the Special Issue Noise and Vibration Control in Dynamic Systems)

Abstract

:
In contrast to driverless cars and other three-wheeled and four-wheeled motorcycle vehicles, driverless two-wheeled motorcycles have the problem of maintaining balance. In this paper, we propose the design of an SGCMG frame angular velocity controller to realize the balance control of the motorcycle under static and dynamic working conditions. Meanwhile, since the roll angular acceleration of the actual body movement of the cross roll cannot be obtained directly, this paper proposes a Kalman filtering method based on the nonlinear dynamics model of the motorcycle to obtain a reliable angular acceleration signal. First, we modeled the dynamics of the motorcycle by analyzing the various types of moments generated by the motorcycle equipped with the SGCMG under static and dynamic conditions; Then, the design of the angular velocity control of the SGCMG frame was carried out with the feedback and through MATLAB/Simulink simulation to restore various types of actual working conditions to verify the controller has good robustness; Finally, we have completed the test of the controller using the above filtering method on the real vehicle with an embedded system and compared the effect with other controllers, obtained the results that the body is stable and balanced under static conditions and the applied load can automatically find a new balance point, so as to prove the effectiveness of the designed control.

1. Introduction

1.1. Motivation

At a time when road conditions are becoming more and more complicated and roads are becoming more and more crowded, two-wheeled motorcycles are coming back into the public’s view with their small size and high passability, and major manufacturers have started their research on self-balancing motorcycles. Famous motorcycle companies such as BMW, Yamaha, Honda, and Harley have conducted in-depth research on motorcycle self-balancing control and driverless technology.
Compared with other vehicles, two-wheeled motorcycles have strong mobility in complex and congested road conditions, especially in extreme conditions, such as mountains and deserts, and have great performance advantages compared with two-track vehicles. The self-balancing two-wheeled motorcycle can be used for complex and dangerous cargo transportation, road warning, etc. The structure of two-wheeled motorcycles makes it impossible to achieve self-balancing, so it is of great importance to realize a reliable self-balancing motion of the two-wheeled motorcycle under various operating conditions by means of a control method. This is the main motivation that leads to the work of this paper.

1.2. Related Jobs

In order to study the stability of single-rut two-wheeled vehicles such like bicycles and motorcycles, single-rut two-wheeled vehicles have been modeled for a long time. Several scholars have subsequently done a lot of work based on this model, such as Boyer and Porez, who simplified the equations by using a general approximation on the main fiber clump [1]. For incomplete systems, the Gibbs-Appell method was used by Xiong et al. to obtain the kinetic equations with minimum dimensionality and thus derive the approximate kinetic equations [2]. The equations of motion obtained by Xiong et al. for the case of a single rutted two-wheeled vehicle on a curved surface using Lagrange’s equations of the first type [3].
The existing control methods are roughly divided into three categories: the first one is to generate centrifugal momentum by steering control to keep the vehicle balanced. Getz [4] in 1995, Astrom [5] in 2005 conducted a theoretical analysis and simulation of steering control dynamics. Tanaka and Murakami in 2004 used steering control methods for the first time to realize a self-balancing bike prototype [6]. In 2009, they studied the attitude control of an electric bicycle and tracking a straight line by using steering control [7]. Jiarui He et al. in the Robotics Control Laboratory of Tsinghua University designed a constant speed steering controller to realize the balance control of bicycle driving in a straight line and steering at constant speed in 2015 [8]. Yang et al. designed a handlebar-less, fully automatic electric balancing motorcycle in 2016 to realize the self-balancing control of the vehicle at various speed ranges by steering control [9]. In 2017, Huang and Dong [10] designed a robotic bicycle with an uncertain center of gravity. They considered the bicycle with deviations in the center of gravity to establish a nonlinearized model of a two-wheeled bicycle. The controller was designed using Lyaprov’s stability theorem to eliminate the effect of the actual deviation, and finally, the two-wheeled bicycle was self-balanced using the LQR principle. In recent years, with the rapid development of control theory and technology, there have also brings new ideas to steering control. In 2019, Ziad Fawaz [11] from the University of Michigan, USA, used a high-speed electric linear actuator to provide automatic steering for a bicycle, derived the equations of motion of the bicycle modeled and simulated the bicycle using a second order linear system, proposed an experimental test of the feedback system by using a gain scheduling controller scheme to achieve self-balancing of a two-wheeled bicycle. Baquero-Suárez [12] in 2019 to achieve self-balancing of the vehicle while the unmanned bicycle is traveling at a constant speed, which employs a two-stage feedback control algorithm that includes an observer. In 2021, Kumar [13] proposed a new approach for bicycle robot balancing control that uses reduced-order modeling of a high-order, pre-specified design controller structure to derive a reduced-order controller that allows the bicycle’s post-balancing system to better resist perturbations. In 2021, Singh [14] developed a self-balancing controller that uses an improved ant colony optimization (ACO) to optimize the PID controller to analyze characteristics such as transient response and steady-state error, which allows the conventional PID controller to be used for better tuned body attitude and position control. The second type is to balance the body by generating the momentum wheel with a moment opposite to the combined moment of the body. In the famous self-balancing bicycle robot “Murata Boy”, the reaction wheel generates a reaction moment by rotating a huge reaction wheel to resist the Gravity moment. Wonia et al. in 2020 designed reaction wheel-based PID control for self-balancing control of electric motorcycles [15]. In 2020, Ngoc et al. [16,17] designed a low-order RH∞ robust controller for the control problem of a flywheel-controlled self-balancing two-wheeled vehicle to control the balance of a two-wheeled bicycle and proposed a reduced-order algorithm. Using this algorithm, the order of the RH∞ full-order controller is reduced so as to obtain a low-order controller while ensuring quality. The implication of this reduced order is to reduce the response time of the system, and the results show that the model simplification algorithm is able to balance the two-wheeled bicycle more quickly. In 2022, Jacob [18] proposed a design for a self-balancing bicycle assisted by a reaction wheel modeled on an inverted pendulum, a control system that uses an inertial measurement unit to measure the angular displacement of the bicycle, a torque gyroscope device to correct its position by calculating the required correction torque. And suggested that the vehicle could also be used as a rehabilitation and transportation tool for disabled and elderly people. The third category is to maintain the balance of the vehicle by controlling the moment gyroscope to generate the precession moment. Beznos et al. in 1998 described a bicycle with gyroscopic stabilization capable of autonomous motion along straight and curved lines [19]. Thanh et al. also proposed a hybrid H2/H∞ controller specified for a two-wheeled robot structure based on gyroscopic stabilizer [20]. Harun Yetkin et al. in 2014 used the CMG module to maintain the balance of the bike at low speeds [21]. Ouchi et al. in Japan designed a two-wheeled vehicle autopilot controller using a gyroscope in 2015 [22]. Sergio proposed in 2017 a control scheme based on a cascaded extended state observer, where the design of the internal and external control loops is based on the self-anti-disturbance principle where the disturbances affecting each loop are estimated and suppressed online. The control scheme has the stability and disturbance suppression problem of controlling the bicycle of the torque gyro, which showing sufficient robustness [23]. Lot et al. proved in 2018 that actively controlled gyroscopes are capable of stabilising the vehicle in its whole range of operating speed, as well as during braking [24]. The Arab Academy of Science and Technology [25] in 2019 compared the regulation time, overshoot, and steady-state error of three control techniques (PID, LQR, and LQR + I) by means of a simulation model and a real test bench, concluding that LQR + I robustness is superior. Sang-Hyung of Seoul National University of Science and Technology et al. [26] in 2020 proposed a linear quadratic regulation algorithm for active balancing of a scissored-pair CMG to achieve an unmanned bicycle with good resistance to impulsive external perturbations and static constant perturbations. Tian from Nanjing Forestry University et al. [27] studied the straight-line travel and turning control of two-wheel self-balancing (DA TWSB) vehicles with different axles and designed a system of sliding mode controllers (SMC) and adaptive sliding mode controllers (ASMC) for controlling the lateral camber feedback. Compared with SMC, ASMC enables two-wheeled single-rut vehicles to recover upright faster in straight travel and better achieve the desired lateral camber angle when turning, and ASMC ensures the vehicle’s resistance to interference and steering. Wang and Jiang et al. [28,29] used nonlinear control techniques to balance an unmanned bicycle with an extended stability domain. Self-balancing of the vehicle at larger vehicle speeds and operating conditions was achieved.
Among the above three types of motorcycle self-balancing control, the steering control cannot satisfy the self-balancing of the body at static or very low speed conditions, and the larger the body mass, the larger the m inimum speed required for the steering control to stabilize the body, and at the same time, its resistance to transient shocks at low speed is poor, and the moment of shock will cause a significant change in the attitude of the body. The momentum wheel control is fast and can meet the dynamic and static conditions of self-balancing, but due to its limited output moment caused by the size of the structure, so the control cannot provide enough moment to maintain the balance of the body when the motorcycle is moving at a large speed, a large angle, or a large body mass. However, these two control methods are not satisfactory when the motorcycle is subjected to large transient shocks, rapid acceleration, and deceleration, especially when considering the actual operating conditions of the motorcycle (bad roads, sudden accidents, etc.), and it is difficult to ensure the self-balance of the motorcycle.
SGCMG (Single-Gimbaled Control Moment Gyroscopes) is an important space actuator, which generally consists of a rotor and a frame component. The rotor rotates at a constant angular velocity, providing a constant angular momentum. The frame assembly drives the rotor assembly to rotate around the frame axis perpendicular to the direction of the angular momentum vector, changing the direction of the angular momentum vector while outputting the gyroscopic moment. The SGCMG control used in this paper can generate large torque and has good control effect for all kinds of operating conditions of the vehicle.
According to the literature cited in this paper, it is known that the studies using the above three control methods are all validated by bikes or small prototypes. The simulation and test conditions are quite single. At the same time, the validation of the effectiveness of the control methods is quite limited, and the robustness of the controller is not systematically analyzed. In this paper, the effectiveness and robustness of the controller are fully verified based on the simulation experiments of the large mass motorcycle model with multiple working conditions and the verification of some working conditions on the real vehicle.

1.3. Contributions

This paper presents the design of a SGCMG frame angular velocity controller, it is also claimed that the controller can realize the self-balancing of linear and curvilinear motions under static and dynamic conditions of motorcycle and make the body of the motorcycle with good anti-disturbance capability. In this paper, the SGCMG frame angular velocity controller based on the feedback of the body’s angular acceleration is used for the first time to self-balance the linear and curvilinear motions of a large mass motorcycle under static and dynamic conditions, and its excellent robustness is verified by multi-case simulation experiments. Finally, the feasibility of the control algorithm was verified by porting it to a real vehicle equipped with the embedded system for testing. Section II presents the dynamics modeling of the two-wheeled motorcycle, Section III presents the design of the SGCMG frame angular velocity controller, Section IV conducts MATLAB/Simulink simulation experiments and analysis based on the dynamics model, Section V conducts the design of the Kalman filter for the actual body roll angular acceleration and the real-world testing and analysis, and finally, Section VI summarizes the above work and provides an outlook for future work.

2. System Template Background

To fully describe the overall motion of the motorcycle, six degrees of freedom are required, namely three axes of displacement, i.e., x, y, and z positions. And three axes of attitude, i.e., roll angle, pitch angle, and heading angle. This paper focuses on the equilibrium characteristics of the motorcycle, so this paper only focuses on the moment balance equations of the motorcycle in the roll direction [30].
The analytical assumptions made in this section of the modeling process are as follows:
  • The contact between the front and rear wheels and the ground is point contact, and the wheel-ground friction is static (no relative sliding);
  • The entire bicycle is a multi-stiff body structure (no deformation);
  • The bicycle wheels are in constant contact with the ground, and the motion is considered only in the horizontal plane.
We first define the physical parameters of the vehicle used in the derivation process:
  • G is the center of mass of the whole vehicle;
  • α is the precession angle of the frame;
  • ω is the rotational speed of the rotor, where ω 1 = ω 2 ;
  • h is the height of the whole vehicle’s center of mass from the ground;
  • lr is the distance from the center of mass to the rear wheel center;
  • L is the wheelbase of the vehicle, which is the distance from the front wheel center to the rear wheel center;
  • rf, rr are the rolling radii of the front and rear wheels, respectively;
  • λ is the tilt angle of the front fork;
  • δ ˙ is the steering angular velocity of the handlebar;
  • θ is the roll angle of the car body rotating around the X-axis;
  • m is the mass of the whole car;
  • g is the acceleration of gravity;
  • δ R is the steering angle of the motion of the fork, δ R = tan 1 ( cos ( λ ) sin ( δ ) cos ( θ ) cos ( δ ) sin ( θ ) sin ( λ ) sin ( δ ) ) ;
  • R is the radius of rotation of the whole car around the instantaneous center;
  • Rf, Rr are the radii of rotation of the front and rear wheels around the instantaneous center;
  • I o ,   I g are the rotational inertia of the whole car around the center of mass and parallel to the rolling axis, and the rotor’s rotational inertia;
  • Vf, Vr are the linear velocities of the front and rear wheels;
  • ar is the linear acceleration of the rear wheel.
Figure 1 shows the overall structure of a two-wheeled motorcycle equipped with CMG, in which various types of motors are used for the actuators. The body motion coordinate system O-XYZ and the rotor motion coordinate system o-xyz are also established.

2.1. Virtual Inertia Moment

The moment of inertia is not a real moment, but the sum of all other moments, resulting from the rotational effect of the angular acceleration, which is the rotational form of Newton’s second law.
M = ( I o + mh 2 ) θ ¨ e

2.2. Precession Moment of SGCMG

For a single moment gyro [31]:
T 1 = I g α 1 ˙ ω 1 ˙ ,   T 2 = I g α 2 ˙ ω 2 ˙
The component of the precession moment on the X and Z axes (as shown in Figure 2) of the car body:
T 1 X = I g α 1 ˙ ω 1 cos ( α 1 ) ,   T 1 Z = I g α 1 ˙ ω 1 sin ( α 1 )
T 2 X = I g α 2 ˙ ω 2 cos ( α 2 ) ,   T 2 Z = I g α 2 ˙ ω 2 sin ( α 2 )
In the above equation:
α 1 ˙ = α 2 ˙ , ω 1 = ω 2
Therefore:
T 1 X = T 2 X ,   T 1 Z = T 2 Z
So, the gyroscope produces a moment of advance T X around the X-axis (inverse to the Gravity moment) of:
T X = ( I g α 1 ˙ ω 1 cos ( α 1 ) + I g α 2 ˙ ω 2 cos ( α 2 ) ) = 2 T 1 X = 2 T 2 X

2.3. Total Vehicle Weight Moment

The state of the car body when it has a roll angle is shown in the Figure 3. When the angle of the roll deviates from the vertical equilibrium point, the force arm is generated in the lateral direction of the body, and the weight moment M g is generated in the axial direction of the roll:
M g = mghsin ( θ )

2.4. Centrifugal Moment of the Whole Vehicle Rotating around the Transient Center

2.4.1. Rear Wheel Centrifugal Acceleration acr

The top view of the whole vehicle rotating around the transient center is shown in Figure 4, where the rear wheel turning radius Rr around the transient center is:
  R r = L tan ( δ R )
a cr = v r 2 R r = v r 2 tan ( δ R ) L
The centrifugal acceleration of the rear wheels, perpendicular to the roll axis X, forms the centrifugal moment on the roll axis, which directly affects the stability of the body.

2.4.2. Centrifugal Acceleration of the Front Wheel acf

The turning radius Rf of the front wheel around the transient center is:
R f = L sin ( δ R )
The front wheel speed vf is:
  v f = v r cos ( δ R )
The centrifugal acceleration of the front wheel acf is:
a cf = v f 2 R f = v r 2 sin ( δ R ) Lcos ( δ R ) 2
The component of the centrifugal acceleration of the front wheel in the Y-axis acfy is:
a cfY = a cf cos ( δ R ) = v r 2 sin ( δ R ) Lcos ( δ R ) 2 cos ( δ R ) = v r 2 tan ( δ R ) L
Combining Equations (8) and (12), the centrifugal acceleration of the front wheel and the rear wheel around the instantaneous center is equal in the Y-axis, so the centrifugal acceleration along the Y-axis at the center of mass is also equal to this acceleration.
a ccY = a cr = a cfY = v r 2 tan ( δ R ) L
The centrifugal moment MC of the whole vehicle around the transient center is (inverse to the heavy moment):
M c = ma ccY hcos ( θ ) = mhcos ( θ ) v r 2 tan ( δ R ) L = 1 L mv r 2 htan ( δ R ) cos ( θ )

2.5. Rolling Moment from Accelerated Driving

The acceleration generated by the change of the linear velocity of the wheel will cause the acceleration of different parts of the vehicle with different magnitudes and direction, and produce the acceleration component in the Y-axis direction, which will generate the moment around the X-axis and affect the balance of the vehicle. The relevant diagram is shown below, where the point of force is the contact point between the tire and the ground, and the symbol convention is shown below.
Figure 5 shows the state of the motorcycle motion during acceleration.
The direction of the force arm points from the fulcrum to the point of force, the direction of the force arm is the fulcrum pointing to the point of force, that is, the center of mass points to the tire landing place, so the moment term in the combined moment equation in the latter part of the text needs to add a negative sign.

2.5.1. Front Wheel Line Acceleration a f

a fX = a r = a f cos ( δ R )
a f = a r cos ( δ R )
The Y-Directional component a fy of the linear acceleration of the front wheel is:
a fY = a f sin ( δ R ) = sin ( δ R ) cos ( δ R ) a r = tan ( δ R ) a r

2.5.2. The Y-Directional Component of the Acceleration at Point O

a OY = l r L a fy = l r L tan ( δ R ) a r

2.5.3. The x-Axis Moment Generated by the Linear Acceleration of the Wheel M acc

M acc = ma OY hcos ( θ ) = l r L ma r htan ( δ R ) cos ( θ )

2.6. Rolling Moment from Angular Velocity of Fork Steering

The angular velocity of the front fork steering axis when turning will change the direction of the front wheel’s linear velocity, resulting in acceleration. This acceleration will also have an effect on the velocity of the whole vehicle and produce an acceleration at the center of mass, thus producing an equivalent moment in the roll direction, which will have an effect on the balance of the whole vehicle. The kinetic and kinematic analysis of this factor is shown in Figure 6. The direction of the force arm is from the pivot point to the point of force. The center of mass is pointing to the tire landing point, so the moment term in the combined moment equation later in the article needs to add a negative sign.

2.6.1. Lateral Acceleration of the Center of Mass due to Fork Steering

The angular velocity of rotation δ ˙ of the front wheel velocity v f caused by the angular velocity δ ˙ Z of the fork steering is:
δ ˙ Z = δ ˙ cos ( λ )
δ ˙ Z = δ ˙ Z cos ( θ ) = δ ˙ cos ( λ ) cos ( θ )
The acceleration a δ ˙ f at the front wheel junction is:
a δ ˙ f = δ ˙ Z × v f = δ ˙ v f cos ( λ ) cos ( θ )
The lateral component a δ ˙ fY of the acceleration at the front wheel junction is:
a δ ˙ fY = a δ ˙ f cos ( δ R ) = δ ˙ v f cos ( λ ) cos ( θ ) cos ( δ R )
The transverse acceleration component a δ ˙ OY of the center of mass at the projection of the wheel ground line is:
a δ ˙ OY = 1 r L a δ fY = 1 r L δ ˙ v f cos ( λ ) cos ( θ ) cos ( δ R )

2.6.2. Rolling Moment due to Angular Velocity of Fork Steering

M δ ˙ V f = ma δ ˙ OY hcos ( θ ) = 1 r L m δ ˙ V f hcos ( λ ) cos ( θ ) 2 cos ( δ R )
The kinetic equation of the unmanned two-wheeled motorcycle equipped with SGCMG in the roll direction is obtained by the above derivation process:
( I o + mh 2 ) θ ¨ e = mghsin ( θ ) ( I g α 1 ˙ ω 1 cos ( α 1 ) + I g α 2 ˙ ω 2 cos ( α 2 ) )
1 L mv r 2 htan ( δ R ) cos ( θ ) l r L ma r htan ( δ R ) cos ( θ )
l r L m δ ˙ v f hcos ( λ ) cos ( θ ) 2 cos ( δ R )

3. Design of SGCMG Frame Angular Velocity Control

In this section, we present the design of SGCMG frame angular velocity control. The two-wheel motorcycle is a complex nonlinear system with static instability, and the relationship between the frame angular velocity α ˙ and the roll angular velocity θ ˙ is mainly considered after the introduction of the SGCMG model, and the roll angle θ , the steering angle δ and the front and rear wheel linear velocities v f and v r are coupled as shown in Equation (26). In order to design the SGCMG frame angular speed controller, the nonlinear model of the two-wheeled motorcycle equipped with SGCMG needs to be simplified, and for this purpose we make the following assumptions:
  • The vehicle is in a stationary non-steering state.
Based on the above assumptions, Equation (26) is linearized around θ = 0 ,   δ = 0 ,   α = 0 :
( I o + mh 2 ) θ ¨ = mgh θ     2 I g α ˙ ω
Considering the motorcycle as a controlled system, the transfer function G(s) of the motorcycle is:
G s = θ ˙ ( s ) α ˙ ( s ) = 2 I g ω s ( I o + mh 2 ) s 2   mgh
From Equation (28), we can see that only one of the two poles of the system is in the left half-plane, and the system is unstable. The condition for the equilibrium of the two-wheeled motorcycle is [ θ ¨ = 0 ,   θ ˙ = 0 ] or [ θ ˙ = 0 ,   θ = 0 ]. However, it should be noted that when the control uses [ θ ˙ , θ ] as the feedback, the car body will be balanced by sacrificing the frame angle when it is subjected to external disturbance without adding the integration link, and the singularity phenomenon exists in SGCMG, this resulting in the car body can only withstanding a rather limited continuous disturbance, and at the same time, [ θ ˙ , θ ] has a lag compared to [ θ ¨ ] , so the real-time control effect will also be greatly affected. Therefore, this paper chooses to design [ θ ¨ , θ ˙ ] as a PD controller with feedback, which will generate heavy moments to offset other moments by changing the car body’s roll angle in real time.
In the closed-loop system shown in Figure 7, the input is the desired roll angular velocity θ ˙ r and the output is the actual car body roll angular velocity θ ˙ , the transfer function G l ( s ) of this closed-loop system is:
G l s = θ ˙ ( s ) R s = 2 I g ω K p ( I o + mh 2 + 2 I g ω K d ) s 2 + 2 I g ω K p s     mgh
For the above closed-loop system to be stable, both poles of the transfer function G l ( s ) need to be in the left half-plane at the same time, s 1   <   0 , s 2   <   0 :
s = 2 I g ω K p   ±   ( 2 I g ω ) 2 + 4 ( I o + mh 2 + 2 I g ω K d ) ( mgh ) 2 ( I o + mh 2 + 2 I g ω K d ) < 0
From Equation (5), it can be seen that SGCMG generates the maximum precession moment at α = 0 , 0 at α = 90 ° (singularity of SGCMG). Therefore, it is necessary to introduce a frame return to zero (frame singular avoidance) controller in the PD controller, the feedback loop equation of which is shown in Equation (31), so that the frame angle can be kept as close to 0° as possible at any time to maximize the effectiveness of the SGCMG and thus improve the impact resistance and stability of the vehicle body. The structure of the closed-loop system using the SGCMG frame angular velocity controller obtained from the above analysis is shown in Figure 8.
α zero = K FP   ·   α + K FD   · α ˙
α ˙ in = K P ( θ ˙ θ ˙ r α zero ) + K d   ·   θ ¨

4. Simulation of Controller

This section shows that the SGCMG frame angular velocity controller can stabilize the motorcycle and has good robustness in the simulation. The parameters of the motorcycle prototype were obtained heuristically by measuring and estimating, as shown in Table 1. According to Equation (30), it is known that K p   >   34 ,   K d   >   0.7 .
Simulation experiments were conducted using MATLAB/Simulink on a Windows platform equipped with an Intel i7-10700 processor, where the simulation environment of Simulink is shown in Figure 9, and the above simulation uses the ode4 solver with a step size of 0.01. The noise in the actual system is not considered in this section, but the rotor speed and frame angular velocity are limited to α ˙ max = 2 pi rad/s, ω = 314.1593 rad/s in consideration of the actual efficiency of SGCMG and the following effect of the motor. In addition, considering the delay in the actual system and the command following speed of the motor, we try to restore the actual system in this section by introducing the time delay T1 = 0.015 s and the transfer function G Motor ( s ) = 20,000 / ( s 2 + 170 s + 20,000 ) of the actual frame motor are introduced in the output frame angular velocity link shown in Figure 7 to improve the realism of the simulation.
The actual frame motor system consists of a DC servo motor, driver, and reducer. Among them, the motor is controlled by a matching drive with its own internal PID algorithm for motor speed control. The specific parameters of the motor system are given in Table 2, Table 3 and Table 4.
As can be seen from Figure 10, the output curve of the transfer function with the introduction of the time delay is a good fit to the output curve of the actual motor.
The control parameters are shown in Table 5. It is important to note that the robustness [32] of the control algorithm has a great impact on the control effect, so the robustness of the SGCMG frame angular velocity controller to changes in the parameters of the vehicle model and changes in the motion state of the vehicle needs to be analyzed next.

4.1. Robustness Analysis of Model Parameter Changes

According to Equation (26), the self-balancing effect of the two-wheeled motorcycle body is related to parameters such as the wheelbase, tire size, center of mass height, and body mass. However, not all parameters will significantly affect the control effect. Therefore, the weight analysis of the parameters affecting the control effect needs to be carried out. The specific analysis process is shown in Figure 11.
Since the body model in this paper is based on the rigid body model of an unmanned motorcycle and the overall structure of the motorcycle does not undergo significant deformation during actual operation, small changes in parameters such as the body size and the height of the center of mass have little effect on the control effect of the controller. However, when the motorcycle is carrying people or goods, the mass of the motorcycle will change significantly. From Equation (26), it can be seen that the overall vehicle mass can significantly affect the overall vehicle stability. Therefore, it is necessary to carry out the robustness analysis of the controller for the variation of the vehicle mass.
The minimum load mass of a normal motorcycle is 150 kg, so the robustness of the controller for the variation of the whole vehicle mass is analyzed in the range of 256–406 kg.
The fluctuations of the state [ α ,   θ ] with time for the case of the vehicle body at rest without steering angle and with an initial roll angle “θ” and changing the vehicle mass m are given in the Figure 12. From the above figure, it can be seen that changing the vehicle mass without changing the control parameters has a small effect on the control effect of the controller, where m = 406 kg (150 kg body load) is too large and the limited precession moment output by SGCMG weakens the control effect of the controller, resulting in a more violent vehicle shaking. At the same time, the limited feeding torque will make the maximum swing angle of the vehicle decrease with the increase of the vehicle mass.
The fluctuations of the state [ α ,   θ ] with time for a vehicle speed of 5 m/s, having an initial steering angle δ and changing the whole vehicle mass m are given in Figure 13. In summary, the SGCMG frame angular velocity controller designed in this paper has good robustness to the whole vehicle mass change.

4.2. Robustness Analysis of Model Motion State Changes

The states [ θ ¨ , θ ˙ , θ, α] and the fluctuations of the system output α ˙ with time are given in Figure 14 for the case of a stationary vehicle with no steering angle and an initial traverse angle θ 0 . From Figure 14, the initial states are [127.7°/s2, 2.6°/s, 11°, 0°] and the target roll angular velocity θ ˙ r = 0°/s. The simulation results show that the state converges quickly to [0°/s2, 0°/s, 0°, 0°] in 1.9 s.
The states [ θ ,   α ] and the fluctuations of the applied external force perpendicular to the OXZ plane at the center of mass with time for the case of the car body at rest without steering and without the initial roll angle are given in Figure 15. From Figure 15, it can be seen that with the change of applied external force, the car body roll angle converges to a new equilibrium point under the control of the SGCMG frame angular velocity controller, and the roll angle that keeps the car body stable reaches −80° when the applied external force is 2400 N, which shows that the SGCMG frame angular velocity controller has a good ability to withstand the continuous disturbance. However, it should be noted that the external force application process in Figure 14 is relatively slow because the moment generated by SGCMG is limited by the frame angular velocity and rotor speed, so the car body cannot directly withstand a large, continuous external disturbance. The maximum sustained external force that can be directly applied to the car body under the condition of α ˙ max = 2 pi rad/s, ω = 314.1593 rad/s is 475 N.
The fluctuation of the instantaneous impact applied at the center of mass perpendicular to the OXZ plane with time is given in Figure 16 for the state [ θ ,   α ] of the vehicle body at rest without steering and without an initial roll angle. Considering that the collision time in the actual working condition should be much less than 0.04 s, the instantaneous impact at the center of mass of the actual car body should be much larger than 2850 N, which shows that the angular velocity controller of SGCMG frame has good resistance to transient the instantaneous shocks.
The states [ θ ,   δ ,   v r ,   α ] and the current fluctuations of various moments generated by the vehicle body with time are shown in Figure 17 and Figure 18, respectively, under dynamic driving conditions. It can be found that the angular velocity of the SGCMG frame can control the car body to complete the curve motion of 40° steering at low speed, the S steering motion with 6° steering amplitude and 15 rad/s frequency during acceleration, and the extreme bending motion of 0.6° steering at 40 m/s with an 88° roll angle. It can be seen that the controller has good dynamic adjustment ability for the vehicle self-balance.
From Figure 19 and Table 6, it can be seen that the steering controller designed in real vehicle test has extremely poor robustness for wheel speed variation, and a smaller wheel speed variation requires a significant change in the control parameters to ensure the control effect of the controller. In contrast, it can be seen from Figure 17 that the SGCMG frame angular velocity controller designed in this paper can control the vehicle at a stable speed of 0–40 m/s without changing the control parameters, which fully proves that the controller in this paper has good robustness and stability for wheel speed variation.
The above simulation results show that the SGCMG frame angular velocity controller is similar to the control of the instantaneous mass distribution of the “human-vehicle” system when a person rides a bicycle. For example, a racer in a small corner press at high speed mainly uses his body hanging to the side of the car body to make the system weight moment greater than the centrifugal moment to achieve the required roll angle for cornering. The human uses his own gravity to make the “human-vehicle” system move to the target balance state. The SGCMG frame angular velocity controller proposed in this paper replaces the weight moment applied to the vehicle body by generating the precession moment to control the movement of the vehicle body to the required roll angle for balance, which is in accordance with the motorcycle dynamics. The above simulation results also fully demonstrate the good robustness of the SGCMG frame angular velocity controller under various operating conditions for wheel speed variation, steering angle variation, acceleration variation, and external disturbance. However, it should be noted that the control effect of the controller depends on the performance of the SGCMG. As the precession moment generated by the SGCMG increases (frame angular velocity increases, rotor speed increases), the attitude change response, anti-interference ability, dynamic adjustment ability, and load capacity of the vehicle will be substantially improved.

5. Experiments on Prototype

In order to verify the effectiveness of the SGCMG frame angular velocity controller, an experimental prototype, as shown in Figure 20a, was constructed for static tests (The complete physical picture of the prototype cannot be uploaded due to the confidentiality of the project). The prototype controller is an embedded system with a STM32H743 core board, as shown in Figure 20b, and all of its code was co-written by the authors of this paper using third-party software, Keil V5, instead of using model-based software to generate the code. The information of above core board and Keil V5 are given in the Table 7 and Table 8. Furthermore, the parameters of the prototype are different from the simulated parameters in several places, and the relevant parameters are given in Table 9.
The quality of the feedback signal collected by the IMU needs to be evaluated before conducting the controller validation test. Since [ θ ˙ , θ , α , α ˙ ] can all be captured directly by the IMU and frame motor driver, but the θ ¨ signal cannot be output directly through the IMU, so the θ ˙ output from the IMU in the case of stationary running SGCMG is evaluated by unfolding the data after three-point differencing, and the θ ¨ diff is obtained, as shown in Figure 21.
From Figure 21, it can be seen that the θ ¨ diff signal is of very poor quality in the case of stationary running SGCMG, and the amplitude and frequency of the signal are too high for the controller to use it as a feedback signal. Therefore, this chapter considers the filtering of the θ ¨ signal. Since the controller designed in this paper needs to control the θ ¨ of the car body, the real-time requirement of the θ ¨ signal is strict, so the Kalman filtering method is used to process the θ ¨ diff signal in this section.
Kalman filtering is an algorithm that uses the state equation of a linear system to optimally estimate the system state from the input and output observations of the system. Since the observed data includes the influence of noise and disturbances in the system, the optimal estimation can also be regarded as a filtering process.
The Kalman filter contains five equations: a set of time update equations (two for prediction) and a set of measurement update equations (three for correction). The time update equations are executed at each moment k of the filter operation. In the prediction phase, the Kalman filter uses the state estimate of the previous moment k − 1 to make a state estimate of the current moment k. In the update phase, the filter uses the state observations for moment k to optimize the predicted values obtained in the prediction phase for moment k to obtain a more accurate new estimate for moment k.
Prediction (set of two time-update equations):
x ^ k = A x ^ k 1 + Bu k
P k = AP k 1 A T + Q
where x ^ k is the state pre-estimate at moment k, A,B are the state transfer matrices, x ^ k 1 is the state estimate at moment k − 1, u k is the system input at moment k (in the case of the text, there is no such item), P k is the pre-estimate error covariance (a measure of the error between the state estimate and the true value) at moment k, P k 1 is the estimate error covariance at moment k − 1, and Q is the covariance matrix of the predicted values.
Update (set of three measurement update equations):
K k = P k H T / ( HP k H T + R )
x ^ k = x ^ k + K k ( z k H x ^ k )
P k = ( I K k H )   P k
where K k is the Kalman gain at moment k, x ^ k is the state estimate at moment k, P k is the estimation error covariance at moment k, z k is the measurement at moment k, H is the state transfer matrix, I is the unit matrix, and R is the covariance matrix of the measurement.
Combining the above kinetic model as a prediction and θ ¨ diff as an observation, given the above equation: A = H = I = 1, Q = 0.1, R = 10, P 0 = 1 ,   P 0 = 0.005 , x ^ k 1 = θ ¨ e , z k =   θ ¨ diff , the following equation is obtained:
x ^ k = θ ¨ e
P k = P k 1 + Q
K k = P k / ( P k + R )
x ^ k = x ^ k + K k ( θ ¨ diff x ^ k )
P k = ( 1 K k )   P k
After using the above Kalman filter, the θ ¨ KF is shown in Figure 22.
As can be seen from the above figure, the quality of the θ ¨ KF signal after Kalman filtering is greatly optimized compared to θ ¨ diff , but there is a static difference in θ ¨ KF , which is caused by the angular error in the Gravity moment part of the a priori estimate in Kalman filtering, which is determined by the current roll angle of the vehicle and the balance angle of the vehicle itself. In the practical application of the controller, this static difference is offset by the frame angle.
Before starting the control verification, it should be noted that the two frames of the SGCMG may not be synchronized during the actual motion, so it is necessary to synchronize the two frame angles, i.e., to introduce the following frame synchronization loop:
α ˙ syn = K syn ( α 1 α 2 )
α ˙ ctrl =   α ˙ syn + α ˙ in
Before the verification test, it should be noted that the prototype is equipped with a protective wheel structure to ensure the safety of the vehicle, so the initial roll angle θ 0     ± 13 ° (the roll angle is positive to the left from the rear-view direction) and the initial balance roll angle θ B   1 ° under the stationary state. In order to better prove the performance of the above controllers, this chapter introduces the controller based on θ ˙ , θ feedback as a contrast control experiment to improve the credibility of this paper. The self-balancing process with the two controllers when the prototype is stationary, without steering angle and load, is shown in Figure 23.
From the above figure, it can be seen that the θ of the car body changes more frequently and the θ ¨ amplitude of the car body is larger after switching the controller, which is due to the adoption of the roll angular acceleration feedback to improve the real time performance of the SGCMG frame angular velocity controller, resulting in a more dramatic control effect. Meanwhile, it can be found from the figure that the balance angle of the car body before and after the controller switching does not change, both are about −1°, and the SGCMG frame angular velocity controller does not define any parameters about the target roll angle, which is consistent with the simulation results, fully proving that the controller can control the car body to find the current balance angle in real time in practical applications. In addition, the above figure shows that there is no static difference between θ ¨ KF when the car body is moving around the equilibrium angle, which verifies the explanation of θ ¨ KF static difference in the above paper.
The details of the prototype load test are shown in Figure 20a, and it should be noted that the effect of the external force on the balance of the vehicle is directly related to the length of the force arm. The force arm of this test is 0.6 m, which is a more extreme test condition. The specific procedure of the test is as follows: after using the above two controllers to make the car body self-balance, place a 10 kg weight at the left side of the protective wheel in the rear view of the car, then observe the balancing state of the car body, remove the weights quickly after the car body is stable, and observe the stable state of the car body at the same time, and finally, 20 kg of weights are placed at the protective wheel quickly and observe the self-balancing process of the car body. The data obtained from the test are shown in Figure 24 and Figure 25.
The 10 kg weights are placed at the 70 s, the weights are removed at the 106.5 s, and the 20 kg weights are placed at the 129 s. From the above figure, it can be seen that when the 10 kg weight is placed for the first time, the equilibrium angle of the car is about −3.2°, the convergence time is about 10.6 s, and the overshoot is −3°. The load mass corresponding to the change of gravity at this time is about 12 kg, which is consistent with the actual working condition. The feedback signal θ ˙ , θ required by the controller at the moment of load application has a hysteresis, at this time, the controller has no output, the car body will rotate a certain angle under the action of external force until the precession moment generated by SGCMG is greater than the sum of the current external moment and the weight moment, then the car body will reverse the rotation to find the current balance angle, during this period, the frame will keep turning in the positive direction until the car body passes the current balance angle ( θ = 3 . 63 ° , α ˙ = 4 . 8 ° / s ,   α = 51 . 94 ° at 73.36 s), when the controller outputs the reverse frame angular velocity to control the car body to converge to the equilibrium angle gradually. However, due to the small placement weight, the smaller the angle and angular velocity of the car body rotating in the direction of the external force, the smaller the applied continuous external force, the smaller the frame angle required to find the current car body target equilibrium angle, and the faster the response of the controller to control the car body to reach steady state. In addition, it should be noted that the frame of the controller based on θ ˙ , θ feedback is theoretically unable to return to zero when the body is subjected to a continuous external force, and the controller needs to offset the current angle error by the output of the frame return loop. In the above figure, the frame can return to zero due to the addition of an integral link in the zero-return loop, at the expense of some dynamic performance.
The 20 kg weight was placed at 129 s, the car body was out of balance directly after two rotations, and the frame was rotated to the limiting angle, as can be seen from the graph. This is due to the hysteresis of the controller when the applied load is large, which leads to the sacrifice of too much frame angle to offset the sum of the external moment and weight moment of the car body ( θ = 1 . 44 ° ,   α = 78 ° at 130.1 s), and then there is not enough frame angle and precession moment to find the current balance angle of the car body. In summary, it is well proved that the controller based on θ ˙ , θ feedback has no good ability to resist continuous disturbance and stable control of dynamic driving.
The 10 kg weights were placed at 100 s, the 10 kg weights were removed at 135 s, the 20 kg weights were placed at 159 s, and the 20 kg weights were removed at 211 s. From Figure 19, it can be seen that the equilibrium angles of the car body when placing 10 kg and 20 kg weights are about −3.2° and −4.7°, respectively, the convergence times are about 6 s and 11 s, respectively, and the overshoot amounts are −1.5° and −3.6°, respectively, and the Gravity change of the angle corresponds to the load masses of 12 kg and 20.7 kg, respectively, which are consistent with the actual working conditions. The car body generates a large enough precession moment to control the car body to move in the direction opposite to the external force at the moment the load is placed, and the frame only finds the current car body balance angle at 20° and 40°, which is consistent with the simulation results, and fully proves that the controller has a substantial optimization of real time, response time and resistance to continuous disturbance compared with the controller based on θ ˙ , θ feedback. However, it should be noted that the frame does not return to zero when the vehicle is subjected to continuous disturbance. This is due to the static difference in the θ ¨ KF as mentioned above using the dynamics model as the a priori value without adding the integration link, and this static difference affects the dynamic performance of the SGCMG frame angular velocity controller to some extent. In summary, the effectiveness and advantages of the SGCMG controller designed in this paper have been proved in practical applications.

6. Conclusions

Based on the dynamics modeling and analysis of the two-wheeled motorcycle equipped with SGCMG, this paper proposes the design of a SGCMG frame angular speed control method based on θ ¨ , θ ˙ feedback. The simulation results show that the motorcycle can achieve self-balancing with load under static conditions and stable motion and steering under dynamic conditions. At the same time, the controller has good robustness and stability. Its real-time control effect on the embedded system also demonstrates the effectiveness of the controller when the vehicle is under static with load conditions. In addition, we also compared two controllers based on different feedback data and analyzed their different characteristics, which proved that the controller has good real-time, response speed, and anti-interference ability. At the same time, the Kalman filtering process of θ ¨ is carried out in this paper, which greatly optimizes the quality of θ ¨ signal and makes up for the problems of existing sensors.
In the future, we intend to further optimize the θ ¨ signal quality by replacing the sensor, introducing a time series model in the Kalman filter, and using other methods such as adaptive Kalman filtering. And also consider significantly improving the efficiency of the SGCMG (increasing the rotor speed and the maximum angular velocity of the frame) to ensure that a large enough precession moment is generated to control the stability of the body. Finally, based on the controller designed in this paper, we intend to introduce fuzzy control, adaptive parameter adjustment, and other methods to optimize the control effect, and carry out various dynamic tests to fully verify the effectiveness of the controller, in order to prepare for the real implementation of motorcycle autopilot.

Author Contributions

Writing—review and editing, B.C.; Visualization, validation, conceptualization, and writing—original draft preparation, X.F.; Resources, B.C., Y.D. and Z.H.; Investigation, Y.F.; Methodology, Y.D.; Supervision, Z.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Youth project of science and technology research program of the Chongqing Education Commission of China, grant number KJQN202101143.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Boyer, F.; Porez, M.; Mauny, J. Reduced dynamics of the nonholonomic Whipple bicycle. J. Nonlinear Sci. 2018, 28, 943–983. [Google Scholar] [CrossRef]
  2. Xiong, J.; Wang, N.; Liu, C. Stability analysis for the Whipple bicycle dynamics. Multibody Syst. Dyn. 2020, 48, 311–335. [Google Scholar] [CrossRef]
  3. Xiong, J.; Wang, N.; Liu, C. Bicycle dynamics and its circular solution on a revolution surface. Acta Mech. Sin. 2020, 36, 220–233. [Google Scholar] [CrossRef]
  4. Getz, N.H.; Marsden, J.E. Control for an autonomous bicycle. In Proceedings of the 1995 IEEE International Conference on Robotics and Automation, Nagoya, Japan, 21–27 May 1995. [Google Scholar]
  5. Astrom, K.J.; Klein, R.E.; Lennartsson, A. Bicycle dynamics and control: Adapted bicycles for education and research. Control Syst. Mag. 2005, 25, 26–47. [Google Scholar]
  6. Tanaka, Y.; Murakami, T. Self-sustaining bicycle robot with steering controller. In Proceedings of the 8th IEEE International Workshop on Advanced Motion Control, AMC’04, Kawasaki, Japan, 25–28 March 2004. [Google Scholar]
  7. Tanaka, Y.; Murakam, T. A study on straight-line tracking and posture control in electric bicycle. IEEE Trans. Ind. Electron. 2009, 56, 159–168. [Google Scholar] [CrossRef]
  8. He, J.; Zhao, M.; Stasinopoulos, S. Constant-Velocity Steering Control Design for Unmanned Bicycles. In Proceedings of the IEEE Conference on Robotics and Biomimetics, Zhuhai, China, 6–9 December 2015. [Google Scholar]
  9. Yang, C. Full-Speed Range Self-Balancing Electric Motorcycles without the Handlebar. IEEE Trans. Ind. Electron. 2016, 63, 1911–1922. [Google Scholar] [CrossRef]
  10. Huang, C.F.; Dong, Y.C. Balancing control of a robot bicycle with uncertain center of gravity. In Proceedings of the 2017 IEEE International Conference on Robotics and Automation (ICRA), Singapore, 29 May–1 June 2017. [Google Scholar]
  11. Fawaz, Z. Design and Control of a Self-Balancing Bicycle Using an Electric Linear Actuator. Master’s Thesis, The University of Michigan-Dearborn, Dearborn, MI, USA, 2019. [Google Scholar]
  12. Baquero-Suárez, M.; Cortés-Romero, J.; Arcos-Legarda, J. A robust two-stage active disturbance rejection control for the stabilization of a riderless bicycle. Multibody Syst. Dyn. 2019, 45, 7–35. [Google Scholar] [CrossRef]
  13. Kumar, S.S.; Kumar, A. Modeliranje smanjenog reda i kontrola balansiranja biciklističkog robota. FME Trans. 2021, 49, 919–934. [Google Scholar] [CrossRef]
  14. Singh, R.; Bhushan, B. Improved ant colony optimization for achieving self-balancing and position control for balancer systems. J. Ambient. Intell. Humaniz. Comput. 2021, 12, 8339–8356. [Google Scholar] [CrossRef]
  15. Wonia, A.; Wonia, B. Control of a Nonlinear and Linearized Model of Self-Balancing Electric Motorcycle. Advanced, Contemporary Control, 2nd ed.; Bartoszewicz, A., Kacprzyk, J., Eds.; Springer International Publishing: Berlin, Germany, 2020; Volume 1196, pp. 370–371. [Google Scholar]
  16. Ngoc, K.V.; Nguyen, H.Q. Balancing Control of Two-Wheel Bicycle Problems. Math. Probl. Eng. 2020, 2020, 6724382. [Google Scholar]
  17. Ngoc, K.V.; Nguyen, H.Q.; Ngo, K.T. Application of model reduction for robust control of self-balancing two-wheeled bicycle. Telecommun. Comput. Electron. Control 2021, 19, 252–264. [Google Scholar]
  18. Jacob, R.O.; Pushpa, M.K.; Alyaan, S.M. Self-balancing Bicycle with Location Tracking Based on the Principle of Inverted Pendulums. In Computational Intelligence in Pattern Recognition; Springer: Singapore, 2022; pp. 303–316. [Google Scholar]
  19. Beznos, A.; Formal’sky, A.; Gurfinkel, E.; Jicharev, D.; Lensky, A.; Savitsky, K.; Tchesalin, L. Control of autonomous motion of two-wheel bicycle with gyroscopic stabilization. In Proceedings of the 1998 IEEE International Conference on Robotics and Automation (Cat. No.98CH36146), Leuven, Belgium, 20–20 May 1998. [Google Scholar]
  20. Thanh, B.T.; Parnichkun, M. Balancing control of bicyrobo by particle swarm optimization-based structure-specified mixed h2/h control. Int. J. Adv. Robot. Syst. 2008, 5, 395–402. [Google Scholar] [CrossRef]
  21. Yetkin, H.; Kalouche, S.; Vernier, M.; Colvin, G.; Redmill, K.; Ozguner, U. Gyroscopic stabilization of an unmanned bicycle. In Proceedings of the 2014 American Control Conference, Portland, OR, USA, 4–6 June 2014. [Google Scholar]
  22. Ouchi, S.; Kodani, N.; Hirata, H.; Takahashi, K.; Chida, Y. Self-sustaining driving control of two-wheeled vehicle by using gyro-actuator. Trans. Jpn. Soc. Mech. Eng. 2015, 81, 15–00207. [Google Scholar]
  23. Tamayo-Leon, S.; Pulido-Guerrero, S.; Coral-Enriquez, H. Self-Stabilization of a riderless bicycle with a control moment gyroscope via model-based active disturbance rejection control. In Proceedings of the 2017 IEEE 3rd Colombian Conference on Automatic Control (CCAC), Cartagena, Colombia, 18–20 October 2017. [Google Scholar]
  24. Lot, R.; Fleming, J. Gyroscopic stabilisers for powered two-wheeled vehicles. Veh. Syst. Dyn. 2018, 57, 1381–1406. [Google Scholar] [CrossRef]
  25. El-Aal, A.A.; Roustom, M.; Hegaze, M.M.; Ibrahim, M. Modeling and control of unstable mechanical systems using control moment gyro (CMG). In Proceedings of the IOP Conference Series Materials Science and Engineering, Cairo, Egypt, 9–11 April 2019. [Google Scholar]
  26. Park, S.H.; Yi, S.Y. Active Balancing Control for Unmanned Bicycle Using Scissored-pair Control Moment Gyroscope. Int. J. Control Autom. Syst. 2020, 18, 217–224. [Google Scholar] [CrossRef]
  27. Tian, J.; Ding, J.; Tai, Y.P. Control of Different-Axis Two-Wheeled Self-Balancing Vehicles. IEEE Access 2020, 8, 158839–158851. [Google Scholar] [CrossRef]
  28. Wang, S.; Cui, L.L.; Lai, J. Gain Scheduled Controller Design for Balancing an Autonomous Bicycle. In Proceedings of the 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Las Vegas, NV, USA, 24–30 October 2020. [Google Scholar]
  29. Cui, L.L.; Wang, S.; Lai, J. Nonlinear Balance Control of an Unmanned Bicycle: Design and Experiments. In Proceedings of the 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Las Vegas, NV, USA, 24–30 October 2020. [Google Scholar]
  30. Del Rosso, V.; Andreucci, A.; Boria, S.; Corradini, M.L.; Giambò, R.; Ranalli, A. Modelling and Control of a Self-Balancing Electric Motorcycle: Preliminary Results. In Proceedings of the 2018 26th Mediterranean Conference on Control and Automation (MED), Zadar, Croatia, 19–22 June 2018; pp. 867–872. [Google Scholar]
  31. Bunryo, Y.; Satoh, S.; Shoji, Y. Feedback attitude control of spacecraft using two single gimbal control moment gyros. Adv. Space Res. 2021, 68, 2713–2726. [Google Scholar] [CrossRef]
  32. Dini, P.; Sergio, S. Design of adaptive controller exploiting learning concepts applied to a BLDC-based drive system. Energies 2020, 13, 2512. [Google Scholar] [CrossRef]
Figure 1. Structure of a two-wheeled motorcycle equipped with SGCMG.
Figure 1. Structure of a two-wheeled motorcycle equipped with SGCMG.
Machines 11 00371 g001
Figure 2. Structure of the two-wheeled motorcycle equipped with SGCMG.
Figure 2. Structure of the two-wheeled motorcycle equipped with SGCMG.
Machines 11 00371 g002
Figure 3. Side view and rear view of the two-wheeled motorcycle equipped with SGCMG.
Figure 3. Side view and rear view of the two-wheeled motorcycle equipped with SGCMG.
Machines 11 00371 g003
Figure 4. Top view of the two-wheeled motorcycle equipped with SGCMG.
Figure 4. Top view of the two-wheeled motorcycle equipped with SGCMG.
Machines 11 00371 g004
Figure 5. Schematic diagram of hub line acceleration (left) and the resulting lateral acceleration (right).
Figure 5. Schematic diagram of hub line acceleration (left) and the resulting lateral acceleration (right).
Machines 11 00371 g005
Figure 6. Three views of the motorcycle.
Figure 6. Three views of the motorcycle.
Machines 11 00371 g006
Figure 7. Closed-loop system using PD controller.
Figure 7. Closed-loop system using PD controller.
Machines 11 00371 g007
Figure 8. Closed-loop system using the SGCMG frame angular velocity controller.
Figure 8. Closed-loop system using the SGCMG frame angular velocity controller.
Machines 11 00371 g008
Figure 9. Simulink Environment.
Figure 9. Simulink Environment.
Machines 11 00371 g009
Figure 10. Plot of transfer function versus actual motor output for the same target angular velocity.
Figure 10. Plot of transfer function versus actual motor output for the same target angular velocity.
Machines 11 00371 g010
Figure 11. Effect of model parameter changes on control effects: (a) Effect of a change in center-of-a mass height; (b) Effect of a wheelbase change; (c) Effect of change in the front wheel radius; (d) Effect of a change in the rear wheel radius.
Figure 11. Effect of model parameter changes on control effects: (a) Effect of a change in center-of-a mass height; (b) Effect of a wheelbase change; (c) Effect of change in the front wheel radius; (d) Effect of a change in the rear wheel radius.
Machines 11 00371 g011
Figure 12. Simulation results: Robustness analysis of the vehicle body at rest.
Figure 12. Simulation results: Robustness analysis of the vehicle body at rest.
Machines 11 00371 g012
Figure 13. Simulation results: Robustness analysis of vehicle dynamics.
Figure 13. Simulation results: Robustness analysis of vehicle dynamics.
Machines 11 00371 g013
Figure 14. Simulation results: The initial conditions are [127.7°/s2, 2.6°/s, 11°, 0°].
Figure 14. Simulation results: The initial conditions are [127.7°/s2, 2.6°/s, 11°, 0°].
Machines 11 00371 g014
Figure 15. Simulation results: Self-balancing process of the vehicle body under the continuous external disturbance.
Figure 15. Simulation results: Self-balancing process of the vehicle body under the continuous external disturbance.
Machines 11 00371 g015
Figure 16. Simulation results: Self-balancing process of the vehicle body under instantaneous shock disturbance.
Figure 16. Simulation results: Self-balancing process of the vehicle body under instantaneous shock disturbance.
Machines 11 00371 g016
Figure 17. Simulation results: Self-balancing process of the car body under different wheel speeds and different steering angles.
Figure 17. Simulation results: Self-balancing process of the car body under different wheel speeds and different steering angles.
Machines 11 00371 g017
Figure 18. Simulation results: Various types of moments generated during the self-balancing of the dynamically moving vehicle body.
Figure 18. Simulation results: Various types of moments generated during the self-balancing of the dynamically moving vehicle body.
Machines 11 00371 g018
Figure 19. Simulation results: Self-balancing process of vehicle body under different accelerations.
Figure 19. Simulation results: Self-balancing process of vehicle body under different accelerations.
Machines 11 00371 g019
Figure 20. Prototype testing and hardware environment: (a) Prototype load test; and (b) Embedded system used in the prototype.
Figure 20. Prototype testing and hardware environment: (a) Prototype load test; and (b) Embedded system used in the prototype.
Machines 11 00371 g020
Figure 21. Experimental results: Angular acceleration of roll output from IMU of the prototype.
Figure 21. Experimental results: Angular acceleration of roll output from IMU of the prototype.
Machines 11 00371 g021
Figure 22. Experimental results: θ ¨ diff and θ ¨ KF when running SGCMG with the car at rest.
Figure 22. Experimental results: θ ¨ diff and θ ¨ KF when running SGCMG with the car at rest.
Machines 11 00371 g022
Figure 23. Experimental results: Self-balancing process of the prototype with two controllers at a standstill and no steering angle.
Figure 23. Experimental results: Self-balancing process of the prototype with two controllers at a standstill and no steering angle.
Machines 11 00371 g023
Figure 24. Experimental results: Comparison of controller load tests.
Figure 24. Experimental results: Comparison of controller load tests.
Machines 11 00371 g024
Figure 25. Experimental results: Load test of the SGCMG frame angular velocity controller.
Figure 25. Experimental results: Load test of the SGCMG frame angular velocity controller.
Machines 11 00371 g025
Table 1. Parameters of motorcycle and SGCMG.
Table 1. Parameters of motorcycle and SGCMG.
ParametersValueUnit
m256kg
g9.8m/s2
h0.46m
lr0.625m
L1.6m
λ0.5114rad
rr0.29m
rf0.28m
ω314.1593rad/s
Ig0.2kg · m2
IO89.1696kg · m2
Table 2. DC servo motor parameter table.
Table 2. DC servo motor parameter table.
Motor ModelPower
(W)
Rated Voltage
(VDC)
Rated Torque
(N•M)
Rated Rotation
Speed (rpm)
Rated Current
(A)
DMKE 60TM-01330C5-C400481.27300011 ± 10%
Table 3. Parameter table of matching drive.
Table 3. Parameter table of matching drive.
Drive ModelSupply Voltage
(VDC)
Switching Frequency
(kHz)
Rated Current
(A)
Peak Current
(A)
ONKE DCPC-09016-E20–90151648
Table 4. Parameter table of matching reducer.
Table 4. Parameter table of matching reducer.
Reducer TypeSize
(mm)
Reduction
Ratio
NMRV301:50
Table 5. Control parameters of the simulation.
Table 5. Control parameters of the simulation.
ParametersValue
Kp35
Kd6.15
KFP−0.2
KFD−0.265
Table 6. Gain set of steering control parameters.
Table 6. Gain set of steering control parameters.
V(m/s)K1K2
1.54.511
2.03.08.0
3.02.05.0
4.01.753.5
5.01.01.75
Table 7. Information of the STM32H743.
Table 7. Information of the STM32H743.
Core Boar ModelChip ModelMain Frequency
(MHz)
FLASH Capacity
(B)
SRAM Capacity
(B)
STM32H743STM32H743IIT64802048 K1060 K
Table 8. Information of the Keil V5.
Table 8. Information of the Keil V5.
Software NameSupported DevicesCompiler
Language
Software
Tools
Keil V5Cortex-M/Cortex-R4CEditor
ARM7/ARM9C++Compiler
Table 9. Parameters of the prototype.
Table 9. Parameters of the prototype.
ParametersValueUnit
mr320kg
g9.8m/s2
hr0.52m
λr0rad
ωr314.1593rad/s
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Chen, B.; Fei, X.; Fan, Y.; Dan, Y.; Huang, Z. Frame Angular Velocity Control Design of SGCMG for Unmanned Two-Wheeled Motorcycle. Machines 2023, 11, 371. https://doi.org/10.3390/machines11030371

AMA Style

Chen B, Fei X, Fan Y, Dan Y, Huang Z. Frame Angular Velocity Control Design of SGCMG for Unmanned Two-Wheeled Motorcycle. Machines. 2023; 11(3):371. https://doi.org/10.3390/machines11030371

Chicago/Turabian Style

Chen, Bao, Xiang Fei, Yiming Fan, Yuanhong Dan, and Zehao Huang. 2023. "Frame Angular Velocity Control Design of SGCMG for Unmanned Two-Wheeled Motorcycle" Machines 11, no. 3: 371. https://doi.org/10.3390/machines11030371

APA Style

Chen, B., Fei, X., Fan, Y., Dan, Y., & Huang, Z. (2023). Frame Angular Velocity Control Design of SGCMG for Unmanned Two-Wheeled Motorcycle. Machines, 11(3), 371. https://doi.org/10.3390/machines11030371

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop