POSITION TRACKING OF SLIDER CRANK MECHANISM BY USING PID CONTROLLER. MOHAMAD ZAHARUDIN BIN SARIMAN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Similar documents
SPEED CONTROL OF DC MOTOR USING PID CONTROLLER IMPLEMENTATION WITH VISUAL BASIC NURUL IZZATI BINTI PANDAK JABO

SYSTEM IDENTIFICATION AND POSITION CONTROL OF PNEUMATIC ACTUATOR USING EMBEDDED SYSTEM TAHA MOHAMMED AHMED SADEQ

TRACKING PERFORMANCE OF A HOT AIR BLOWER SYSTEM USING PID CONTROLLER WITH PSO AND HARMONIC SEARCH ALGORITHM ANDY HENG POH SENG

SYSTEM IDENTIFICATION AND CONTROL OF THE HORIZONTAL MOTION OF A TWIN ROTOR MULTI-INPUT MULTI-OUTPUT SYSTEM (TRMS) NURUL HAZIRAH BINTI ABD AZIZ

FINAL YEAR PROJECT REPORT TITLE: MODELING AND PSO-BASED LQR CONTROLLER DESIGN FOR COUPLED TANK SYSTEM FIONA SERINA DAUD B

HIRZI BIN MOHD ISHAK UNIVERSITI TEKNOLOGI MALAYSIA

STRUCTURE AND TUNING INTERNAL MODEL CONTROL FOR INTEGRATING PROCESS

SPEED CONTROL OF BUCK-CONVERTER DRIVEN DC MOTOR USING PD-TYPE FUZZY LOGIC CONTROLLER ZAKARIA BIN ABDUL RAHMAN

SLIDING MODE CONTROL FOR DC-AC CONVERTER POUYA IZADIFAR

PRODUCT DESIGN IMPROVEMENT USING DESIGN FOR MANUFACTURE AND ASSEMBLY (DFMA) METHODOLOGY

PARTICLE SWARM OPTIMIZATION FOR MPPT : SIMULATION AND ANALYSIS NOOR DZULAIKHA BINTI DAUD UNIVERSITI TEKNOLOGI MALAYSIA

OPTIMAL PROPORTIONAL INTEGRAL DERIVATIVE CONTROLLER FOR AUTOMATIC VOLTAGE REGULATOR SYSTEM USING PARTICLE SWARM OPTIMIZATION ALGORITHM

Signature. Supervisor :.. ~.~H-.~.~0~P..?.j.~H~~~.. ~.~.~ Date :...?./!!./~~ ~

SPACE VECTOR MODULATION FOR FIVE-PHASE INDUCTION SPEED DRIVE CONTROL NORAZELINA BINTI KAMISMAN. of Bachelor in Electrical Engineering

SELF-TUNING PID CONTROLLER FOR ACTIVATED SLUDGE SYSTEM HUONG PEI CHOO

Signature : NOR MANIHA BINTI ABDUL GHANI

OPTIMIZATION OF PID PARAMETERS FOR HYDRAULIC POSITIONING SYSTEM UTILIZING VARIABLE WEIGHT GREY-TAGUCHI AND PARTICLE SWARM OPTIMIZATION

MITIGATION OF POWER QUALITY PROBLEMS USING ACTIVE POWER FILTER MUNIRAH BINTI ROSLI

PSO-TUNED PID CONTROLLER FOR COUPLED-TANK SYSTEM (CTS) VIA PRIORITY-BASED FITNESS SCHEME

FACULTY OF ELECTRICAL ENGINEERING UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT REPORT (FYP II)

PID CONTROL SYSTEM IMPLEMENTATION IN EMBEDDED SYSTEM FOR DC MOTOR SPEED CONTROL ARIFF BIN CHE MOHD NOOR

SYSTEM IDENTIFICATION AND INTELLIGENT CONTROL OF AUTOMOTIVE AIR CONDITIONING SYSTEM. MOHD FIRDAUS BIN MOHAMED

ARDUINO BASED SPWM THREE PHASE FULL BRIDGE INVERTER FOR VARIABLE SPEED DRIVE APPLICATION MUHAMAD AIMAN BIN MUHAMAD AZMI

