Design and Comparison of Different Controllers to Stabilize a Rotary Inverted Pendulum

Similar documents
Dynamic Modeling of Rotary Double Inverted Pendulum Using Classical Mechanics

Mechatronic System Case Study: Rotary Inverted Pendulum Dynamic System Investigation

Fuzzy modeling and control of rotary inverted pendulum system using LQR technique

MEM04: Rotary Inverted Pendulum

QNET Experiment #04: Inverted Pendulum Control. Rotary Pendulum (ROTPEN) Inverted Pendulum Trainer. Instructor Manual

Real-Time Implementation of a LQR-Based Controller for the Stabilization of a Double Inverted Pendulum

1 Introduction. 2 Process description

Rotary Inverted Pendulum

LIAPUNOV S STABILITY THEORY-BASED MODEL REFERENCE ADAPTIVE CONTROL FOR DC MOTOR

INC 341 Feedback Control Systems: Lecture 3 Transfer Function of Dynamic Systems II

Matlab-Based Tools for Analysis and Control of Inverted Pendula Systems

Optimal and Robust Tuning of State Feedback Controller for Rotary Inverted Pendulum

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

Mathematical Modelling, Stability Analysis and Control of Flexible Double Link Robotic Manipulator: A Simulation Approach

Full Order Observer Controller Design for DC Motor Based on State Space Approach

Liapunov s Stability Theory-based Model Reference Adaptive control for DC Motor

Application of Neural Networks for Control of Inverted Pendulum

Example: DC Motor Speed Modeling

Reverse Order Swing-up Control of Serial Double Inverted Pendulums

SRV02-Series Rotary Experiment # 7. Rotary Inverted Pendulum. Student Handout

THE REACTION WHEEL PENDULUM

Electrical Engg. Department Semester :4

Design of Quadratic Dynamic Matrix Control for Driven Pendulum System

Controlling the Inverted Pendulum

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Adaptive Fuzzy PID For The Control Of Ball And Beam System

Appendix W. Dynamic Models. W.2 4 Complex Mechanical Systems. Translational and Rotational Systems W.2.1

Linear control of inverted pendulum

Different Modelling and Controlling Technique For Stabilization Of Inverted Pendulam

Research Article On the Dynamics of the Furuta Pendulum

Fuzzy Based Robust Controller Design for Robotic Two-Link Manipulator

System simulation using Matlab, state plane plots

ACKNOWLEDGEMENTS Quanser Inc., All rights reserved.

In the presence of viscous damping, a more generalized form of the Lagrange s equation of motion can be written as

Lab 6a: Pole Placement for the Inverted Pendulum

An LQR Controller Design Approach For Pitch Axis Stabilisation Of 3-DOF Helicopter System

DYNAMICS OF SERIAL ROBOTIC MANIPULATORS

Comparison of LQR and PD controller for stabilizing Double Inverted Pendulum System

DC Motor Position: System Modeling

FEEDBACK CONTROL SYSTEMS

ROTARY INVERTED PENDULUM AND CONTROL OF ROTARY INVERTED PENDULUM BY ARTIFICIAL NEURAL NETWORK

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual

Neural Network Control of an Inverted Pendulum on a Cart

Simulation of joint position response of 60 kg payload 4-Axes SCARA configuration manipulator taking dynamical effects into consideration

Vibration Suppression of a 2-Mass Drive System with Multiple Feedbacks

Rotary Flexible Link. Workbook FLEXGAGE. Student Version

Example: Modeling DC Motor Position Physical Setup System Equations Design Requirements MATLAB Representation and Open-Loop Response

A Light Weight Rotary Double Pendulum: Maximizing the Domain of Attraction

University of Petroleum & Energy Studies, Dehradun Uttrakhand, India

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

Linear Experiment #11: LQR Control. Linear Flexible Joint Cart Plus Single Inverted Pendulum (LFJC+SIP) Student Handout

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

Australian Journal of Basic and Applied Sciences, 3(4): , 2009 ISSN Modern Control Design of Power System

