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

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

Non-Linear Swing-Up and Stabilizing Control of an Inverted Pendulum System

Lab 6d: Self-Erecting Inverted Pendulum (SEIP)

Controlling the Inverted Pendulum

Application of Neural Networks for Control of Inverted Pendulum

Reverse Order Swing-up Control of Serial Double Inverted Pendulums

Stabilization fuzzy control of inverted pendulum systems

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

Index Terms Magnetic Levitation System, Interval type-2 fuzzy logic controller, Self tuning type-2 fuzzy controller.

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

A COMPARATIVE ANALYSIS OF FUZZY BASED HYBRID ANFIS CONTROLLER FOR STABILIZATION AND CONTROL OF NON- LINEAR SYSTEMS

SWINGING UP A PENDULUM BY ENERGY CONTROL

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

University of Petroleum & Energy Studies, Dehradun Uttrakhand, India

Inverted Pendulum System

Stabilizing the dual inverted pendulum

Different Modelling and Controlling Technique For Stabilization Of Inverted Pendulam

Adaptive Fuzzy PID For The Control Of Ball And Beam System

1 Introduction. 2 Process description

Neural Network Control of an Inverted Pendulum on a Cart

Swinging Up a Pendulum by Energy Control

Nonlinear Controller Design of the Inverted Pendulum System based on Extended State Observer Limin Du, Fucheng Cao

Lab 5a: Pole Placement for the Inverted Pendulum

Inverted Pendulum. Objectives

THE swing-up and stabilization of a single inverted pendulum

THE REACTION WHEEL PENDULUM

Lab 6a: Pole Placement for the Inverted Pendulum

Modelling and Control of DWR 1.0 A Two Wheeled Mobile Robot

Balancing of an Inverted Pendulum with a SCARA Robot

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

Digital Pendulum Control Experiments

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

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

Mechatronic System Case Study: Rotary Inverted Pendulum Dynamic System Investigation

Model Order Reduction of Interval Systems using Mihailov Criterion and Factor Division Method

q HYBRID CONTROL FOR BALANCE 0.5 Position: q (radian) q Time: t (seconds) q1 err (radian)

Identification and Control of Nonlinear Systems using Soft Computing Techniques

FUZZY-ARITHMETIC-BASED LYAPUNOV FUNCTION FOR DESIGN OF FUZZY CONTROLLERS Changjiu Zhou

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

Table of Contents 1.0 OBJECTIVE APPARATUS PROCEDURE LAB PREP WORK POLE-PLACEMENT DESIGN

Stability Analysis and State Feedback Stabilization of Inverted Pendulum

MEAM 510 Fall 2011 Bruce D. Kothmann

Interactions Between Two Non-Stationary Pendulums

ENERGY BASED CONTROL OF A CLASS OF UNDERACTUATED. Mark W. Spong. Coordinated Science Laboratory, University of Illinois, 1308 West Main Street,

TIME DELAY AND FEEDBACK CONTROL OF AN INVERTED PENDULUM WITH STICK SLIP FRICTION

θ + mgl θ = 0 or θ + ω 2 θ = 0 (2) ω 2 = I θ = mgl sinθ (1) + Ml 2 I = I CM mgl Kater s Pendulum The Compound Pendulum

A GLOBAL STABILIZATION STRATEGY FOR AN INVERTED PENDULUM. B. Srinivasan, P. Huguenin, K. Guemghar, and D. Bonvin

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

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

MEAM 510 Fall 2012 Bruce D. Kothmann

Control Education Using Pendulum Apparatus

Ê«u œ wko **Ë ögmo qo u * «d u «dJO * * W?? ö)«

Design and Stability Analysis of Single-Input Fuzzy Logic Controller

An Adaptive LQG Combined With the MRAS Based LFFC for Motion Control Systems

A Fuzzy Control Strategy for Acrobots Combining Model-Free and Model-Based Control

Rotary Inverted Pendulum

Independent Control of Speed and Torque in a Vector Controlled Induction Motor Drive using Predictive Current Controller and SVPWM

Dynamic Modeling of Rotary Double Inverted Pendulum Using Classical Mechanics

FRICTION AND FRICTION COMPENSATION IN THE FURUTA PENDULUM

University of Utah Electrical & Computer Engineering Department ECE 3510 Lab 9 Inverted Pendulum