PRODUCT DESIGN EVALUATION OF LUCAS HULL DFMA METHOD MOHD NAFIS BIN MOHAIZI

INPUT SHAPING FOR VIBRATION-FREE POSITIONING OF FLEXIBLE SYSTEMS AZDIANA BT. MD. YUSOP UNIVERSITI TEKNOLOGI MALAYSIA

TWO DIMENSIONAL DIRECT CURRENT RESISTIVITY MAPPING FOR SUBSURFACE INVESTIGATION USING COMPUTATIONAL INTELLIGENCE TECHNIQUES

MOTOR SPEED CONTROLLER USING FUZZY LOGIC METHOD FOR PCB DRILLING OPERATION KHAIRUL AZMIL BIN ADZMI UNIVERSITI MALAYSIA PAHANG

DETERMINATION OF LEAKAGE IN AN OIL AND GAS PIPELINE NOR AZIAN BINTI MOHIDEEN ABDUL KADIR

RESONANT CONTROL OF A FLEXIBLE MANIPULATOR SYSTEM

DEVELOPMENT OF REMOTELY OPERATED UNDERWATER VEHICLE AFIQ FIKRI BIN HAMID UNIVERSITI MALAYSIA PAHANG

DYNAMIC ANALYSIS OF AIRCRAFT LANDING GEAR SADEGH IMANI YENGEJEH

Universiti Teknikal Malaysia Melaka (UTeM)

STRESS DETECTION USING GALVANIC SKIN RESPONSE SHAHNAZ SAKINAH BINTI SHAIFUL BAHRI UNIVERSITI MALAYSIA PAHANG

DEVELOPMENT OF DYNAMIC EQUIVALENTS FOR INTERCONNECTED POWER SYSTEMS USING IDENTIFICATION APPROACHES KOK BOON CHING UNIVERSITI TEKNOLOGI MALAYSIA

ARDUINO BASED WATER LEVEL MONITOR- ING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN TUAN ISMAIL UNIVERSITI MALAYSIA PAHANG

NURSYAHIDA ASHIKIN BINTI NOR IZLANIN

TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK

FUZZY ACTIVE VIBRATION CONTROL FOR LATHE MACHINE MUHAMAD FAISAL EZUARIE BIN DRAMAN

PERFORMANCE OF INVERSE RESPONSE PROCESS WITH VARIATION OF PROCESS PARAMETERS AND TUNING METHODS LOW YEOK CHAN

FREQUENCY RECONFIGURABLE ARCHIMEDEAN SPIRAL ANTENNA MASMURNI BINTI ABDUL RAHMAN

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DEVELOPMENT OF THREE PHASE INDUCTION MOTOR CONTROLLER AHMAD FAKHRUZZAMAN B M ZAWAWI. This report is submitted as partial fulfillment of the

VALVE CONDITION MONITORING BY USING ACOUSTIC EMISSION TECHNIQUE MOHD KHAIRUL NAJMIE BIN MOHD NOR BACHELOR OF ENGINEERING UNIVERSITI MALAYSIA PAHANG

HARMONIC MODELING IN POWER DISTRIBUTION SYSTEM USING TIME SERIES SIMULATION CHE KU FARHANA BINTI CHE KU AMRAN UNIVERSITI TEKNOLOGI MALAYSIA

Modeling Position Tracking System with Stepper Motor

SPDT SWITCH DESIGN USING SWITCHABLE RESONATOR AT 5GHZ FOR WIRELESS COMMUNICATIONS MOHD HAIDIL BIN ZURAIMI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

EFFECTIVE AEROSOL OPTICAL THICKNESS RETRIEVAL ALGORITHM USING MODIS 500 METRE DATA AHMAD MUBIN BIN WAHAB UNIVERSITI TEKNOLOGI MALAYSIA

FAKULTI KEJURUTERAAN ELEKTRIK (FKE) PSM TITLE: DESIGN OF ROBOTIC STRUCTURE FOR PEOPLE WITH DISABILITIES FOR EATING AND DRINKING MOTION (EATING)

NON-LINEAR WATER LEVEL FORECASTING OF DUNGUN RIVER USING HYBRIDIZATION OF BACKPROPAGATION NEURAL NETWORK AND GENETIC ALGORITHM SITI HAJAR BINTI ARBAIN

