[BACK]
Computers, Materials & Continua
DOI:10.32604/cmc.2022.028441
images
Article

Design and Implementation of a State-feedback Controller Using LQR Technique

Aamir Shahzad1,*, Shadi Munshi2, Sufyan Azam2 and Muhammad Nasir Khan3

1Mechanical Engineering Department, The University of Lahore, Lahore, Pakistan
2Mechanical Engineering Department, Umm Al-Qura University, Makkah, Saudi Arabia
3Electrical Engineering Department, The University of Lahore, Lahore, Pakistan
*Corresponding Author: Aamir Shahzad. Email: aamir.shahzad1@me.uol.edu.pk
Received: 10 February 2022; Accepted: 01 April 2022

Abstract: The main objective of this research is to design a state-feedback controller for the rotary inverted pendulum module utilizing the linear quadratic regulator (LQR) technique. The controller maintains the pendulum in the inverted (upright) position and is robust enough to reject external disturbance to maintain its stability. The research work involves three major contributions: mathematical modeling, simulation, and real-time implementation. To design a controller, mathematical modeling has been done by employing the Newton-Euler, Lagrange method. The resulting model was nonlinear so linearization was required, which has been done around a working point. For the estimation of the controller parameters, MATLAB LQR function has been utilized. Simulation has been performed for the designed controller and it also has been implemented and tested over the real inverted pendulum. From the results, it is vivid that the designed controller keeps the inverted pendulum in an upright position and rejects the disturbances and falling under gravitational force by adjusting the rotation of the horizontal link.

Keywords: Mathematical modeling; linearization; linear quadratic regulator (LQR); nonlinear system; rotary inverted pendulum

1  Introduction

The rotary inverted pendulum is an important topic of research in control engineering. It is an effective tool to test the performance of different control approaches. It is a multi-variable nonlinear dynamical system that is highly unstable. It has two links, one link revolves around an axis in the horizontal plane so that the other can balance itself in an upright position [15]. The control of the rotary inverted pendulum helps in designing the altitude controller of rockets and satellites due to its nonlinear behavior. The inverted pendulum control is playing a vital role in real-life applications ranging from robotics to aerospace, locomotive to marine systems and from flexible to pointing control systems. Additionally, the study of dynamics and control of inverted pendulum helps in maintaining the equilibrium of tall buildings [612].

Various efforts have been reported in the literature about the design, mathematical modeling and stable control of inverted pendulum by utilizing different control approaches. Model-based control techniques have been used frequently but the fuzzy and non-model-based approaches have been utilized too. Newton’s laws or energy balance approaches have been used to formulate the dynamic model [1315]. The fuzzy cascade control based on Hierarchical Fair Competition-based Genetic Algorithms has been used in [16]. It consists of two fuzzy controllers which have been placed in a cascade manner and their parameters have been optimized using the genetic algorithm. The inner loop controls the position of the rotating arm while the outer loop provides the appropriate input to the inner loop due to a change in the angle of the vertical arm. Simulation has been performed and the results have been validated on the real hardware. Counter based approach has been used to design a swing-up controller while pole placement with an integrator has been used to stabilize the vertical arm in [17]. The study shows a settling time of 4.5 s for the swing-up controller. Similarly, stabilization of the vertical arm has been shown through simulation. The actual implementation over the hardware has not been reported.

Swing up and vertical stabilization have been achieved in [18] through the energy-based method. H2/H controller has been used to reduce oscillations and stabilization of the system. Lesser oscillations have been observed with the proposed controller as compared to the state feedback controller. The only drawback is that the control signal is not optimal and requires a higher value for smaller oscillations. In [19], Kharitonov polynomial has been formed with a PI controller. Routh Hurwitz criteria have been utilized to design a stable controller and stability has been analyzed by using the Nyquist plot. A swing-up controller has been designed in [20]. It is based on energy control and feedback linearization. Simulation has been performed to show the effectiveness of the proposed approach. The value of gain has been associated with energy convergence to zero. The higher gain means the faster convergence. Another control approach has been reported in [21]. It consists of a backstepping controller for swing-up and linear state feedback controllers for stabilization. Quadratic Lyapunov approach and Sylvester’s criterion, have been used to determine a sufficient stability margin around the equilibrium point. A comparison has been done between the proposed approach and the classical scheme and results have been evaluated in terms of percentage to show the effectiveness of the proposed approach [21].

