Designing and Fabricating Fuzzy Controller of DC Servo Motor with HMI

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

Brushed DC Motor System

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

Time Response Analysis of a DC Motor Speed Control with PI and Fuzzy Logic Using LAB View Compact RIO

Simulation of Optimal Speed Control for a DC Motor Using Conventional PID Controller and Fuzzy Logic Controller

Performance Analysis of Fuzzy Logic And PID Controller for PM DC Motor Drive Khalid Al-Mutib 1, N. M. Adamali Shah 2, Ebrahim Mattar 3

Experiment Of Speed Control for an Electric Trishaw Based on PID Control Algorithm

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING BANGLADESH UNIVERSITY OF ENGINEERING & TECHNOLOGY EEE 402 : CONTROL SYSTEMS SESSIONAL

Modeling & Simulation of PMSM Drives with Fuzzy Logic Controller

DC SERVO MOTOR CONTROL SYSTEM

LSM&DSD Brushless Servo Drive Package

Effective Teaching Learning Process for PID Controller Based on Experimental Setup with LabVIEW

Control Of Three Phase BLDC Motor Using Fuzzy Logic Controller Anjali. A. R M-Tech in Powerelectronics & Drives,Calicut University

Comparative study of PID and Fuzzy tuned PID controller for speed control of DC motor

SPEED CONTROL OF BRUSHLESS DC MOTOR USING FUZZY BASED CONTROLLERS

Speed control of a DC motor using Controllers

MEM01: DC-Motor Servomechanism

DC motor position control using fuzzy proportional-derivative controllers with different defuzzification methods

Comparative Analysis of PID, SMC, SMC with PID Controller for Speed Control of DC Motor

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

SIMULINK MODELING OF FUZZY CONTROLLER FOR CANE LEVEL CONTROLLING

CL86T. 24~80VDC, 8.2A Peak, Closed-loop, No Tuning. Descriptions. Closed-loop. Stepper. Applications. Datasheet of the Closed-loop Stepper CL86T

Fuzzy Logic PID Control of Automatic Voltage Regulator System

Integrated servo motor

SPY ROBOTIC MODULE USING ZIGBEE

Servo and Motor Controller

ANALYSIS OF V/f CONTROL OF INDUCTION MOTOR USING CONVENTIONAL CONTROLLERS AND FUZZY LOGIC CONTROLLER

Speed Control of DC Motor Using Fuzzy Logic Application

International Journal of Advance Engineering and Research Development

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

IMPLEMENTATION OF FUZZY LOGIC SPEED CONTROLLED INDUCTION MOTOR USING PIC MICROCONTROLLER

CHAPTER 4 FUZZY LOGIC CONTROLLER

ENGINEERING SPECIFICATION

Speed Control of Brushless DC Motor Using Fuzzy Based Controllers

Design and Implementation of PID Controller for a two Quadrant Chopper Fed DC Motor Drive

DC Motor Speed Control using PID Controllers

ES86 Series Closed-loop Stepper Drive + Motor System (Drive+ Motor/Encoder)

A Comparative Study on Speed Control of D.C. Motor using Intelligence Techniques

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

DC motor control using arduino

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

30-80V, 8.2A Peak, No Tuning, Nulls loss of Synchronization

PI Control of Boost Converter Controlled DC Motor

Logosol AC/DC Intelligent Servo Drive for Coordinated Control LS-174WP

ES86 Series Closed-loop Stepper Drive + Motor System (Drive+ Motor/Encoder)

Design of an electronic platform based on FPGA-DSP for motion control applications

Ball Balancing on a Beam

Permanent Magnet Brushless DC Motor Control Using Hybrid PI and Fuzzy Logic Controller

SilverMax Datasheet. QuickSilver Controls, Inc. NEMA 23 Servomotors.

Comparisons of Different Controller for Position Tracking of DC Servo Motor

Figure 1: Unity Feedback System. The transfer function of the PID controller looks like the following:

Modeling and simulation of feed system design of CNC machine tool based on. Matlab/simulink

ES86 Series Closed-loop Stepper Drive + Motor System (ES-D808 Drive+ Motor/Encoder)

Teaching Mechanical Students to Build and Analyze Motor Controllers