BORANG PENGESAHAN STATUS TESIS

EXPERIMENTAL AND SIMULATION STUDY OF WIND TURBINE GRID CONNECTED NURUL IZZATI YUSOP

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT 2 BEKU 4894

DESIGN AND SIMULATION VOLTAGE DYNAMIC RESTORER (DVR) MOHD NORFARHAN BIN MOHD MUSTAFA

MICROCONTROLLER BASED RATIO CONTROL FOR ELECTROMECHANICAL DUAL ACTING PULLEY CONTINUOUSLY VARIABLE TRANSMISSIONS ARIES BUDIANTO

SIMULATION AND OPTIMIZATION OF ELECTRICAL DISCHARGE MACHINING PROCESS USING MATLAB ELNAZ KARIMPOUR UNIVERSITI TEKNOLOGI MALAYSIA

CHAPTER 3 WAVELET TRANSFORM BASED CONTROLLER FOR INDUCTION MOTOR DRIVES

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

SOFTWARE PROCESS FOR INTEGRATED PATTERN ORIENTED ANALYSIS AND DESIGN (POAD) AND COMPONENT ORIENTED PROGRAMMING (COP) ON EMBEDDED REAL-TIME SYSTEMS

UG Student, Department of Electrical Engineering, Gurunanak Institute of Engineering & Technology, Nagpur

PID IMPLEMENTATION OF UMP MINI AUTOMATION PLANT PART 1 - HEATING TANK LEE MING JIE

AN ADAPTIVE ALGORITHM FOR THE TUNING OF TWO INPUT SHAPING METHODS NUR HAFIZAH BINTI HASSAN

Step vs. Servo Selecting the Best

Jurnal Teknologi. Resonant Control of a Single-Link Flexible Manipulator. Full paper. Auwalu M. Abdullahi, Z. Mohamed *, Marwan Nafea M.

MAZE SOLVING BALBOT SOON CHI WEI

CHARACTERIZATION OF LASER BEAM INTENSITY USED FOR MACHINING MOHD SYIMIR HAZIQ BIN NOOR ZAINAL

Penn State Erie, The Behrend College School of Engineering

Force Characterization of an Electromagnetic Linear Actuator TAWFIK AHMED YAHYA

COMPARATIVE EVALUATION OF EXISTING PRODUCT FOR ECO-DESIGN AHMAD ARIF FAHMI BIN TURIN B BMCD.

ARDUINO-BASED TEMPERATURE MONITOR- ING AND CONTROL VIA CAN BUS MOHAMMAD HUZAIFAH BIN CHE MANAF UNIVERSITI MALAYSIA PAHANG

DEVELOPMENT OF MONOPOLE SENSORS FOR RICE QUALITY CHARACTERIZATION IN MALAYSIA JAMALIAH BINTI SALLEH

JPEG IMAGE TAMPERING DETECTION BASED ON BLOCKING ARTIFACTS ALI EBRAHIMI

MOHD ZUL-HILMI BIN MOHAMAD

CRASH ANALYSIS OF A RAINFOREST VEHICLE (RFV) UNDER FRONTAL IMPACT LOADING MOHAMAD SYAUQY AMIN BIN OTHMAN

NURUL AFIQAH BINTI AZIZ

PREDICTION OF TOTAL CONCENTRATION FOR SPHERICAL AND TEAR SHAPE DROPS BY USING NEURAL NETWORK NORHUSNA BINTI SAHARUN UNIVERSITI TEKNOLOGI MALAYSIA

PART 2 - ACTUATORS. 6.0 Stepper Motors. 6.1 Principle of Operation

REDUCING THE VIBRATIONS OF AN UNBALANCED ROTARY ENGINE BY ACTIVE FORCE CONTROL. M. Mohebbi 1*, M. Hashemi 1

MEM01: DC-Motor Servomechanism

ELECTRONIC WAU CONTROLLER NOR HASYIMAH BINTI MAT ALI

Nur Athykah binti Basiran

AMIRUL NUR RASHID BIN MOHAMAD AHYAT

: NORHAZILINA BT BAHARI

A HYBRID APPROACH BASED ON ARIMA AND ARTIFICIAL NEURAL NETWORKS FOR CRIME SERIES FORECASTING MOHD SUHAIMI MOHD ZAKI