Mathematical modeling and simulation of complex and multivariable systems is an active field of research to find an optimal solution through the design and development of new algorithms. It is a cost-effective process that provides an insight into the robustness and suitability of an algorithm for a particular problem to be solved. It sheds light on the possible outcomes and helps in analysis through variation of system parameters [2237]. Therefore, it was necessary to develop a complete model of the rotary inverted pendulum, its parameters estimation and testing over real hardware to validate the results found in the simulation. To the best of our knowledge, no such design of controller with linearization and analysis has been done so far. This paper describes the two-link inverted pendulum. In the proposed research work, the following are the key developments contributions:

•   To design the controller, complete mathematical modeling has been done using the Newton-Euler, Lagrange approach

•   The non-linear model has been linearized around a working point

•   Feedback gains of linear quadratic regulator (LQR) controller have been evaluated using MATLAB (2018a, MathWorks, MA, USA)

•   The designed controller performance has been tested in a simulation environment as well as it has been implemented over an inverted pendulum. It shows that the controller keeps the pendulum in the upright position and rejects the disturbances

The paper has been organized as follows. Section I is Introduction. In Section II, mathematical modeling has been developed and linearization has been done around the working point. Simulation results have been presented in Section III. Implementation over a real rotary inverted pendulum has been done in Section IV. Section V has the conclusion and future work.

2  System Modeling

A free-body diagram of the pendulum with reference frames is shown in Fig. 1. It is vivid from Fig. 1, that the horizontal link having a length r is rotating at an angle θ and the vertical arm having a length L with mass m swings at an angle α. Reference frames are attached to moving links to calculate the position vector with respect to a fixed frame. Tab. 1 shows the symbols used in the derivation of system mathematical modeling.

images

Figure 1: Free body diagram of the pendulum with reference frames

images

2.1 System Model Development

The potential energy (PE) Epot of the inverted pendulum is given by:

Epot=mgLcosα(1)

where m denotes the mass of the pendulum arm, g is the force of gravity, L is the length of the pendulum’s center of mass and α represents the deflection of the pendulum arm. The kinetic energy (KE) Ekin of the inverted pendulum is given by:

Ekin=mv22+Jeqθ˙22(2)

where v denotes the velocity of mass m, Jeq is the inertia of the pendulum and θ˙ denotes the angular velocity of the horizontal link. In order to evaluate v, a position vector p of mass must be defined as:

p_=[xyz]=[cosθsinθ0sinθcosθ0001]([r00]+[1000cosαsinα0sinαcosα][00L])(3)

p_=[xyz]=[cosθsinθ0sinθcosθ0001][rLsinαLcosα](4)

p_=[xyz]=[rcosθ+Lsinθsinαrsinθ+LcosθsinαLcosα](5)

where r denotes the length of the horizontal link. To evaluate velocity v_, we need to differentiate the position vector p of m as:

v_=p_=[x˙y˙z˙]=[rsinθθ˙+Lcosθsinαθ˙+Lsinθcosαα˙rcosθθ˙+Lsinθsinαθ˙Lcosθcosαα˙Lsinαα˙](6)

v2=x˙2+y˙2+z˙2=(rsinθθ˙+Lcosθsinαθ˙+Lsinθcosαα)˙2+(rcosθθ˙+Lsinθsinαθ˙Lcosθcosαα˙)2+(Lsinαα)˙2 (7)

v2=r2θ˙2+L2sin2αθ˙2+L2cos2αα˙22rLcosαθ˙α˙+L2sin2αα˙2(8)

v2=r2θ˙2+L2sin2αθ˙2+L2α˙22rLcosαθ˙α˙(9)

Substituting Eq. (9) in Eq. (2), we get:

