Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
This project is submitted as partial fulfillment of the requirements for the award of the
Degree of Bachelor of Electrical Engineering (Electronics)
17 NOVEMBER 2008
i
“All the trademark and copyrights use are property of their respective owner.
References of information from other sources are quoted accordingly; otherwise
the information presented in this report is solely work of the author.”
Signature : ………………………………..
ii
To my beloved parents, sister and brothers who has encouraged me along the
journey of my study
iii
ACKNOWLEDGMENT
I also would like to thank all the UMP’s lecturers and staffs for their
corporation in assisting me at various occasions. Their views and tips are useful
indeed.
Lastly, I wish to acknowledge to the people who give the support I needed
whether direct or indirectly. I also would like to thanks to my beloved family for
hoping the best of me. Thank you very, very much.
iv
ABSTRACT
v
ABSTRAK
vi
TABLE OF CONTENTS
TITLE PAGE i
DECLARATION ii
DEDICATION iii
ACKNOWLEDGEMENT iv
ABSTRACT v
ABSTRAK vi
TABLE OF CONTENTS vii
LIST OF TABLES x
LIST OF FIGURES xi
LIST OF GRAPH xii
LIST OF SYMBOLS xiii
LIST OF ABBREVIATION xiv
LIST OF APPENDICES xv
1 INTRODUCTION 1
1.1Background 1
1.2 Problem Statement 3
1.3 Objective 4
1.4 Scope of project 4
1.5 Thesis Organization 5
2 LITERATURE REVIEW 7
2.1 Proportional-Integration-Derivation Controller (PID Controller) 7
2.2 Ziegler-Nichols Method 11
vii
2.3 DC Motor 15
2.4 Data Acquisition (DAQ) Card 15
2.5 Laboratory Virtual Instrumentation Engineering Workbench
(LabVIEW) 17
3 METHODOLOGY 21
3.1 Introduction 21
3.2 System Flowchart 22
3.3 Software Development 24
3.3.1 DC Motor Modeling 24
3.3.2 Ziegler-Nichols Closed Loop Method 27
3.3.3 Simulation 30
3.3.4 LabVIEW Programming 32
3.4 Hardware Development 34
3.4.1 DC Motor 35
3.4.2 DAQ Card 36
3.4.3 Motor Driver G340 37
viii
5.3 Cost and Commercialization 52
REFERENCES 53
Appendices A – C 55-84
ix
LIST OF TABLES
x
LIST OF FIGURE
xi
LIST OF GRAPH
xii
LIST OF SYMBOLS
Ku - Gain Value
Pu - Period of Oscillation
Ti,Ki - Integral Time
Td,Kd - Derivative Controller
Kp - Proportional Gain
Kcr - Critical Gain
Pcr - Critical Period
xiii
LIST OF ABBREVIATION
PID - proportional-integration-derivation
DAQ - data acquisition card
USB - universal serial bus
DC - direct current
EMF - electromagnetic force
xiv
LIST OF APPENDICES
xv
Chapter 1
Introduction
1.1 Background
1
The motor model is Cliffton Percission. There are two things of this
motor that can be controlled; speed and angular movement. This project as it
state before is about controlling the speed. For example, if 12 volts is appointed
to the motor, and it is common sense the output is also 12 volts. However it
doesn’t go that way. The output maybe less, let say 10 volts. The different 2 volts
is what is called error. This error is sends or feedback to the summing point
(some of the part in PID). Then, the PID will do its job.
Before discuss further about the job that the PID done, it is time to
explain about the software needed to develop the PID controller. LabVIEW
version 8.5 is chosen. This software, developed by National Instrument is a
platform and development environment for a visual programming language. The
graphical language is named ―G‖. This programming software used graphical
method rather than coding or whatever language. This made this software is more
understandable to use.
2
1.2 Problem Statement
There are problems when trying to run any application or plant such as to
run DC motor speed, water tank level or others. The problems are or known
better as error; lag of efficiency, loss in terms of speed, rpm or anything regards
to the output of that applications. Thus, in order to eliminate or reduce these
errors, certain controller must be constructed. This controller will try to minimize
the error to get the best output possible.
3
1.3 Objective(s)
4
1.5 Thesis Organization
Chapter 3 explains about the methodologies that have been used in order
to complete this project. The methodology consists two part; software and
hardware. The parameters of the PID controller and the tuning methods were
including in this chapter.
5
Chapter 4 gives a detail result and analysis on the design aspects for the
systems, which consists the simulation of DC motor and also discussion on PID
controller development using LabVIEW.
6
Chapter 2
Literature Review
7
The PID controller calculation (algorithm) involves three separate
parameters; the Proportional, the Integral and Derivative values. The
Proportional value determines the reaction to the current error, the Integral value
determines the reaction based on the sum of recent errors, and the Derivative
value determines the reaction based on the rate at which the error has been
changing. The weighted sum of these three actions is used to adjust the process
via a control; the motor speed
The PID control scheme is named after its three correcting terms, whose
sum constitutes the manipulated variable (MV). Hence:
(2.1)
where Pout, Iout, and Dout are the contributions to the output from the PID
controller from each of the three terms, as defined below.[3]
i. Proportional
8
Where
Pout: Proportional term of output
Kp: Proportional gain, a tuning parameter
e: Error = SP − PV
t: Time or instantaneous time (the present)
ii. Integration
Where
Iout: Integral term of output
Ki: Integral gain, a tuning parameter
e: Error = SP − PV
τ: Time in the past contributing to the integral response