Fuzzy Logic Based Speed Control System Comparative Study

Volume 1, Number 1, 2015 Pages Jordan Journal of Electrical Engineering ISSN (Print): , ISSN (Online):

Investigations of Fuzzy Logic Controller for Sensorless Switched Reluctance Motor Drive

Fuzzy Controllers for Boost DC-DC Converters

Speed Control of DC Motor: A Case between PI Controller and Fuzzy Logic Controller

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

CHAPTER-III MODELING AND IMPLEMENTATION OF PMBLDC MOTOR DRIVE

Logosol Intelligent Hall-Servo Drive LS-173U Doc # / Rev. C, 02/12/2008

Hardware Implementation of Fuzzy Logic Controller for Sensorless Permanent Magnet BLDC Motor Drives

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

ADR-A Series Direct Drive Rotary Motor

4 / 24,5 2,6 / steel, black coated. clockwise, viewed from the front face. ø15,9 ø17-0,052 ø6-0,05 8,1 ±0,3 2, T

ies-2309 Integrated Easy Servo

ISSN: (Online) Volume 2, Issue 1, January 2014 International Journal of Advance Research in Computer Science and Management Studies

A Novel Fuzzy Control Approach for Modified C- Dump Converter Based BLDC Machine Used In Flywheel Energy Storage System

Position Control of Servo Systems using PID Controller Tuning with Soft Computing Optimization Techniques

USED OF FUZZY TOOL OR PID FOR SPEED CONTROL OF SEPRATELY EXCITED DC MOTOR

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable-Velocity Differential Motor Drives

Optimizing Performance Using Slotless Motors. Mark Holcomb, Celera Motion

Position Control of AC Servomotor Using Internal Model Control Strategy

International Journal of Innovations in Engineering and Science

A Searching Analyses for Best PID Tuning Method for CNC Servo Drive

ISSN: [IDSTM-18] Impact Factor: 5.164

Efficiency Optimized Brushless DC Motor Drive. based on Input Current Harmonic Elimination

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

Design Applications of Synchronized Controller for Micro Precision Servo Press Machine

DC Motor Speed Control: A Case between PID Controller and Fuzzy Logic Controller

Latest Control Technology in Inverters and Servo Systems

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

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

IMPLEMENTATION AND PERFORMANCE ANALYSIS OF BLDC MOTOR DRIVE BY PID, FUZZY AND ANFIS CONTROLLER

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

UNIT 2: DC MOTOR POSITION CONTROL

Chapter 4 SOFT SWITCHED PUSH-PULL CONVERTER WITH OUTPUT VOLTAGE DOUBLER

Application Note # 5448

Design and Implementation of Fuzzy Sliding Mode Controller for Switched Reluctance Motor

Datasheet of the Easy Servo Drive ES-D VAC or VDC, 8.2A Peak, Close-loop, No Tuning. Version

Experiment#6: Speaker Control

CHAPTER 4 MULTI-LEVEL INVERTER BASED DVR SYSTEM

Lab 2: Quanser Hardware and Proportional Control

Analysis and Design of Conventional Controller for Speed Control of DC Motor -A MATLAB Approach

INTEGRATED CIRCUITS. AN1221 Switched-mode drives for DC motors. Author: Lester J. Hadley, Jr.

International Journal of Advance Engineering and Research Development

Design of double loop-locked system for brush-less DC motor based on DSP

Transcription:

