S13 11 Design of A Fuzzy Controller for Inverted Pendulum

Similar documents
Exercise Solution: A Fuzzy Controller for the Pole Balancing Problem

FUZZY LOGIC CONTROL. Helsinki University of Technology Control Engineering Laboratory

Reference Variables Generation Using a Fuzzy Trajectory Controller for PM Tubular Linear Synchronous Motor Drive

What is all the Fuzz about?

Chapter 7 Fuzzy Logic Controller

Introduction to Fuzzy Logic. IJCAI2018 Tutorial

SOLUTION: 1. First define the temperature range, e.g. [0 0,40 0 ].

FUZZY INFERENCE. Siti Zaiton Mohd Hashim, PhD

Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Case study Summary

Tuning Fuzzy Control Rules via Genetic Algorithms: An Experimental Evaluation

CHAPTER 4 FREQUENCY STABILIZATION USING FUZZY LOGIC CONTROLLER

Experimental Verification of Stability Region of Balancing a Single-wheel Robot: an Inverted Stick Model Approach

What is all the Fuzz about?

Fuzzy Logic Based Path Planning for Quadrotor

2. Motion Analysis - Sim-Mechanics

Real Time Control of a Flexible Joint Manipulator Using Interval Type-2 Fuzzy Logic Controller

FUZZY SYSTEMS: Basics using MATLAB Fuzzy Toolbox. Heikki N. Koivo

Applications. Human and animal motion Robotics control Hair Plants Molecular motion

Chapter 37. Wave Optics

CHAPTER 6 SOLUTION TO NETWORK TRAFFIC PROBLEM IN MIGRATING PARALLEL CRAWLERS USING FUZZY LOGIC

Simulation. x i. x i+1. degrees of freedom equations of motion. Newtonian laws gravity. ground contact forces

CHAPTER 5 FUZZY LOGIC CONTROL

FLORIDA INTERNATIONAL UNIVERSITY EEL-6681 FUZZY SYSTEMS

FUZZY INFERENCE SYSTEMS

Available online at ScienceDirect. Procedia Computer Science 76 (2015 )

Centroid Principles. Object s center of gravity or center of mass. Graphically labeled as

Fuzzy based Excitation system for Synchronous Generator

Introduction to Intelligent Control Part 2

Reconfigurable Manipulator Simulation for Robotics and Multimodal Machine Learning Application: Aaria

Nature of Code. Patrick Dwyer Fall 2005 Week 4 - September 27 th

Modeling and Control of Non Linear Systems

Fuzzy rule-based decision making model for classification of aquaculture farms

Experiment 6 SIMULINK

FUZZY LOGIC TECHNIQUES. on random processes. In such situations, fuzzy logic exhibits immense potential for

Experiment 9: Inverted Pendulum using Torsion Control System

Fuzzy Logic Controller

Balancing Control of Two Wheeled Mobile Robot Based on Decoupling Controller

Interactive Educational Software for Dynamic Systems Control

Trajectory Tracking of a Nonholonomic Wheeleed Mobile Robot Using Hybrid Controller

Review of Sine, Cosine, and Tangent for Right Triangle

Chapter 37. Interference of Light Waves

Dinner for Two, Reprise

Fuzzy Set, Fuzzy Logic, and its Applications

Chapter 23. Geometrical Optics (lecture 1: mirrors) Dr. Armen Kocharian

Worksheet 3.5: Triple Integrals in Spherical Coordinates. Warm-Up: Spherical Coordinates (ρ, φ, θ)

FUZZY SYSTEM FOR PLC

Design of Fuzzy Logic Controller for Speed Regulation of BLDC motor using MATLAB

Failure-Free Genetic Algorithm Optimization of a System Controller Using SAFE/LEARNING Controllers in Tandem

ROSE-HULMAN INSTITUTE OF TECHNOLOGY

Selection of Defuzzification Method to Obtain Crisp Value for Representing Uncertain Data in a Modified Sweep Algorithm

TABLE OF CONTENTS SECTION 2 BACKGROUND AND LITERATURE REVIEW... 3 SECTION 3 WAVE REFLECTION AND TRANSMISSION IN RODS Introduction...

PRECALCULUS MATH Trigonometry 9-12

Modeling an Impulse in Simulink

7. Decision Making

Introduction 3 Fuzzy Inference. Aleksandar Rakić Contents


DYNAMIC ANALYSIS AND OPTIMIZATION OF A KINEMATICALLY-REDUNDANT PLANAR PARALLEL MANIPULATOR