A Boiler-Turbine System Control Using A Fuzzy Auto-Regressive Moving Average (FARMA) Model

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

Another Whack at the Pendulum Pump and Balance the Pendulum

Chasing Chaos With a Magnetic Pendulum

DESIGNING FUZZY LOGIC CONTROLLER FOR INVERTED PENDULUM

available online at CONTROL OF THE DOUBLE INVERTED PENDULUM ON A CART USING THE NATURAL MOTION

El péndulo invertido: un banco de pruebas para el control no lineal. XXV Jornadas de Automática

The Control of an Inverted Pendulum

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

Laboratory Exercise 1 DC servo

Research Article On the Dynamics of the Furuta Pendulum

THE FLOATING DUTCHMEN Three Dimensional Driven-Arm Inverted Pendulum

System simulation using Matlab, state plane plots

The Control of an Inverted Pendulum

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

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

Hybrid Control of the Pendubot

THE system is controlled by various approaches using the

Design of Fuzzy Logic Control System for Segway Type Mobile Robots

KINETIC ENERGY SHAPING IN THE INVERTED PENDULUM

APPLICATION OF ADAPTIVE CONTROLLER TO WATER HYDRAULIC SERVO CYLINDER

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

CHAPTER 2 TEST REVIEW

Application Note #3413

Intelligent Stabilization Control to An Arbitrary Equilibrium Point of Double Pendulum

Potential Energy & Conservation of Energy

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

Double Inverted Pendulum (DBIP)

A Novel Method on Disturbance Analysis and Feed-forward Compensation in Permanent Magnet Linear Motor System

Inverted Pendulum with Moving Reference for Benchmarking Control Systems Performance

H-infinity Model Reference Controller Design for Magnetic Levitation System

Lecture 6: Control Problems and Solutions. CS 344R: Robotics Benjamin Kuipers

Teaching State Variable Feedback to Technology Students Using MATLAB and SIMULINK

A Systematic and Simple Approach for Designing Takagi-Sugeno Fuzzy Controller with Reduced Data

Design of Fuzzy PD-Controlled Overhead Crane System with Anti-Swing Compensation

GAIN SCHEDULING CONTROL WITH MULTI-LOOP PID FOR 2- DOF ARM ROBOT TRAJECTORY CONTROL

ROTATIONAL DOUBLE INVERTED PENDULUM

Modelling, Simulation and Nonlinear Control of Permanent Magnet Linear Synchronous Motor

Lab 10: Harmonic Motion and the Pendulum

Oscillations. PHYS 101 Previous Exam Problems CHAPTER. Simple harmonic motion Mass-spring system Energy in SHM Pendulums

Transcription:

005-010 JATIT All rights reserved wwwjatitorg FUZZY SWING-UP AND STABILIZATION OF REAL INVERTED PENDULUM USING SINGLE RULEBASE SINGH VIVEKKUMAR RADHAMOHAN, MONA SUBRAMANIAM A, DR MJNIGAM Indian Institute of Technology Roorkee, Roorkee, India-47667 ABSTRACT In this paper a real time control for swing-up stabilization of inverted pendulum is designed using Fuzzy logic In the model proposed here a single rulebase is used to control both position and angle simultaneously during both swing-up and stabilization The proposed fuzzy control scheme successfully fulfills the control objectives and also has an excellent stabilizing ability to overcome the external impact acting on the pendulum system The effectiveness of this controller is verified by experiments on a simple inverted pendulum with fixed cart length KEYWORDS : Fuzzy control, Inverted Pendulum, Swing-up Stabilization 1 INTRODUCTION Inverted pendulum being an inherently unstable system is often used as a benchmark for verifying the performance and effectiveness of a control algorithm Inverted pendulum is a combination of various research areas like robotics, control theory, computer control etc The inverted pendulum consists of a motor controlled carton to which a pendulum is freely pivoted The control task is to swing the pendulum from vertically downward position to vertically upward position and to keep the pendulum in vertically upright position once it reaches there The cart should also be placed at its initial position All this is to be done just by moving the cart back and forth on the rail without crossing the limit switches In literature we can find a number of control algorithms for swing-up stabilization Wei et al [1] presented a nonlinear control strategy by decomposing the control law into a sequence of steps Chung and Houser [] proposed a nonlinear state feedback control law to regulate the cart position as well as the swinging energy of the pendulum Zhao and Spong [3] applied a hybridcontrol strategy, which globally asymptotically stabilizes the system for all initial conditions Their method does not take the rail length restriction into account Chatterjee et al [4] proposed an energy based control law that swings up and stabilizes a cart-pendulum system with restricted travel and restricted control force in simulations as well as in real-time experiments However, a major problem with their method is to design suitable potential wells and coefficients using intuition and time consuming iterations All these methods require an extensive knowledge of system dynamics However the use of fuzzy logic does not require extensive knowledge of the system This feature becomes of major importance when dealing with complex non-linear systems Moreover, the dynamic modeling of systems show a dependency on their mechanical parameters, subject to lifetime modifications (friction factors affected by the abuse of joints), and on their dynamical parameters that vary with the performed task These considerations also give advantage of fuzzy control methods over other non-linear methods A number of techniques using fuzzy logic have been proposed Wong [5] adopted the genetic algorithm to tune all the membership functions of a fuzzy system in order to keep an inverted pendulum upright Yamakawa [6] designed a high-speed fuzzy controller hardware system and used only seven fuzzy rules to control 43