Designing and Fabricating Fuzzy Controller of DC Servo Motor with HMI Vo Quang Truong Department of Mechanical Engineering, Danang College of Technology, The University of Danang, Vietnam Abstract In this paper, the design and fabrication of fuzzy controller to DC servo motor for education is investigated. This equipment provides the basic experiment device for elementary control and automation courses in electronic and computer engineering, mechanical engineering. Student can understand the basic principles of Fuzzy control and its influence on system performance, master the method to adjust the speed controller parameters of the DC servo motor and comprehend the influence of disturbing torque on speed control performance, so as to learn the practical skills of the motion control. In addition, this equipment allows users to integrate the self-developed controller or third party controllers flexibly. Keywords Fuzzy logic, fuzzy controller, DC motor, servo motor. I. INTRODUCTION Nowaday, DC motor is widely used in industrial application, defense, robotics, home appliances etc. Therefore, speed and position control of motor is very important and required. The non-linear characteristic of DC motor could degrade the performance of the conventional controller. To reduce these effects, many advanced model control methods have been proposed by scientists such as analog PID controllers, digital PID controller [], optimal controller [], LQG... However, the performance of these methods depends on the accuracy of model and parameter of DC motor. Generally, it is difficult to find and accurate nonlinear model and indentify all parameters. The Fuzzy logic control (FLC) able to cope with system uncertainties. The field of Fuzzy logic control has been making rapid progress in recent years. It is one of the most successful application of Fuzzy set theory introduced by L.A.Zadel [] and applied in an attempt to control the systems that are difficult to model. Just as fuzzy logic can be described simply as computing with words rather than numbers; FLC can be described simply as control with sentences rather than equations. FLC can include empirical rules, especially useful in operator controlled plants. Tuning FLC may seem at first to be a daunting task. There are many parameters that can be adjusted. These include the rules, membership functions and any other gains within the control system.[]. This paper present speed control system simulation blocks, especially that related with a separately excited D.C motor considerations, which can be applied as a experiental model for training in department of Mechatronic at Universities. II. DC MOTOR MODEL DC motor directly provides rotary motion and, coupled with wheels or drums and cables, can provide translational motion. The electric equivalent circuit of the armature and the free-body diagram of the rotor are shown in the figure We will assume that the magnetic field is constant and, therefore, that the motor will generate a torque proportional to only the armature current I a (input curent) by a constant factor K T as shown in the equation below T g = K T.I a () Where K T is the torque constant. The back emf, E g, is determined by the angular velocity of the shaft with a constant factor K E E g = K E.ω () Where ω is angular velocity of the shaft. K E is the voltage constant Figure. Equivalent circuit of DC motor Apply Newton's nd law and Kirchhoff's voltage law to derive the following governing equations based on di V = E g + R.I a + L a. a () V= K E. ω + R.I a + L di a. a () Because L a is very small so we ignore this component, the equation () and () become: V R.I a = K E. ω () V R. I a (6) K E 06

Equation of load torque T m: ( ). d Tm Jm J L D. Tf T (7) L Where J m : Motor moment of inertia. J L : Load moment of inertia converted on a motor shaft D : Motor damping coefficient T f: Motor friction torque T L: Load friction torque converted on a motor shaft From torque equation T m = T g = K TI a (8) Assume J = J m + J L, T f + T L = 0, D = 0. Apply Laplace transform: V ( s) s. J.( s. La R). ( s) KE. ( s) (9) KT s KT Gs () (0) V ( s) s. J.( s. L R) K. K According to DC motor datasheet Set equation (0) expressed a E T RJ La KEKT [], s / KE Gm() s V() s RJ. La ( s. )( s. ) K. K R E T E T () RJ. T () m K. K T m is the mechanical time constant - second La Te () R T e is the electrical time constant - second s / KE Gm() s () V ( s) ( s. Tm )( s. Te ) If T m >> T e transfer function expressed s / KE Gm() s V ( s) ( s. Tm ) DC motor is selected in this research: DC SERVOMOTOR ENCODER TS98 by manufacturer TAMAGAWA SEIKI [] TABLE : SPECIFICATION OF DC MOTOR TS98 Winding no E6 Torque constant (KT).7 0- N.m/A Voltage constant (KE) 6.0 0- V/(min-) Amature resistance (Ra). Ω Amature inductance (La) Rated output power Rated voltage (Vo) Rated current (Io) Rated speed (No) Rated torque (To) Momen of inertial (JM) Mechanical time constant (Tm) Electrical time constant (Te) Thermal resistance (Rth) Friction torque (Tf) Mass 0.9 mh 60 W V.9 A 000 min- 0.9 Nm 0.7x0- kg.m. m sec 0.8 m.sec.oc/w.7x0- N.m 0.6 kg III. DESIGN CONTROLLER The fuzzy controller is designed for training and research of students specialized in mechatronics and automation so the model has the following functions: Measure and test motor speed: this module is used for motor model identification. Most of our students often use the second hand servo motors, which they difficult find all specification of motor to build mathematical models for control. At that time, students need to conduct model identification. With this function, students can test the performance, measure the speed of any servo motor that satisfies some of the controller specifications (operating voltage and maximum current). Based on the measured results, students can identify the model quite accurately. This function is very useful in model identification. Especially in trajectory control in robot application, syncronize velocity of motor. This module will assist students participating in the robotic competition at Danang College of Technology. Simulation of Fuzzy logic control: the theory of fuzzy control is often difficult to explain to undergrade students. So this function has bult to help them deeply understand theory of FLC. It can simulate how the fuzzy controller work and students can understand how the fuzzy controller change the output signal when the input signal changed. Because this function serves to explain in lectures, the program only builds SISO (Single Input Single Output). Hardware experiment modul: this is a complete test with full functionality such as fuzzification, fuzzy rule base, defuzzification of the fuzzy controller and connected to the actual devices. On the Human Machine Interface, students can set the parameters of the fuzzy controller to monitor the change of motor speed as well as time response. MCU PIC 8f HMI Figure. Block diagram of the Fuzzy controller A. MICROCONTROLLER Driver DC Servo motor This module is main controller, it will receive signal from computer via serial port (RS) to control the speed of motor by change the PWM value. Encorder equipped on the DC motor will send signal to this microcontroller and count number of pulse. The speed of motor continuous update and transmit to computer to graph on the HMI. 07