Ekin=12mr2θ˙2+12mL2sin2αθ˙2+12mL2α˙2mrLcosαθ˙α˙+Jeqθ˙22(10)

The Lagrangian LLagr is given by:

LLagr=EkinEpot(11)

LLagr=12mr2θ˙2+12mL2sin2(α)θ˙2+12mL2α˙2mrlcosαθ˙α˙+12Jeqθ˙2mgLcosα(12)

The states of the system (i.e., q(q1,q2)) are given by:

q_=[θα](13)

where the working points (q1,q2) are given by:

q_1=[θ0],q_2=[θπ](14)

Taking the differential of Eq. (12) with respect to θ˙ to get:

δδθ˙[LLagr]=mr2θ˙+mL2sin2αθ˙mrLcosαα˙+Jeqθ˙(15)

Now taking d/dt of Eq. (15) to get:

ddt(δδθ˙[LLagr])=mr2θ¨+2mL2sinαcosαθ˙α˙+mL2sin2αθ¨+mrLsinαα˙2mrLcosαα¨+Jeqθ¨(16)

Taking the differential of Eq. (12) with respect to θ to get:

δδθ[LLagr]=0(17)

where:

ddt(δδθ˙[LLagr])δδθ[LLagr]=T(18)

where T denotes the torque. By inserting Eq. (16) and Eq. (17) in Eq. (18) to get:

mr2θ¨+2mL2sinαcosαθ˙α˙+mL2sin2αθ¨+mrLsinαα˙2mrLcosαα¨+Jeqθ¨=T(19)

Now differentiating Eq. (12) with respect to α and α˙ respectively to get:

δδα[LLagr]=mL2sinαcosαθ˙2+mrLsinαθ˙α˙+mgLsinα(20)

δδα˙[LLagr]=mL2α˙mrLcosαθ˙(21)

Now taking d/dt of Eq. (21) to get:

ddt(δδα˙[LLagr])=mL2α¨+mrLsinαθ˙α˙mrLcosαθ¨(22)

where:

ddt(δδα˙[LLagr])δδα[LLagr]=0(23)

Now simplify Eq. (23) to get:

mL2α¨mrLcosαθ¨mL2sinαcosαθ˙2mgLsinα=0(24)

Finally, we get two equations (i.e. Eq. (25) and Eq. (26)) of the system as under:

r2θ¨+2L2sinαcosαθ˙α˙+L2sin2αθ¨+rLsinαα˙2rLcosαα¨+Jeqmθ¨=Tm(25)

Lα¨rcosαθ¨Lsinαcosαθ˙2gsinα=0(26)

From Eq. (26), the value of α¨ is obtained as:

α¨=rLcosαθ¨+sinαcosαθ˙2+gLsinα(27)

Substituting the value of α¨ from Eq. (27) in Eq. (25)

r2θ¨+2L2sinαcosαθ˙α˙+L2sin2αθ¨+rLsinαα˙2r2cos2αθ¨rLsinαcos2αθ˙2rgcosαsinα+Jeqmθ¨=Tm(28)

Now simplifying the Eq. (28):

θ¨[sin2α(L2+r2)+Jeqm]+2L2sinαcosαθ˙α˙+rLsinαα˙2rLsinαcos2αθ˙2rgcosαsinα=Tm(29)

θ¨=1sin2α.(L2+r2)+Jeqm[Tm2L2sinαcosαθ˙α˙rLsinαα˙2+rLsinαcos2αθ˙2+rgcosαsinα](30)

Substituting the value θ¨ in Eq. (27):

α¨=(rcosαL[sin2α(L2+r2)+Jeqm])[Tm2L2sinαcosαθ˙α˙rLsinαα˙2+rLsinαcos2αθ˙2+rgcosαsinα]+sinαcosαθ˙2+gLsinα (31)

2.2 System Linearization

To design the controller, mathematical modeling has been done by employing the Newton-Euler, Lagrange method. The resulting model is nonlinear so linearization is required, which has been done around a working point. Following are the assumptions from Eqs. (30) and (31).

