Fuzzy Logic Control of a Magnetic Suspension. System Using xpc Target

Similar documents
Magnetic Suspension System Control Using Position and Current Feedback. Senior Project Proposal. Team: Gary Boline and Andrew Michalets

Design and Simulation of a Hybrid Controller for a Multi-Input Multi-Output Magnetic Suspension System

Real-Time System Identification Using TMS320C30. Digital Signal Processor ABSTRACT I. INTRODUCTION

California University of Pennsylvania Department of Applied Engineering & Technology Electrical Engineering Technology

By Vishal Kumar. Project Advisor: Dr. Gary L. Dempsey

DC Motor Speed Control using Artificial Neural Network

Observer-based Engine Cooling Control System (OBCOOL) Project Proposal. Students: Andrew Fouts & Kurtis Liggett. Advisor: Dr.

CHAPTER 6 NEURO-FUZZY CONTROL OF TWO-STAGE KY BOOST CONVERTER

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Proposal

SRV02-Series Rotary Experiment # 3. Ball & Beam. Student Handout

Fuzzy Expert Systems Lecture 9 (Fuzzy Systems Applications) (Fuzzy Control)

Closed Loop Magnetic Levitation Control of a Rotary Inductrack System. Senior Project Proposal. Students: Austin Collins Corey West

Abstract: PWM Inverters need an internal current feedback loop to maintain desired

Lecture#1 Handout. Plant has one or more inputs and one or more outputs, which can be represented by a block, as shown below.

Lab 2: Quanser Hardware and Proportional Control

COMPARATIVE STUDY OF PID AND FUZZY CONTROLLER ON EMBEDDED COMPUTER FOR WATER LEVEL CONTROL

Digital Control of MS-150 Modular Position Servo System

EE 482 : CONTROL SYSTEMS Lab Manual

Study and Simulation for Fuzzy PID Temperature Control System based on ARM Guiling Fan1, a and Ying Liu1, b

Continuous Time Model Predictive Control for a Magnetic Bearing System

CHAPTER 4 FUZZY LOGIC CONTROLLER

From Antenna to Bits:

Implementation of a Choquet Fuzzy Integral Based Controller on a Real Time System

VECTOR CONTROL SCHEME FOR INDUCTION MOTOR WITH DIFFERENT CONTROLLERS FOR NEGLECTING THE END EFFECTS IN HEV APPLICATIONS

Implementation of Fuzzy Controller to Magnetic Levitation System

CHAPTER 3 APPLICATION OF THE CIRCUIT MODEL FOR PHOTOVOLTAIC ENERGY CONVERSION SYSTEM

Control Design Made Easy By Ryan Gordon

Penn State Erie, The Behrend College School of Engineering

A PID Controller for Real-Time DC Motor Speed Control using the C505C Microcontroller

Verification and Optimization of an Operational Amplifier Utilizing a Designed Experiment

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

SERVO MOTOR CONTROL TRAINER

Study on Synchronous Generator Excitation Control Based on FLC

International Journal of Advance Engineering and Research Development

Fuzzy Logic Controller on DC/DC Boost Converter

Chapter 5. Tracking system with MEMS mirror

Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen

A Model-Based Development Environment and Its Application in Engine Control

By Vishal Kumar. Project Advisor: Dr. Gary L. Dempsey

IJITKM Special Issue (ICFTEM-2014) May 2014 pp (ISSN )

CHAPTER 3 METHODOLOGY

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

Laboratory of Advanced Simulations

Students: Andrew Fouts Kurtis Liggett. Advisor: Dr. Dempsey

Software-Defined Radio using Xilinx (SoRaX)

Control System of Tension Test for Spring Fan Wheel Assembly

Optimal Control System Design

Instructional Demos, In-Class Projects, & Hands-On Homework: Active Learning for Electrical Engineering using the Analog Discovery

Implementation of Conventional and Neural Controllers Using Position and Velocity Feedback

Magnetic Levitation System

A Real-Time Platform for Teaching Power System Control Design

EE 461 Experiment #1 Digital Control of DC Servomotor