Page ENSC387 - Introduction to Electro-Mechanical Sensors and Actuators: Simon Fraser University Engineering Science

ENERGY ANALYSIS AND OPTIMIZATION OF PUBLIC BUILDING USING BUILDING INFORMATION MODELING APPLICATION

POWER OPTIMIZATION CONTROL OF SMALL-SIZED WIND TURBINE FOR MALAYSIA WIND CONDITION SUHAILA BINTI SAMSURI UNIVERSITI TEKNOLOGI MALAYSIA

COMPARISON BETWEEN PIEZOELECTRIC AND CAPACITIVE SENSORS FOR PD DETECTION AND SIGNAL MONITORING IN PALM OIL

VOICE RECOGNITION IGNITION SYSTEM MARK FIDELIS KENSIN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

FACULTY OF ELECTRICAL ENGINEERING UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT II PERFORMANCE ANALYSIS OF 100 W BOOST CONVERTER

Eliakim Bin Che Yaacob

HAND GESTURE RECOGNITION SYSTEM FOR AUTOMATIC PRESENTATION SLIDE CONTROL LIM YAT NAM UNIVERSITI TEKNOLOGI MALAYSIA

DESIGN A WIDEBAND LOW-NOISE AMPLIFIER FOR WIRELESS COMMUNICATION USING 0.35-µm CMOS TECHNOLOGY MOHD HAFIZ BIN ABU

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

PERFORMANCE STUDY OF PROXIMITY COUPLED STACKED CONFIGURATION FOR WIDEBAND MICROSTRIP ANTENNA ZULHANI BIN RASIN UNIVERSITI TEKNOLOGI MALAYSIA

SPEED CONTROL OF BRUSHLESS DC MOTOR USING FUZZY BASED CONTROLLERS

PERFORMANCE STUDY OF VIRTUAL FENCING USING WIRELESS SENSING NETWORK CHAN HUI TING UNIVERSITI TEKNOLOGI MALAYSIA

Faculty of Electrical Engineering

EXPECTED LIFE CYCLE COST FOR SYSTEMS WITH REPAIRABLE COMPONENTS AMIRHOSSEIN EBRAHIMI

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

HOUMAN OMIDI. A project report submitted in partial fulfilment of the. Master of Engineering (Electrical-Power) Faculty of Electrical Engineering

Transcription:

POSITION TRACKING OF SLIDER CRANK MECHANISM BY USING PID CONTROLLER. MOHAMAD ZAHARUDIN BIN SARIMAN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

SUPERVISOR DECLARATION I hereby that I have read this thesis and in my opinion this report is sufficient in term of scope and quality for the award of the degree of Bachelor of Mechanical Engineering (Automotive) Signature Supervisor :.. : EN. FAUZI BIN AHMAD Date : 24 JUNE 2013

POSITION TRACKING OF SLIDER CRANK MECHANISM BY USING PID CONTROLLER MOHAMAD ZAHARUDIN BIN SARIMAN This report prepared to fulfill the requirement of graduation in Bachelor in Mechanical (Automotive) Faculty of Mechanical Engineering Universiti Teknikal Malaysia Melaka JUNE 2013

i DECLARATION I hereby declare that the work in this report is my own except for summaries and quotations which have been duly acknowledge. Signature :. Author : MOHAMAD ZAHARUDIN BIN SARIMAN Date : 31 MAY 2013

ii Special for my beloved parents Mr. Sariman B. Aris and Mrs. Kamisah Bt. Basiron

iii ACKNOWLEDGEMENT I would like to express the deepest appreciation to my supervisor, Mr. Fauzi Bin Ahmad, who has teaching me a lot of knowledge and support me to accomplish this report. He continually and convincingly to help me in solving in any problem occurs. Without his guidance and persistent help this report would not have been finish. I would like to take opportunity to express my humble gratitude master students from faculty of mechanical, Mr. Vimal Rao who has been give support and help me to solve the problem while conducting experiment involve in this report. Without them, I might not be able to accomplish the research as well as this report. In addition, I would like to give this acknowledge to all my friends because of their supportive I be able to finish this report. I would like to express the deepest appreciation to my parents, Sariman Bin Aris and Kamisah Bt. Basiron who has giving fully support to me so that I would complete this research. Last but not least, I would like to thanks to Faculty of Mechanical Engineering, UTeM and all the staff involve direct and indectly due to the cooperative support that given to me during my PSM 1 and PSM 2.