θ¨=f1=(1sin2α(L2+r2)+Jeqm)[TmL2sin2αθ˙α˙rLsinαα˙2+rLsinαcos2αθ˙2+12rgcosαsin2α] (32)

α¨=f2=(rcosαLsin2α(L2+r2)+Jeqm)[TmL2sin2αθ˙α˙rLsinαα˙2+rLsinαcos2αθ˙2+12rgsin2α]+12sin2αθ˙2+gLsinα(33)

The linear system can be expressed by:

x˙_=A_x_+B_u_,y_=C_x_+D_u_(34)

For the nonlinear system, the linearized system looks as:

[θ˙θ¨α˙α¨]=[0100δf1δθx_=xo_δf1δθ˙x_=xo_δf1δαx_=xo_δf1δα˙x_=xo_0001δf2δθx_=xo_δf2δθ˙x_=xo_δf2δαx_=xo_δf2δα˙x_=xo_][θθ˙αα˙]+[0δf1δTx_=xo_0δf2δTx_=xo_]T(35)

[y1y2]=[10000010][θθ˙αα˙](36)

The working point is given by:

xo_=[θo000](37)

δδθ[f1]=0(38)

δδθx_=xo_[f1]=0(39)

δδθ˙[f1]=(1sin2α(L2+r2)+Jeqm)[L2sin2αα˙+2rLsinαcos2αθ˙](40)

δδθ˙x_=xo_[f1]=0(41)

δδα[f1]=(2sinαcosα(L2+r2)[sin2α(L2+r2)+Jeqm]2)[TmL2sin2αθ˙α˙rLsinαα˙2+rLsinαcos2αθ˙2+12rgsin2α]+(1sin2α(L2+r2)+Jeqm)[2L2cos2αθ˙α˙rLcosαα˙2+rLcos3αθ˙22rLsin2αcosαθ˙2+rgcos2α](42)

δδαx_=xo_[f1]=mrgJeq(43)

δδα˙[f1]=(1sin2α(L2+r2)+Jeqm)[L2sin2αθ˙rLsinαα˙](44)

δδα˙x_=xo_[f1]=0(45)

δδT[f1]=(1sin2α(L2+r2)+Jeqm)1m(46)

δδTx_=xo_[f1]=1Jeq(47)

δδθ[f2]=0(48)

δδθx_=xo_[f2]=0(49)

δδθ˙[f2]=(rcosαL[sin2α(L2+r2)+Jeqm])[L2sin2αα˙+2rLsinαcos2αθ˙](50)

δδθ˙x_[f2]=xo_=0(51)

δδα[f2]=(Lrsinα(sin2α(L2+r2)+Jeqm)[L(sin2α(L2+r2)+Jeqm)]2)(2Lrsinαcos2α(L2+r2)[L(sin2α(L2+r2)+Jeqm)]2)×[TmL2sin2αθ˙α˙rLsinαα˙2+rLsinαcos2αθ˙2+12rgsin2α]+(rcosαL(sin2α(L2+r2)+Jeqm))[2L2cos2αθ˙α˙rLcosαα˙2+rLcos3αθ˙22rLsin2αcosαθ˙2+rgcos2α]+cos2αθ˙2+gLcosα(52)

δδαx_=xo_[f2]=mr2gJeqL+gL(53)

δδα˙[f2]=(rcosαL[sin2α(L2+r2)+Jeqm])[L2sin2αθ˙2rLsinαα˙](54)

δδα˙x_=xo_[f2]=0(55)

δδT[f2]=(rcosαL[sin2α(L2+r2)+Jeqm])1m(56)

δδTx_=xo_[f2]=rLJeq(57)

The linearized system is given by:

[θ˙θ¨α˙α¨]=[010000mrgJeq0000100gL(1+mr2Jeq)0][θθ˙αα˙]+[01Jeq0rLJeq].T(58)

[y1y2]=[10000010][θθ˙αα˙](59)

The motor torque equation is given by:

