Inverted Pendulum System
Inverted Pendulum System
Inverted Pendulum System
net/publication/341134318
CITATIONS READS
0 503
2 authors, including:
Kumaresh Pal
ARKA JAIN UNIVERSITY, JAMSHEDPUR
7 PUBLICATIONS 36 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Detection of Sag and Swell Disturbances in a Micro Grid Using Wavelet and Wavelet Packet Transform View project
All content following this page was uploaded by Kumaresh Pal on 04 May 2020.
ABSTRACT
1. INTRODUCTION
Being an inherently unstable system, the inverted pendulum is among the most complex systems,
and is one of the most important classical problems. Due to its importance, this is a choice of
dynamic system to analyse its dynamic model and propose a control law.
The Inverted Pendulum is a classical control problem in dynamics and control theory and is widely
used as a benchmark for testing control algorithm (PID controller, neural network, fuzzy control,
genetic algorithm etc.). The Inverted Pendulum System is Single Input Multiple Output (SIMO)
type of system. Here, there are two number of free component i.e. it has 2 degree of freedom. It has
one input and the two outputs are position and angle.
2. RELATED WORK
As a linear inverted pendulum system, the mathematical model will be established by the method of
mechanical analysis as follows. The Schematic diagram of the inverted pendulum is shown in Fig
2.1.Isolation force analysis of the car as shown in Fig 2.2, and isolation force analysis of the rod as shown in
Figure 2.3.
Control input is the force F. The outputs are the angular position of the pendulum θ (theta) and the
horizontal position of the cart x. M is the mass of the cart (0.7kgs), m is the mass of the pendulum
(0.3kgs) and L is the distance from the pivot to mass centre of the pendulum (0.5m).
By the principles of modern control theory, and then substituted the inverted pendulum system
parameter which is designed into the state space equation is given by:
3. CONTROLLER DESIGN
2
National Conference on Recent trends in Advanced technology Applications and challenges
[RTATAC - 2020] AJU JHARKHAND, India, 28-29February 2020
Fig 3.1: Block diagram of LQR controller
This means that the control signal u is determined by an instantaneous state. Such a scheme is
called state feedback. The 1xn matrix K is called the state feedback gain matrix. We assume that all
3
National Conference on Recent trends in Advanced technology Applications and challenges
[RTATAC - 2020] AJU JHARKHAND, India, 28-29February 2020
state variables are available for feedback. In the following analysis we assume that u is
unconstrained. The present work, Ackermann’s formula method has been used to determine the
matrix K. For an arbitrary positive integer n, we have
K = [0 0 ... 0 1] [B: AB: ....: An-1 B]-1 Φ(A) ……………….(3.3.3)
Equation (3.3.3) is known as Ackermann’s formula for the determination of the state feedback gain
matrix K.
The simulation results using LQR with linear inverted pendulum is shown below:
Fig.3.4.1 and Fig.3.4.2 shows the step response of linear inverted pendulum taking two different
values of Q and R respectively as mentioned above.
Fig 3.4.1: Step response of Inverted pendulum Fig 3.4.2: Step response of Inverted pendulum
Using LQR using LQR
The simulation result for the LQR scheme for the cart position, linear velocity of the Cart, angle of
Pendulum, angular velocity is shown in the table below. The speed of reaching the final value
depends on choice of Q matrix. From the results obtained, it can be concluded that with the high
value of Q matrix, settling time decreases and also the rise time decreases.
4
National Conference on Recent trends in Advanced technology Applications and challenges
[RTATAC - 2020] AJU JHARKHAND, India, 28-29February 2020
Fig 3.4.3: Force input (u) Fig 3.4.4: Plot of 𝑥 and 𝑥̇ versus time
In the above, fig 3.4.3, fig 3.4.4 and fig 3.4, the simulation of inverted pendulum using LQR
controller in Matlab/Simulink is shown.
5
National Conference on Recent trends in Advanced technology Applications and challenges
[RTATAC - 2020] AJU JHARKHAND, India, 28-29February 2020
From the block diagram of PID controller of Inverted Pendulum, it is seen that the pendulum angle
dynamics and cart position dynamics are coupled to each other, the change in any controller
parameters affects both the pendulum angle and cart position, which makes the tuning tedious. The
disturbance input parameters taken in the simulation are: band limited white noise power = 0.0001,
sampling time = 0.1, seed= 23341. The tuned PID controller parameters of this control schemes for
cases of with disturbance input is given below:
Table III: PID controller parameters of control schemes for with disturbance input case
Here only pendulum angle θ and cart position x are considered for the measurement. The reference
angle is set to ‘0 radian’, and reference cart position is set to 0.1 m. The simulation results for both
6
National Conference on Recent trends in Advanced technology Applications and challenges
[RTATAC - 2020] AJU JHARKHAND, India, 28-29February 2020
cases are shown in figure. It is observed that the pendulum stabilizes it also stabilizes upright with
minor oscillations for the case of with continuous disturbance input. The Matlab-Simulink models
have been developed for simulation and performance analysis of the control schemes.
For Pole Placement given the single-input inverted pendulum system and a vector ’ecl’ of desired
self-conjugate closed-loop pole locations, MATLAB command ‘place’ computes a gain matrix ’G’
such that the state feedback u = −Gx places the closed-loop poles at the locations of ’ecl’. In other
words, the Eigen values of A − BG match the entries of ’ecl’. Table IV shows the settling time and
rise time of the system. The G matrix is found to be:
Angle 7.9 0
Thus, the study presents a number of control approaches such as LQR, PID and Pole Placement for
inverted pendulum system. These design method have been successful in meeting the stabilization
goals of the IPS. The results show that LQR method give the better performance compared to PID
controller and Pole Placement by reducing overshoot, settling time and minimize the rising time.
ACKNOWLEDGEMENTS
Manaswita Sharma: I take this opportunity to thank my entire family for their love and support. I
would take this opportunity to thank specially my husband Mr.Pankaj Saxena for his immense
moral support and encouragement.
Kumaresh Pal: I would like to thank my family & friends for their love, support & encouragement.
7
National Conference on Recent trends in Advanced technology Applications and challenges
[RTATAC - 2020] AJU JHARKHAND, India, 28-29February 2020
REFERENCES
[1] Vural aksakalli and daniel ursu. control of nonlinear stochastic systems: model free controllers
versus linear quadratic regulators. in decision and control, 2006 45th IEEE conference on, pages
4145–4150. IEEE, 2006.
[2] nekoui mohammad ali and valipourearkhloo amin. an lqr/pole placement controller design for
statcom. in control conference, 2007. ccc 2007. chinese, pages 189–193. IEEE, 2007.
[3] Charles w anderson. learning to control an inverted pendulum using neural networks. control
systems magazine, IEEE.
[4] Asad azemi and edwin engin yaz. using matlab in a graduate electrical engineering optimal
control course. in frontiers in education conference, 1997. 27th annual conference. teaching and
learning in an era of change. proceedings.,volume 1, pages 13–17. IEEE, 1997.
[5] Taylor wallis barton. stabilizing the dual inverted pendulum: a practical approach. phd thesis,
massachusetts institute of technology, 2008.
[6] Narinder singh bhangal. design and performance of lqr and lqr based fuzzy controller for double
inverted pendulum system. journal of image and graphics,1(3), 2013.
[7] Felix grasser, aldo d’arrigo, silvio colombi, and alfred c rufer. joe: a mobile, inverted pendulum.
industrial electronics, IEEE transactions on, 49(1):107–114, 2002.
[8] H Hashemipour. nonlinear optimal control of vehicle active suspension considering actuator
dynamics. international journal of machine learning and computing, 2(4):355, 2012.
[9] M.sharma,M.buragohain,“optimal controller design for linear inverted pendulum and double
inverted pendulum system,”International journal of innovative research in computer and
communication engineering,volume:03, issue: 07 , July-2015, pp.6976-6984.
[11] Hongliang Wang, Haobin Dong, Lianghua He, Yongle Shi, and Yuan Zhang.Design and
simulation of lqr controller with the linear inverted pendulum. In 2010 international conference on
electrical and control engineering, pages 699–702. IEEE, 2010
[12] Hari Vasudevan, Aaron M Dollar, and John B Morrell. Design for control of wheeled inverted
pendulum platforms. Journal of Mechanisms and Robotics, 7(4).
[13] Yingjun Sang, Yuanyuan Fan, and Bin Liu. Double inverted pendulum control based on three-
loop pid and improved bp neural network. In Digital Manufacturing and Automation (ICDMA),
2011 Second International Conference on, pages456–459. IEEE, 2011.
[14] Prasanna Priyadarshi. Optimal Controller Design for Inverted Pendulum System: An
Experimental Study. PhD thesis, 2013.
[15] Kevin M Passino and Nicanor Quijan. Linear quadratic regulator and observer design for a
flexible joint. Department of Electrical Engineering, The Ohio State University, 2002
[16] Katsuhiko Ogata. State space analysis of control systems. Prentice-Hall, 1967.