005-010 JATIT All rights reserved wwwjatitorg the angle of an inverted pendulum But these methods do not take the rail length into consideration Matsuura [7] and Yasunobu [8] both used the information of the cart to build a set of 49 fuzzy rules for conducting the virtual target angle, and then used the virtual target angle and the information of the pendulum to construct another set of 49 fuzzy rules for total stabilization Most of the fuzzy control algorithms used for swing-up and stabilization use a large number of membership functions The parameters of these membership functions are difficult to decide Moreover, large number of membership functions makes it difficult to determine the rules in rulebase Here we propose to use a single fuzzy rule base for angle and position control This rule base takes care of swing up and stabilization as well The design of this rule base uses 3x3 rules or in other words 9 rule rulebase which is a relatively simple design With less number of membership functions and rules the number of parameters is reduced considerably We have combined the position error and angular error to obtain a single error signal e, similarly the differential position error and differential angular error are combined to obtain a single differential error signal de These signals are given to the fuzzy controller thereby, eliminating two different fuzzy controllers being used for the purpose With this the number of tuning parameters is reduced as well We use switches to change the gains for swingup and stabilization, just by changing the gains we are able to change the mode between swing up and stabilization During swing up mode we induce energy into the system by triggering only those rules which increase the energy into the inverted pendulum This process is continued until the pendulum reaches 30 o from the final vertically upright position, the stabilizer mode of control comes into effect at this point and a handover is made In the stabilization mode the pendulum is maintained in upright position with minimum error Organization of the paper is as follows Section describes the simple inverted pendulum system used in experiment and its parameters Section 3 describes the modeling of simple inverted pendulum Section 4 describes the scheme for development of fuzzy logic controller Section 5 provides experimental results to demonstrate the effectiveness of the fuzzy controller proposed here Section 6 discusses the conclusion of the experiment REAL INVERTED PENDULUM SYSTEM Fig1 Googol Tech Simple Inverted Pendulum The pendulum used here is a Googol Inverted pendulum It consists of a motor driven cart and a pendulum freely pivoted above it, along with sensors and electronic circuit The pendulum can move freely in the vertical plane The cart movement is controlled by a DC motor which is connected to the motor by grooved rubber belt Control algorithm and data acquisition are realized with Mathworks Matlab Simulink on a personal computer The system parameters are M m b cart mass: M = 1096 kg rod mass: m = 0109 kg friction coefficient of the cart: b = 01 Nm/s l distance from the rod axis rotation center to the rod mass center: l = 05 m I rod inertia: I = 00034 kgmm Total rail length is 06 m 3 MODELING OF THE INVERTED PENDULUM After ignoring the air resistance and other frictions, 1-stage linear IP can be simplified as a system of cart and even quality rod, as shown in Fig 44

005-010 JATIT All rights reserved wwwjatitorg Fig Cart and Rod Force analysis Where, F: force acting on the cart X: cart position N: interactive force in the horizontal direction P: interactive force in the vertical direction θ: angle between the rod and vertically downward direction From the forces in the horizontal direction, we obtain: ( M + m) x+ b x+ mlθ cosθ mlθ sinθ = F (4) To get the second dynamic equation, analyze the force in the vertical direction then we have d P mg = m dt (5) ( l cosθ ) M x = F b x N (1) From the force acting on the rod in horizontal direction we get: P mg = mlθ sinθ mlθ cosθ (6) By moment conservation: d N = m ( x + l sinθ ) dt () That is Pl sinθ Nl cosθ = I θ (7) Combining equation(6)and(7), we get the second dynamic equation: N = m x+ ml θ cosθ ml θ sinθ (3) Combining with equation (1), the first dynamic equation is obtained: ( I + ml (8) ) θ + mgl sinθ = ml x cosθ 45