T=TgearBeqθ˙=KtKgRmηmηg(UKmKgθ˙)Beqθ˙=KtKgRmηmηgUθ˙(KtKg2KmRmηmηg+Beq)(60)

where U is the input voltage and is a control signal. Substitute the value of T in the state-space model and we get:

[θ˙θ¨α˙α¨]=[010000mrgJeq0000100gL(1+mr2Jeq)0][θθ˙αα˙]+[0KtKgηmηgRmJeq0rKtKgηmηgLRmJeq]U[0a0b].θ˙(61)

where:

a=1Jeq(KtKg2KmηmηgRm+Beq)

b=rLJeq(KtKg2KmηmηgRm+Beq)

[θ˙θ¨α˙α¨]=[01000am.r.gJeq000010bgL(1+mr2Jeq)0][θθ˙αα˙]+[0KtKgηmηgRmJeq0rKtKgηmηgLRmJeq]U(62)

where, Beq denotes the viscous damping of the motor, ηg is the efficiency of the gear, ηm represents the efficiency of the motor, Rm is the resistance of the motor, Kt is the torque constant of the motor, Kg is the gear ratio, Km is the damping constant, Kenc is the encoder constant and U is the control voltage.

3  Controller Design and Parameters Estimation

MATLAB (2018a, MathWorks, MA, USA) has been used to evaluate the parameters of the LQR controller. Matrices given in (A) and (B) have been evaluated using the system setup parameters and initial conditions given in Tab. 2. Similarly, the matrix given in (C) has been evaluated using the same set of parameters and MATLAB LQR function.

images

A=[0100020.3854.0600001019.22109.560](A)

B=[035.84033.81](B)

K=[12.0227.683.56](C)

Fig. 2 shows the linearized model of inverted pendulum with LQR controller simulated in MATLAB Simulink module. In order to analyze performance and the stability of the controller, a horizontal link having an angle theta (θ) has been rotated at an angle of 5.7 degrees (i.e., 0.1 radians) after an interval of one second. The vertical arm swings at a certain angle and again come back to zero degrees and stays in an upright position while the horizontal link moves from zero to 5.7 degrees position. The simulation result is showing the stable behavior of the system as shown in Fig. 3. This proves that the system is stable and the controller keeps the pendulum in a stable upright position.

images

Figure 2: Simulation of the linear model with the controller in Simulink

images

Figure 3: Simulation results of the stability analysis obtained using the MATLAB Simulink Model

4  Hardware Implementation and Validation

Hardware has been set up as shown in Fig. 4. It depicts the Rotary inverted pendulum module coupled to the Quanser SRV02 plant in the correct configuration. Quanser SRV02 has a direct current (DC) motor enclosed in an aluminum frame and is equipped with a planetary gearbox. The module is attached to the SRV02 load gear and the pendulum arm is attached to the module body. In order to keep the pendulum stable and upright, the LQR has been designed and implemented. LQR is an excellent approach that provides optimal feedback gains to make a closed-loop system robust and stable. It also provides a local approximation to develop optimal control for nonlinear systems [38].

images

Figure 4: Hardware implementation of the rotary inverted pendulum

The designed controller has been implemented over the real inverted pendulum. The plots of variation in angles both in simulation and the real environment with the passage of time have been shown in Figs. 5 and 6. The angle in degrees is along the vertical axis versus time in seconds is along the horizontal axis as shown in Figs. 5 and 6. Fig. 6 shows the variation in the horizontal link’s angle θ and Fig. 5, shows the corresponding adjustment in the vertical arms’ angle α. The Blue dotted line represents the plot of the measured value and the green line represents the simulation results. It is clear from both plots that the actual measured values obtained from the inverted pendulum are very close to the simulated values. The presentation of the results validates the proposed controller. The horizontal link has been rotated in both directions during the simulation and real experimentation as shown in Fig. 5. The controller has adjusted the vertical angle and rejected the disturbances and kept the pendulum in a stable upright position as shown in Fig. 6. The pendulum vertical arm is swinging with a very small range showing stable behavior.

images

Figure 5: Variation in vertical angle alpha (simulation and measured results)

