SlideShare a Scribd company logo
1 of 4
Download to read offline
Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com
ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04
www.ijera.com DOI: 10.9790/9622-0705040104 1 | P a g e
Analysis & Control of Inverted Pendulum System Using PID
Controller
Vivek Kumar pathak *, Sankalp paliwal**
*(PG Student [PS&C], Dept. of EE, Babu Banarasi Das University, Lucknow, and Uttar Pradesh, India)
** (Department of EE, Babu Banarasi Das University, Lucknow, and Uttar Pradesh, India
ABSTRACT
This Analysis designs a two-loop proportional–integral–derivative (PID) controller for an inverted cart–
pendulum system via pole placement technique, where the (dominant) closed-loop poles to be placed at the
desired locations are obtained from an Linear quadratic regulator (LQR) design. It is seen that in addition to
yielding better responses (because of additional integral action) than this LQR (equivalent to two-loop PD
controller) design, the proposed PID controller is robust enough. The performance and of the PID compensation
are verified through simulations as well as experiments.
Keywords: PID, inverted pendulum, pole placement, LQR design, robust
I. INTRODUCTION
The inverted cart–pendulum is an example of
under actuated, non-minimum phase and highly
unstable system. Therefore a controller design is
difficult for such a system. The design becomes more
difficult because of the physical constraints on track
length, applied voltage and the pendulum angle.
It is well known that proportional–integral–
derivative (PID) controllers are widely used in control
systems The design of these controllers, however, are
generally carried out using some tuning approaches
such as trail error method, [1]. For the inverted cart–
pendulum system, it is however seen that a design of
LQ controller, which is equivalent to a two-loop PD
controller here, exhibits poor real-time cart responses
containing sustained oscillations. To achieve better
response, this paper designs a two-loop PID controller
using pole placement technique where the (dominant)
closed-loop poles are placed at the same locations as
obtained from the above LQR design. It is seen that
while the robustness of LQR design is almost retained
in the two-loop PID design, the real-time cart
response is superior to LQR because of additional
integral action. The performance and robustness of the
proposed two loop PID design have been verified
using simulations. In [2], a two-loop PID controller
was designed for an inverted cart–pendulum system
based on simultaneous tuning of the controllers using
pole–placement technique This controller was,
however, tested on SIMULINK environment only. In
[3], a PD controller was designed and tested on
experimental set-up, but, as expected, the real-time
pendulum angle and cart responses exhibit
oscillations. In [4], a linear state feedback controller
was used to ensure infinite gain margin (GM). In this
paper pole placement technique has been used to
stabilize the MIP system. The stabilization of MIP
system using pole placement method has been
discussed in the literature [8-9].
In this paper PID controllers have been used
to stabilize the MIP system. The tuning of the PID
controllers has been done using pole placement
technique. In this technique the dominant closed loop
poles are placed at desired locations which are
obtained from LQR technique. By placing these poles
in the characteristic equation of the MIP system the
parameters of the PID controllers are obtained.
II. STRUCTURE AND
MATHEMATICAL MODEL OF
INVERTED PENDULUM
The x inverted pendulum on a pivot driven
by horizontal control force is shown in fig 1(a) the
control based on the horizontal displacements x
inverted pendulum are the total kinetic energy and
potential energy . K=1/2MX2+1/2(XP
2
+Z2
), Z= mgzp
Let l is the distance from the pivot to the maas center
of the pendulum M,m are the piot and the pendulum
(x,z) respectively(x,z) is the position of the pivot in
the xoz coordinate is the speed in the xoz coordinate
(xp,zp) and angle ϴ and Fx is the horizontal control
force.
RESEARCH ARTICLE OPEN ACCESS
Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com
ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04
www.ijera.com DOI: 10.9790/9622-0705040104 2 | P a g e
Figure -1
Inverted pendulum system free-body diagrams of the
two elements
Figure -2
free-body diagram of the cart in the horizontal
direction Summing the forces you get the following
equation of motion Mx+bx+N=F (1)
forces in the free-body diagram of the pendulum in
the horizontal direction, you get the following
expression for the reaction force .
N= mx + mlϴcosϴ-ml ϴ2
sinϴ (2)
One of the two governing equations for this system is
obtained if this equation is substituted into the first
equation
(M+m)x +bx+ mlϴcosϴ-ml ϴ sinϴ = F (3)
To get the second equation of motion for this system,
sum the forces perpendicular to the pendulu
PSINϴ+NCOSϴ-mg Sinϴ = ml2
ϴ+mxcosϴ (4)
To get rid of the and terms in the equation
above, sum the moments about the centroid of the
pendulum to get the following equation
-PlSINϴ -Nlcosϴ =Iϴ (5)
Combining these last two expressions, the second
governing equation is obtained
( I+ml2
) ϴ+mglsinϴ = - mlxcosϴ (6)
Let represent the deviation of the pendulum‟s
position from equilibrium, that is, = + . Again
presuming a small deviation ( ) from equilibrium, we
can use the following small angle non linear function
cosϴ = cos(Π+φ) = - 1 (7)
Sinϴ =Sin (Π+φ) = - φ (8)
ϴ2
= φ2
= 0 (9)
After substiting the above approximations into our
nonlinear governing equations, the two linearized
equations of
Motion are obtained. Note has been substituted for
the input
(I+ml2
) φ- mglsin φ = - mlx (10)
(M+m)x +bx-mlφ = u (11)
underline any of the headings, or add dashes, colons,
etc.
III. CONTROLLER DESIGN
Stabilizing the IP a two loop control scheme
has been used for stabilizing the IP as shown in figure
2. PID1 has been used for controlling the position x
while PID2 for controlling angle PID1 has been used
for controlling the position x while PID2 for
controlling angle .
The basic equation of a PID controller is given as
(12)
Where e (t) is the error between the reference and the
feedback of the system. In order to control the system
two PID controllers are required one for controlling
the position of the robot and the other for controlling
the pendulum angle. The two loop PID controller is
shown in figure 2. As shown in figure PID1 is used
for position control while PID2 is used for stabilizing
angle of the MIP. P1=X(s)/U(s) and P2=
represents the two transfer functions. The tuning of
the PID controllers has been done using pole
placement technique. In this technique dominant
closed loop poles are placed at desired locations
which are obtained from LQR technique.
The characteristic equation for the control
(13)
Where and are given
(14)
(15)
Let the desired characteristic equation be
(16)
The dominant poles of the two loop PID controller are
obtained using LQR design.
The performance index is given as
(17)
Here Q is the state weighted matrix and R is the
control weighted matrix the performance index j is
minimized using Riccati equation given by
(18)
Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com
ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04
www.ijera.com DOI: 10.9790/9622-0705040104 3 | P a g e
State feedback gain vector K [K1,K2,K3,K4] is
obtained by
(19)
For simplicity the state weighted matrix is chosen as
Q=diag {q1,q2,q3,q4} and the control weighted
matrix is chosen as a scalar vector R=r. In this paper
Q vector is q1=500q, q2=q3=20q, q4=q and r= 10n
.
By trial and error It is found that for optimal results
q=100 and n=4.
.
Figure 3 two loop PID controller for IP system
To ensure a high-quality product, diagrams
and lettering MUST be either computer-drafted or
drawn using India ink.
Figure captions appear below the figure, are
flush left, and are in lower case letters. When referring
to a figure in the body of the text, the abbreviation
"Fig." is used. Figures should be numbered in the
order they appear in the text.
Table captions appear centered above the
table in upper and lower case letters. When referring
to a table in the text, no abbreviation is used and
"Table" is capitalized.
IV. SIMULATION RESULTS
The state space obtained after putting these values is
(16)
The closed loop poles are obtained by the
Eigen values of A-BK. The four poles obtained are -
5.7391,-5.451,-1.3209±1.209. The fifth pole is taken
as six times the real part of the most dominant pole -
7.92
The matrix has 2 rows because both the cart's
position and the pendulum's position are part of the
output. Specifically, the cart's position is the first
element of the output and the pendulum's deviation
from its equilibrium position is the second element
of
Figure 4 Angle vs. time curve
Figure 5 positions vs. time curve
Controller Kp Ki Kd
PID1 52.35 102.93 10
PID2 18.27 13.91 3.224
Table 1 PID Parameter Using Pole Placement
V. CONCLUSION
A two loop PID control scheme has been for
stabilization of IP system. The tuning of the PID
controllers has been done using pole placement.
Simulation results show effective stabilization of IP
system with low rise time tr and overshoot in both
position and angle curves.
REFERENCE
[1]. Naidu, D.S.: „Optimal control systems‟
(CRC Press, FL, 2003)
[2]. Nasir, A.: „Modelling and controller design
for an inverted pendulum system‟. Master of
Technology Degree, Faculty of Electrical
Engineering, Universiti Teknologi Malaysia,
Malaysia, 2007
[3]. Hung, C.C., Fernandez, B.R.: „Comparative
analysis of control design techniques for a
cart-inverted-pendulum in real-time
implementation‟. Proc. American Control
Conf., June 1993
[4]. Lin, Z., Saberi, A., Gutmann, M., Shamash,
Y.A.: „Linear controller for an inverted
pendulum having restricted travel: a high-
Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com
ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04
www.ijera.com DOI: 10.9790/9622-0705040104 4 | P a g e
and-low gain approach‟, Automatica, 1996,
32, pp. 933–937
[5]. „Digital pendulum control experiments
manual‟ (Feedback Instruments Ltd, UK,
2002)
[6]. Wolovich, W.A.: „Automatic control
systems‟ (Saunders College Publishing,
Rochester, NY, 1994)
[7]. Skogestad, S., Postlethwaite, I.:
„Multivariable feedback control, analysis and
design‟ (John Wiley, Chichester, 2005)
[8]. [8]. A. Ghosh T.R. Krishnan B. Subudhi
“Robust proportional–integral–
derivativecompensation of an inverted cart–
pendulumsystem: an experimental study”
IET Control Theory and Applications
pp.1145-1152, 2012
[9]. [9] N.Rajak “Stabilization of Cart-Inverted
Pendulum Using Pole-Placement Method”
International Journal of Advanced
Engineering Research and Studies 308-312,
2015

More Related Content

What's hot

Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqreSAT Publishing House
 
PID Controller Design for a Real Time Ball and Beam System – A Double Integra...
PID Controller Design for a Real Time Ball and Beam System – A Double Integra...PID Controller Design for a Real Time Ball and Beam System – A Double Integra...
PID Controller Design for a Real Time Ball and Beam System – A Double Integra...idescitation
 
Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...Iaetsd Iaetsd
 
Inverted Pendulum Control System
Inverted Pendulum Control SystemInverted Pendulum Control System
Inverted Pendulum Control SystemAniket Govindaraju
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumFrancesco Corucci
 
PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...TELKOMNIKA JOURNAL
 
Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum Nowab Md. Aminul Haq
 
12EE62R11_Final Presentation
12EE62R11_Final Presentation12EE62R11_Final Presentation
12EE62R11_Final PresentationAmritesh Maitra
 
Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...
Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...
Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...IJERA Editor
 
Simulation of inverted pendulum presentation
Simulation of inverted pendulum  presentationSimulation of inverted pendulum  presentation
Simulation of inverted pendulum presentationPourya Parsa
 
Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armcesarportilla8
 
Controller design for gantry crane system using modified sine cosine optimiza...
Controller design for gantry crane system using modified sine cosine optimiza...Controller design for gantry crane system using modified sine cosine optimiza...
Controller design for gantry crane system using modified sine cosine optimiza...TELKOMNIKA JOURNAL
 
Automatic control and mixed sensitivity Hinf control
Automatic control and mixed sensitivity Hinf controlAutomatic control and mixed sensitivity Hinf control
Automatic control and mixed sensitivity Hinf controlRené Galindo
 
Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...hunypink
 
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...IJECEIAES
 
final year presentation
final year presentationfinal year presentation
final year presentationrao tahir
 
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Thomas Templin
 

What's hot (19)

Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
 
Discrete Time Optimal Tracking Control of BLDC Motor
Discrete Time Optimal Tracking Control of BLDC MotorDiscrete Time Optimal Tracking Control of BLDC Motor
Discrete Time Optimal Tracking Control of BLDC Motor
 
PID Controller Design for a Real Time Ball and Beam System – A Double Integra...
PID Controller Design for a Real Time Ball and Beam System – A Double Integra...PID Controller Design for a Real Time Ball and Beam System – A Double Integra...
PID Controller Design for a Real Time Ball and Beam System – A Double Integra...
 
Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...
 
Inverted Pendulum Control System
Inverted Pendulum Control SystemInverted Pendulum Control System
Inverted Pendulum Control System
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulum
 
PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...
 
Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum
 
12EE62R11_Final Presentation
12EE62R11_Final Presentation12EE62R11_Final Presentation
12EE62R11_Final Presentation
 
Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...
Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...
Design and Simulation of Different Controllers for Stabilizing Inverted Pendu...
 
Simulation of inverted pendulum presentation
Simulation of inverted pendulum  presentationSimulation of inverted pendulum  presentation
Simulation of inverted pendulum presentation
 
Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic arm
 
Controller design for gantry crane system using modified sine cosine optimiza...
Controller design for gantry crane system using modified sine cosine optimiza...Controller design for gantry crane system using modified sine cosine optimiza...
Controller design for gantry crane system using modified sine cosine optimiza...
 
B04450517
B04450517B04450517
B04450517
 
Automatic control and mixed sensitivity Hinf control
Automatic control and mixed sensitivity Hinf controlAutomatic control and mixed sensitivity Hinf control
Automatic control and mixed sensitivity Hinf control
 
Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...
 
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
 
final year presentation
final year presentationfinal year presentation
final year presentation
 
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
 

Similar to PID Controller Design Stabilizes Inverted Pendulum

Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...
Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...
Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...TELKOMNIKA JOURNAL
 
ijccms paper 29--04--22.pdf
ijccms paper  29--04--22.pdfijccms paper  29--04--22.pdf
ijccms paper 29--04--22.pdfijccmsjournal
 
A comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulumA comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulumijccmsjournal
 
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted PendulumA Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulumijccmsjournal
 
Navigation of Mobile Inverted Pendulum via Wireless control using LQR Technique
Navigation of Mobile Inverted Pendulum via Wireless control using LQR TechniqueNavigation of Mobile Inverted Pendulum via Wireless control using LQR Technique
Navigation of Mobile Inverted Pendulum via Wireless control using LQR TechniqueIJMTST Journal
 
Improving Structural Limitations of Pid Controller For Unstable Processes
Improving Structural Limitations of Pid Controller For Unstable ProcessesImproving Structural Limitations of Pid Controller For Unstable Processes
Improving Structural Limitations of Pid Controller For Unstable ProcessesIJERA Editor
 
Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...
Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...
Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...ijctcm
 
Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery Onyebuchi nosiri
 
Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery Onyebuchi nosiri
 
Hexacopter using MATLAB Simulink and MPU Sensing
Hexacopter using MATLAB Simulink and MPU SensingHexacopter using MATLAB Simulink and MPU Sensing
Hexacopter using MATLAB Simulink and MPU SensingIRJET Journal
 
Mathematical Modeling and Fuzzy Adaptive PID Control of Erection Mechanism
Mathematical Modeling and Fuzzy Adaptive PID Control of Erection MechanismMathematical Modeling and Fuzzy Adaptive PID Control of Erection Mechanism
Mathematical Modeling and Fuzzy Adaptive PID Control of Erection MechanismTELKOMNIKA JOURNAL
 
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...ijscmcjournal
 
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...ijscmcj
 
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...ijscmcj
 
Development of deep reinforcement learning for inverted pendulum
Development of deep reinforcement learning for inverted  pendulumDevelopment of deep reinforcement learning for inverted  pendulum
Development of deep reinforcement learning for inverted pendulumIJECEIAES
 
Design of Fractional Order PID controller using Soft computing methods for a ...
Design of Fractional Order PID controller using Soft computing methods for a ...Design of Fractional Order PID controller using Soft computing methods for a ...
Design of Fractional Order PID controller using Soft computing methods for a ...IOSR Journals
 

Similar to PID Controller Design Stabilizes Inverted Pendulum (20)

Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...
Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...
Optimal FOPI-FOPD controller design for rotary inverted pendulum system using...
 
ijccms paper 29--04--22.pdf
ijccms paper  29--04--22.pdfijccms paper  29--04--22.pdf
ijccms paper 29--04--22.pdf
 
A comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulumA comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulum
 
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted PendulumA Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
 
Navigation of Mobile Inverted Pendulum via Wireless control using LQR Technique
Navigation of Mobile Inverted Pendulum via Wireless control using LQR TechniqueNavigation of Mobile Inverted Pendulum via Wireless control using LQR Technique
Navigation of Mobile Inverted Pendulum via Wireless control using LQR Technique
 
Improving Structural Limitations of Pid Controller For Unstable Processes
Improving Structural Limitations of Pid Controller For Unstable ProcessesImproving Structural Limitations of Pid Controller For Unstable Processes
Improving Structural Limitations of Pid Controller For Unstable Processes
 
Ball and beam
Ball and beamBall and beam
Ball and beam
 
Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...
Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...
Dynamic modelling and optimal controlscheme of wheel inverted pendulum for mo...
 
Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery
 
Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery Quadcopter Design for Payload Delivery
Quadcopter Design for Payload Delivery
 
Hexacopter using MATLAB Simulink and MPU Sensing
Hexacopter using MATLAB Simulink and MPU SensingHexacopter using MATLAB Simulink and MPU Sensing
Hexacopter using MATLAB Simulink and MPU Sensing
 
Mathematical Modeling and Fuzzy Adaptive PID Control of Erection Mechanism
Mathematical Modeling and Fuzzy Adaptive PID Control of Erection MechanismMathematical Modeling and Fuzzy Adaptive PID Control of Erection Mechanism
Mathematical Modeling and Fuzzy Adaptive PID Control of Erection Mechanism
 
Fuzzy logic control vs. conventional pid
Fuzzy logic control vs. conventional pidFuzzy logic control vs. conventional pid
Fuzzy logic control vs. conventional pid
 
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
 
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
 
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
 
Development of deep reinforcement learning for inverted pendulum
Development of deep reinforcement learning for inverted  pendulumDevelopment of deep reinforcement learning for inverted  pendulum
Development of deep reinforcement learning for inverted pendulum
 
Ips csmc 14.06.2016
Ips csmc 14.06.2016Ips csmc 14.06.2016
Ips csmc 14.06.2016
 
Db36619623
Db36619623Db36619623
Db36619623
 
Design of Fractional Order PID controller using Soft computing methods for a ...
Design of Fractional Order PID controller using Soft computing methods for a ...Design of Fractional Order PID controller using Soft computing methods for a ...
Design of Fractional Order PID controller using Soft computing methods for a ...
 

Recently uploaded

Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 

Recently uploaded (20)

Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 

PID Controller Design Stabilizes Inverted Pendulum

  • 1. Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04 www.ijera.com DOI: 10.9790/9622-0705040104 1 | P a g e Analysis & Control of Inverted Pendulum System Using PID Controller Vivek Kumar pathak *, Sankalp paliwal** *(PG Student [PS&C], Dept. of EE, Babu Banarasi Das University, Lucknow, and Uttar Pradesh, India) ** (Department of EE, Babu Banarasi Das University, Lucknow, and Uttar Pradesh, India ABSTRACT This Analysis designs a two-loop proportional–integral–derivative (PID) controller for an inverted cart– pendulum system via pole placement technique, where the (dominant) closed-loop poles to be placed at the desired locations are obtained from an Linear quadratic regulator (LQR) design. It is seen that in addition to yielding better responses (because of additional integral action) than this LQR (equivalent to two-loop PD controller) design, the proposed PID controller is robust enough. The performance and of the PID compensation are verified through simulations as well as experiments. Keywords: PID, inverted pendulum, pole placement, LQR design, robust I. INTRODUCTION The inverted cart–pendulum is an example of under actuated, non-minimum phase and highly unstable system. Therefore a controller design is difficult for such a system. The design becomes more difficult because of the physical constraints on track length, applied voltage and the pendulum angle. It is well known that proportional–integral– derivative (PID) controllers are widely used in control systems The design of these controllers, however, are generally carried out using some tuning approaches such as trail error method, [1]. For the inverted cart– pendulum system, it is however seen that a design of LQ controller, which is equivalent to a two-loop PD controller here, exhibits poor real-time cart responses containing sustained oscillations. To achieve better response, this paper designs a two-loop PID controller using pole placement technique where the (dominant) closed-loop poles are placed at the same locations as obtained from the above LQR design. It is seen that while the robustness of LQR design is almost retained in the two-loop PID design, the real-time cart response is superior to LQR because of additional integral action. The performance and robustness of the proposed two loop PID design have been verified using simulations. In [2], a two-loop PID controller was designed for an inverted cart–pendulum system based on simultaneous tuning of the controllers using pole–placement technique This controller was, however, tested on SIMULINK environment only. In [3], a PD controller was designed and tested on experimental set-up, but, as expected, the real-time pendulum angle and cart responses exhibit oscillations. In [4], a linear state feedback controller was used to ensure infinite gain margin (GM). In this paper pole placement technique has been used to stabilize the MIP system. The stabilization of MIP system using pole placement method has been discussed in the literature [8-9]. In this paper PID controllers have been used to stabilize the MIP system. The tuning of the PID controllers has been done using pole placement technique. In this technique the dominant closed loop poles are placed at desired locations which are obtained from LQR technique. By placing these poles in the characteristic equation of the MIP system the parameters of the PID controllers are obtained. II. STRUCTURE AND MATHEMATICAL MODEL OF INVERTED PENDULUM The x inverted pendulum on a pivot driven by horizontal control force is shown in fig 1(a) the control based on the horizontal displacements x inverted pendulum are the total kinetic energy and potential energy . K=1/2MX2+1/2(XP 2 +Z2 ), Z= mgzp Let l is the distance from the pivot to the maas center of the pendulum M,m are the piot and the pendulum (x,z) respectively(x,z) is the position of the pivot in the xoz coordinate is the speed in the xoz coordinate (xp,zp) and angle ϴ and Fx is the horizontal control force. RESEARCH ARTICLE OPEN ACCESS
  • 2. Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04 www.ijera.com DOI: 10.9790/9622-0705040104 2 | P a g e Figure -1 Inverted pendulum system free-body diagrams of the two elements Figure -2 free-body diagram of the cart in the horizontal direction Summing the forces you get the following equation of motion Mx+bx+N=F (1) forces in the free-body diagram of the pendulum in the horizontal direction, you get the following expression for the reaction force . N= mx + mlϴcosϴ-ml ϴ2 sinϴ (2) One of the two governing equations for this system is obtained if this equation is substituted into the first equation (M+m)x +bx+ mlϴcosϴ-ml ϴ sinϴ = F (3) To get the second equation of motion for this system, sum the forces perpendicular to the pendulu PSINϴ+NCOSϴ-mg Sinϴ = ml2 ϴ+mxcosϴ (4) To get rid of the and terms in the equation above, sum the moments about the centroid of the pendulum to get the following equation -PlSINϴ -Nlcosϴ =Iϴ (5) Combining these last two expressions, the second governing equation is obtained ( I+ml2 ) ϴ+mglsinϴ = - mlxcosϴ (6) Let represent the deviation of the pendulum‟s position from equilibrium, that is, = + . Again presuming a small deviation ( ) from equilibrium, we can use the following small angle non linear function cosϴ = cos(Π+φ) = - 1 (7) Sinϴ =Sin (Π+φ) = - φ (8) ϴ2 = φ2 = 0 (9) After substiting the above approximations into our nonlinear governing equations, the two linearized equations of Motion are obtained. Note has been substituted for the input (I+ml2 ) φ- mglsin φ = - mlx (10) (M+m)x +bx-mlφ = u (11) underline any of the headings, or add dashes, colons, etc. III. CONTROLLER DESIGN Stabilizing the IP a two loop control scheme has been used for stabilizing the IP as shown in figure 2. PID1 has been used for controlling the position x while PID2 for controlling angle PID1 has been used for controlling the position x while PID2 for controlling angle . The basic equation of a PID controller is given as (12) Where e (t) is the error between the reference and the feedback of the system. In order to control the system two PID controllers are required one for controlling the position of the robot and the other for controlling the pendulum angle. The two loop PID controller is shown in figure 2. As shown in figure PID1 is used for position control while PID2 is used for stabilizing angle of the MIP. P1=X(s)/U(s) and P2= represents the two transfer functions. The tuning of the PID controllers has been done using pole placement technique. In this technique dominant closed loop poles are placed at desired locations which are obtained from LQR technique. The characteristic equation for the control (13) Where and are given (14) (15) Let the desired characteristic equation be (16) The dominant poles of the two loop PID controller are obtained using LQR design. The performance index is given as (17) Here Q is the state weighted matrix and R is the control weighted matrix the performance index j is minimized using Riccati equation given by (18)
  • 3. Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04 www.ijera.com DOI: 10.9790/9622-0705040104 3 | P a g e State feedback gain vector K [K1,K2,K3,K4] is obtained by (19) For simplicity the state weighted matrix is chosen as Q=diag {q1,q2,q3,q4} and the control weighted matrix is chosen as a scalar vector R=r. In this paper Q vector is q1=500q, q2=q3=20q, q4=q and r= 10n . By trial and error It is found that for optimal results q=100 and n=4. . Figure 3 two loop PID controller for IP system To ensure a high-quality product, diagrams and lettering MUST be either computer-drafted or drawn using India ink. Figure captions appear below the figure, are flush left, and are in lower case letters. When referring to a figure in the body of the text, the abbreviation "Fig." is used. Figures should be numbered in the order they appear in the text. Table captions appear centered above the table in upper and lower case letters. When referring to a table in the text, no abbreviation is used and "Table" is capitalized. IV. SIMULATION RESULTS The state space obtained after putting these values is (16) The closed loop poles are obtained by the Eigen values of A-BK. The four poles obtained are - 5.7391,-5.451,-1.3209±1.209. The fifth pole is taken as six times the real part of the most dominant pole - 7.92 The matrix has 2 rows because both the cart's position and the pendulum's position are part of the output. Specifically, the cart's position is the first element of the output and the pendulum's deviation from its equilibrium position is the second element of Figure 4 Angle vs. time curve Figure 5 positions vs. time curve Controller Kp Ki Kd PID1 52.35 102.93 10 PID2 18.27 13.91 3.224 Table 1 PID Parameter Using Pole Placement V. CONCLUSION A two loop PID control scheme has been for stabilization of IP system. The tuning of the PID controllers has been done using pole placement. Simulation results show effective stabilization of IP system with low rise time tr and overshoot in both position and angle curves. REFERENCE [1]. Naidu, D.S.: „Optimal control systems‟ (CRC Press, FL, 2003) [2]. Nasir, A.: „Modelling and controller design for an inverted pendulum system‟. Master of Technology Degree, Faculty of Electrical Engineering, Universiti Teknologi Malaysia, Malaysia, 2007 [3]. Hung, C.C., Fernandez, B.R.: „Comparative analysis of control design techniques for a cart-inverted-pendulum in real-time implementation‟. Proc. American Control Conf., June 1993 [4]. Lin, Z., Saberi, A., Gutmann, M., Shamash, Y.A.: „Linear controller for an inverted pendulum having restricted travel: a high-
  • 4. Vivek Kumar pathak. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 5, ( Part -4) May 2017, pp.01-04 www.ijera.com DOI: 10.9790/9622-0705040104 4 | P a g e and-low gain approach‟, Automatica, 1996, 32, pp. 933–937 [5]. „Digital pendulum control experiments manual‟ (Feedback Instruments Ltd, UK, 2002) [6]. Wolovich, W.A.: „Automatic control systems‟ (Saunders College Publishing, Rochester, NY, 1994) [7]. Skogestad, S., Postlethwaite, I.: „Multivariable feedback control, analysis and design‟ (John Wiley, Chichester, 2005) [8]. [8]. A. Ghosh T.R. Krishnan B. Subudhi “Robust proportional–integral– derivativecompensation of an inverted cart– pendulumsystem: an experimental study” IET Control Theory and Applications pp.1145-1152, 2012 [9]. [9] N.Rajak “Stabilization of Cart-Inverted Pendulum Using Pole-Placement Method” International Journal of Advanced Engineering Research and Studies 308-312, 2015