Observer-based Engine Cooling Control System (OBCOOL) Functional Description & System Block Diagram. Students: Andrew Fouts & Kurtis Liggett

A Do-and-See Approach for Learning Mechatronics Concepts

MODEL BASED DESIGN OF PID CONTROLLER FOR BLDC MOTOR WITH IMPLEMENTATION OF EMBEDDED ARDUINO MEGA CONTROLLER

Design of an Intelligent Pressure Control System Based on the Fuzzy Self-tuning PID Controller

Simulation of Temperature Controller for an Injection Mould Machine using Fuzzy Logic

BS-Electrical Engineering (Spring 1985) University of Oklahoma, Norman, OK

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

Experiential Learning Portfolio for Broadband Electricity

Simulation Analysis of Control System in an Innovative Magnetically-Saturated Controllable Reactor

INTEGRATED PID BASED INTELLIGENT CONTROL FOR THREE TANK SYSTEM

TWO AREA CONTROL OF AGC USING PI & PID CONTROL BY FUZZY LOGIC

SIMULATION AND IMPLEMENTATION OF PID-ANN CONTROLLER FOR CHOPPER FED EMBEDDED PMDC MOTOR

Laboratory set-up for Real-Time study of Electric Drives with Integrated Interfaces for Test and Measurement

EE 451 FINAL SENIOR PROJECT PROPOSAL. Microcontroller-Based Remote Locator Using Asynchronous Serial Communication

Fundamentals of Industrial Control

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

CURRENT FOLLOWER APPROACH BASED PI AND FUZZY LOGIC CONTROLLERS FOR BLDC MOTOR DRIVE SYSTEM FED FROM CUK CONVERTER

Scanning Digital Radar Receiver Project Proposal. Ryan Hamor. Project Advisor: Dr. Brian Huggins

Design and Implementation of Orthogonal Frequency Division Multiplexing (OFDM) Signaling

Design and Simulation of Fuzzy Logic controller for DSTATCOM In Power System

Fuzzy logic control implementation in sensorless PM drive systems

Mag Lev Train 1. By: Paul Friend. Project Advisor: Dr. Anakwa. Date:

Magnetic Levitation System

Experiment Number 1. Revised: Fall 2018 Introduction to MATLAB Simulink and Simulink Resistor Simulations Preface:

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

Enhance operational efficiency with Advanced Process Control (APC) Integration of APC in SIMATIC PCS 7 SIMATIC PCS 7. Answers for industry.

CHAPTER 4 AN EFFICIENT ANFIS BASED SELF TUNING OF PI CONTROLLER FOR CURRENT HARMONIC MITIGATION

Design, Implementation, and Dynamic Behavior of a Power Plant Model

A Robust Fuzzy Speed Control Applied to a Three-Phase Inverter Feeding a Three-Phase Induction Motor.

Using Magnetic Sensors for Absolute Position Detection and Feedback. Kevin Claycomb University of Evansville

Equipment and materials from stockroom:! DC Permanent-magnet Motor (If you can, get the same motor you used last time.)! Dual Power Amp!

Comparative Study of PID and Fuzzy Controllers for Speed Control of DC Motor

Fuzzy auto-tuning for a PID controller

Each individual is to report on the design, simulations, construction, and testing according to the reporting guidelines attached.

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

INTERNET-BASED REAL-TIME CONTROL ARCHITECTURES WITH TIME-DELAY/PACKET-LOSS COMPENSATION

MathWorks Announces Built-in Simulink Support for Arduino, BeagleBoard, and LEGO MINDSTORMS NXT

EE 210: CIRCUITS AND DEVICES

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

OFDM Transceiver using Verilog Proposal

PID Control with Derivative Filtering and Integral Anti-Windup for a DC Servo

Glossary of terms. Short explanation

LABORATORY 4. Palomar College ENGR210 Spring 2017 ASSIGNED: 3/21/17

Design Of PID Controller In Automatic Voltage Regulator (AVR) System Using PSO Technique

Automation of Domestic Flour Mill Using Fuzzy Logic Control

TigreSAT 2010 &2011 June Monthly Report