Design of Different Fuzzy Controllers for Delayed Systems

Fuzzy Systems. Fuzzy Systems in Knowledge Engineering. Chapter 4. Christian Jacob. 4. Fuzzy Systems. Fuzzy Systems in Knowledge Engineering

6th WSEAS International Conference on EDUCATION and EDUCATIONAL TECHNOLOGY, Italy, November 21-23,

This was written by a designer of inertial guidance machines, & is correct. **********************************************************************

Optics II. Reflection and Mirrors

NOT COMPLETE. θ 4 B 2 = O 2 O 4 = A 2 = A 1 B 1 O 2 KINEMATIC SYNTHESIS

Fuzzy If-Then Rules. Fuzzy If-Then Rules. Adnan Yazıcı

Modeling and Fuzzy Logic Control of a Quadrotor UAV

Generalized barycentric coordinates

Outlines. Fuzzy Membership Function Design Using Information Theory Measures and Genetic Algorithms. Outlines

IMPLEMENTATION OF BALL-AND-BEAM CONTROL SYSTEM AS AN INSTANCE OF SIMULINK TO 32-BIT MICROCONTROLLER INTERFACE

Lecture Wave Optics. Physics Help Q&A: tutor.leiacademy.org

Pick and Place Robot Simulation

Exploring Gaussian and Triangular Primary Membership Functions in Non-Stationary Fuzzy Sets

Robotics (Kinematics) Winter 1393 Bonab University

Fuzzy logic controllers

POSITION CONTROL OF DC SERVO MOTOR USING FUZZY LOGIC CONTROLLER

Geom6 3MediansAndAltitudesOfTrianglesNotes.notebook March 23, P Medians and Altitudes of Triangles

MODELING FOR RESIDUAL STRESS, SURFACE ROUGHNESS AND TOOL WEAR USING AN ADAPTIVE NEURO FUZZY INFERENCE SYSTEM

Adaptive Volume Rendering using Fuzzy Logic Control

Dra. Ma. del Pilar Gómez Gil Primavera 2014

Self-Learning Fuzzy Controllers Based on Temporal Back Propagation

Manifolds Pt. 1. PHYS Southern Illinois University. August 24, 2016

fuzzylite a fuzzy logic control library in C++

Intelligent Control. 4^ Springer. A Hybrid Approach Based on Fuzzy Logic, Neural Networks and Genetic Algorithms. Nazmul Siddique.

ROBOTICS 01PEEQW Laboratory Project #1. Basilio Bona DAUIN Politecnico di Torino

SEMI-ACTIVE CONTROL OF BUILDING STRUCTURES USING A NEURO-FUZZY CONTROLLER WITH ACCELERATION FEEDBACK

Figure-12 Membership Grades of x o in the Sets A and B: μ A (x o ) =0.75 and μb(xo) =0.25

Development of Fuzzy Logic Controller by Particle Swarm Optimization Algorithm for Semi-active Suspension System using Magneto-rheological Damper

ROBOTICS 01PEEQW Laboratory Project #1. Basilio Bona DAUIN Politecnico di Torino

Speed regulation in fan rotation using fuzzy inference system

CHAPTER 4 FUZZY LOGIC, K-MEANS, FUZZY C-MEANS AND BAYESIAN METHODS

Introduction to Matlab Simulink. Control Systems

Lecture 17. ENGR-1100 Introduction to Engineering Analysis CENTROID OF COMPOSITE AREAS

GE s Revolution CT MATLAB III: CT. Kathleen Chen March 20, 2018

Intelligent Mobile Satellite Antenna Tracking System Design

Chapter 1 Introduction

CONTROLO th Portuguese Conference on Automatic Control

Fast Hybrid PSO and Tabu Search Approach for Optimization of a Fuzzy Controller

Fuzzy LQR Controller for Heading Control of an Unmanned Surface Vessel

Vector Addition. Qty Item Part Number 1 Force Table ME-9447B 1 Mass and Hanger Set ME Carpenter s level 1 String

Fuzzy Logic Using Matlab

System modeling using Simulink and Simscape

Transcription:

S13 11 Design of A Fuzzy Controller for Inverted Pendulum Intermediate Report Otso Mäki Vesa Nikkilä Sami E Madhoun In a reporting event, the status of the project is presented by using the project plan as a basis. Do not make any changes to the original plan, but report only the modifications to the original plan. Show also what you have achieved this far in the project.