Curently, many PIC microcontroller series are commercialized and they have different functions for specific applications. PIC8fx is among the microcontroller refer to DC motor control, it is widely used in industrial application. Therefore, we select this microcontroller PIC 8f for this study. v D6 N007 MT Q7 A0 Q9 C8 R6 0_W Q8 D6 Q6 D6 D8 DIODE V LS7 8 7 6 D 007 C6 0 RLA J DC SW0 RST v R0 0k Vpp J clock data Vdd Vpp v v R6 0 D9 DIODE RS PWM R D8 v DC ISO RELAY R6 D v VC v ISO RL U0 PIC8F Vpp RB7/PGD 0 data Y MCLR/VPP RA0/AN0 RB6/PGC 9 clock Y 8 RELAY TX RA/AN RB/PWM 7 PWM RX RA/AN RB/PWM 6 PWM TX 6 RA/AN RB/PWM RELAY RX 7 RA/AN RB/PWM PWM E 8 RA/AN RB/PWM RELAY GO 9 RE0/AN6 RB0/PWM0 OK 0 RE/AN7 0 PWM RE/AN8 RD7/PWM7 9 RELAY OSC RD6/PWM6 OSC OSC/CLK 8 RELAY OSC/CLKOUT RD/(PWM) 7 RELAY6 RS RD PWM6 6 RC0/TOSO/TCLK PWM 7 RC/CCP/FLTA 6 INT8 encoder 8 RC/CCP/FLTB RC7/RX/DT INT7 INT 9 RC/SCK/SCL RC6/TX/CK RD0/PSP0 RC/SDO INT6 INT 0 INT RD/SDO RC/SDI/SDA INT RD/SCK/SCL INT RD/SDI/SDA C6 p OSC C7 p Y M OSC VDD v VDD Vdd + GND C 0_6v C 0 GND Figure. Diagram of microcontroller We use serial port DB9 to transmit data between computer and microcontroller. Because there is difference voltage between computer and microcontroller so we must use IC MAX to adapt the logic level (figure ) C 0u C 0u TXD 8 0 U RIN RIN TIN TIN C+ C- C+ C- MAX ROUT ROUT GND TOUT TOUT V+ VCC C6 V- 9 7 6 6 RXD C7 0u V 9 8 7 6 P CONNECTOR DB9 Figure. DC motor driver circuit C. DESIGN FUZZY LOGIC CONTROLLER Fuzzy logic controller is shown on figure 6, this controller is composed of: Fuzzification interface Defuzzification interface Rule base Decision making unit (inference mechanism) ωset e(t) Fuzzy controller Encoder DC servo motor Figure 6. Block diagram of the Fuzzy controller ω(t) Inputs of controller are the error e(t) between the reference (ωset) and actual speed (ω) and the change in error 0, the output is the change in amature voltage as PWM to control motor speed. The range of input and output signals are normalized into [-,]. 0u Figure. Serial commulnication module B. DESIGN MODULE OF DRIVER To increase stability of whole control module, we need to use opto modle for separate power between microcontroller and motor. The driver modul designed by using Metal-Oxide Semiconductor Field-Effect Transistor MOSFET IRF0 which able to stand up to A and controlled by change voltage on pin Gate. The PUSH PULL output stage circuit used for trigging. Figure 7. Block diagram of fuzzy controller [6] To perform fuzzy computation, the input and output must be converted from numberical or crisp value to linguistic form. The term of Small and Large are used to quantitize the inputs and outputs to linguistic value. In this paper, linguistic terms that used to represent inputs and outputs value are defined by five fuzzy variables 08