images

Figure 6: Variation in horizontal angle theta (simulation and measured results)

5  Conclusion and Future Work

In current research work, a state-feedback controller for the rotary inverted pendulum utilizing the LQR techniques has been designed. Mathematical modeling, linearization, simulation and validation of the designed controller over real hardware has been carried out. It is evident from the simulation and measured results that the designed controller is performing well and is robust enough to keep the pendulum in an upright stable position. For future work, a non-model-based controller or a nonlinear controller can be designed and evaluated and performance comparison can be made.

Acknowledgement: Authors would like to thank Christopher Hille for the thorough discussion.

Funding Statement: The authors received no specific funding for this study.

Conflicts of Interest: The authors declare that they have no conflicts of interest to report regarding the present study.

References

 1.  M. R. Dolatabad, A. Pasharavesh and A. A. A. Khayyat, “Analytical and experimental analyses of nonlinear vibrations in a rotary inverted pendulum,” Nonlinear Dynamics, vol. 107, no. 3, pp. 1887–1902, 2022. [Google Scholar]

 2.  O. Mofid, K. A. Alattas, S. Mobayen, M. T. Vu and Y. Bouteraa, “Adaptive finite-time command-filtered backstepping sliding mode control for stabilization of a disturbed rotary-inverted-pendulum with experimental validation,” Journal of Vibration and Control, vol. 26, no. 1, pp. 107754632110640, 2022. [Google Scholar]

 3.  N. P. Nguyen, H. Oh, Y. Kim and J. Moon, “A nonlinear hybrid controller for swinging-up and stabilizing the rotary inverted pendulum,” Nonlinear Dynamics, vol. 104, no. 2, pp. 1117–1137, 2021. [Google Scholar]

 4.  A. de Carvalho, J. F. Justo, B. A. Angélico, A. M. de Oliveira and J. I. da Silva Filho, “Rotary inverted pendulum identification for control by paraconsistent neural networ,” IEEE Access, vol. 9, pp. 74155–74167, 2021. [Google Scholar]

 5.  H. V. Nghi, D. P. Nhien, N. T. M. Nguyet, N. T. Duc, N. P. Luu et al., “A LQR-based neural-network controller for fast stabilizing rotary inverted pendulum,” in IEEE Int. Conf. on System Science and Engineering (ICSSE), Ho Chi Minh City, Vietnam, pp. 19–22, 2021. [Google Scholar]

 6.  Y. Dai, K. Lee and S. Lee, “A real-time HIL control system on rotary inverted pendulum hardware platform based on double deep Q-network,” Measurement and Control, vol. 54, no. 3–4, pp. 417–428, 2021. [Google Scholar]

 7.  H.-R. Li, Z.-Y. Nie, E.-Z. Zhu, W.-X. He and Y.-M. Zheng, “Double loop DR-PID control of a rotary inverted pendulum,” in IEEE Int. Conf. on Networking, Sensing and Control (ICNSC), Xiamen, China, pp. 1–5, 2021. [Google Scholar]

 8.  Z. S. Mahmood, I. B. Kadhim and A. N. Nasret, “Design of rotary inverted pendulum swinging-up and stabilizing,” Periodicals of Engineering and Natural Sciences, vol. 9, no. 4, pp. 913–920, 2021. [Google Scholar]

 9.  J. A. Onwuzuruike and S. U. Hussein, “Bond graph modelling of a rotary inverted pendulum on a wheeled cart,” International Journal of Modern Education & Computer Science, vol. 13, no. 6, pp. 25–29, 2021. [Google Scholar]

10. A. Lal, A. Kunjumuhammed, J. Tomy, G. Urmila, M. Sivadas et al., “Stabilization of rotary inverted pendulum using PID controller,” in IEEE 8th Int. Conf. on Smart Computing and Communications (ICSCC), Kochi, Kerala, India, pp. 376–380, 2021. [Google Scholar]

11. I. Chawla and A. Singla, “Real-time stabilization control of a rotary inverted pendulum using LQR-based sliding mode controller,” Arabian Journal for Science and Engineering, vol. 46, no. 3, pp. 2589–2596, 2021. [Google Scholar]