Precision Flash Lamp Current Measurement Thermal Sensitivity and Analytic Compensation Techniques

Servo Tuning. Dr. Rohan Munasinghe Department. of Electronic and Telecommunication Engineering University of Moratuwa. Thanks to Dr.

Transcription:

Fuzzy Logic Control of a Magnetic Suspension System Using xpc Target by Stephen Friederichs Project Advisors: Dr. Winfred Anakwa and Dr. In Soo Ahn Submitted: December 1, 2004 EE451 Senior Capstone Project

Summary The goal of this project is to create a fuzzy logic controller to stabilize and control a magnetic suspension system using Simulink and an xpc Target box. The fuzzy logic controller will be built and tested in Simulink, and then compiled into C code to be used on the xpc Target box. The xpc is outfitted with A/D and D/A converters to digitize the error voltage and produce the correction voltage necessary to control the system. The controller will be optimized to produce zero steady state error, and minimize rise time and overshoot.

Functional Description Figure 1 shows the high-level block diagram for the entire system. A more detailed description of each sub-system follows. Fig. 1 High Level Block Diagram Host PC w/simulink and xpc Target The PC contains the Simulink and xpc Target application. All of the control models are created using Simulink on the PC. Once complete, the models are compiled into C code, and then transferred to the xpc Target Box using an ethernet connection. xpc Target Box The xpc target box acts as the real-time controller for the magnetic suspension system. The models from the PC are stored on the xpc target box as C code. Program execution and data retrieval are controlled by the host PC via ethernet. The xpc target box contains analog to digital and digital to analog converters which allow it to take data from the magnetic suspension system, and apply control signals to it.

Magnetic Suspension System The magnetic suspension system suspends a metal ball in a magnetic field. Its inputs include a set point, and a reference input. The set point describes the origin of the coordinate plane for the suspension system, which is where the ball will hang at equilibrium. The reference input allows a waveform to be entered for the ball to follow. The outputs of the system include an error signal, and a ball position signal. These are both sent to the xpc Target Box through the A/D converter to control the system. Fig. 2 Control Block Diagram Figure 2 shows the detailed control block diagram for the system. The reference input, set point, and ball position signals combine to form the error signal. The error signal is entered into the xpc Target box, which acts as the controller. The correction signal from the controller is applied to the magnetic suspension system, which acts as the plant. The photosensor measures the ball position and feeds that information to the controller. A detailed diagram of the magnetic suspension plant is shown in figure 3.

Fig. 3 Plant Diagram The ball is suspended using the electromagnet. The coil is driven using the coil driver circuit, the input of which is the voltage u. This voltage is applied directly by the xpc through the digital to analog converter. The current sensor is a one ohm resistor in series which allows measurements of current to be taken. The ball position is determined by the ball breaking a beam of light which is detected with the photo detector. This information is fed back to the xpc through the analog to digital converter.

System Block Diagram Fig. 4 Overall System Block Diagram Figure 4 shows the overall system block diagram. The set point voltage determines where the ball should hang at steady state. This along with a reference input waveform is entered into the overall system, which changes the position of the ball to match the reference input. Fig. 5 System Internal Block Diagram Figure 5 shows the internals of the system. The set point, reference waveform, and negative of the ball position are summed to provide an error signal. This signal is fed into

the controller, which produces a correction signal for the plant. The ball position changes according to the correction signal, and is fed back to the input via the photosensor. Fig. 6 Controller Block Diagram Figure 6 shows the block diagram for the controller. The error signal from the summer is sent through the A/D converter to produce a digital signal for the digital controller in the xpc. The mathematical model of the controller is downloaded from a host PC to the xpc target. The model determines the correction based on the error signal, and the resulting digital signal is turned into an analog signal via the D/A converter. The sampling time of the controller is 1ms. The A/D and D/A converter have ranges of +- 10V. Fig. 7 Plant Block Diagram