Pierre Bigot 2 and Luiz C. G. de Souza 3

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

Dr Ian R. Manchester

EE Homework 3 Due Date: 03 / 30 / Spring 2015

EMBEDDED CONTROLLER BUILDING FOR BALL AND BEAM SYSTEM USING OPTIMAL CONTROL SYNTHESIS

Modeling and control design for a semi-active suspension system with magnetorheological rotary brake

LQG/LTR CONTROLLER DESIGN FOR ROTARY INVERTED PENDULUM QUANSER REAL-TIME EXPERIMENT

DYNAMICS MOMENT OF INERTIA

MODELLING AND SIMULATION OF AN INVERTED PENDULUM SYSTEM: COMPARISON BETWEEN EXPERIMENT AND CAD PHYSICAL MODEL

Extremum Seeking for Dead-Zone Compensation and Its Application to a Two-Wheeled Robot

Modelling and Control of Ball-Plate System

LAST TIME: Simple Pendulum:

The basic principle to be used in mechanical systems to derive a mathematical model is Newton s law,

ECEn 483 / ME 431 Case Studies. Randal W. Beard Brigham Young University

Lecture 5 Classical Control Overview III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Application of singular perturbation theory in modeling and control of flexible robot arm

D(s) G(s) A control system design definition

A FORCE BALANCE TECHNIQUE FOR MEASUREMENT OF YOUNG'S MODULUS. 1 Introduction

Course Outline. Higher Order Poles: Example. Higher Order Poles. Amme 3500 : System Dynamics & Control. State Space Design. 1 G(s) = s(s + 2)(s +10)

International Journal of Engineering Trends and Technology (IJETT) Volume3 Issue 4 Number1 Jul 2012

ROTATIONAL DOUBLE INVERTED PENDULUM

Classical Dual-Inverted-Pendulum Control

The Control of an Inverted Pendulum

The Control of an Inverted Pendulum

DESIGNING FUZZY LOGIC CONTROLLER FOR INVERTED PENDULUM

CONTROL OF ROBOT CAMERA SYSTEM WITH ACTUATOR S DYNAMICS TO TRACK MOVING OBJECT

Dynamic Modeling of Surface Mounted Permanent Synchronous Motor for Servo motor application

Figure 5.16 Compound pendulum: (a) At rest in equilibrium, (b) General position with coordinate θ, Freebody

Implementation of Twelve-Sector based Direct Torque Control for Induction motor

(Refer Slide Time: 00:01:30 min)

State Feedback MAE 433 Spring 2012 Lab 7

Modeling and Performance Comparison of Triple PID and LQR Controllers for Parallel Rotary Double Inverted Pendulum

a) Find the equation of motion of the system and write it in matrix form.

FUZZY SWING-UP AND STABILIZATION OF REAL INVERTED PENDULUM USING SINGLE RULEBASE

Balancing of an Inverted Pendulum with a SCARA Robot

Swinging-Up and Stabilization Control Based on Natural Frequency for Pendulum Systems

3- DOF Scara type Robot Manipulator using Mamdani Based Fuzzy Controller

Factors Limiting Controlling of an Inverted Pendulum

Interactions Between Two Non-Stationary Pendulums

THE swing-up and stabilization of a single inverted pendulum

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

Mathematical Modelling of an 3 Phase Induction Motor Using MATLAB/Simulink

H-infinity Model Reference Controller Design for Magnetic Levitation System

Examples of Applications of Potential Functions in Problem Solving (Web Appendix to the Paper)

Stabilization of Motion of the Segway 1

Phys 270 Final Exam. Figure 1: Question 1

Robust Optimal Sliding Mode Control of Twin Rotor MIMO System

Transcription:

