Abstract
The inverted pendulum is a typical problem in dynamics and control system. It is extremely nonlinear, unstable, and robust coupling structure. The objective is to stabilize a pendulum vertically on a motor-driven carriage. It is extensively used as a yardstick for evaluating control techniques (PID controllers, fuzzy control state space illustration, genetic algorithms, neural networks, etc.). It has some features, like insecurity multivariable and nonlinearity. The impulse response of the system is evaluated using LQG and MPC controller and an extensive comparative analysis has been done on MATLAB/Simulink. The presented work is about comparative analysis of different controllers on two-wheel self-balancing mobile robot (TWSBMR). Mathematical model of the MPC and LQG controller used in this paper is designed using state space, and the comparison has been shown. Main aim of proposing this work is to design an efficient controller who can easily operate two-wheel mobile robot that can be implemented in real life. The controller designed here has the better results in terms of settling time and peak amplitude.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
- Two-wheel self-balancing inverted pendulum (TWSBIP)
- Linear quadratic Gaussian (LQG)
- Model predictive control (MPC)
1 Introduction
Two-wheel self-balancing mobile robot (TWSBMR) is based on two degrees of freedom (2 DOF) robot workstation. It is highly unstable and nonlinear system which is the keen interest of researchers to make it stable and linearize. Two-wheel inverted pendulum which is basically mounted on 2-DOF means two rotary servo base units with a 4-bar linkage system. Two-wheel self-balancing robot consists of a two-DOF instrumented joint, on which an almost 12 in. rod is bolted, which is free to rotate about two rectangular axes. The main aim of the 2-DOF inverted pendulum is to command and control position of the 2-DOF robot end effectors [1] to balance the 2-DOF inverted pendulum system module [2]. By measuring vertical position deviation, a controller is used to rotate the servo such that the end of the servo effectors balances the pendulum [3]. Designing a controller is necessary so that it can maintain the pendulum upright using the two servomotors. It provides so many concepts to the student for aerospace engineering application, such as rocket stabilization, self-balancing robot, earthquake resistant, and building construction [4,5,6].
Previously, several researches have been done which are actually based on inverted pendulum, and it is old secure and easy topic for the research to start and understand for the researchers, like a person upper body needs adjustment constantly to maintain and balance when we are standing or walking. From past few years, it has been found that the researchers design some controllers for the two-wheel self-balancing mobile robot, and using PID controller and fuzzy logic, it is easy to control any system [7]; in this paper, LQR and PID controller have been proposed. Researchers have made two-wheel self-balancing mobile robot in laboratory at the industrial electronics. There are various studies based on stabilization and optimization of two-wheel self-balancing mobile robot. For this chapter I studied proportional and proportional derivative (PD) and go through it [8], proportional integral derivative (PID), linear quadratic regulator (LQR) [9], and model predictive control (MPC). And some more research work which is relevant and based on two-wheel mobile robot [10, 11] has been presented. Further, the chapter is categorized in following sections like Sect. 2 illustrates dynamic modeling of two-wheel self-balancing mobile robot, in Sect. 3 LQG and MPC controller configuration is modeled and designed, Sect. 4 discusses the simulated results and performance comparison of critical characteristics, followed by conclusion in last section.
2 System Modeling
The physical prototype of two-wheeled mobile robot consists of a rigid pole on a cart which is attached to two driving wheels. The mathematical formulation [12] of two-wheeled mobile robot is obtained assuming zero resistance in the air flow, negligible secondary friction, etc. The horizontal movement of cart is represented by distance x. M and m are used to define the mass of cart and pole, respectively. Lc represents the total pole length. The angle by which the pole is titled is described by φ. The wheel mobile robot is driven with the help of a wheel inverted pendulum [13, 14].
3 Model of the Wheel of Inverted Pendulum
The torque produced by left wheel is represented by \(D_{L}\) and that by right wheel is \(D_{R}\) as shown in Fig. 3. The reactive force exerted on left wheel is defined by \(R_{FL} , R_{FR}\) and that in right wheel by \(R_{FL} , R_{FR}\). The equation of motion of left wheel can be represented by Eq. (7) and that of right wheel by Eq. (8).
For the left wheel
For the right wheel
After converting angular velocity described by \(\dot{\theta }\) into linear velocity \(\dot{x}\) Eqs. (3) and (10) can easily be derived for left and right wheels, respectively,
For the left wheel
For the right wheel
By adding Eqs. (9) and (10), resultant equation will be
3.1 Cart Model
The mathematical formulation of the cart on pole is derived by many scientists [4,5,6] and is written as follows;
Since state-space representation of any given system requires first-order differential equations, above equations are linearized as follows;
where \(\emptyset\). The right angle which is upside
The actual values of the different parameters of given pole and cart model are as follows;
Parameter description | Value with units | Parameter description | Value with units |
---|---|---|---|
Gravitational acceleration (g) | 9.80 m/s2 | Body inertia (Ip) | 0.21 Kgm2 |
Wheel radius (r) | 0.062 M | Dist from body’s center of mass (l) | 0.22 m |
Wheel mass (Mw) | 0.1 kg | Motor torque (Km) | 0.0335 N m/A |
Body mass (Mp) | 5.4 kg | Back EMF (Ke) | 0.0435 V/(rad/s) |
Wheel inertia (Iw) | 0.0013 Kgm2 | Terminal resistance (R) | \(\Omega \) |
4 Designing of Controller
Any disturbance causes the pole on the cart to deviate from its upright position, and the role of the controller is to bring back the pole to its stable vertical position. The system specifications described above impose some constraints on the settling time of four seconds to regain its stable cart position and to the deviation in the angle of pole is \(\pm 0.6 \,{\text{to}}\, \pm 0.8\) rad.
4.1 Linear Quadratic Regulator
The difference between the linear quadratic regulator and Gaussian controller is operated along with Kalman’s filter, and this gives it an edge over LQR which is used for both time-variant as well as time-invariant systems.
LQR and Kalman filter together formed linear quadratic controller, which can be used for linear time invariant and time variant. In this chapter, we design LQG controller and found satisfactory results, as the optimal controllers are distinguished from normal controllers in terms of performance measure, J, given by following quadratic relationship.
where Q and R are state variable and control vector weighting matrix
where ‘K’ is the gain matrix given by
P can be calculated using matrix Riccati equation
5 Result and Discussion
All the simulation work has been done on MATLAB software, and we found that the impulse response using LQG controller is better what we have gone through. Settling time is 2.30 s position and the pendulum angle is 1.78 s and their peak amplitude is 0.166 rad. When the system based on LQG controller starts to stabilize, it will be easily stabilized in three seconds, when we produce disturbance system, it will take ten seconds to stabilize itself again. LQG controller found good when disturbance is produced in it and can stabilize itself quickly.
For describing the CMPC controller, Laguerre function is used. Different values of P and N are shown here in the given below.
6 Conclusion
Mathematical modeling of LQG and MPC controller is designed well. Both the controllers are designed using state space, and comparison has been shown. For the simulation work, we use MATLAB software, and all the simulated results have been produced well. System impulse response using LQG controller and their disturbance rejection capability with the plant have been produced. Design controller is found well, and Laguerre function with second- and fourth-order coefficient has been produced and found satisfactory. Controller designed for the two-wheeled self-balancing mobile robot is found easily used for the system.
References
Peng, X., Jia, M., He, L., Yu, X., Lv, Y.: Fuzzy sliding mode control based on longitudinal force estimation for electro-mechanical breaking systems using BLDC motor. CES Trans. Electric. Mach. Syst. 2(1), 142–151 (2018)
Ghany, M.A., Bensenouci, A., Bensenouci, M.A., Syed-Ahmad, M.N.: Fuzzy fractional-order PID Tuned via relative rate observer for the Egyption load frequency regulation. In: Twentieth International Middle East Power Systems Conference (MEPCON), pp. 103–109. Cairo University, Egypt (2018)
Mahaboob Basha, S., Swarup, A.: Disturbance observer based fuzzy PID and robust PID autopilot design for bank-to-turn missile. In: 8th IEEE International Conference on Computing, Communication and Networking Technologies (ICCCNT), pp. 103–109
Huang, J., Ri, M.H., Wu, D., Songhyok: Interval type-2 fuzzy logic modeling and control of a mobile two-wheeled inverted pendulum. IEEE Trans. Fuzzy Syst. 1–9 (2017)
Kim, S., Kwon, S.: Nonlinear optimal control design for underactuated two-wheeled inverted pendulum mobile robot. IEEE/ASME Trans. Mechatron. 1–6 (2017)
Qiu, J., Hou, Z., Wang, W., Zhang, G., Li, Y., Feng, W., Han, C.: Two-wheeled self balancing robot modeling and nonlinear control. In: 14th IEEE International Conference on Ubiquitous Robots and Ambient Intelligence (URAI), pp. 734–739. IEEE (2017)
Khatoon, S., Chaturvedi, D.K., Hasan, N., Istiyaque, M.: Optimal control of double inverted pendulum by linearization technique. In: 2017 International Conference on Multimedia, Signal Processing and Communication Technologies (IMPACT), pp. 123–127. IEEE (2017)
Zheng, Z., Teng, M.: Modeling and decoupling for two-wheeled self-balancing robot. In: Chinese Control and Decision Conference (CCDC), pp. 5263–5269. IEEE (2016)
Zad, H.S., Ulasyar, A.: Adaptive control of self-balancing two-wheeled robot system based on online model estimation. In: International Conference on Electrical and Electronics Engineering (ELECO), pp. 876–880 (2017)
Jamil, O., Jamil, M., Ayaz, Y., Ahmad, K.: Modelling control of a two wheeled self balancing robot. In: International Conference on Robotics and Emerging Allied Technologies in Engineering (ICRESATE), vol. 10, pp. 191–199 (2014)
Nawawi, S.W., Ahmad, M.N., Osman, J.H.S.: Real-time control of a two-wheeled inverted pendulum mobile robot. World Acad. Sci. Eng. Technol. 39, 214–220 (2008)
Nasir, A.N.K., Ahmad, M.A., Raja Ismail, R.M.T.: The control of a highly non-linear two-wheels balancing robot: a comparative assessment between LQR and PID-PID control schemes. World Acad. Sci. Eng. Technol. Int. J. Mech. Mechatron. Eng. 4(10), 942–947 (2010)
Kun, L., Ming, B., Yuhua, N.: Two-wheel self-balanced car based on Kalman filtering and PID algorithm. In: IEEE 18th International Conference on Industrial Engineering and Engineering Management (IE&EM), vol. Part 1, pp. 281–285 (2011)
Pathak, K., Franch, J., Agrawal, S.K.: Velocity and position control of a wheeled inverted pendulum by partial feedback linearization. IEEE Trans. Robot. 21(3), 505–513 (2005)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Khatoon, S., Istiyaque, M., Hasan, N., Chaturvedi, D.K. (2021). Two-Wheeled Self-Balancing Mobile Robot Using Kalman Filter and LQG Regulator. In: Muzammil, M., Chandra, A., Kankar, P.K., Kumar, H. (eds) Recent Advances in Mechanical Engineering. Lecture Notes in Mechanical Engineering. Springer, Singapore. https://doi.org/10.1007/978-981-15-8704-7_26
Download citation
DOI: https://doi.org/10.1007/978-981-15-8704-7_26
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-15-8703-0
Online ISBN: 978-981-15-8704-7
eBook Packages: EngineeringEngineering (R0)