SlideShare a Scribd company logo
IAES International Journal of Artificial Intelligence (IJ-AI)
Vol. 13, No. 3, September 2024, pp. 2816~2828
ISSN: 2252-8938, DOI: 10.11591/ijai.v13.i3.pp2816-2828  2816
Journal homepage: http://ijai.iaescore.com
TMS320F28379D microcontroller for speed control of
permanent magnet direct current motor
Tanawat Chalardsakul, Chotnarin Piliyasilpa, Viroch Sukontanakarn
Department of Mechatronics Engineering, Faculty of Engineering, Rajamangala University of Technology Isan, Khon Kaen, Thailand
Article Info ABSTRACT
Article history:
Received Oct 31, 2023
Revised Feb 16, 2024
Accepted Feb 29, 2024
This paper aims to study the behavior of the proportional integral derivative
(PID) and the fuzzy-based tuning PI-D controller for speed control of a
permanent magnet direct current (PMDC) motor. The proposed method used
a fuzzy-based tuning PI-D controller with a MATLAB/Simulink program to
design and real-time implement a TMS320F28379D microcontroller for
speed control of a PMDC motor. The performance of the study designed
fuzzy-based tuning PI-D and PID controllers is compared and investigated.
The fuzzy logic controller applies the controlling voltage based on motor
speed errors. Finally, the result shows the fuzzy-based tuning PI-D controller
approach has a minimum overshoot, and minimum transient and steady state
parameters compared to the PID controller to control the speed of the motor.
The PID controllers have poorer performance due to the non-linear features
of the PMDC motor.
Keywords:
Fuzzy logic controller
MATLAB/Simulink
Microcontroller
Permanent magnet DC motor
PID controller
This is an open access article under the CC BY-SA license.
Corresponding Author:
Tanawat Chalardsakul
Faculty of Engineering, Rajamangala University of Technology Isan
150 Srichan Road, Khon Kaen, Thailand
Email: tanawat.ca@rmuti.ac.th
1. INTRODUCTION
At present, permanent magnet direct current (PMDC) motors are an electrical machine that has been
applied in many applications to drive mechanical mechanisms [1], [2]. Tasks that require speed control,
position, or torque of the mechanical load. The power supply is alternating current; the current must be rectified
to direct current first. In most robots, it is popular to use PMDC motors that are easy to control, provide high
torque, and, most importantly, use batteries as electric power feeds. The built-in speed controller, torque, and
position can use a variety of microcontroller boards and a variety of algorithms for accurate, fast, and stable
control. PMDC motors are used in various industrial applications and robots [3] to control the rotational speed.
The voltage input to the motor is controlled using a chopper control method that can control the speed and
torque well.
The proportional integral derivative (PID) controllers [4]–[6] are used for automatic process control
and robotics in industries. PID controllers are the most popular controllers in both the process and
manufacturing industries. Furthermore, according to research on PID controllers, about ninety percent (90%)
of process industries [7] employ PID as controllers. The PID controller [8] has simplicity, stability, and
robustness; it is a type of controller that is most widely applied. This popularity is a result of their robustness,
simplicity, and ease of retuning control parameters. The PID controller has been conventionally regarded as
the best controller in the absence of fundamental process knowledge.
Fuzzy logic controller [9]–[11] are the science of computing of calculations that play a greater role in
the field of research computer and can be applied in many different jobs such as medical, military, business,
and industry. The research study to understand the science of fuzzy logic and deep neural networks, which are
to be applied in various fields, is becoming more and more in demand. The computer system that has the ability
Int J Artif Intell ISSN: 2252-8938 
TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul)
2817
to automatically adjust the system according to the environment has changed, making smarter, more
human-like decisions so that humans can solve problems that were not previously solved by using old
knowledge that was learned and applied to effectively solve problems.
The design of the MATLAB Simulink embedded coder for TMS320F28379D [12], which is the
program used for the development and control of programming algorithms by using a set of diagrams, is
ready-made in the Simulink library. By selecting the target support package, you will find a chip support library
consisting of ready-made diagrams such as analog-to-digital converter (ADC), enhanced quadrature encoder
pulse (eQEP), and enhanced pulse width modulator (ePWM). For compilation, it can be used with the composer
studio code program, also called the CCS program. By creating code at the location of the CCS program, the
real-time working part of the MATLAB/Simulink program, this CCS program will be compiled into the C
language first. It then converts the data into machine language for the controller. Digital signals from the
TMS320F28379D microprocessor board can be debugged into programs through the joint test action group
(JTAG) emulator to store data in registers without having to compile the program. There are many research
articles showing how to control the speed and position of a DC motor using a simulator. The first step is to find
the parameters using MATLAB to solve the control and display problems, and the TMS320F28379D board
with MATLAB program is used for real-time use [13].
The DC-to-DC converter, also called chopper circuits, is a circuit that is commonly used in industrial
applications and computers. A chopper circuit involves changing a DC power supply from one voltage to
another. It consists of power electronic devices such as bipolar junction transistor (BJT), silicon controlled
rectifier (SCR), insulated gate bipolar transistor (IGBT), or gate turn-off thyristor (GTO); which act as switches
controlling the duty cycle of the output waveform, making it possible to control the average value of the output
voltage of the chopper circuit helps to control the acceleration or Speed of DC electric motor to be highly
efficient, smooth and responsive to move quickly This makes the chopper circuit [14] suitable for many types
of work, such as the braking of DC electric motors. To return energy to the supply and resulting in saving
energy. The chopper may act as a source that converts the DC voltage down, or it may act as a source that
converts the DC voltage to a higher level.
The paper presents the following topics. The mathematical modeling and control objectives are
described in section 2. In section 3, the experimental study of controller systems such as PID controllers and
adaptive PI-D controllers is carried out. The fuzzy dressings [10], [11], [15] are respectively designed. In
section 4, the designed controller testing methods are applied to the PMDC motor model, along with the
experimental results [16], [17]. Finally, the results of the experiment are summarized in section 5.
2. RESEARCH METHOD
2.1. The mathematical modelling of permanent magnet direct current motor
PMDC motor uses permanent magnets located in the stator to provide the magnetic field instead of it
being created in stator windings. The equivalent circuit diagram of the PMDC motor [18] is the
electromechanical system consisting of electrical and mechanical components as shown in Figure 1.
Figure 1. The equivalent circuit diagram of the PMDC motor
When a voltage is applied to the armature winding, it creates a magnetic field in the armature winding
and interacts with the permanent magnetic field in the stator to create torque in the armature, as shown in (1).
𝑇𝑚 = 𝐾𝑡𝑖𝑎 (1)
Where 𝑇𝑚 is the developed torque in the motor, 𝐾𝑡 is the torque constant, and 𝑖𝑎 is the armature current. The
armature winding intersects with the result of the magnetic field and creates a back electromotive force (EMF)
in the armature winding, as shown in (2).
𝑒𝑎(𝑡) = 𝐾𝑏
𝑑𝜃𝑚(𝑡)
𝑑𝑡
= 𝐾𝑏𝜔𝑚 (2)
 ISSN: 2252-8938
Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828
2818
where 𝑒𝑎 is the back EMF, 𝐾𝑏 is the EMF constant, and 𝜔𝑚 is shaft angular velocity. Applied Kirchhoff’s law
of input voltage as (2):
𝑉𝑖𝑛(𝑡) = 𝑅𝑎𝑖𝑎(𝑡) + 𝐿𝑎
𝑑𝑖𝑎(𝑡)
𝑑𝑡
+ 𝐾𝑏
𝑑𝜃𝑚(𝑡)
𝑑𝑡
(3)
where 𝑅𝑎 is the armature resistance, 𝐿𝑎 is the armature inductance, 𝜃𝑚 is the motor shaft output angle, and
𝑉𝑖𝑛 is the input voltage. Taking Laplace transform in (3), given as in (4)
𝑉𝑖𝑛(𝑠) = 𝑅𝑎𝐼𝑎(𝑠) + 𝐿𝑎𝑠𝐼𝑎(𝑠) + 𝐾𝑏𝑠𝜃𝑚(𝑠) (4)
The transfer function of the PMDC motor is as (5) and (6):
𝐼𝑎(𝑠)
[𝑉𝑖𝑛(𝑠)−𝐾𝑏𝜔(𝑠)]
=
1
(𝐿𝑎𝑠+𝑅𝑎)
(5)
𝐼𝑎(𝑠) =
[𝑉𝑖𝑛(𝑠)−𝐾𝑏𝜔(𝑠)]
(𝐿𝑎𝑠+𝑅𝑎)
(6)
The mechanical mathematical model is the sum of the torques, shown as (7):
𝐾𝑡𝐼𝑎(𝑠) = (𝐽𝑚𝑠 + 𝑏𝑚)𝑠𝜃(𝑠) + 𝑇𝐿(𝑠) (7)
where 𝑇𝐿 is the load torque, 𝐽𝑚 is the inertia of the motor, and 𝑏𝑚 is the damping friction, the mechanical
component transfer function is given by (8).
𝜔𝑚(𝑠)
𝐾𝑡𝐼𝑎(𝑠)−𝑇𝐿(𝑠)
=
1
𝐽𝑚𝑠+𝑏𝑚
(8)
If 𝑇𝐿 = 0, we have
𝜔𝑚(𝑠)
𝐾𝑡𝐼𝑎(𝑠)
=
1
𝐽𝑚𝑠+𝑏𝑚
(9)
Then:
𝐾𝑡𝐼𝑎(𝑠) = (𝐽𝑚𝑠 + 𝑏𝑚)𝑠𝜃(𝑠) (10)
The relationship between the input voltage and the motor shaft output angular velocity of the PMDC motor
without a load attached is shown in (11).
𝜔𝑚(𝑠)
𝑉𝑖𝑛(𝑠)
=
𝐾𝑡
[(𝐿𝑎𝑠+𝑅𝑎)(𝐽𝑚𝑠+𝑏𝑚)+𝐾𝑡𝐾𝑏]
(11)
The simplification of the open-loop transfer function of the PMDC motor without load is shown in (12).
𝜔𝑚(𝑠)
𝑉𝑖𝑛(𝑠)
=
𝐾𝑡
[(𝑅𝑎𝐽𝑚)𝑠+(𝑅𝑎𝑏𝑚)+𝐾𝑡𝐾𝑏]
(12)
Consider in (12), the transfer function relationship between the input voltage and the rotational speed of the
motor as shown in Figure 2. Next is a reference to Table 1 shows the electrical properties of the PMDC motor
used in the experimental study. Then Table 2 explains the mechanical properties of the PMDC motor.
Figure 2. The block diagram of the PMDC motor
Int J Artif Intell ISSN: 2252-8938 
TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul)
2819
Table 1. The electrical properties of PMDC motor
Parameter Value
Nominal voltage
Rate power input
No load speeds
No load currents
Nominal current
Electric resistance
Electric inductance
Back EMF constant
24 V
100 W
3500 rpm
0.55 A
3.1 A
2.1 Ω
0.035 mH
0.006 V/rpm
Table 2. The mechanical properties of PMDC motor
Parameter Value
Moment of inertia
Friction coefficient
Torque constant
0.00025 Nm/rad/s2
0.0002 Nm/rad/s
0.057 Nm/A
2.2. Fuzzy-based tuning PI-D controller structure
The PID controller cannot tune the parameters of the plant control and cannot be adjusted when the
electric motor operates in a non-linear manner. Hence, fuzzy-based tuning of PI-D is necessary to automatically
tune the PI-D parameters. The proposed controller is shown in Figure 3.
Figure 3. Block diagram of the fuzzy-based tuning PI-D controller
The output of the fuzzy-based tuning PI-D controller is given in (14)
𝑈𝑐𝑜𝑛𝑡(𝑡) = 𝐾𝑃𝑒(𝑡) + 𝐾𝐼 ∫ 𝑒(𝑡)𝑑𝑡
𝑡
0
+ 𝐾𝐷
𝑑
𝑑𝑡
𝑒(𝑡) (14)
With its Laplace transform:
𝑈𝑐𝑜𝑛(𝑠) = 𝐾𝑃 +
𝐾𝐼
𝑠
+ 𝐾𝐷𝑠 (15)
By using backward Euler methods for both the integral and derivative terms, the resulting discrete-time PID
controller is represented in (16):
𝑈𝑐𝑜𝑛(z) = KP +
KITsz
z−1
+
KDN(z−1)
(1+NTs)z−1
(16)
Details of the fuzzy logic controller [19]–[21] are shown in Figure 4, where there are two inputs to
the fuzzy inference: 𝑒 , and ∆𝑒. And two outputs: 𝐾𝑃𝑓 , and 𝐾𝐼𝑓. The parameters 𝑘1, 𝑘2, 𝛼 and 𝛽 are input/output
scaling factors. To determine the domain of each PI-D parameter [22]. The parameters of PI were defined as:
𝐾𝑃 ∈ (0,100), 𝐾𝐼 ∈ (0,1). Thus, the scales of the fuzzy interval (0, 1) as follows:
𝐾𝑃 = 𝛼𝐾𝑃𝑓 + 𝑃1 (17)
𝐾𝐼 = 𝛽𝐾𝐼𝑓 + 𝑃2 (18)
𝐾𝐷 = 𝑃3 (19)
where, 𝛼 = 0.15, 𝛽 = 40, 𝑃1, 𝑃2 and 𝑃3 is external gain input.
 ISSN: 2252-8938
Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828
2820
Figure 4. Structure of thr fuzzy logic controller
A fuzzy logic controller has four main components fuzzification interface, inference mechanism, rule
base, and defuzzification interface. It consists of three membership functions with two inputs and one output.
Each membership function consists of two trapezoidal memberships and five triangular memberships.
Figure 5 shows the membership function of fuzzy input controllers. Figure 5(a) is the FIS editor. Figure 5(b)
is membership function of error as input. Figure 5(c) is the membership function of ang_in_error as input. The
surface viewers and rules of 𝐾𝑃 and 𝐾𝐼 are shown in Figure 6.
(a) (b)
(c)
Figure 5. Membership function of fuzzy input controllers; (a) the FIS editor, (b) membership function of
error as input, and (c) membership function of ang_in_error as input
Int J Artif Intell ISSN: 2252-8938 
TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul)
2821
Figure 6. Surface viewer and rules
2.3. Chopper circuit
In the operation of the chopper, shown in the circuit diagram of the chopper in Figure 7, the circuit is
using control of the on-off period. During operation of the period, the chopper [23] is on, and the output voltage
is equal to the source voltage. When the chopper is off and the output voltage is zero. The average voltage
shown is the following:
𝑉
𝑜 = (
𝑇𝑜𝑛
(𝑇𝑜𝑛+𝑇𝑜𝑓𝑓)
)𝑉1 (20)
𝑉
𝑜 = (
𝑇𝑜𝑛
𝑇
)𝑉1 (21)
𝑉
𝑜 = 𝛼𝑉1 (22)
𝑉
𝑜 = 𝑓𝑇𝑜𝑛𝑉1 (23)
where 𝑇𝑜𝑛 is on-time, 𝑇𝑜𝑓𝑓 is off-time, 𝑇 = 𝑇𝑜𝑛 + 𝑇𝑜𝑓𝑓 is chopping period, 𝛼 is duty cycle percent, 𝑓 =
1
𝑇
is
chopping frequency, 𝑉
𝑜 is output voltage, and 𝑉1 is source voltage.
 ISSN: 2252-8938
Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828
2822
Figure 7 shows the circuit diagram for the PMDC motor. The step-down chopper consists of IGBT
switch (M2) and a diode (DF). A DC voltage source of input voltage (V1) is connected at the input, while a
PMDC motor is connected at the output.
Figure 7. Circuit diagram of step-down chopper with PMDC motor connection
3. EXPERIMENT OF PROPOSED METHOD
3.1. Experimental platform practice
The experiment platform model [24]–[26] circuit is made up of a PMDC motor with an encoder to
detect the speed of the motor. The connection of the personal computer to the TMS320F28379D board for the
generation of pulse control to the chopper circuit drive and education practice set. When the electrical circuit
is complete, open the MATLAB program. Perform a test on the specified program as shown in Figure 8.
Figure 8. The experimental setup
The experimental model practice includes potentiometers, which allow modifying the system by
modifying the gain of the system. This manual adjusts the parameters of the potentiometer, which has four
different gain values (Kp, Ki, and Kd) as shown in Figure 9. Define input PID controller by using
Int J Artif Intell ISSN: 2252-8938 
TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul)
2823
potentiometers: P1 is P-gain (0-10Vdc) convert to 0-4095 (12bit). P2 is I-Gain (0-10Vdc) convert to
0-4095(12bit), P3 is D-gain (0-1Vdc) convert to 0-4095(12bit). P5 is set point reference input, C2 is feedback
path from speed sensor from 0-4000 rpm to 0-4095(12bit).
Figure 9. Experiment lab practice set
3.2. The proportional integral derivative controller with MATLAB/simulink program
The experiment model study in only PID control [27], [28] is shown in Figure 10. The PID controllers
tune parameters using hand-tuning methods [29]. This PID controller combines proportional, integral, and
derivative controls together. The controllers are connected in parallel. The gain values of 𝐾𝑃, 𝐾𝐼, and 𝐾𝐷 depend
on the condition of the error between the input value and the output value. When tuning these parameters, the
dynamic reactivity of the system can be improved, eliminating steady-state errors, reducing overshoot, and
increasing the stability of the controlled system. The block parameters of the PID (z) controller to use a
discrete-time domain is shown in Figure 11.
Figure 10. The MATLAB/Simulink block diagram in experimental setup
 ISSN: 2252-8938
Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828
2824
Figure 11. The block parameters PID controller in MATLAB/Simulink
3.3. Experiment of the fuzzy-based tuning PI-D controller
The working principle of fuzzy self-adjustment is that all error values are changed to adjust the
parameters of the three PID controllers in real time. So that the system has good dynamic and static
performance to desire response, minimize the settling time and rise time. The experimental cycle model in
MATLAB/Simulink is shown in Figure 12.
Figure 12. The experiment Simulink model of the fuzzy-based-tuning PI-D controller for PMDC motor
4. EXPERIMENT RESULTS AND DISCUSSION
The experimental results of both PID and fuzzy-based tuning PI-D controller were used to compare the
advantages and disadvantages of speed control for the PMDC motor. The experiment is proposed to validate the
correctness of the controller based on the model used to test that it has good motor speed control performance
using both PID and fuzzy-based tuning PI-D controller schemes. The test results can be explained as follows.
4.1. The results of PID controller for speed control of PMDC motor
The results of the experiment have been done using a PC with the Windows 10 operating system and
MATLAB/Simulink R2018a. The test results of the motor speed control circuit with a PID controller are shown
Int J Artif Intell ISSN: 2252-8938 
TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul)
2825
in Figure 10. It can be seen that while changing the input reference value, it takes a very long time for the
velocity to reach the reference value, and in Figure 13, in the steady state, there is oscillation. The motor speed
is unstable, and there is vibration.
Figure 13 shows test results from Figure 10 that have been performed, producing sudden changes in
the PMDC motor. These tests have been performed by varying the potentiometer gains of 𝐾𝑃 = 5, 𝐾𝐼 = 2.8,
𝐾𝐷 = 0, and set point gain (P5). It has not been saturated in any of the experimental cases. The steady-state
errors of the dynamics system change with the same gain by the controller in Figure 13(b), Observe the
steady-state response when using a PID controller. It will be found that the rotational speed of the motor is
fluctuating and does not rotate smoothly, as shown in Figure 14. A better controller must be found to adjust
this value. As will be presented in the next chapter.
(a)
(b)
Figure 13. Experiment speed response of PMDC motor under difference speed reference input, (a) response
of motor speed after use PID controller and (b) the output gain of PID controller
4.2. The results of fuzzy based tuning PI-D controller for speed control of PMDC motor
From the results of the experimental study, when connecting the circuit and using the frame diagram
shown in Figure 12, the test results can be seen in Figure 15. The parameters of the fuzzy-based tuning PI-D
controller adjustments are automatically adjusted to meet the desired response at various speed values.
Therefore, it is found that the fuzzy-based tuning PI-D controller provides better system control performance
than the conventional PID controller. When comparing the performance of the conventional PID controller with
the customized fuzzy-based tuning PI-D controller, it was found that the fuzzy-based tuning PI-D controller
 ISSN: 2252-8938
Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828
2826
provides better dynamic response. It has a shorter settling time, rise time, a steady state error of zero, an
increasing maximum time exceeded, and a fairly strong anti-interference ability. When considering Figure 13
shows experiment speed response of PMDC motor under difference speed reference input. Figure 13(a) is
response of motor speed after use PID Cotroller. Figure 13(b) is the output gain of PID controller. Figure 14
show the zoom out of experiment speed response of PMDC motor under steady-state response of speed reference
input condition. Figure 14(a) is the steady state response of speed motor. Figure 14(b) is the gain of controller.
Figure 15 shows experiment speed response of PMDC motor under difference speed reference input condition.
Figure 15(a) is response of motor speed after use PID controller. Figure 15(b) is the output gain of fuzzy based
tuning PI-D controller. When comparing the results of the motor speed responses of two types of controllers, it
can be seen that the fuzzy-based tuning PI-D controller is able to control the system with more stability. There
is less fluctuation in rotational speed or overshoot than with a PID controller, and reaching the set value or set
point in a shorter time can be both positive and negative. In order to make the control system able to respond to
external noise very well, this makes the control stability constant under various noises or disturbances. Table 3
summarizes the advantages and disadvantages of both controllers.
(a) (b)
Figure 14. The zoom out of experiment speed response of PMDC motor under steady-state response of speed
reference input condition: (a) the steady state response of speed motor and (b) the gain of controller
(a) (b)
Figure 15. Experiment speed response of PMDC motor under difference speed reference input condition,
(a) response of motor speed after use PID controller and (b) output gain of fuzzy based tuning PI-D controller
Table 3. The comparison between the conventional PID controller and the fuzzy based tuning PI-D controller
Parameter PID Controller The fuzzy based tuning PI-D controller
Overshoot
Settling
Transient
Rise time
Present
More
Present
Less
Not present
Less
Not present
More
Int J Artif Intell ISSN: 2252-8938 
TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul)
2827
5. CONCLUSION
Results of testing motor speed control using a chopper circuit, that has a TMS320F28379D
microcontroller board as a generator for driving signals and measuring using the program MatlabSimulink in
real time to compare the controllers for controlling the speed of electric motors by using PID and the fuzzy-
based tuning PI-D controller. From the test, it was found that the control performance of the two controllers
would be compared. Both types of controllers are designed to have convergence times to steady state (setting
time) at the same time. The fuzzy-based tuning PI-D controller provides slightly better steady-state error values.
PID controllers must be adjusted to every control at the desired rpm, whereas fuzzy logic controllers require.
It has a wider range of adjustments each time and has a better response than using fuzzy logic to adjust the
parameters. The 𝐾𝑃, 𝐾𝐼, and 𝐾𝐷 gains of the PID control system are control systems that adjust the response to
changes between input and output data. The fuzzy-based tuning PI-D controller is an automatic system with a
PID controller controlling the processing of results and a fuzzy controller adjusting the value. Parameters of
PID Controller This system is a system that can adjust parameters automatically (self-tuned PID controller).
ACKNOWLEDGEMENTS
The authors like to thank Department of Mechatronics and RMUTI Khon Kaen for providing the
laboratory and experimental lab practices for this research.
REFERENCES
[1] B. B. Acharya, S. Dhakal, A. Bhattarai, and N. Bhattarai, “PID speed control of DC motor using meta-heuristic algorithms,”
International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 12, no. 2, pp. 822–831, Jun. 2021, doi:
10.11591/ijpeds.v12.i2.pp822-831.
[2] S. Oladipo, Y. Sun, and Z. Wang, “Optimization of PID controller with metaheuristic algorithms for DC motor drives: review,”
International Review of Electrical Engineering (IREE), vol. 15, no. 5, Oct. 2020, doi: 10.15866/iree.v15i5.18688.
[3] S. A. -Khalil, S. A. -Rahman, S. Mutalib, S. I. Kamarudin, and S. S. Kamaruddin, “A review on object detection for autonomous
mobile robot,” IAES International Journal of Artificial Intelligence (IJ-AI), vol. 12, no. 3, pp. 1033–1043, Sep. 2023, doi:
10.11591/ijai.v12.i3.pp1033-1043.
[4] S. N. A. -Bargothi, G. M. Qaryouti, and Q. M. Jaber, “Speed control of DC motor using conventional and adaptive PID controllers,”
Indonesian Journal of Electrical Engineering and Computer Science, vol. 16, no. 3, pp. 1221–1228, Dec. 2019, doi:
10.11591/ijeecs.v16.i3.pp1221-1228.
[5] B. T. H. Linh, “Comparison of hybrid fuzzy-PID and PID controller for speed control of DC motor,” International Journal of
Creative and Innovative Research in All Studies, vol. 4, no. 5, pp. 10–12, 2021.
[6] I. D. Fajuke and A. Raji, “Optimal tuning of PID controller for speed control of DC motor using equilibrium optimizer,” Indonesian
Journal of Electrical Engineering and Computer Science, vol. 30, no. 1, pp. 89–101, Apr. 2023, doi: 10.11591/ijeecs.v30.i1.pp89-101.
[7] H. L. B. Thi, “Design of hybrid fuzzy PID controller for dc servo motor part 2: the hybrid fuzzy PID controller applied for a DC
motor,” International Journal of Advances in Engineering and Management (IJAEM), vol. 12, no. 3, pp. 1549–1553, 2021, doi:
10.35629/5252-031215491553.
[8] S. K. Yadav, “DC motor position control using fuzzy proportional-derivative controllers with different defuzzification methods,” IOSR
Journal of Electrical and Electronics Engineering (IOSR-JEEE), vol. 10, no. 1, pp. 37–47, 2015, doi: 10.9790/1676-10133747.
[9] B. S. Rintyarna, A. B. Nugroho, and M. H. Niam, “Implementation of fuzzy-PID controller as a DC motor speed controller based
on Arduino UNO,” Journal of Software Engineering and Simulation, vol. 7, no. 10, pp. 16–25, 2021.
[10] M. K. Kaloi, “Fuzzy-PID based control scheme for PMDC series motor speed control,” Indian Journal of Science and Technology,
vol. 13, no. 28, pp. 2911–2923, Jul. 2020, doi: 10.17485/IJST/v13i28.653.
[11] A. G. Alfano, H. Maghfiroh, I. Iftadi, C. H. B. A., and F. Adriyanto, “Modelling and simulation of DC motor speed control using
fuzzy-PID algorithm,” Journal of Electrical, Electronic, Information, and Communication Technology, vol. 1, no. 1, pp. 13-18, Oct.
2019, doi: 10.20961/jeeict.v1i1.34260.
[12] S. Elert, “Programming possibilities using MATLAB simulink embedded coder on the example of data analysis from ahrs module,”
Journal of Physics: Conference Series, vol. 1507, no. 8, Mar. 2020, doi: 10.1088/1742-6596/1507/8/082042.
[13] J. Aravena et al., “Design and implementation of a low-cost real-time control platform for power electronics applications,” Energies,
vol. 13, no. 6, Mar. 2020, doi: 10.3390/en13061527.
[14] V. R. Pote, M. K. Suryawanshi, and A. A. Bhalerao, “MATLAB simulation of speed Control of D.C. motor by using chopper,”
International Journal of Emerging Technologies in Engineering Research (IJETER), vol. 5, no. 1, pp. 42–46, 2017.
[15] H. Maghfiroh, M. Ahmad, A. Ramelan, and F. Adriyanto, “Fuzzy-PID in BLDC motor speed control using MATLAB/Simulink,”
Journal of Robotics and Control (JRC), vol. 3, no. 1, pp. 8–13, Jun. 2021, doi: 10.18196/jrc.v3i1.10964.
[16] B. Hamed and M. Almobaied, “Fuzzy PID controllers using FPGA technique for real time DC motor speed control,” Intelligent
Control and Automation, vol. 2, no. 3, pp. 233–240, 2011, doi: 10.4236/ica.2011.23028.
[17] I. A. Abed and S. H. Majeed, “DC/DC converter control using suggested artificial intelligent controllers,” IAES International
Journal of Artificial Intelligence (IJ-AI), vol. 10, no. 4, pp. 847–857, Dec. 2021, doi: 10.11591/ijai.v10.i4.pp847-857.
[18] Y. G. Rashid and A. M. A. Hussain, “Implementing optimization of PID controller for DC motor speed control,” Indonesian Journal
of Electrical Engineering and Computer Science, vol. 23, no. 2, pp. 657–664, Aug. 2021, doi: 10.11591/ijeecs.v23.i2.pp657-664.
[19] Z. Zhu et al., “Fuzzy PID control of the three-degree-of-freedom parallel mechanism based on genetic algorithm,” Applied Sciences,
vol. 12, no. 21, Nov. 2022, doi: 10.3390/app122111128.
[20] H. Jigang, W. Jie, and F. Hui, “An anti-windup self-tuning fuzzy PID controller for speed control of brushless DC motor,”
Automatika, vol. 58, no. 3, pp. 321–335, Jul. 2017, doi: 10.1080/00051144.2018.1423724.
[21] H. Maghfiroh, C. Hermanu, M. H. Ibrahim, M. Anwar, and A. Ramelan, “Hybrid fuzzy-PID like optimal control to reduce energy
consumption,” Telkomnika (Telecommunication Computing Electronics and Control), vol. 18, no. 4, pp. 2053–2061, Aug. 2020,
doi: 10.12928/TELKOMNIKA.V18I4.14535.
 ISSN: 2252-8938
Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828
2828
[22] F. A. -Hady and S. Abuelenin, “Design and simulation of a fuzzy-supervised PID controller for a magnetic levitation system,”
Studies in Informatics and Control, vol. 17, no. 3, pp. 315–328, 2008.
[23] Z. M. Tun and T. L. Naing, “Double loop control of h-bridge DC chopper fed permanent magnet DC motor drives using low cost
hardware,” International Journal of Electrical and Computer Engineering, vol. 12, no. 11, pp. 857–866, 2018.
[24] D. Somwanshi, M. Bundele, G. Kumar, and G. Parashar, “Comparison of fuzzy-PID and PID controller for speed control of DC
motor using LabVIEW,” Procedia Computer Science, vol. 152, pp. 252–260, 2019, doi: 10.1016/j.procs.2019.05.019.
[25] J. Aliyya, “Performance comparison of PI control and fuzzy logic for speed control of DC shunt motor using Matlab/Simulink,”
JAREE (Journal on Advanced Research in Electrical Engineering), vol. 4, no. 2, Oct. 2020, doi: 10.12962/j25796216.v4.i2.151.
[26] S. J. Hammoodi, K. S. Flayyih, and A. R. Hamad, “Design and implementation speed control system of DC Motor based on PID
control and matlab simulink,” International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 11, no. 1, pp. 127–
134, Mar. 2020, doi: 10.11591/ijpeds.v11.i1.pp127-134.
[27] S. B. Joseph, E. G. Dada, A. Abidemi, D. O. Oyewola, and B. M. Khamma, “Metaheuristic algorithms for PID controller parameters
tuning: review, approaches and open problems,” Heliyon, vol.8, no. 5, 2020, doi:10.1016/j.heliyon.2022.e09399.
[28] M. Huba, S. Chamraz, P. Bistak, and D. Vrancic, “Making the PI and PID controller tuning inspired by Ziegler and Nichols precise
and reliable,” Sensors, vol. 21, no. 18, 2021, doi:10.3390/s21186157.
[29] N. N. A. Rahman, N. M. Yahya, and N. U. M. Sabari, “Design of a fuzzy logic proportional integral derivative controller of direct
current motor speed control,” IAES International Journal of Robotics and Automation (IJRA), vol. 12, no. 1, pp. 98-107, 2023, doi:
10.11591/ijra.v12i1.pp98-107.
BIOGRAPHIES OF AUTHORS
Tanawat Chalardsakul is an Assistant Professor at the Field of Mechatronics
Engineering at the Rajamangala University of Technology Isan Khon Kaen Campus,
Thailand. He received M.Eng. in Electric Power System and Ph.D. in Buddhist studies from
Mahachulalongkornrajavidyalaya University. His research interests are mechanical system,
renewable energy and robot design. He can be contacted at email: tanawat.ca@rmuti.ac.th.
Chotnarin Piriyasilpa is a lecturer in Mechatronics Engineering at the
Rajamangala University of Technology Isan Khon Kaen Campus, Khon Kaen, Thailand. He
received M.Eng. in Electric Power. He has been an Assistant Professor at the Field of
Mechatronics Engineering at the Rajamangala University of Technology Isan Khon Kaen
Campus. His research interests are mechanical system, renewable energy and robot design.
He can be contacted at email: chalermchai.pi@rmuti.ac.th.
Viroch Sukontanakarn is a lecture in Mechatronics Engineering at the
Rajamangala University of Technology Isan Khon Kaen Campus, Khon Kaen, Thailand. He
received his M.Eng. in Electric Power System Management and D.Eng. in Mechatronics from
Asian Institute of Technology, in 1998 and 2011, respectively. He has been an Assistant
Professor at the Field of Mechatronics Engineering at the Rajamangala University of
Technology Isan Khon Kaen Campus, Thailand since 2002. His research interests are power
electronics, electrical power systems, microcontrollers, robotics, programmable logic
controller, and electric motor drive. He can be contacted at email: viroch.su@rmuti.ac.th.