12. M. F. Hamza, H. J. Yap, I. A. Choudhury, A. I. Isa, A. Y. Zimit et al., “Current development on using rotary inverted pendulum as a benchmark for testing linear and nonlinear control algorithms,” Mechanical Systems and Signal Processing, vol. 116, pp. 347–369, 2019. [Google Scholar]

13. O. Saleem and K. M. Hasan, “Robust stabilisation of rotary inverted pendulum using intelligently optimised nonlinear self-adaptive dual fractional-order PD controllers,” International Journal of Systems Science, vol. 50, no. 7, pp. 1399–1414, 2019. [Google Scholar]

14. I. Chawla and A. Singla, “Real-time control of a rotary inverted pendulum using robust LQR-based ANFIS controller,” International Journal of Nonlinear Sciences and Numerical Simulation, vol. 19, no. 3–4, pp. 379–389, 2018. [Google Scholar]

15. C. Wang, X. Liu, H. Shi, R. Xin and X. Xu, “Design and implementation of fractional PID controller for rotary inverted pendulum,” in IEEE Chinese Control and Decision Conf. (CCDC), Shenyang, China, pp. 6730–6735, 2018. [Google Scholar]

16. S.-K. Oh, S.-H. Jung and W. Pedrycz, “Design of optimized fuzzy cascade controllers by means of hierarchical fair competition-based genetic algorithms,” Expert Systems with Applications, vol. 36, no. 9, pp. 11641–11651, 2009. [Google Scholar]

17. V. Nath and R. Mitra, “Swing-up and control of rotary inverted pendulum using pole placement with integrator,” in IEEE Recent Advances in Engineering and Computational Sciences (RAECS), Chandigarh, India, IEEE, 1–5, 2014. [Google Scholar]

18. A. Al-Jodah, H. Zargarzadeh and M. K. Abbas, “Experimental verification and comparison of different stabilizing controllers for a rotary inverted pendulum,” in IEEE Int. Conf. on Control System, Computing and Engineering, Penang, Malaysia, pp. 417–423, 2013. [Google Scholar]

19. J. George, B. Krishna, V. George, C. Shreesha and M. K. Menon, “Stability analysis and design of pi controller using kharitnov polynomial for rotary inverted pendulum,” Sensors & Transducers Journal, vol. 138, no. 3, pp. 104–113, 2012. [Google Scholar]

20. K. Chou and Y. Chen, “Energy based swing-up controller design using phase plane method for rotary inverted pendulum,” in 13th IEEE Int. Conf. on Control Automation Robotics & Vision (ICARCV), Singapore, pp. 975–979, 2014. [Google Scholar]

21. A. Tiga, C. Ghorbel and N. B. Braiek, “Nonlinear/linear switched control of inverted pendulum system: stability analysis and real-time implementation,” Mathematical Problems in Engineering, vol. 2019, no. 2, pp. 1–10, 2019. [Google Scholar]

22. X. R. Zhang, W. F. Zhang, W. Sun, X. M. Sun and S. K. Jha, “A robust 3-D medical watermarking based on wavelet transform for data protection,” Computer Systems Science & Engineering, vol. 41, no. 3, pp. 1043–1056, 2022. [Google Scholar]

23. X. R. Zhang, X. Sun, X. M. Sun, W. Sun and S. K. Jha, “Robust reversible audio watermarking scheme for telemedicine and privacy protection,” Computers, Materials & Continua, vol. 71, no. 2, pp. 3035–3050, 2022. [Google Scholar]

24. A. M. S. Mahdy, K. Lotfy, W. Hassan and A. A. El-Bary, “Analytical solution of magneto-photothermal theory during variable thermal conductivity of a semiconductor material due to pulse heat flux and volumetric heat source,” Waves in Random and Complex Media, vol. 31, no. 6, pp. 2040–2057, 2021. [Google Scholar]