005-010 JATIT All rights reserved wwwjatitorg 4 CONTROLLER DESIGN Here we have used fuzzy logic for the design of controller The controller is split into two stages: swing-up and stabilization The swing-up routine swings the pendulum from the initial vertically downward position to vertically upward position without crossing the switch limits The stabilization routine balances the pendulum in vertically upright position at the desired cart position Swing-up and stabilization routines are discussed below Similarly or E is negative if x > 0 and θ cosθ < 0 x < 0 and θ cosθ So to pump the energy into the system we design our rulebase such that E is positive most of the times and never negative Energy is pumped into the pendulum slowly and the pendulum is swung up to nearly vertically upright position >0 41 Swing-up routine In the method proposed here we aim to swing up the pendulum from vertical downward o position to a ± 30 of the vertical position While swinging up care is taken that the pendulum does not cross the rail limits as it is a limited rail length situation The basic strategy is to move the cart in such a way that energy is slowly pumped into the pendulum This is achieved by satisfying a particular mathematical condition derived from the mechanical energy equations while designing the rule base of fuzzy control system The total mechanical energy of the pendulum and its derivative E are given by equation [9] 1 E = ml θ + mgl(1 cosθ ) (9) (10) E = mlθ (cosθ ) x From the above equation it follows that energy E can be pumped or removed from the system by changing the sign of E Fig 3 Fuzzy Rulebase and Control surface However one has to keep in mind the length of the rail x while swinging up the pendulum Thus the x generated should be generated by keeping x in mind Instead of using a separate rulebase for controlling the position of pendulum, we subtract the position error x from the angle error θ and position velocity error x from the angular velocity errorθ Now E is positive if < 0 and θ cosθ < 0 x > 0 and θ cos θ >0 or x 46

005-010 JATIT All rights reserved wwwjatitorg Fig 4 Switching mechanism between swing-up and stabilization The gains of x are so adjusted that x values remain very small in the center and becomes significant only at the edges such that it changes the sign of x to avoid cart from crossing limit switches 4 Stabilization Fig 5 Simulink model of the overall system The results obtained are discussed briefly herefig6 shows the angle and position of the pendulum Initially the pendulum is in vertically downward position It swings up gradually, responding to the bounded oscillation of the cart Until 335 seconds the swing-up controller is in control The stabilization algorithm takes over completely for the rest of the time Once the pendulum is swung within o ± 30 of the vertical position the fuzzy stabilization controller takes over from swing up controller The proposed fuzzy stabilization controller uses two input variable e and e Here e is the difference of pendulum angle θ and cart position x, e is the difference of cart velocity from the pendulum angular velocityθ Instead of using a separate rule base for stabilization the gains are switched to another value, while the same fuzzy rule base is used x 5 EXPERIMENTAL SETUP The control algorithm in the above section was applied to a real time inverted pendulum Fig 5 shows the simulink model of the system used in experiment 47

005-010 JATIT All rights reserved wwwjatitorg Fig 6 Swing-up and stabilization of real inverted pendulum with proposed fuzzy controller The pendulum is stabilized within 5 s, the cart oscillations are limited from -0m to 03m during swing up The pendulum keeps oscillating about the reference while in stabilization mode However these oscillations are very small about cm for the cart position and the pendulum angle is within 1, these are basically caused by factors like continuous air disturbances on the rod, non-linear un-modeled dynamics, such as Coulomb friction, pinion backlash, motor dead-zone and magnetic hysteresis, and mechanical imperfections Fig 7 balancing the pendulum after disturbance is provided Fig7 shows the plot of θ during stabilization when momentary external disturbances are applied on the rod Momentary disturbances of magnitude 17 0 and -115 0 are provided to the pendulum by hitting it at time t=16 s and t=3s respectively Each time the pendulum angle is stabilized in less than 3s Fig8 shows the results of the fuzzy controller after changing the reference position The proposed fuzzy controller is able to stabilize the pendulum system and steady state is reached Fig 8 balancing the pendulum after changing the reference cart position 48