More Related Content

PDF
Comparison of cascade P-PI controller tuning methods for PMDC motor based on ...
PDF
Design and implementation speed control system of DC Motor based on PID contr...
PDF
Speed and Torque Control of Mechanically Coupled Permanent Magnet Direct Curr...
PDF
The neural network-based control system of direct current motor driver
PDF
Field-programmable gate array-based field-oriented control for permanent magn...
PDF
Dc motor speed control with the presence of input disturbance using neural ne...
PDF
Study and implementation of dc drive using pic16 f877a microcontroller
PDF
Speed Control of DC Motor using PID Controller for Industrial Application
Comparison of cascade P-PI controller tuning methods for PMDC motor based on ...
Design and implementation speed control system of DC Motor based on PID contr...
Speed and Torque Control of Mechanically Coupled Permanent Magnet Direct Curr...
The neural network-based control system of direct current motor driver
Field-programmable gate array-based field-oriented control for permanent magn...
Dc motor speed control with the presence of input disturbance using neural ne...
Study and implementation of dc drive using pic16 f877a microcontroller
Speed Control of DC Motor using PID Controller for Industrial Application

Similar to TMS320F28379D microcontroller for speed control of permanent magnet direct current motor (20)

PDF
Comparison of dc motor speed control performance using fuzzy logic and model ...
PDF
Speed Control of Dc Motor using Adaptive PID with SMC Scheme
PDF
Fuzzy logic Technique Based Speed Control of a Permanent Magnet Brushless DC...
PDF
PID Controller based DC Motor Speed Control
PDF
L010237985
PDF
The low-cost remote steering control using the dc motor with feedback position
PDF
A Flexible Closed Loop PMDC Motor Speed Control System for Precise Positioning
PDF
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...
PDF
A Fuzzy-PI based Gain Optimizing Approach for Speed Controlling of DC Motor
PDF
[000007]
PDF
Modeling and analysis of field-oriented control based permanent magnet synch...
PDF
Modeling of DC Motor and Choosing the Best Gains for PID Controller
PDF
Mm project
PDF
Mm project
PDF
Simulation DC Motor Speed Control System by using PID Controller
PDF
Speed control of motor usinng matlab
PDF
A REVIEW :MODELLING OF BRUSHED DC MOTOR AND VARIOUS TYPE OF CONTROL METHODS
PDF
Speed Tracking of Field Oriented Control Permanent Magnet Synchronous Motor U...
PDF
Simulation Approach to Speed Control of PMBLDC Motor using Various Control Te...
PDF
Matlab simulation on chopper based speed control of dc motor: A Review
Comparison of dc motor speed control performance using fuzzy logic and model ...
Speed Control of Dc Motor using Adaptive PID with SMC Scheme
Fuzzy logic Technique Based Speed Control of a Permanent Magnet Brushless DC...
PID Controller based DC Motor Speed Control
L010237985
The low-cost remote steering control using the dc motor with feedback position
A Flexible Closed Loop PMDC Motor Speed Control System for Precise Positioning
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...
A Fuzzy-PI based Gain Optimizing Approach for Speed Controlling of DC Motor
[000007]
Modeling and analysis of field-oriented control based permanent magnet synch...
Modeling of DC Motor and Choosing the Best Gains for PID Controller
Mm project
Mm project
Simulation DC Motor Speed Control System by using PID Controller
Speed control of motor usinng matlab
A REVIEW :MODELLING OF BRUSHED DC MOTOR AND VARIOUS TYPE OF CONTROL METHODS
Speed Tracking of Field Oriented Control Permanent Magnet Synchronous Motor U...
Simulation Approach to Speed Control of PMBLDC Motor using Various Control Te...
Matlab simulation on chopper based speed control of dc motor: A Review
Ad