25. A. K. Khamis, K. Lotfy, A. A. El-Bary, A. M. Mahdy and M. H. Ahmed, “Thermal-piezoelectric problem of a semiconductor medium during photo-thermal excitation,” Waves in Random and Complex Media, vol. 31, no. 6, pp. 2499–2513, 2021. [Google Scholar]

26. A. M. S. Mahdy, K. Lotfy, A. El-Bary and H. H. Sarhan, “Effect of rotation and magnetic field on a numerical-refined heat conduction in a semiconductor medium during photo-excitation processes,” The European Physical Journal Plus, vol. 136, no. 5, pp. 1–17, 2021. [Google Scholar]

27. A. M. S. Mahdy, K. Lotfy, A. El-Bary and I. M. Tayel, “Variable thermal conductivity and hyperbolic two-temperature theory during magneto-photothermal theory of semi-conductor induced by laser pulses,” The European Physical Journal Plus, vol. 136, no. 6, pp. (1–212021. [Google Scholar]

28. A. M. S. Mahdy and E. S. M. Youssef, “Numerical solution technique for solving isoperimetric variational problems,” International Journal of Modern Physics C, vol. 32, no. 1, pp. 2150002, 2021. [Google Scholar]

29. Y. A. Amer, A. M. S. Mahdy, T. T. Shwayaa and E. S. M. Youssef, “Laplace transform method for solving nonlinear biochemical reaction model and nonlinear Emden-Fowler system,” Journal of Engineering and Applied Sciences, vol. 13, no. 17, pp. 7388–7394, 2018. [Google Scholar]

30. Y. A. Amer, A. M. S. Mahdy and H. A. R. Namoos, “Reduced differential transform method for solving fractional-order biological systems,” Journal of Engineering and Applied Sciences, vol. 13, no. 20, pp. 8489–8493, 2018. [Google Scholar]

31. A. M. S. Mahdy, “Numerical solutions for solving model time-fractional Fokker–Planck equation,” Numerical Methods for Partial Differential Equations, vol. 37, no. 2, pp. 1120–1135, 2021. [Google Scholar]

32. M. M. Khader, N. H. Swetlam and A. M. S. Mahdy, “The chebyshev collection method for solving fractional order klein-gordon equation,” WSEAS Transactions on Mathematics, vol. 13, pp. 31–38, 2014. [Google Scholar]

33. M. I. A. Othman, A. M. S. Mahdy and R. M. Farouk, “Numerical solution of 12th order boundary value problems by using homotopy perturbation method,” Journal of Mathematics and Computer Science, vol. 1, no. 1, pp. 14–27, 2010. [Google Scholar]

34. A. M. S. Mahdy, Y. A. E. Amer, M. S. Mohamed and E. Sobhy, “General fractional financial models of awareness with Caputo-Fabrizio derivative,” Advances in Mechanical Engineering, vol. 12, no. 11, pp. 1–9, 2020. [Google Scholar]

35. A. M. S. Mahdy, K. A. Gepreel, K. Lotfy and A. A. El-Bary, “A numerical method for solving the Rubella ailment disease model,” International Journal of Modern Physics C, vol. 32, no. 7, pp. 1–15, 2021. [Google Scholar]

36. A. M. S. Mahdy, M. S. Mohamed, K. Lotfy, M. Alhazmi, A. A. El-Bary et al., “Numerical solution and dynamical behaviors for solving fractional nonlinear rubella ailment disease model,” Results in Physics, vol. 24, no. 104091, pp. 1–10, 2021. [Google Scholar]

37. A. M. S. Mahdy, M. Higazy and M. S. Mohamed, “Optimal and memristor-based control of a nonlinear fractional tumor-immune model,” Computers, Materials & Continua, vol. 67, no. 3, pp. 3463–3486, 2021. [Google Scholar]

38. L. Wei and W. Yao, “Design and implement of LQR controller for a self-balancing unicycle robot,” in IEEE Int. Conf. on Information and Automation, Lijiang, China, pp. 169–173, 2015. [Google Scholar]

images This work is licensed under a Creative Commons Attribution 4.0 International License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.