005-010 JATIT All rights reserved wwwjatitorg 6 CONCLUSION Experimental results show that the pendulum can be swung-up very conveniently by controlling its energy During swing up energy is pumped into the pendulum until it reaches that of the steady state upright position value While swinging cart is kept within rail limits Once the pendulum is within a specified range of the upright position a stabilization strategy is used to maintain the pendulum in the upright position Experimental results show that this strategy of ours is better than that proposed by [4] [10] [1] Moreover the stabilization strategy is robust and can overcome any external disturbances human control strategy, Proceedings of FUZZIEEE 97, vol 3, 1997 p 65 8 [9] K Yoshida, Swing-Up Control of an Inverted Pendulum by Energy-Based Methods, in Proceedings of the American Control Conference, pp 4045-4047, 1999 [10] K J Åström and K Furuta, Swinging up a pendulum by energy control, Automatica, vol 36, no, pp 87 95, Feb 000 [11] Selcuk Kizir, Zafer Bingul, and Cuneyt Oysu, Fuzzy Control of a Real Time Inverted Pendulum System, Springer-Verlag Berlin Heidelberg, vol 5177, pp674-681, 008 [1] Googol Technology, inverted Pendulum Experimental Manual suitable for GLIP series, nd edition, 006 REFERENCES [1] Q Wei, W P Dayawansa, and W S Levine, Nonlinear controller for an inverted pendulum having restricted travel, Automatica, vol 31, no 6, pp 841-850, 1995 [] C C Chung and J Hauser, Nonlinear control of a swinging pendulum, Automatica, vol 31, no 6, pp 851 86, Jun 1995 [3] J Zhao and M W Spong, Hybrid control for global stabilization of the cart-pendulum system, Automatica, vol 37, no 1, pp 1941 1951, Dec 001 [4] D Chatterjee, A Patra, and H K Joglekar, Swing-up and stabilization of a cartpendulum system under restricted cart track length, Syst Control Lett, vol 47, no 11, pp 355 364, 00 [5] Wong C, Her S, An auto-generating method in the fuzzy system design Proceedings of FUZZ-IEEE 97, vol 3, 1997 p 1651 6 [6] Yamakawa T, Stabilization of an inverted pendulum by a high-speed fuzzy logic controller hardware system, Fuzzy Sets and Systems 1989; 3:161 80 [7] Matsuura K, Fuzzy control of upswing and stabilization of inverted pole including control of cart position, Journal of Japan Society for Fuzzy Theory and Systems 1993; 5():397 408 [8] Yasunobu S, Mori M Swing up fuzzy controller for inverted pendulum based on a 49

005-010 JATIT All rights reserved wwwjatitorg BIOGRAPHY: Singh Vivekkumar Radhamohan received his Bachelor of Engineering degree (Electronics and Communication Engineering) from Bhavnagar University, Bhavnagar India, in 008 Currently, he is pursuing an MTech degree specialized in Control and Guidance from Indian Institute of Technology, Roorkee India His area of research includes Robotic Control, Optimization and Neuro-Fuzzy control Mona Subramaniam A receivied his Bachelor of Engineering degree (Electronics and Communication Engineering) from Visvesvaraya Technological University, India, in 006 Currently, he is pursuing an MTech degree specialized in Control and Guidance from Indian Institute of Technology, Roorkee India His area of research includes Robotic Control, Fuzzy control and Genetic algorithm MJ Nigam received his BTech degree in Electronics and Communication Engineering from Regional Engineering College (now NIT), Warangal(AP),India in 1976, ME degree in Electronics and Communication Engineering with specialization in Control and Guidance in 1978 and the research work leading to the award of PhD degree in Electronics and Computer Engineering in 199 from University of Roorkee (now IIT Roorkee) From 1980-198, he served as a faculty member in the Department of Electronics Engineering, Institute of Technology, Banaras Hindu University, India In 198, he joined as a faculty of University of Roorkee (now IIT Roorkee), Roorkee, India in the Department of Electronics and Computer Engineering and became Reader in 1989, Associate Professor in 1996 and Professor in 009 His main research interests are digital image processing, robotics and filtering techniques A number of research papers in the above areas are published /presented in international journals and conferences 50