iv ABSTRACT The control design using simulation is one of the techniques to control and analyze the performance and the effectiveness of the controllers. The simulation run and built in MATLAB/SIMULINK software based on the mathematical equation. The SIMULINK software capable to model the mathematical equation informs of block diagram which is the block diagram contain the operation and codes represented. This research presents a study on the position tracking response of a Proportional-Integral-Derivative (PID) controlled the slider crank mechanism which is driven by a two phase stepper motor. In this study, the Newton Second Law of motion has been applied to formulate the mathematical equation of motion where the connecting rod and the crank are assumed to be rigid. The proposed control system is using PID controller to obtain the desired result according the input function. There are several input function that has been used to monitor the performance which are sine wave, saw tooth, square and step function. The result shows that, the position tracking control structure model is able to give a good response. Then, the slider crank mechanism developed to study experimentally as well as to validate the result from the simulation. The results show that, the slider crank mechanism is able to track the desired displacement.

v ABSTRAK Reka bentuk kawalan menggunakan simulasi adalah salah satu daripada teknik-teknik untuk mengawal dan menganalisis prestasi dan keberkesanan pengawal. Struktur model telah dibina dan di simulasikan dalam perisian MATLAB / SIMULINK berdasarkan persamaan matematik. Perisian SIMULINK mampu untuk memodelkan persamaan matematik dalam bentuk gambarajah blok yang mengandungi operasi dan kod. Kajian ini membentangkan kajian mengenai pengesan kedudukan yang dikawal oleh kawalan Proportional-Integral-Derivative (PID) pada mekanisme engkol gelincirr yang didorong oleh satu dua.-fasa motor. Dalam kajian ini, hukum kedua Newton gerakan telah digunakan untuk merumuskan persamaan matematik gerakan di mana batang penyambung dan engkol adalah dianggap tegar. Sistem kawalan yang dicadangkan menggunakan kawalan PID untuk mendapatkan hasil yang diingini mengikut kemasukan fungsi. Terdapat beberapa kemasukan fungsi yang telah digunakan untuk memantau prestasi iaitu sine wave, saw tooth, square dan step function. Hasil menunjukkan bahawa, kawalan pengesanan kedudukan model struktur dapat memberi sambutan yang baik. Seterusnya, mekanisme engkol gelincir dibangunkan untuk mengkaji eksperimen serta untuk mengesahkan keputusan daripada simulasi. Keputusan menunjukkan bahawa, mekanisme engkol gelincir dapat mengesan anjakan yang dikehendaki.

vi TABLE OF CONTENT CHAPTER TITLE PAGE CHAPTER 1 CHAPTER 2 DECLARATION i DEDICATION ii ACKNOWLEDGEMENT iii ABSTRACT iv ABSTRAK v TABLE OF CONTENT vi - viii LIST OF TABLE ix LIST OF FIGURE x - xi LIST OF SYMBOL xii LIST OF APPENDIX xiv INTRODUCTION 1.1 Background 1-2 1.2 Problem statement 2 1.3 Objective 2 1.4 Scope of study 2 LITERATURE REVIEW 2.1 Introduction 3 2.2 Slider Crank Mechanism 4-5 2.3 Two Phase Stepper Motor 5-7 2.4 Proportional Integral Derivative 7-10 (PID) Controller. 2.4.1 On-Off Control 8 2.4.2 The Three Action of PID Control. 8-10 2.4.2.1 Proportional Action 8 2.4.2.2 Integral Action 9