More from IAESIJAI (20)

PDF
Hybrid model detection and classification of lung cancer
PDF
Adaptive kernel integration in visual geometry group 16 for enhanced classifi...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Enhancing fall detection and classification using Jarratt‐butterfly optimizat...
PDF
Deep ensemble learning with uncertainty aware prediction ranking for cervical...
PDF
Event detection in soccer matches through audio classification using transfer...
PDF
Detecting road damage utilizing retinaNet and mobileNet models on edge devices
PDF
Optimizing deep learning models from multi-objective perspective via Bayesian...
PDF
Squeeze-excitation half U-Net and synthetic minority oversampling technique o...
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Exploring DenseNet architectures with particle swarm optimization: efficient ...
PDF
A transfer learning-based deep neural network for tomato plant disease classi...
PDF
U-Net for wheel rim contour detection in robotic deburring
PDF
Deep learning-based classifier for geometric dimensioning and tolerancing sym...
PDF
Enhancing fire detection capabilities: Leveraging you only look once for swif...
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Depression detection through transformers-based emotion recognition in multiv...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Enhancing financial cybersecurity via advanced machine learning: analysis, co...
PDF
Crop classification using object-oriented method and Google Earth Engine
Hybrid model detection and classification of lung cancer
Adaptive kernel integration in visual geometry group 16 for enhanced classifi...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Enhancing fall detection and classification using Jarratt‐butterfly optimizat...
Deep ensemble learning with uncertainty aware prediction ranking for cervical...
Event detection in soccer matches through audio classification using transfer...
Detecting road damage utilizing retinaNet and mobileNet models on edge devices
Optimizing deep learning models from multi-objective perspective via Bayesian...
Squeeze-excitation half U-Net and synthetic minority oversampling technique o...
A novel scalable deep ensemble learning framework for big data classification...
Exploring DenseNet architectures with particle swarm optimization: efficient ...
A transfer learning-based deep neural network for tomato plant disease classi...
U-Net for wheel rim contour detection in robotic deburring
Deep learning-based classifier for geometric dimensioning and tolerancing sym...
Enhancing fire detection capabilities: Leveraging you only look once for swif...
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Depression detection through transformers-based emotion recognition in multiv...
A comparative analysis of optical character recognition models for extracting...
Enhancing financial cybersecurity via advanced machine learning: analysis, co...
Crop classification using object-oriented method and Google Earth Engine
Ad

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
sap open course for s4hana steps from ECC to s4
NewMind AI Weekly Chronicles - August'25 Week I
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MIND Revenue Release Quarter 2 2025 Press Release
Programs and apps: productivity, graphics, security and other tools
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Understanding_Digital_Forensics_Presentation.pptx
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
20250228 LYD VKU AI Blended-Learning.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation

