Professional Documents
Culture Documents
II. SECOND-ORDER ANALOG CIRCUIT Considering sampled-data control [9-10] of a SOAC which
The second-order analog circuit (SOAC) is given in Fig.1. is given in Fig.4, the transfer function from the zero-order
Fig.1 is composed of first-order analog circuit which is shown hold to plant is given as follows,
in Fig.2. 1 − e−Ts 5
G( s) = ⋅ 2 (2)
C
s s +s+5
R3 R4
R2 The discrete-time model of (2) can be calculated using the
Vi 2 + R
Vi1 Vo1 − R1
− Vo 2
residue formula [9-10]:
−
ª 1 º
+
R3 +
G ( z ) = ¦ « residues of G (Ȝ) (3)
R4
at poles ¬ 1 − z −1eTȜ »¼
of G (Ȝ)
Fig. 1 The second-order analog circuit (SOAC)
T Vo 2
Fig. 4 The block diagram of sampled-data control system
N1 z + N 2
= 2
(4) The input-output relationship is described in (5).
z + D1 z + D2 § V 5· V
A0 = −¨ − o 2 − ¸ = o 2 + 2.5 (5)
§ 19 ·
T
− 19 1 © 4 2¹ 4
where N1 = 1 − e 2¨ cos
¨ T+ sin T ¸¸ ,
© 2 19 2 ¹ When input voltage is Vo 2 = 10V , the output voltage is
− §
T
1 19 19 · A0 = 5V . When input voltage is Vo 2 = −10V , the output
N 2 = e −T + e 2 ¨¨ sin T − cos T ¸¸ ,
19 2 2 voltage is A0 = 0V . Hence, the ADI module can transfer
© ¹
T
− 10V ~ +10V to 0V ~ 5V . The ADI module is the
− 19 interface between Arduino UNO and the SOAC.
D1 = −2e 2
cos T , and D2 = e−T . Because Arduino UNO does not involve digital to analog
2
(D/A) module, the DAO module is synthesized additionally.
ڹ {•} is the operation of z transformation. The circuit of DAO is shown in Fig.7.
III. ARDUINO DIGITAL CONTROL SYSTEM
The controller is implemented by an Arduino UNO [8]. The V8
hands-on circuits are implemented by breadboarding as shown
Vi 2
in Fig.5. There are three parts in this breadboard. It includes
the SOAC, the analog to digital input module (ADI) and the
digital to analog output module (DAO).
182
IV. PID CONTROL
The PID controller is a classical three-term controller which
is widely used in the industry. There are many advantages for
this compensator. For example, PD control improves damping
and reduces maximum overshoot. PI control can reduce or
eliminate the steady-state error. However, it is very simple
and easily implemented. The z-transfer function of digital PID
controller is given as follows [9-10],
Gc ( z ) =
U ( z)
E ( z)
= Kp +
Ki
1− z −1
(
+ K d 1 − z −1 ) (7)
183
NB NM NS ZE PS PM PB The denormalized factor is set as ηc = 14 . Compare the
step response of Fig.12 with Fig.10, the settling time of PID
A control is about 2.5 seconds and FLC is about 5 seconds. The
−1 − 0.3 − 0.1 0 0.1 0.3 1 PID control is superior to FLC in this case. Hence, FLC must
be re-tuned for the optimal values. There are many factors
must be adjusted in FLC, so students can learn a lot for this
B
− 1 − 0.6 − 0.3 0 0.3 0.6 1 experiment.
VI. CONCLUSIONS
C In this paper, we proposed an innovative undergraduate
−1 − 0.3 − 0.1 0 0.1 0.3 1 control system laboratory curriculum of the engineering
Fig. 11 Membership functions education. At first, the SOAC system had experimented on the
breadboard. The step response of SOAC was exhibited on a
TABLE I digital oscilloscope. The rise time, delay time, maximum
FUZZY CONTROL RULES overshoot, peak time and settling time could be measured. The
digital controller was implemented with Arduino UNO. Then
the PID control and fuzzy control were programmed with
Arduino IDE. From experimental results, the student could
learn hands-on experience and the related control system
course subjects. From the assessment based on student
surveys, the students all satisfied with these hands-on
experiments and the education object is achieved.
ACKNOWLEDGMENT
The author would like to express sincere thanks to the
reviewers for their invaluable comments and suggestions. This
work was supported by the MOE Teaching Practice Research
Program and the MOST 107-2637-E-168-007.
The centroid defuzzification method calculates the weighted REFERENCES
average of fuzzy set as follows. [1] B. C. Kuo and F. Golnaraghi, Automatic Control Systems, 8th ed. John
49
Wiley & Sons, New York, USA, 2003.
¦ C ((u ) ) × (u )
n n
(9)
[2] G. F. Franklin, J. D. Powell and A. Emami-Naeini, Feedback Control
u = η c × n =1 49
of Dynamic Systems, 4th ed. New Jersey: Prentice Hall, 2002.
[3] J.-H. Li, “Hands-on dsp-based digital control laboratories for the
¦ C ((u ) ) n undergraduate curriculum”, The 12th Military Academy Basic
n =1 Academic ConferenceˈKaohsiung, Taiwan, pp.c-122-c-126, 2005.
where η c is the denormalized factor. The experimental result [4] J.-H. Li, “An undergraduate digital control project: a dsp-based
magnetic levitation system”, World Transactions on Engineering and
is shown in Fig.12. This is a step response of 5Volts. The Technology Education, vol.5, no.1, pp.207-210, 2006. Available:
http://www.wiete.com.au/journals/WTE&TE/Pages/TOC_V5N1.html
normalized factors are assigned ηa = 10 and ηb = 30 . [5] J.-H. Li and P.-T. Wang, “Hands-on control systems laboratories and
assessments for the undergraduate curriculum”, Journal of Kun Shan
University, no.7, pp.99-115, 2010.
[6] B. Catalbas and I. Uyanik, “A Low-cost Laboratory Experiment Setup
for Frequency Domain Analysis for a Feedback Control Systems
Course”, IFAC PapersOnLine vol.50-1, pp.15704–15709, 2017.
[7] I. Uyanik and B. Catalbas, “A low-cost feedback control systems
laboratory setup via Arduino–Simulink interface”, Computer
Applications in Engineering Education, vol.26, issue 3, pp.718-726,
2018.
[8] Arduino [online]. Available: https://www.arduino.cc/
[9] C. L. Phillips and H. T. Nagle, Digital Control System Analysis and
Design, 3rd ed. New Jersey: Prentice Hall, 1995.
[10] G. F. Franklin, J. D. Powell and M. Workman, Digital Control of
Dynamic Systems, 3rd ed. Menlo Park, CA: Addison Wesley, 1998.
[11] Wang, L.-X., A Course in Fuzzy Systems and Control, Prentice-Hall,
New Jersey (1997).
184