vii CHAPTER 3 2.4.2.3Derivative Action 9-10 2.5 Ziegler-Nichols Tuning Method 10 11 2.6 Hardware In The Loop Simulation (HILS). 11 12 2.7 Conclusion 12 METHODOLOGY 3.1 Introduction 13 3.2 Project Flow Chart 14 3.3 Matlab Simulink Software 15-17 3.3.1Building The Model 15-16 3.3.2 Simulating The Model 16-17 3.4 Develop The Stepper Motor Mathematical Equation In Matlab Simulink Software. 18 3.5 Develop The Slider Crank Mechanism Mathematical Equation In Matlab Simulink software. 19 3.6 Test The Slider Crank Mechanism And Two Phase Stepper Motor Simulink Model By Using PID Controller 20 3.7 Experimental investigation on the effectiveness of the PID controller in tracking the position of slider crank mechanism. 21-24 3.7.1 Experimental Setup of Slider Crank Mechanism. 21-22 3.7.2 Sensor Installation 23 3.7.3 On Board Data Acquisition System (DAQ). 23-24 3.7.4 The DC Power Voltage to operate. 24 3.8 Experiment setup for Hardware In The Loop Simulation (HILS). 25-3.8.1 Setup the xpc Target for Host PC 26 3.8.2 Calibration of the Driver Simulink

viii Model. 26-28 3.9 Conclusion 28 CHAPTER 4 RESULT AND DICUSSION 4.1 Position Tracking Of Slider Crank Mechanism Controlled by PID Controller. 29-36 4.1.1 Simulation Modelling Result 29-31 4.1.2 Position Tracking Of Slider Crank 32-33 4.1.3 Simulation Result 34 36 4.2 Position Tracking Of Slider Crank Mechanism By Hardware In The Loop Simulation (HILS) 37-40 4.3 Conclusion 40 CHAPTER 5 CONCLUSION AND RECOMMENDATION 41 5.1 Recommendation 42 43 BIBLIOGRAPHY 44 47 APPENDIX 48-49

x LIST OF FIGURE NO. TITLE PAGE 2.2 Slider Crank Mechanism 4 2.3 Principle of 2 Phase Stepper Motor 6 3.2 Project Flow Chart 14 3.3.1 Simulink Library Browser 15 3.3.2 The Matlab Command Window and Workspace 16 3.3.3 Configuration Parameters Dialog box showing the 17 Solver pane. 3.4.1 The two Phase Matlab Simulink software model. 18 3.5.1 The Slider Crank Mechanism Simulink Software 19 Model. 3.6.1 The Position of PID controller in Inner and Outer 20 Loop. 3.7.1 Instrumented Rig Experimental Slider crank test. 21 3.7.2 Slider Crank Mechanism Rig. 22 3.7.3 Two Phase Stepper Motor. 22 3.7.4 Installation of the Sensors. 23 3.7.5 National Instrument (NI) Interface Card. 24 3.7.6 Voltage Regulator GW Instek 3030D 24 3.8.1 The Schematic Diagram Flow of Input and output signal. 25 3.8.2 Driver for Motor Calibration 27 3.8.3 Marking point on rotating encoder 27 3.8.4 Calibration driver for rotating encoder 27 3.7.5 Full Driver for HILS experiment 28 4.1.1 Slider Crank Mechanism Simulink Model. 30

xi 4.1.2 Two phase Stepper Motor Simulink Model. 30 4.1.3 Relation of Stepper Motor and Slider Crank 31 Mechanism. 4.1.4 Inner Loop control Structure. 32 4.1.5 Outer Loop Control Structure. 32 4.1.6(a) Square Function 34 4.1.6(b) Sine Wave Function 35 4.1.6(c) Saw Tooth Function 35 4.1.6(d) Step Function 36 4.2.1(a) Step Function Comparison Graph 38 4.2.1(b) Saw Tooth Function Comparison Graph 38 4.2.1(c) Square Function Comparison Graph. 39 4.2.1(d) Sine Wave Function Comparison Graph 39

ix LIST OF TABLES NO. TITLE PAGE 2.5.0 Kids of Controller Parameter 11 3.7.0 Component Involve in HILS experiment 21 4.1.1 The parameter for Slider Crank Mechanism Model 30 4.1.2 The parameter Values for Stepper Motor 31 4.1.2 PID controller Parameter 33 4.1.3 Effects of Independent P,I and D Tuning 33 4.3.0 Comparison of Performance between 2 types of Motor 42 Model.