VS Very Small SM Small ZR Zero LR Large VL Very Large And the triangular function is selected for fuzzy membership. Value of a and b in membership function can be adjusted by user. Figure 8. Define membership of inputs Figure 9. Define membership of output Define the fuzzy rules. The fuzzy rules are mearly a series of if-then statements as mentioned above. These statements are derived by an expert to achieve optimum results. Some examples of these rules are: i) If angle is zero and angular velocity is zero then speed is also zero. ii) If angle is zero and angular velocity is low then the speed shall be low. R: if the error e(t) = VS and the change in error de() then PWM = VS R: if the error e(t) = VS and the change in error de() then PWM = VS R: if the error e(t) = VS and the change in error de() R: if the error e(t) = VS and the change in error de() R: if the error e(t) = VS and the change in error de() R6: if the error e(t) = S and the change in error de() then PWM = VS R7: if the error e(t) = S and the change in error de() R8: if the error e(t) = S and the change in error de() thì PWM = SM R9: if the error ố e(t) = S and the change in error de() R0: if the error e(t) = S and the change in error de() thì PWM = LR R: if the error e(t) = ZR and the change in error de() R: if the error e(t) = ZR and the change in error de() R: if the error e(t) = ZR and the change in error de() R: if the error e(t) = ZR and the change in error de() R: if the error e(t) = ZR and the change in error de() R6: if the error e(t) = LR and the change in error de() R7: if the error e(t) = LR and the change in error de() R8: if the error e(t) = LR and the change in error de() R9: if the error e(t) = LR and the change in error de() R0: if the error e(t) = LR and the change in error de() then PWM = VL R: if the error e(t) = VL and the change in error de() R: if the error e(t) = VL and the change in error de() R: if the error e(t) =VL and the change in error de() R: if the error e(t) =VL and the change in error de() then PWM = VL 09

R:if the error số e(t) =VL and the change in error de() t =VL then PWM = VL. Defuzzification Here are MAX MIN type decomposition is used. In order to choose an appropriate representative value as the final output (crisp values), defuzzification must be done. There are numerous defuzzification methods, but the most common one used is the center of gravity of the set as shown below. Z * ( z). z. dz ( z). dz () Figure. HMI of Fuzzy controller Figure 0. Result of defuzzification process if speed error e(t) = -0.. Test the SISO module Figure. Experimental modul test Figure. HMI of speed measurement module Figure. Response of controller under disturbance by adding load 060

IV. CONCLUSION This study has demonstrated the implementation of Fuzzy Logic control for the speed control of DC motor by using microcontroller. The controller shows very good result by tracking the setting velocity under load and no load condition. The experimental modul is useful for training in Department of Mechatronic, Danang College of Technology. REFERENCES [] P. Ravi Kumar, V. Naga Babu, Position control of Servo systems using PID controller turning with soft computing optimization technique, International Journal of Engineering Research and Technology, Vol, Issue, 0. [] Tayfun Abut, Modeling and Optimal control of a DC motor, International journal of Engineering Trends and Technology, Vol, No., 06 [] L. A. Zadeh, Fuzzy sets, Information and Control 8, Page 8, 96 [] Pavol Fedor, Daniela Perdukova, Simple fuzzy controller structure, Acta Electrotechnica At Informatica No., Vol., 00. [] DC servomotors and DC motor Calalogue No., T, Tamagawa Seiki Co., Ltd. [6] Website http://championed.info. 06