Project Goal The goal of the project is to design a fuzzy controller to be used in Simulink to control and stabilize two different systems. The systems examined are the inverted pendulum and the ball and beam system. Figure 1: Inverted pendulum The inverted pendulum model can be seen in Figure 1. The model has one one input which controls the acceleration of the cart. With right control values, it is possible to stabilize the rod which is attached to the cart. Sometimes the inverted pendulum problem contains the problem of also controlling the position of the cart while balancing the pendulum. However, it is not part of this project and only the angle of the pendulum is controlled.

Second problem is to control ball and beam system (Figure 2). In this task, we will control the angular acceleration θ. Figure 2: Ball and beam system

Project Structure This project consists of the following work packages: Revision of fuzzy control theory We will revise the theory of fuzzy control (Mendel M. Jerry, Fuzzy Logic Systems for Engineering: A Tutorial) Workload: 5 hours/group member Deadline: 8.2 Completed! Designing the structure of the fuzzy control algorithm Separate functions are needed for fuzzification, decision making and defuzzification Steps in designing: i. Identify the inputs and outputs of the overall function and determine their formats ii. Find what are the inputs from the first function to the second function etc. iii. Determine the main computational problems in each of the three functions Workload: 20 hours/group member Deadline: 15.2 Completed! Implementing the algorithm and verifying it with by comparing it to Matlab s own implementation of fuzzy control Workload: 30 hours/group member Deadline: 20.3 Completed! Create Simulink models for the inverted pendulum and the ball and beam system A straightforward part that can be done simultaneously with the implementation Workload: 5 hours/group member Deadline: 20.3 Completed! Tuning the controller. Select the input variables for both problems Select the number and shape of membership functions for both inputs and output Create the decision matrix governing the rules of the controller Workload: 5 hours/group member Deadline: 1.4 Pending Final documentation and creating example cases for presentation Workload: 10 hours/group member Deadline: 1.5

Not started State space representation Inverted pendulum Let x 1 = θ and x 2 = θ. Then: Where g = 9,81 (the gravity of Earth) m c = 1 (mass of the cart) m = 0,1 (mass of the pole) l = 0,5 (half length of the pole) Ball-and-beam Let x = ( r, r, θ, θ). Here r denotes the distance between beam s axle and balls origin. Where

α = 0,7143 β = 9,81 Fuzzy controller (for inverted pendulum) Reviewing the theory of fuzzy control Fuzzy control logics can be divided into three phases (Figure 3): Mapping inputs. In this phase we calculate how much the input value belongs to each membership function. In the case of inverted pendulum, we have two inputs: theta and thetad. For both of these inputs, there exist 5 membership functions (10 in total). Applying rules. So far, we have calculated the belonging of input to each MF. Next thing to do is to form rule matrix and apply it to the input belongings (for each MF). After this phase, we will know how much each input belong to each output membership functions. Defuzzification. In this phase we will get a real number for the output. Implemented controller Figure 3: Fuzzy control The controller (Figure 4) has total 6 inputs and 1 output. Inputs and outputs are explained in table 1. Figure 4: The fuzzy controller

Table 1: IOs for the fuzzy controller in case of inverted pendulum Inputs Name Type Description theta scalar Angle error thetad scalar Angular speed error MFin1 matrix Membership functions for theta MFin2 matrix Membership functions for thetad R matrix Rule matrix MFout matrix Membership functions for output Outputs Name Type Description F scalar Applied force to the cart Tuning the controller We tuned the controller using Fuzzy toolbox. In this way, we saved time because of the graphical interface. As it can be seen from table above, we used matrix notation to represent membership function set. We used triangular membership functions. We need three points on the base of one triangle to express left, center and right point. We can encapsulate these points to one column which will now represent one membership function: In our case, 5 membership function are adequate for theta, thetad and for output. Note that the most left and right triangles are split from the middle because we want the center point to be located on the boundary.

Figure 5: Membership function for theta and thetad Figure 6: Output membership functions

Rules for the controller: Figure 7: Controller parameters for pendulum Angle θ NB NS ZO PS PB NB NB NB NB NS ZO NS NB NB NS ZO PS Angular speed θ ZO NB NS ZO PS PB PS NS ZO PS PB PB PB ZO PS PB PB PB Initial results

Figure 8: Controller stabilizes pendulum easily without vibration Fun link Figure 9: Results with sine interference (amplitude = 4; 1/T = 0,5) http://vesa.hosting.evecy.fi/inverted_pendulum/interface.html