xii LIST OF SYMBOL L = Length of connecting rod R = Length of Crank shaft φ = Angle Of Crank θ = Angle of Crank = Displacement of piston from top dead center = Ratio between L and R. = Steps per revolution = No. of pole pairs = No. of stator phases. Δ = Stepping angle = The motor constant, depending on the design of the motor. = The actual rotor position. = The location of the coil j in the stator. = The current in the coil as function of time. = The electromotive force induced in the phase j. = The rotational velocity of the rotor. = Operating value (voltage). R = The resistance of the coils. L = The inductance of the coils. E = Electric time constant. = Total torque. = The proportional gain PB = The range of error = The integral gain. = The derivative gain

xiii LIST OF ABBREVIATION PM = Permanent Magnet PID = Proportional Integral Derivative PLCs = Programmable Logic Controllers DCSs = Distributed Control Systems HILS = Hardware In The Loop Simulation NI = National Instrument

xiv LIST OF APPENDIX NO TITLE PAGE A SANYODENKI Motor Broacher 48 B Gantt Chart 49

1 CHAPTER 1 INTRODUCTION 1.1 BACKGROUND The slider crank mechanism is a basic structure in mechanical application. It used to convert the rotational motion into translational motion. The example of its application see as important part in compression ignition engine (diesel engine) and spark ignition engine (gasoline or petrol engine). The response of the slider crank is depend on mass, length, damping, external piston force and frequency. The slider cranks mechanism driven by stepper motor to transfer the rotational motion into translational motion. Nowadays, advancements in magnetic materials, semiconductor power devices, and control theory have made the Stepper Motor drive plays important role in motion-control application in the low-to medium power range. The desirable features of the PM synchronous servo motor are its compact structure, high air gap flux density, high power density, high torque-to-inertia ratio, and high torque capability. Moreover, compared with an induction servo motor, a PM synchronous servo motor has such advantages as higher efficiency, due to the absence of rotor losses and no-load current below the rated speed, and it is decoupling control performance is much less sensitive to the parametric variation of the motor. However the control performance of the PM synchronous servo motor drive is still influenced by the uncertainties of the controlled plant, which usually comprise unpredicted TABLE plant parametric variation, external load disturbances,

2 unmodelled and non linear dynamics. One of the controllers named Proportional Integral Derivative (PID) controller, which has been widely used in the industry because of its simple structure and robust performance within a wide range of operating condition. However, the real time condition is cannot be predicted as same as controlled in software such as PID controller. Therefore, the real time experimental results will be compared to the simulation result to study the similarities between both in position tracking of slider crank mechanism. In this paper, the formulation and dynamic behavior of PM synchronous motor coupled with a complexity mechanical system is introduced where a slider crank mechanism system is actuated by a PM synchronous servo motor is investigated. 1.2 PROBLEM STATEMENT The problem of this research is ignited from the similarities between MATLAB/SIMULINK model and real time Position tracking model. Therefore, to solve the problem by showing the comparison between MATLAB/SIMULINK result and experiment result. 1.3 OBJECTIVE The objective of this research is to study the effectiveness of Proportional Integral Derivative (PID) Controller in position tracking of slider crank mechanism in Simulink Matlab software and experimental assessment. 1.4 SCOPE OF STUDY 1. Modeling and stimulate of slider crank mechanism powered by the stepper motor in MATLAB/SIMULINK software. 2. Control design by simulation of slider crank mechanism. 3. Position tracking Control of slider crank mechanism experimentally.

3 CHAPTER 2 LITERATURE REVIEW 2.1 INTRODUCTION In many control systems, the aims are to design a control such that output can be controlled by giving the desired signals at the input. For example the vital of need a controller is to alignment of the front wheel of a vehicle follows that the input give by driver, the temperature of furnace follows a given set point and many others application. There are some factors that should always consider that affecting control system, they are choices of the controllers (Algorithms), tuning of controllers, selection of control variable, selection of performance index, the types of sensor used to measure error, actuators involve, the disturbance and environment, control configuration, design technique and the nonlinearity of the controller. There are a lot of controllers used nowdays such as conventional controllers, predictive controllers, adaptive controllers and intelligent controllers. Example of conventional controllers is PID controller, the example of predictive controllers is smith predictor, example of adaptive controllers is self tuning PID controller and the example of intelligent controllers is fuzzy logic controller. These controllers can be simulates in MATLAB/SIMULINK model as they develop from the mathematical equation.

