Professional Documents
Culture Documents
Krisada Sangpetchsong
Marine Engineering Department, The Academic Branch, Royal Thai Naval Academy
204 Sukhumwit Road Paknam, Samutprakan 10270, Thailand, Tel. 0-2475-3864 Email: krisada.s@navy.mi.th
Abstract
An increasing number of engineered systems are
relying more on electronics digital controllers. This
creates a challenge when teaching students following
traditional mechanical engineering curriculum,
lacking basic knowledge in digital electronics and
microprocessors. This paper presents a project-based
learning at Marine Engineering Department, Royal
Thai Naval Academy, to provide marine engineering
students with a cheap and comprehensive set of
experiments, to design a conventional DC motor
speed controller in under 6 hours with Model-Based
Design and Rapid Prototyping techniques. During the
experiments, students must identify and validate the
system model, apply Root Locus technique to
controller design, compare controller performances
between pure simulations and an actual discrete-time
controller with Hardware in the Loop tests, and
lastly, implement a stand-alone controller with a
microcontroller. The approach eliminates the needs
for students to have in-depth basic knowledge that
most marine engineering students lack. Yet, it
presents students the whole design process including
such common real-world issues as non-linearity and
system noises. It is believed that the same approach
can benefit even electrical engineering students
taking control theory courses, since it focuses on
pertinent design techniques, control system analysis,
and concisely shows relationships between theories
and real-world implementation issues.
Keywords:
1. Whats Wrong?
An increasing number of engineered systems,
including a large array of mechanical systems, are being
controlled by electronic digital controllers. Although this
technological advancement makes control system design
and implementation easier and more powerful, it
presents a challenge when teaching feedback control
theory to students major in mechanical engineering such
as naval cadets in Marine Engineering Department,
Royal Thai Naval Academy (RTNA). By nature, these
students have very limited knowledge about
analog/digital electronics circuit analysis, embedded
systems, and C programming. Furthermore, time and
curriculum prevent them from taking basic classes
necessary to understand modern control theory such as
digital
electronics,
discrete-time
system,
and
microprocessors. Nonetheless, after graduation, these
The 36th Electrical Engineering Conference : EECON- 36
students have to operate and maintain a range of highcost hi-tech systems in warships that may rely on either
classical or modern control theories. This situation raises
a question about how to best find the balance and
prepare these students for their future responsibilities.
The followings are immediate requirements for
designing learning experiments in automatic control
system course at the department:
Matlab
Simulink
Simulink Coder
Embedded Coder
Control System Toolbox
System Identification Toolbox
Waijung Blockset
Controller Module
Fig. 1 Hardware Setup
3. The Experiments
The goal of the experiment is to design a digital
controller to control angular speed of a DC motor. The
experiment is divided into 5 phases as follows.
1.
2.
3.
4.
5.
25
20
15
10
5
99
100
101
102
103
104
105
103
104
105
103
104
105
Position (deg)
1000
500
0
99
100
101
102
100
101
102
Time (sec)
Fig. 5 Angular positions and speed for 20% duty cycle PWM
control signal.
800
700
600
500
No low-pass filtering
With low-pass filtering
400
300
200
99
100
101
102
Time (sec)
103
104
105
100
80
60
40
20
0
0
20
40
60
80
120
4000
Speed (deg/sec)
100
3000
2000
1000
Operating Region
0
20
40
60
Time (sec)
80
100
120
( )
(1)
( )
( )
(2)
(3)
Output
1
0.8
0.6
0.4
Continuous-time response
Discrete-time response
0.2
0
0.5
1.5
2
2.5
Time (sec)
3.5
Outputs
from
Simulation
Test
Input
Signals
Fig. 12 Time-domain step response of the resultant system.
Outputs
from
Real Hardware
900
800
700
600
500
400
Command Input
Simulated discrete-time response
Real hardware response
300
200
100
10
15
20
Time (sec)
25
30
35
40
5. Conclusions