Figure 7 shows the plant block diagram. The correction voltage from the controller is applied to a coil driver which changes the voltage to a current. This current is sampled by a 1 ohm resistor used as a current sensor. The current runs through an electromagnetic coil, which suspends the steel ball in its field. The ball position is measured by a photosensor. Fig. 8 Controller Model Block Diagram The fuzzy logic controller operates as a model on the xpc target box. The system is shown in figure 8. The error signal from the A/D converter is fed into the controller, and the change in error is computed and fed in as well. The fuzzy logic controller operates as seen in the flowchart in figure 9. The inputs are 'fuzzified' according to the input membership functions defined in the system. The input membership functions are cut off at the maximum level of certainty as expressed by the fuzzified inputs. Then, the certainty of application of each rule is determined using the product method on the applicable inputs. The final value of each output membership function is chosen as the maximum certainty of application among the applicable rules.

The final output value is found by finding the value which represents the center of gravity of the new output membership functions.. Fig. 9 Fuzzy Logic Flow Chart

Preliminary Results The work up to this point has concerned creating a fuzzy logic controller to stabilize the magnetic suspension system. First, the previous work was recreated in Simulink to ensure that the system would behave appropriately. This model was compiled and sent to the xpc, where it produced the results seen in figure 10. Fig.10 Results using the previous controller Fig.11 Results from the previous work These results agreed with the results seen in the previous work, seen in figure 2. At this point, a simple fuzzy logic system was designed and implemented on paper, and then recreated in Matlab to gain familiarity with the tools and ensure the functioning of a fuzzy logic system in Matlab as compared to theoretical calculations.

Fig. 12-Simulink Simulation of stabilized magnetic suspension system (Ball position on top) After this system was verified, a fuzzy logic controller was created to attempt to stabilize the magnetic suspension system. This first generation controller made decisions based on the error in the system. This controller failed to stabilize the system. A second generation employed change in error as well as error, and had 15 membership functions and 56 rules. It stabilized the system as seen in figure 12, but was too complex to be run on the xpc. A third generation model employs error and change in error, and also uses gain adjustment on all input and output blocks, so the controller can be tuned without changing rules or membership functions. This system employs 8 membership functions, and 16 rules. It runs on the xpc with a step time of 1ms. It is currently being tuned to stabilize the system and produce zero steady state error.

Schedule Project Tasks Schedule - Create fuzzy logic controller using Simulink model to stabilize magnetic suspension system - Verify behavior of Simulink model - Tune model parameters to minimize steady state error, rise time, and percent overshoot - Use advanced techniques (such as genetic algorithms or neural networks) to generate a fuzzy logic controller and compare it to the hand-made controller. Advanced Hand-Made Controller Controller 12/2/2004 Present Project 12/9/2004 Finals/Study Day Christmas Break 12/16/200 4 1/22/2005 1/29/2005 2/6/2005 2/13/2005 2/20/2005 2/27/2005 3/5/2005 3/12/2005 3/19/2005 3/26/2005 4/2/2005 4/9/2005 4/16/2005 4/23/2005 4/30/2005 Research speed improvements Begin xpc implementatio n Address xpc implementatio n issues Continue implemenation on xpc Research stabilizatio n methods Tune controller in Simulink Document hand-made controller Documentation, presentation Research advanced controller methods Implement advanced controller Finalize advanced controller

Equipment List Magnetic Suspension System xpc Target Box Host PC Oscilloscope (Tektronix TDS-3012) Function Generator (HP E3630A)

Bibliography Jose A. Lopez and Winfred K.N. Anakwa, "Identification and Control of a Magnetic Suspension System using Simulink and dspace Tools", Proceedings of the ASEE Illinois/Indiana Section 2004 Conference, March 26-27, 2004, East Peoria, Illinois, U.S.A., pp. 24-30. Passino, Kevin and Yurkovich, Stephen. Fuzzy control, Addison-Wesley Longman, Inc, 1998. Feedback Inc., 437 Dimmocks Mill Road, Hillsborough, North Carolina 27278. http://www.fbk.com/ Simulink, Version 5.1, The MathWorks Inc., Natick, MA 01760, 2003. xpc Target Box, The MathWorks Inc., Natick, MA 01760, 2003. xpc Target Software, The MathWorks Inc., Natick, MA 01760, 2003.