Balancing Control of Two-Wheeled Robot by Using Linear Quadratic Gaussian (LQG)


  • Feriyonika Feriyonika Electrical Engineering, Politeknik Negeri Bandung, Indonesia.
  • Asep Hidayat Electrical Engineering, Politeknik Negeri Bandung, Indonesia.


Balancing Robot, Kalman Filter, LQG, LQR,


The Optimal Control method such as Linear Quadratic Regulator (LQR) deals with both the qualities of the response and its consumed power. In such a system, LQR faces a problem with the feedback sensor, which contains a lot of noise. Therefore, this issue can be solved by combining it with the Kalman filter, called the Linear Quadratic Gaussian (LQG). This research investigated the LQG applied in the Two-Wheeled Balancing Robot. According to the obtained data from MPU6050 (Accelero-Gyro sensor), Kalman Filter was firstly designed by adjusting the matrix R and Q. In the same way, LQR was also designed by manually tuning the matrix Q(1,1), Q(2,2) and R. The results of Kalman Filter showed that while Qacc, Qgyro, and R are 0.001, 0.003, and 1, respectively, the noise of the sensor can be successfully decreased. At the same time, while Q(1,1), Q(2,2), R of LQR are set to 1650, 25, and 3, respectively, the Two-Wheeled Robot can be stabilized in the set-point with the lowest J-function (1365.86). The verification experiment indicates that the controller can maintain the system stability even when the external disturbance is present.


R Babazadeh, AG Khiabani, H Azmi, “Optimal control of Segway personal transporter,” 2016 4th International Conference on Control, Instrumentation, and Automation (ICCIA), Iran, 2016.

Adi K, Hardianto, Edi SK, Indra RK “Modeling and control of ballast system to improve stability of catamaran boat,” 2015 International Conference on Advance Mechatronics, Intelligent Manufacture, and Industrial Automation (ICAMIMIA), Indonesia, 2015.

WY Dzan, SY Chang, KC Hsu “Designing and Building of a Catamaran and Its Stability Analysis,” 2013Second International Conference on Robot, Vision and Signal Processing, Kitakyushu, Japan, 2013.

M Migdalovici, Luige V, Daniela B, Gabriela V, Mihai R “Stability Analysis of the Walking Robots,” Procedia Computer Science, V

Rasoul S, Mehdi TM "An experimental study on the PID-Fuzzy controller on a designed two-wheeled self-balancing autonomous robot," 2016 4th International Conference on Control, Instrumentation, and Automation (ICCIA), Surabaya Indonesia, 2016.

Derry P, Eko HB, Fernando A “Movement control of two wheels balancing robot using cascaded PID controller,” 2015 International Electronics Symposium (IES), Surabaya Indonesia, 2015.

Junfeng W, Yuxin L, Zhe W “A robust control method of two-wheeled self-balancing robot,” 2011 6th International Forum on Strategic Technology, Harbin, 2011.

Mustafa E “Embedded LQR controller design for self-balancing robot,” 2018 7th Mediterranean Conference on Embedded Computing (MECO), Budva Montenegro, 2018.

Saqib I, Adeel M, MT Razzaq, J Iqbal “Advance sliding mode control techniques for Inverted Pendulum: Modelling and simulation,” an International Journal Engineering Science and Technology, Vol 21, Issue 4, pp. 753-759, 2018.

Hellman H, Sunnerman H “Two-Wheeled Self-Balancing Robot: Design and control based on the concept of an inverted pendulum,” Bachelor’s Thesis in Mechatronic, KTH Royal Institute of Technology in Stockholm, Sweden, 2015

Bill M, Dawn T “Inverted Pendulum: System Modeling,” Control Tutorial for Matlab and Simulink, Department of Mechanical Engineering at Tufts University and The University of Michigan, USA, 2017

Dendi M, Feriyonika, Eril M “Segway design by using PID controller and Kalman Filter,” Undergraduate thesis, Politeknik Negeri Bandung, Indonesia, 2016.




How to Cite

Feriyonika, F., & Hidayat, A. (2020). Balancing Control of Two-Wheeled Robot by Using Linear Quadratic Gaussian (LQG). Journal of Telecommunication, Electronic and Computer Engineering (JTEC), 12(3), 55–59. Retrieved from