ISSN (Online): 347-3878, Impact Factor (5): 3.79 Design and Comparison of Different Controllers to Stabilize a Rotary Inverted Pendulum Kambhampati Tejaswi, Alluri Amarendra, Ganta Ramesh 3 M.Tech, Department of EEE, Gudlavalleru engineering college, Gudlavalleru, Krishna [A.P], India Associate professor, Department of EEE, Gudlavalleru engineering college, Gudlavalleru, Krishna [A.P], India 3 Assistant professor, Department of EEE, Gudlavalleru engineering college, Gudlavalleru, Krishna [A.P], India Abstract: This paper describes the design procedures and design of various controllers for stabilizing a Rotary Inverted Pendulum System (RIPS). A PV (Position-Velocity) controller, LQR (Linear Quadratic Regulator) controller with different weighing matrices and an observer-based controller are tried on RIPS in MATLAB Simulink. The outputs obtained with different weighing matrices are observed and compared for different conclusions. The controllers with the best values obtained in the simulation are tested on a test-bed of RIPS and are compared for various aspects. The controllers in Simulink are compared with the controllers in real time. Keywords: Rotary Inverted Pendulum, PV, LQR, Weighing Matrices, Observer-Based control.introduction A typical unstable non-linear Inverted Pendulum system is often used as a benchmark to study various control techniques in control engineering. Analysis of controllers on RIP illustrates the analysis in cases such as control of a space booster rocket and a satellite, an automatic aircraft landing system, aircraft stabilization in the turbulent airflow, stabilization of a cabin in a ship etc. RIP is a test bed for the study of various controllers like PID controller, LQR controller, Robust controllers, Fuzzy-Logic, AI techniques, GA techniques and any more. A normal pendulum is stable when hanging downwards, an inverted pendulum is inherently unstable, and must be actively balanced in order to remain upright, this can be done by applying a torque at the pivot point, by moving the pivot point horizontally as part of a feedback system. In this paper controllers are developed that keep the pendulum upright without any oscillations. The model is simulated using the MATLAB application. The paper is organized as follows. Section deals with the modelling of the system, Section 3 discusses the control techniques PID, LQR, observer based controller, Section 4 gives the test bed results, and Section 5 discusses the conclusion drawn from the analysis of these controllers in Simulink and on test bed..modelling of Rotary Inverted Pendulum The Rotary Inverted Pendulum mainly consists of a rotary arm, vertical pendulum, and a servo motor which drives the system. An encoder is attached to the arm shaft in order to measure the rotation angle of the arm and pendulum. The rotary pendulum model shown in in Fig. the rotary arm in attached to the servo system and is actuated. The arm has a length of L r, a moment of inertia J r, and its angle, θ, increases positively when it rotates counter clockwise (CCW). The servo should turn in the CCW direction when the control voltage is positive, i.e., V m >. The pendulum link is connected to the rotary arm. It has a total length of L p and its center of mass is L p. The moment of inertia about its center of mass is J p. The inverted pendulum angle, α, is zero when it is hanging downwards and increases when rotated CCW. Figure.: Free-body diagram of RIPS The equations of motion (EOM) for the pendulum system were developed using the Euler-Lagrange method.more specifically, the equations that describe the motion of the rotary arm and the pendulum with respect to the servo motor voltage will be obtained using Euler-Lagrange equation L L = Q t q i q i i The Lagrangian of the system is described by L = T V Where, Tis the total kinetic energy of the system and V is the total potential energy of the system The generalized forcesq i are used to describe the nonconservative forces (e.g., friction) applied on the system with respect to the generalized coordinates. In this case the generalized force acting on the rotary arm is Volume 4 Issue 6, June 6 Paper ID: 666 http://dx.doi.org/.75/v5i6.666 68 of 7