TMS320F28379D microcontroller for speed control of permanent magnet direct current motor

  • 1. IAES International Journal of Artificial Intelligence (IJ-AI) Vol. 13, No. 3, September 2024, pp. 2816~2828 ISSN: 2252-8938, DOI: 10.11591/ijai.v13.i3.pp2816-2828  2816 Journal homepage: http://ijai.iaescore.com TMS320F28379D microcontroller for speed control of permanent magnet direct current motor Tanawat Chalardsakul, Chotnarin Piliyasilpa, Viroch Sukontanakarn Department of Mechatronics Engineering, Faculty of Engineering, Rajamangala University of Technology Isan, Khon Kaen, Thailand Article Info ABSTRACT Article history: Received Oct 31, 2023 Revised Feb 16, 2024 Accepted Feb 29, 2024 This paper aims to study the behavior of the proportional integral derivative (PID) and the fuzzy-based tuning PI-D controller for speed control of a permanent magnet direct current (PMDC) motor. The proposed method used a fuzzy-based tuning PI-D controller with a MATLAB/Simulink program to design and real-time implement a TMS320F28379D microcontroller for speed control of a PMDC motor. The performance of the study designed fuzzy-based tuning PI-D and PID controllers is compared and investigated. The fuzzy logic controller applies the controlling voltage based on motor speed errors. Finally, the result shows the fuzzy-based tuning PI-D controller approach has a minimum overshoot, and minimum transient and steady state parameters compared to the PID controller to control the speed of the motor. The PID controllers have poorer performance due to the non-linear features of the PMDC motor. Keywords: Fuzzy logic controller MATLAB/Simulink Microcontroller Permanent magnet DC motor PID controller This is an open access article under the CC BY-SA license. Corresponding Author: Tanawat Chalardsakul Faculty of Engineering, Rajamangala University of Technology Isan 150 Srichan Road, Khon Kaen, Thailand Email: tanawat.ca@rmuti.ac.th 1. INTRODUCTION At present, permanent magnet direct current (PMDC) motors are an electrical machine that has been applied in many applications to drive mechanical mechanisms [1], [2]. Tasks that require speed control, position, or torque of the mechanical load. The power supply is alternating current; the current must be rectified to direct current first. In most robots, it is popular to use PMDC motors that are easy to control, provide high torque, and, most importantly, use batteries as electric power feeds. The built-in speed controller, torque, and position can use a variety of microcontroller boards and a variety of algorithms for accurate, fast, and stable control. PMDC motors are used in various industrial applications and robots [3] to control the rotational speed. The voltage input to the motor is controlled using a chopper control method that can control the speed and torque well. The proportional integral derivative (PID) controllers [4]–[6] are used for automatic process control and robotics in industries. PID controllers are the most popular controllers in both the process and manufacturing industries. Furthermore, according to research on PID controllers, about ninety percent (90%) of process industries [7] employ PID as controllers. The PID controller [8] has simplicity, stability, and robustness; it is a type of controller that is most widely applied. This popularity is a result of their robustness, simplicity, and ease of retuning control parameters. The PID controller has been conventionally regarded as the best controller in the absence of fundamental process knowledge. Fuzzy logic controller [9]–[11] are the science of computing of calculations that play a greater role in the field of research computer and can be applied in many different jobs such as medical, military, business, and industry. The research study to understand the science of fuzzy logic and deep neural networks, which are to be applied in various fields, is becoming more and more in demand. The computer system that has the ability
  • 2. Int J Artif Intell ISSN: 2252-8938  TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul) 2817 to automatically adjust the system according to the environment has changed, making smarter, more human-like decisions so that humans can solve problems that were not previously solved by using old knowledge that was learned and applied to effectively solve problems. The design of the MATLAB Simulink embedded coder for TMS320F28379D [12], which is the program used for the development and control of programming algorithms by using a set of diagrams, is ready-made in the Simulink library. By selecting the target support package, you will find a chip support library consisting of ready-made diagrams such as analog-to-digital converter (ADC), enhanced quadrature encoder pulse (eQEP), and enhanced pulse width modulator (ePWM). For compilation, it can be used with the composer studio code program, also called the CCS program. By creating code at the location of the CCS program, the real-time working part of the MATLAB/Simulink program, this CCS program will be compiled into the C language first. It then converts the data into machine language for the controller. Digital signals from the TMS320F28379D microprocessor board can be debugged into programs through the joint test action group (JTAG) emulator to store data in registers without having to compile the program. There are many research articles showing how to control the speed and position of a DC motor using a simulator. The first step is to find the parameters using MATLAB to solve the control and display problems, and the TMS320F28379D board with MATLAB program is used for real-time use [13]. The DC-to-DC converter, also called chopper circuits, is a circuit that is commonly used in industrial applications and computers. A chopper circuit involves changing a DC power supply from one voltage to another. It consists of power electronic devices such as bipolar junction transistor (BJT), silicon controlled rectifier (SCR), insulated gate bipolar transistor (IGBT), or gate turn-off thyristor (GTO); which act as switches controlling the duty cycle of the output waveform, making it possible to control the average value of the output voltage of the chopper circuit helps to control the acceleration or Speed of DC electric motor to be highly efficient, smooth and responsive to move quickly This makes the chopper circuit [14] suitable for many types of work, such as the braking of DC electric motors. To return energy to the supply and resulting in saving energy. The chopper may act as a source that converts the DC voltage down, or it may act as a source that converts the DC voltage to a higher level. The paper presents the following topics. The mathematical modeling and control objectives are described in section 2. In section 3, the experimental study of controller systems such as PID controllers and adaptive PI-D controllers is carried out. The fuzzy dressings [10], [11], [15] are respectively designed. In section 4, the designed controller testing methods are applied to the PMDC motor model, along with the experimental results [16], [17]. Finally, the results of the experiment are summarized in section 5. 2. RESEARCH METHOD 2.1. The mathematical modelling of permanent magnet direct current motor PMDC motor uses permanent magnets located in the stator to provide the magnetic field instead of it being created in stator windings. The equivalent circuit diagram of the PMDC motor [18] is the electromechanical system consisting of electrical and mechanical components as shown in Figure 1. Figure 1. The equivalent circuit diagram of the PMDC motor When a voltage is applied to the armature winding, it creates a magnetic field in the armature winding and interacts with the permanent magnetic field in the stator to create torque in the armature, as shown in (1). 𝑇𝑚 = 𝐾𝑡𝑖𝑎 (1) Where 𝑇𝑚 is the developed torque in the motor, 𝐾𝑡 is the torque constant, and 𝑖𝑎 is the armature current. The armature winding intersects with the result of the magnetic field and creates a back electromotive force (EMF) in the armature winding, as shown in (2). 𝑒𝑎(𝑡) = 𝐾𝑏 𝑑𝜃𝑚(𝑡) 𝑑𝑡 = 𝐾𝑏𝜔𝑚 (2)
  • 3.  ISSN: 2252-8938 Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828 2818 where 𝑒𝑎 is the back EMF, 𝐾𝑏 is the EMF constant, and 𝜔𝑚 is shaft angular velocity. Applied Kirchhoff’s law of input voltage as (2): 𝑉𝑖𝑛(𝑡) = 𝑅𝑎𝑖𝑎(𝑡) + 𝐿𝑎 𝑑𝑖𝑎(𝑡) 𝑑𝑡 + 𝐾𝑏 𝑑𝜃𝑚(𝑡) 𝑑𝑡 (3) where 𝑅𝑎 is the armature resistance, 𝐿𝑎 is the armature inductance, 𝜃𝑚 is the motor shaft output angle, and 𝑉𝑖𝑛 is the input voltage. Taking Laplace transform in (3), given as in (4) 𝑉𝑖𝑛(𝑠) = 𝑅𝑎𝐼𝑎(𝑠) + 𝐿𝑎𝑠𝐼𝑎(𝑠) + 𝐾𝑏𝑠𝜃𝑚(𝑠) (4) The transfer function of the PMDC motor is as (5) and (6): 𝐼𝑎(𝑠) [𝑉𝑖𝑛(𝑠)−𝐾𝑏𝜔(𝑠)] = 1 (𝐿𝑎𝑠+𝑅𝑎) (5) 𝐼𝑎(𝑠) = [𝑉𝑖𝑛(𝑠)−𝐾𝑏𝜔(𝑠)] (𝐿𝑎𝑠+𝑅𝑎) (6) The mechanical mathematical model is the sum of the torques, shown as (7): 𝐾𝑡𝐼𝑎(𝑠) = (𝐽𝑚𝑠 + 𝑏𝑚)𝑠𝜃(𝑠) + 𝑇𝐿(𝑠) (7) where 𝑇𝐿 is the load torque, 𝐽𝑚 is the inertia of the motor, and 𝑏𝑚 is the damping friction, the mechanical component transfer function is given by (8). 𝜔𝑚(𝑠) 𝐾𝑡𝐼𝑎(𝑠)−𝑇𝐿(𝑠) = 1 𝐽𝑚𝑠+𝑏𝑚 (8) If 𝑇𝐿 = 0, we have 𝜔𝑚(𝑠) 𝐾𝑡𝐼𝑎(𝑠) = 1 𝐽𝑚𝑠+𝑏𝑚 (9) Then: 𝐾𝑡𝐼𝑎(𝑠) = (𝐽𝑚𝑠 + 𝑏𝑚)𝑠𝜃(𝑠) (10) The relationship between the input voltage and the motor shaft output angular velocity of the PMDC motor without a load attached is shown in (11). 𝜔𝑚(𝑠) 𝑉𝑖𝑛(𝑠) = 𝐾𝑡 [(𝐿𝑎𝑠+𝑅𝑎)(𝐽𝑚𝑠+𝑏𝑚)+𝐾𝑡𝐾𝑏] (11) The simplification of the open-loop transfer function of the PMDC motor without load is shown in (12). 𝜔𝑚(𝑠) 𝑉𝑖𝑛(𝑠) = 𝐾𝑡 [(𝑅𝑎𝐽𝑚)𝑠+(𝑅𝑎𝑏𝑚)+𝐾𝑡𝐾𝑏] (12) Consider in (12), the transfer function relationship between the input voltage and the rotational speed of the motor as shown in Figure 2. Next is a reference to Table 1 shows the electrical properties of the PMDC motor used in the experimental study. Then Table 2 explains the mechanical properties of the PMDC motor. Figure 2. The block diagram of the PMDC motor
  • 4. Int J Artif Intell ISSN: 2252-8938  TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul) 2819 Table 1. The electrical properties of PMDC motor Parameter Value Nominal voltage Rate power input No load speeds No load currents Nominal current Electric resistance Electric inductance Back EMF constant 24 V 100 W 3500 rpm 0.55 A 3.1 A 2.1 Ω 0.035 mH 0.006 V/rpm Table 2. The mechanical properties of PMDC motor Parameter Value Moment of inertia Friction coefficient Torque constant 0.00025 Nm/rad/s2 0.0002 Nm/rad/s 0.057 Nm/A 2.2. Fuzzy-based tuning PI-D controller structure The PID controller cannot tune the parameters of the plant control and cannot be adjusted when the electric motor operates in a non-linear manner. Hence, fuzzy-based tuning of PI-D is necessary to automatically tune the PI-D parameters. The proposed controller is shown in Figure 3. Figure 3. Block diagram of the fuzzy-based tuning PI-D controller The output of the fuzzy-based tuning PI-D controller is given in (14) 𝑈𝑐𝑜𝑛𝑡(𝑡) = 𝐾𝑃𝑒(𝑡) + 𝐾𝐼 ∫ 𝑒(𝑡)𝑑𝑡 𝑡 0 + 𝐾𝐷 𝑑 𝑑𝑡 𝑒(𝑡) (14) With its Laplace transform: 𝑈𝑐𝑜𝑛(𝑠) = 𝐾𝑃 + 𝐾𝐼 𝑠 + 𝐾𝐷𝑠 (15) By using backward Euler methods for both the integral and derivative terms, the resulting discrete-time PID controller is represented in (16): 𝑈𝑐𝑜𝑛(z) = KP + KITsz z−1 + KDN(z−1) (1+NTs)z−1 (16) Details of the fuzzy logic controller [19]–[21] are shown in Figure 4, where there are two inputs to the fuzzy inference: 𝑒 , and ∆𝑒. And two outputs: 𝐾𝑃𝑓 , and 𝐾𝐼𝑓. The parameters 𝑘1, 𝑘2, 𝛼 and 𝛽 are input/output scaling factors. To determine the domain of each PI-D parameter [22]. The parameters of PI were defined as: 𝐾𝑃 ∈ (0,100), 𝐾𝐼 ∈ (0,1). Thus, the scales of the fuzzy interval (0, 1) as follows: 𝐾𝑃 = 𝛼𝐾𝑃𝑓 + 𝑃1 (17) 𝐾𝐼 = 𝛽𝐾𝐼𝑓 + 𝑃2 (18) 𝐾𝐷 = 𝑃3 (19) where, 𝛼 = 0.15, 𝛽 = 40, 𝑃1, 𝑃2 and 𝑃3 is external gain input.
  • 5.  ISSN: 2252-8938 Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828 2820 Figure 4. Structure of thr fuzzy logic controller A fuzzy logic controller has four main components fuzzification interface, inference mechanism, rule base, and defuzzification interface. It consists of three membership functions with two inputs and one output. Each membership function consists of two trapezoidal memberships and five triangular memberships. Figure 5 shows the membership function of fuzzy input controllers. Figure 5(a) is the FIS editor. Figure 5(b) is membership function of error as input. Figure 5(c) is the membership function of ang_in_error as input. The surface viewers and rules of 𝐾𝑃 and 𝐾𝐼 are shown in Figure 6. (a) (b) (c) Figure 5. Membership function of fuzzy input controllers; (a) the FIS editor, (b) membership function of error as input, and (c) membership function of ang_in_error as input
  • 6. Int J Artif Intell ISSN: 2252-8938  TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul) 2821 Figure 6. Surface viewer and rules 2.3. Chopper circuit In the operation of the chopper, shown in the circuit diagram of the chopper in Figure 7, the circuit is using control of the on-off period. During operation of the period, the chopper [23] is on, and the output voltage is equal to the source voltage. When the chopper is off and the output voltage is zero. The average voltage shown is the following: 𝑉 𝑜 = ( 𝑇𝑜𝑛 (𝑇𝑜𝑛+𝑇𝑜𝑓𝑓) )𝑉1 (20) 𝑉 𝑜 = ( 𝑇𝑜𝑛 𝑇 )𝑉1 (21) 𝑉 𝑜 = 𝛼𝑉1 (22) 𝑉 𝑜 = 𝑓𝑇𝑜𝑛𝑉1 (23) where 𝑇𝑜𝑛 is on-time, 𝑇𝑜𝑓𝑓 is off-time, 𝑇 = 𝑇𝑜𝑛 + 𝑇𝑜𝑓𝑓 is chopping period, 𝛼 is duty cycle percent, 𝑓 = 1 𝑇 is chopping frequency, 𝑉 𝑜 is output voltage, and 𝑉1 is source voltage.
  • 7.  ISSN: 2252-8938 Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828 2822 Figure 7 shows the circuit diagram for the PMDC motor. The step-down chopper consists of IGBT switch (M2) and a diode (DF). A DC voltage source of input voltage (V1) is connected at the input, while a PMDC motor is connected at the output. Figure 7. Circuit diagram of step-down chopper with PMDC motor connection 3. EXPERIMENT OF PROPOSED METHOD 3.1. Experimental platform practice The experiment platform model [24]–[26] circuit is made up of a PMDC motor with an encoder to detect the speed of the motor. The connection of the personal computer to the TMS320F28379D board for the generation of pulse control to the chopper circuit drive and education practice set. When the electrical circuit is complete, open the MATLAB program. Perform a test on the specified program as shown in Figure 8. Figure 8. The experimental setup The experimental model practice includes potentiometers, which allow modifying the system by modifying the gain of the system. This manual adjusts the parameters of the potentiometer, which has four different gain values (Kp, Ki, and Kd) as shown in Figure 9. Define input PID controller by using
  • 8. Int J Artif Intell ISSN: 2252-8938  TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul) 2823 potentiometers: P1 is P-gain (0-10Vdc) convert to 0-4095 (12bit). P2 is I-Gain (0-10Vdc) convert to 0-4095(12bit), P3 is D-gain (0-1Vdc) convert to 0-4095(12bit). P5 is set point reference input, C2 is feedback path from speed sensor from 0-4000 rpm to 0-4095(12bit). Figure 9. Experiment lab practice set 3.2. The proportional integral derivative controller with MATLAB/simulink program The experiment model study in only PID control [27], [28] is shown in Figure 10. The PID controllers tune parameters using hand-tuning methods [29]. This PID controller combines proportional, integral, and derivative controls together. The controllers are connected in parallel. The gain values of 𝐾𝑃, 𝐾𝐼, and 𝐾𝐷 depend on the condition of the error between the input value and the output value. When tuning these parameters, the dynamic reactivity of the system can be improved, eliminating steady-state errors, reducing overshoot, and increasing the stability of the controlled system. The block parameters of the PID (z) controller to use a discrete-time domain is shown in Figure 11. Figure 10. The MATLAB/Simulink block diagram in experimental setup
  • 9.  ISSN: 2252-8938 Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828 2824 Figure 11. The block parameters PID controller in MATLAB/Simulink 3.3. Experiment of the fuzzy-based tuning PI-D controller The working principle of fuzzy self-adjustment is that all error values are changed to adjust the parameters of the three PID controllers in real time. So that the system has good dynamic and static performance to desire response, minimize the settling time and rise time. The experimental cycle model in MATLAB/Simulink is shown in Figure 12. Figure 12. The experiment Simulink model of the fuzzy-based-tuning PI-D controller for PMDC motor 4. EXPERIMENT RESULTS AND DISCUSSION The experimental results of both PID and fuzzy-based tuning PI-D controller were used to compare the advantages and disadvantages of speed control for the PMDC motor. The experiment is proposed to validate the correctness of the controller based on the model used to test that it has good motor speed control performance using both PID and fuzzy-based tuning PI-D controller schemes. The test results can be explained as follows. 4.1. The results of PID controller for speed control of PMDC motor The results of the experiment have been done using a PC with the Windows 10 operating system and MATLAB/Simulink R2018a. The test results of the motor speed control circuit with a PID controller are shown
  • 10. Int J Artif Intell ISSN: 2252-8938  TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul) 2825 in Figure 10. It can be seen that while changing the input reference value, it takes a very long time for the velocity to reach the reference value, and in Figure 13, in the steady state, there is oscillation. The motor speed is unstable, and there is vibration. Figure 13 shows test results from Figure 10 that have been performed, producing sudden changes in the PMDC motor. These tests have been performed by varying the potentiometer gains of 𝐾𝑃 = 5, 𝐾𝐼 = 2.8, 𝐾𝐷 = 0, and set point gain (P5). It has not been saturated in any of the experimental cases. The steady-state errors of the dynamics system change with the same gain by the controller in Figure 13(b), Observe the steady-state response when using a PID controller. It will be found that the rotational speed of the motor is fluctuating and does not rotate smoothly, as shown in Figure 14. A better controller must be found to adjust this value. As will be presented in the next chapter. (a) (b) Figure 13. Experiment speed response of PMDC motor under difference speed reference input, (a) response of motor speed after use PID controller and (b) the output gain of PID controller 4.2. The results of fuzzy based tuning PI-D controller for speed control of PMDC motor From the results of the experimental study, when connecting the circuit and using the frame diagram shown in Figure 12, the test results can be seen in Figure 15. The parameters of the fuzzy-based tuning PI-D controller adjustments are automatically adjusted to meet the desired response at various speed values. Therefore, it is found that the fuzzy-based tuning PI-D controller provides better system control performance than the conventional PID controller. When comparing the performance of the conventional PID controller with the customized fuzzy-based tuning PI-D controller, it was found that the fuzzy-based tuning PI-D controller
  • 11.  ISSN: 2252-8938 Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828 2826 provides better dynamic response. It has a shorter settling time, rise time, a steady state error of zero, an increasing maximum time exceeded, and a fairly strong anti-interference ability. When considering Figure 13 shows experiment speed response of PMDC motor under difference speed reference input. Figure 13(a) is response of motor speed after use PID Cotroller. Figure 13(b) is the output gain of PID controller. Figure 14 show the zoom out of experiment speed response of PMDC motor under steady-state response of speed reference input condition. Figure 14(a) is the steady state response of speed motor. Figure 14(b) is the gain of controller. Figure 15 shows experiment speed response of PMDC motor under difference speed reference input condition. Figure 15(a) is response of motor speed after use PID controller. Figure 15(b) is the output gain of fuzzy based tuning PI-D controller. When comparing the results of the motor speed responses of two types of controllers, it can be seen that the fuzzy-based tuning PI-D controller is able to control the system with more stability. There is less fluctuation in rotational speed or overshoot than with a PID controller, and reaching the set value or set point in a shorter time can be both positive and negative. In order to make the control system able to respond to external noise very well, this makes the control stability constant under various noises or disturbances. Table 3 summarizes the advantages and disadvantages of both controllers. (a) (b) Figure 14. The zoom out of experiment speed response of PMDC motor under steady-state response of speed reference input condition: (a) the steady state response of speed motor and (b) the gain of controller (a) (b) Figure 15. Experiment speed response of PMDC motor under difference speed reference input condition, (a) response of motor speed after use PID controller and (b) output gain of fuzzy based tuning PI-D controller Table 3. The comparison between the conventional PID controller and the fuzzy based tuning PI-D controller Parameter PID Controller The fuzzy based tuning PI-D controller Overshoot Settling Transient Rise time Present More Present Less Not present Less Not present More
  • 12. Int J Artif Intell ISSN: 2252-8938  TMS320F28379D microcontroller for speed control of permanent magnet… (Tanawat Chalardsakul) 2827 5. CONCLUSION Results of testing motor speed control using a chopper circuit, that has a TMS320F28379D microcontroller board as a generator for driving signals and measuring using the program MatlabSimulink in real time to compare the controllers for controlling the speed of electric motors by using PID and the fuzzy- based tuning PI-D controller. From the test, it was found that the control performance of the two controllers would be compared. Both types of controllers are designed to have convergence times to steady state (setting time) at the same time. The fuzzy-based tuning PI-D controller provides slightly better steady-state error values. PID controllers must be adjusted to every control at the desired rpm, whereas fuzzy logic controllers require. It has a wider range of adjustments each time and has a better response than using fuzzy logic to adjust the parameters. The 𝐾𝑃, 𝐾𝐼, and 𝐾𝐷 gains of the PID control system are control systems that adjust the response to changes between input and output data. The fuzzy-based tuning PI-D controller is an automatic system with a PID controller controlling the processing of results and a fuzzy controller adjusting the value. Parameters of PID Controller This system is a system that can adjust parameters automatically (self-tuned PID controller). ACKNOWLEDGEMENTS The authors like to thank Department of Mechatronics and RMUTI Khon Kaen for providing the laboratory and experimental lab practices for this research. REFERENCES [1] B. B. Acharya, S. Dhakal, A. Bhattarai, and N. Bhattarai, “PID speed control of DC motor using meta-heuristic algorithms,” International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 12, no. 2, pp. 822–831, Jun. 2021, doi: 10.11591/ijpeds.v12.i2.pp822-831. [2] S. Oladipo, Y. Sun, and Z. Wang, “Optimization of PID controller with metaheuristic algorithms for DC motor drives: review,” International Review of Electrical Engineering (IREE), vol. 15, no. 5, Oct. 2020, doi: 10.15866/iree.v15i5.18688. [3] S. A. -Khalil, S. A. -Rahman, S. Mutalib, S. I. Kamarudin, and S. S. Kamaruddin, “A review on object detection for autonomous mobile robot,” IAES International Journal of Artificial Intelligence (IJ-AI), vol. 12, no. 3, pp. 1033–1043, Sep. 2023, doi: 10.11591/ijai.v12.i3.pp1033-1043. [4] S. N. A. -Bargothi, G. M. Qaryouti, and Q. M. Jaber, “Speed control of DC motor using conventional and adaptive PID controllers,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 16, no. 3, pp. 1221–1228, Dec. 2019, doi: 10.11591/ijeecs.v16.i3.pp1221-1228. [5] B. T. H. Linh, “Comparison of hybrid fuzzy-PID and PID controller for speed control of DC motor,” International Journal of Creative and Innovative Research in All Studies, vol. 4, no. 5, pp. 10–12, 2021. [6] I. D. Fajuke and A. Raji, “Optimal tuning of PID controller for speed control of DC motor using equilibrium optimizer,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 30, no. 1, pp. 89–101, Apr. 2023, doi: 10.11591/ijeecs.v30.i1.pp89-101. [7] H. L. B. Thi, “Design of hybrid fuzzy PID controller for dc servo motor part 2: the hybrid fuzzy PID controller applied for a DC motor,” International Journal of Advances in Engineering and Management (IJAEM), vol. 12, no. 3, pp. 1549–1553, 2021, doi: 10.35629/5252-031215491553. [8] S. K. Yadav, “DC motor position control using fuzzy proportional-derivative controllers with different defuzzification methods,” IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE), vol. 10, no. 1, pp. 37–47, 2015, doi: 10.9790/1676-10133747. [9] B. S. Rintyarna, A. B. Nugroho, and M. H. Niam, “Implementation of fuzzy-PID controller as a DC motor speed controller based on Arduino UNO,” Journal of Software Engineering and Simulation, vol. 7, no. 10, pp. 16–25, 2021. [10] M. K. Kaloi, “Fuzzy-PID based control scheme for PMDC series motor speed control,” Indian Journal of Science and Technology, vol. 13, no. 28, pp. 2911–2923, Jul. 2020, doi: 10.17485/IJST/v13i28.653. [11] A. G. Alfano, H. Maghfiroh, I. Iftadi, C. H. B. A., and F. Adriyanto, “Modelling and simulation of DC motor speed control using fuzzy-PID algorithm,” Journal of Electrical, Electronic, Information, and Communication Technology, vol. 1, no. 1, pp. 13-18, Oct. 2019, doi: 10.20961/jeeict.v1i1.34260. [12] S. Elert, “Programming possibilities using MATLAB simulink embedded coder on the example of data analysis from ahrs module,” Journal of Physics: Conference Series, vol. 1507, no. 8, Mar. 2020, doi: 10.1088/1742-6596/1507/8/082042. [13] J. Aravena et al., “Design and implementation of a low-cost real-time control platform for power electronics applications,” Energies, vol. 13, no. 6, Mar. 2020, doi: 10.3390/en13061527. [14] V. R. Pote, M. K. Suryawanshi, and A. A. Bhalerao, “MATLAB simulation of speed Control of D.C. motor by using chopper,” International Journal of Emerging Technologies in Engineering Research (IJETER), vol. 5, no. 1, pp. 42–46, 2017. [15] H. Maghfiroh, M. Ahmad, A. Ramelan, and F. Adriyanto, “Fuzzy-PID in BLDC motor speed control using MATLAB/Simulink,” Journal of Robotics and Control (JRC), vol. 3, no. 1, pp. 8–13, Jun. 2021, doi: 10.18196/jrc.v3i1.10964. [16] B. Hamed and M. Almobaied, “Fuzzy PID controllers using FPGA technique for real time DC motor speed control,” Intelligent Control and Automation, vol. 2, no. 3, pp. 233–240, 2011, doi: 10.4236/ica.2011.23028. [17] I. A. Abed and S. H. Majeed, “DC/DC converter control using suggested artificial intelligent controllers,” IAES International Journal of Artificial Intelligence (IJ-AI), vol. 10, no. 4, pp. 847–857, Dec. 2021, doi: 10.11591/ijai.v10.i4.pp847-857. [18] Y. G. Rashid and A. M. A. Hussain, “Implementing optimization of PID controller for DC motor speed control,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 23, no. 2, pp. 657–664, Aug. 2021, doi: 10.11591/ijeecs.v23.i2.pp657-664. [19] Z. Zhu et al., “Fuzzy PID control of the three-degree-of-freedom parallel mechanism based on genetic algorithm,” Applied Sciences, vol. 12, no. 21, Nov. 2022, doi: 10.3390/app122111128. [20] H. Jigang, W. Jie, and F. Hui, “An anti-windup self-tuning fuzzy PID controller for speed control of brushless DC motor,” Automatika, vol. 58, no. 3, pp. 321–335, Jul. 2017, doi: 10.1080/00051144.2018.1423724. [21] H. Maghfiroh, C. Hermanu, M. H. Ibrahim, M. Anwar, and A. Ramelan, “Hybrid fuzzy-PID like optimal control to reduce energy consumption,” Telkomnika (Telecommunication Computing Electronics and Control), vol. 18, no. 4, pp. 2053–2061, Aug. 2020, doi: 10.12928/TELKOMNIKA.V18I4.14535.
  • 13.  ISSN: 2252-8938 Int J Artif Intell, Vol. 13, No. 3, September 2024: 2816-2828 2828 [22] F. A. -Hady and S. Abuelenin, “Design and simulation of a fuzzy-supervised PID controller for a magnetic levitation system,” Studies in Informatics and Control, vol. 17, no. 3, pp. 315–328, 2008. [23] Z. M. Tun and T. L. Naing, “Double loop control of h-bridge DC chopper fed permanent magnet DC motor drives using low cost hardware,” International Journal of Electrical and Computer Engineering, vol. 12, no. 11, pp. 857–866, 2018. [24] D. Somwanshi, M. Bundele, G. Kumar, and G. Parashar, “Comparison of fuzzy-PID and PID controller for speed control of DC motor using LabVIEW,” Procedia Computer Science, vol. 152, pp. 252–260, 2019, doi: 10.1016/j.procs.2019.05.019. [25] J. Aliyya, “Performance comparison of PI control and fuzzy logic for speed control of DC shunt motor using Matlab/Simulink,” JAREE (Journal on Advanced Research in Electrical Engineering), vol. 4, no. 2, Oct. 2020, doi: 10.12962/j25796216.v4.i2.151. [26] S. J. Hammoodi, K. S. Flayyih, and A. R. Hamad, “Design and implementation speed control system of DC Motor based on PID control and matlab simulink,” International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 11, no. 1, pp. 127– 134, Mar. 2020, doi: 10.11591/ijpeds.v11.i1.pp127-134. [27] S. B. Joseph, E. G. Dada, A. Abidemi, D. O. Oyewola, and B. M. Khamma, “Metaheuristic algorithms for PID controller parameters tuning: review, approaches and open problems,” Heliyon, vol.8, no. 5, 2020, doi:10.1016/j.heliyon.2022.e09399. [28] M. Huba, S. Chamraz, P. Bistak, and D. Vrancic, “Making the PI and PID controller tuning inspired by Ziegler and Nichols precise and reliable,” Sensors, vol. 21, no. 18, 2021, doi:10.3390/s21186157. [29] N. N. A. Rahman, N. M. Yahya, and N. U. M. Sabari, “Design of a fuzzy logic proportional integral derivative controller of direct current motor speed control,” IAES International Journal of Robotics and Automation (IJRA), vol. 12, no. 1, pp. 98-107, 2023, doi: 10.11591/ijra.v12i1.pp98-107. BIOGRAPHIES OF AUTHORS Tanawat Chalardsakul is an Assistant Professor at the Field of Mechatronics Engineering at the Rajamangala University of Technology Isan Khon Kaen Campus, Thailand. He received M.Eng. in Electric Power System and Ph.D. in Buddhist studies from Mahachulalongkornrajavidyalaya University. His research interests are mechanical system, renewable energy and robot design. He can be contacted at email: tanawat.ca@rmuti.ac.th. Chotnarin Piriyasilpa is a lecturer in Mechatronics Engineering at the Rajamangala University of Technology Isan Khon Kaen Campus, Khon Kaen, Thailand. He received M.Eng. in Electric Power. He has been an Assistant Professor at the Field of Mechatronics Engineering at the Rajamangala University of Technology Isan Khon Kaen Campus. His research interests are mechanical system, renewable energy and robot design. He can be contacted at email: chalermchai.pi@rmuti.ac.th. Viroch Sukontanakarn is a lecture in Mechatronics Engineering at the Rajamangala University of Technology Isan Khon Kaen Campus, Khon Kaen, Thailand. He received his M.Eng. in Electric Power System Management and D.Eng. in Mechatronics from Asian Institute of Technology, in 1998 and 2011, respectively. He has been an Assistant Professor at the Field of Mechatronics Engineering at the Rajamangala University of Technology Isan Khon Kaen Campus, Thailand since 2002. His research interests are power electronics, electrical power systems, microcontrollers, robotics, programmable logic controller, and electric motor drive. He can be contacted at email: viroch.su@rmuti.ac.th.