4 2.2 SLIDER CRANK MECHANISM The slider crank mechanism is a basic structure in mechanical application. It is also widely used in practical application (Nagchaudhuri, 2002; Fung et al., 1999; Ranjbarkohan et al., 2011). For examples, are the typical applications of velocity control. Hence, the slider crank mechanism considered in this study is based on the basic operation of engine which consists of a crankshaft, R, connecting rod, L, and piston. The purpose of the slider-crank mechanism is to convert rotational motion of the crankshaft to the linear motion of the piston. Like shown in figure 2.1, the kinematic of slider crank mechanism can be described in equation (2-1) to (2-6) according to Ahmad Fauzi (2011). Figure 2.2: Slider Crank Mechanism (source from : Ahmad Fauzi (2011) The piston displacement from top dead centre, x, can be determined from the geometry of the mechanism, in terms of the lengths of the connection rod, L, and crank, R, and the crank angle,. From the geometry and noting that θ = φ= 0 when x = 0, x can be expressed as: (2-1) Also from the geometry, it can be expressed that and, (2-2) (2-3)

5 Substituting for L sin φ from Equation (2-2) into Equation (2-3) and let θ as the only variable on the right hand side of the expression, (2-4) Equation (2-4) can be substituted into Equation (2-1) to obtain the kinematic equation for the slider crank mechanism as shown in equation (2-5) (2-5) Equation (2-5) rearrange by denoting parameter n. where n is the ratio between length of connecting rod (L), to the radius of crankshaft (R). Where, (2-6) 2.3 TWO PHASE STEPPER MOTOR According to Alexandru Morar (2003), stepper motors are simple, robust and reliable and are well suited for open or close loop controlled actuator. Stepper can be found in machine tools, typewriters, printers, watches and many others. In space applications stepper motor are mainly used as actuators of pointing mechanisms for antennas, mirrors, telescope or complete payloads. In order to investigate the dynamics of mechanism driven by stepper motor a model had to be created. The electromechanical behavior of a stepper motor was described by control loops. This software calculates the dynamics of rigid and flexible bodies including the control loop dynamics. It generates the equation of motion and the transfer function numerically. Stepper motor is usually used in connection with gear, hence a gear model as well as electrical and mechanical stiffness, friction and resistances are considered.

6 The principle of a 2-phase stepper motor is given in the figure 2. The rotor is a permanent magnet consisting of 1 pole pair. When the windings of one phase are energized, a magnetic dipole is generated on a stator side. For an example, if phase 2 is active (phase 1 is switched off), winding 3 procedures an electrical south pole and winding 4 an electrical north pole. Figure 2.3 from Alexandru Morar (2003), shows the rotor is in stable position with phase 2 only powered Figure 2.3: Principle of 2 phase stepper motor According to Alexandru morar (2003), the number of steps per revolution of the rotor is calculated as: (2-7) Where, n is the number of rotor pole pairs and m is the number of stator phases. For the hybrid stepper motor, n is half the number of rotor teeth. The stepping angle is: (2-8) For the example of we have n=1 and m=2. So that we have 4 steps per revolution and a stepping angle of 90 degrees. If a sinusoidal characteristic of the magnetic field in the air gap is assumed, the contribution of each phase I on the motor torque T mj can be written as: (2-9)

7 Where: is the motor constant, depending on the design of the motor. is the actual rotor position is the location of the coil j in the stator is the current in the coil as function of time. The current in the coil is function of the supplied voltage and the coil properties. A general equation between and is given by: (2-9) Where: The Where the electromotive force induced in the phase j. R is the resistance of the coils L is the inductance of the coils. in each coil can be expressed as: is the rotational velocity of the rotor. (2-10) Resistances and inductances of all coils in the motor are the same so that no indices are required. The differential equation can be expressed in the LAPLACE domain as shown in the equation below: (2-11) The total torque produced by the stepper is: Considering the equation of motion of the stepper motor (2-12) (2-13) 2.4 PROPORTIONAL INTEGRAL DERIVATIVE (PID) CONTROLLER A Proportional Integral Derivative (PID) controller is a three term controller that has a long history in automatic control field, starting from the beginning of the last century (Bennett, 2000). Due to its intuitiveness and its relative simplicity, in