ISSN (Online): 347-3878, Impact Factor (5): 3.79 Q = τ D r θ and acting on the pendulum is Q = D p α The total potential energy of the system is T = J r + m p L r θ + 3 m pl p α m p L p L r cos α θ α Solving the above two equations for the Lagrangian and the derivatives, the EOM of the system are V = mg L p cos (α) and the total kinetic energy of the system is m p L r + 4 m pl p 4 m pl p cos α + J r θ m pl p L r cos α α + m pl p sin α cos α θ α + m pl p L r sin α α = τ D r θ m pl r L p cos α θ + J p + 4 m pl p α 4 m pl p cos α sin α θ + m pl p g sin α = D p α The torque applied at the base of the rotary arm is described as τ = η gη m k g k t k m (V m k m θ) R m When the nonlinear equations are linearized about the operating point θ, α = (,), the resultant EMO of the inverted pendulum are defined as: m p L r + J r θ m pl p L r α = τ D r θ and Solving the above equations for the acceleration terms yields m pl r L p θ + J p + 4 m pl p α + m pl p gα = D p α and Where θ = J T J p + 4 m pl p D r θ + m pl p L r D p α + 4 m p L p L r gα + J p + 4 m pl p τ α = J T m pl p L r D r θ J r + m p L r D p α m pl p g J r + m p L r α m pl p L r τ J T = J p m p L r + J r J p + 4 J rm p L p The A and B matrices for state-space representation can then be found as A = J T 4 m p L p L r g J p + 4 m pl p D r m pl p L r D p m pl p g J r + m p L r m pl p L r D r J r + m p L r D p B = J T J p + 4 m pl p m pl p L r Volume 4 Issue 6, June 6 Paper ID: 666 http://dx.doi.org/.75/v5i6.666 69 of 7

ISSN (Online): 347-3878, Impact Factor (5): 3.79 3.Design of Controllers for Rotary Inverted Pendulum 3. PV (Position-velocity) Control In this paper we will find control strategies that balance the pendulum in the upright position while maintaining a desired position of the arm. When balancing the system, the pendulum angle α is small and balancing can be accomplished with a simple PD controller, as shown in Figure 3... The control law can then be expressed as u = k p,θ θ r θ k p,α α k d,θ θ k d,α α element of Q is increased, therefore, the cost function increases the penalty associated with any deviations from the desired set-point of that state variable, and thus the specific control gain will be larger. When the values of the R matrix are increased, a larger penalty is applied to the aggressiveness of the control action and the control gains are uniformly decreased. In our case the state vector x is defined x = [θ α θ α ] T Where, k p,θ is the arm angle proportional gain, k p,α is the pendulum angle proportional gain, k d,θ is the arm angle derivative gain, k d,α is the pendulum angle derivative gain. The desired angle of the arm is denoted by θ r and the reference for the pendulum position is zero (i.e. upright position). Figure 3..: Block diagram of an LQR Controller Since there is only one control variable, R is a scalar. The reference signal x ref is set to [θ r ], and the control strategy used to minimize cost function J is thus given by u = K x ref x = k p,θ θ r θ k p,α α k d,θ θ k d,α α This control law is a state-feedback control and is illustrated in the above figure. It is equivalent to the PV control designed. The LQR gain matrix K is obtained by using MATLAB software, using code lqr(a,b,q,r). Figure 3..: Block Diagram of PV Controller 3.3 Observer-Based control As mentioned, the integral term is eliminated taking the constraints of noise and derivative control is used as a velocity feedback and only negative velocity is fed-back to the system. And in practical system we use a filter to suppress the noise generated by the derivative control. By trial and error method we obtain the gain values of the controller as K d =, K p = for the control of the rotary arm and K d =.5, K p = 3 for the control of the pendulum. 3. LQR Controller Linear Quadratic Regulator (LQR) theory is a technique that is ideally suited for finding the parameters of the pendulum balance controller. Given that the equations of motion of the system can be described in the form x = Ax + Bu Where Aand Bare the state and input matrices, respectively, the LQR algorithm computes a control law u such that the performance criterion or cost function J = x ref x t T Q x ref x t + u t T Ru t dt is minimized. The design matrices Q and R hold the penalties on the deviations of the state variables from their set-point and the control actions, respectively. When an Figure 3.3.: Block diagram of observer based control In LQR, all the states are utilised which is an unnecessary action. Hence, here in observer control, we use only the states which are necessary for the control action. To address the situation where not all the state variables are measured, a state estimator must be designed. A schematic of the state estimator is shown below. The condition to be met is that the system states are completely observable. The dynamics of the state estimate is described by the following equation. x = Ax + Bu + L(y y) Volume 4 Issue 6, June 6 Paper ID: 666 http://dx.doi.org/.75/v5i6.666 7 of 7

ISSN (Online): 347-3878, Impact Factor (5): 3.79 The dynamics of the error in the state estimate is described by e = x x = Ax + Bu (Ax + Bu + L Cx Cx ) e = A LC e 4. PV Controller Combining the LQR with the state estimate gives us the full compensator and the state-space matrices are given by x e = A BK BK A LC x e + BN r Figure 4..: Simulink Model of PV Controller y = C x e + r 4.Simulation & Results The model parameters are shown in below table. Figure 4..: Response of arm for a PV Controller Table : Rotary Inverted pendulum Parameters Motor R m = 8.4 Resistance K t =.4 K m =.4 Rotary Arm M r =.95 L r =.85 J r = M r *L r / D r =.5 Pendulum Link M p =.4 L p =.9 J p = M p *L p / D p =.5 g = 9.8 Current-torque (N-m/A) Back-emf constant (V-s/rad) Mass (kg) Total length (m) Moment of inertia about pivot (kgm^) Equivalent Viscous Damping Coefficient (N-m-s/rad) Mass (kg) Total length (m) Moment of inertia about pivot (kgm^) Equivalent Viscous Damping Coefficient (N-m-s/rad) Gravity Constant Figure 4..3: Response of Pendulum for a PV 4. LQR Controller Figure 4..: Simulink Model of an LQR Controller For R=; Q=[ ; 5 ; ; ]: K = [4.47.358.9364.4866] After substituting RIP parameters in A and B matrices, we can get A = 49.75 4.983 49.493 6.69 4.7448 86.356 Figure 4..: Response of arm B = 49.775 49.493 Figure 4..3: Response of pendulum For R=5, Q=[ ; 5 ; ; ]: K = [.547.36..85] Volume 4 Issue 6, June 6 Paper ID: 666 http://dx.doi.org/.75/v5i6.666 7 of 7

ISSN (Online): 347-3878, Impact Factor (5): 3.79 4.4 Comparison of PV and LQR controllers Figure 4..4: Response of arm Figure 4.4.: Response of Rotary arm Figure 4..5: Response of pendulum For R=5, Q=[ ; 5 ; ; ]: K = [.8944.586.499.889] Figure 4..8: Response of arm Figure 4..9: Response of pendulum 4.3 Observer-Based control Figure 4.3.: Simulink Model of observer-based control Figure 4.3.: Response of Rotary arm 5.Conclusions Figure 4.4.: Response of Pendulum From the simulation results, we can observe that the system can be stabilized by many controllers. But the necessity is for the controller with better response. Among PV and LQR controllers, LQR controller gives much better response. Using the Observer-based control, we can minimize the error and neglect the unnecessary states while controlling. Even though there wouldn t be any difference in the output, but coming to the application oriented it simplifies and reduces the cost required to build the application. References [] Control Systems Engineering, 6 th Edition by Norman S Nise, John Wiley & Sons Inc.,. [] Feedback Systems, Electronic Edition.b, K.J. Astrom, Richard M Murray, Princeton University Press,. [3] Feedback Control of Dynamic Systems, 6 th Edition, Gene F Franklin, J Dvaid Powell, Abbas Emai- Naeini, Pearson Higher Education Inc.,. [4] Modern Control Systems, th Edition, Richard C Dorf, Robert H Bishop, Pearson Higher Education,. [5] Modern Control Engineering, 5 th Edition, Katsuhiko Ogata, Pearson Education, [6] Automatic control Systems, 9 th Edition, Farid Golnaraghi, Benajmin C Kuo, John Wiley & Sons Inc.,. [7] Control Systems Engineering, 5 th Edition, I J Nagrath, M Gopal, Anshan Ltd and New Age International Ltd, 8. [8] Mechatronics, 3 rd Edition, W Bolton, Pearson Education Ltd, 3 Figure 4.3.3: Response of pendulum Volume 4 Issue 6, June 6 Paper ID: 666 http://dx.doi.org/.75/v5i6.666 7 of 7