DC Motor Speed Controller Design Using Pulse Width
DC Motor Speed Controller Design Using Pulse Width
Abstract. DC Motor is an electric motor that requires a direct current voltage supply on the field
coil to be converted into mechanical energy motion. In this study, a control system automation
is made to control the rotation speed of motor DC in order to maintain the speed with load
changes. PWM (Pulse Width Modulation) principle is used as speed stability control system for
loaded DC motor with PID (Proportional Integral Derivative) method. PID is one of the
controllers used for improving the performance of a system, including DC motor rotation control
system. The speed of the response and error steady state are the parameters measured to evaluate
the performance of the proposal control system PID control in this study is implemented through
personalized software (PC) where the values obtained are copied into program or C source code
to run DC motor. The best condition with PID tuning method in Matrix Laboratory software is
obtained at the value of control constant Kp=0,53, Ki=0,63, Kd=0,07 with 5,61% over shoot,
and average travel time when lifting weights with a distance of 1 m 1 meter=5,54 seconds, 2
meters=9,60 meters, 3 meters=11,50 seconds, 4 meters=16,48 seconds, and 5 meters=19,71
seconds.
1. Introduction
Technology tool is made to improve the quality of human life [1], one of the technology tools that can
be used to help the effectiveness and efficiency of business processes in industries field is DC Motor
[2]. DC Motor has an advantage in terms of smoothness of speed change, ease of control, and rapid
dynamic response to changes in load torque [3]. To improve the effectiveness and efficiency of a task
or work, an automation system can be applied. The conveyor system used in a car tire production is one
of the examples of the use of robots in the car manufacturing process in industries [4].
The optimization of DC motor uses requires speed control that can be done using Pulse Width
Modulation (PWM) [5]. A mechanism that can be used as a guideline in DC motor control is the longer
the duration of time delay of the resulting PWM signal, the faster the motor rotation, and vice versa [6].
In addition to using a comparator in the generation of PWM signals, DC motor control can also be
performed using control devices such as programmable logic or microcontroller, that allow PWM
signals to be formed by programs in the controller.
Furthermore, it is necessary to design a DC motor controller, which, in this article, refers to a design
of motor rotation speed control using PWM method generated by Arduino. DC motor used here is DC
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
motor with motor with 100kgs torque and 19-volt 6-Ampere operating voltage. Meanwhile, a rotary
encoder is required to control constant speed requires.
2. Methodology
2
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
Figure 3. DC motor[8].
The direction of the wire movement can be determined using the left-hand rule, namely: “if the
open left hand is placed between the N and S poles, the force lines coming out of the north pole
penetrate the left palm, and the current in the wire flows. In line with the direction of the four fingers,
the wire will get a force whose direction corresponds to the direction of the thumb”. The working
principle of DC motor can be seen on Figure 4.
3
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
4
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
rotor
Va DC
Tm
ϴm
Vb
ia
-
5
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
In this study, from DC motor block diagram, we can find the equation as follows:
𝜽(𝒔) 𝑲𝒕𝒏
𝑽𝒂(𝒔)
= 𝑺𝟐𝑳𝑱 +𝑺𝑳𝑭 +𝑹𝑺𝑱
(5)
𝒆𝒇 𝒆𝒇 𝒆𝒇 +𝑹𝑭𝒆𝒇 +𝑲𝒃𝑲𝒕𝒏
The equation of the transfer function that has been obtained is then used to find the value of PID and
to design the DC motor PID controller.
3.3.1. PID controller design using MATLAB. One of controllers widely used in industrial process
controllers is PID controller. This controller has a transfer function as follows:
𝐊𝐈
𝐆𝐜 (𝐬) = 𝐊 𝐩 + 𝐬
+ 𝐊𝐃𝐬 (6)
Where:
K p = Proportional gain
K i = Integral gain
K D s = Differential gain
The equation for output in time domain is:
𝒅𝒆(𝒕)
𝒖(𝒕) = 𝑲𝒑 𝒆(𝒕) + 𝑲𝑰 ∫ 𝒆 (𝒕)𝒅𝒕 + 𝑲𝑫 𝒅𝒕
(7)
If we set KD=0, proportional controller and integral (PI).
𝑲𝑰
𝑮𝑪 (𝒔) = 𝑲𝑷 + 𝒔
(8)
When KI=0,
𝑮𝑪 (𝒔) = 𝑲𝑷 + 𝑲𝑫 𝒔 (9)
6
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
It is called proportional plus derivative (PD) controller. Furthermore, DC motor design will produce DC
motor block diagram (Figure 10).
3.3.2. Constant speed controller system design. Figure 11 illustrates how a control system work from
connecting the power supply to Arduino Uno and DC motor. Then Arduino turns on automatically that
also directly turns on PID system to make DC motor rotate from zero to the constant speed, until it is
back to zero again. Furthermore, the encoder that acts as a sensor reads the speed point set automatically
to give the command to make the motor speed rotation constant. Sensor is a devise to detect the state of
an observation object [11, 12]. The encoder will give the return command according to whether it is
more than the desired speed or not? If it is not, Arduino will repeatedly re-command until the desired
constant speed is reached, meanwhile, if it is constant, the encoder will continue to work so that when
the speed suddenly changes, it will reset automatically to get the desired speed.
7
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
8
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
9
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
4. Conclusions
PID control designed on a DC motor is capable of maintaining speed automatically when carrying no
load or carrying various loads using a rotary encoder sensor as feedback in accordance with the set point
set that regulates the PWM of 125 in Arduino. The average steady state error of the tests done is 0%.
Moreover, PID Parameter obtained is Kp=0.532, Ki=0.6544, Kd=0.077. DC motors are able to maintain
a constant speed when tested without load and when carrying a load from 10 to 50 Kg even more than
the maximum load. The average time of the DC motor speed when carrying loads varying from 10 to
50 kg in 1-5 meters is as follows: 1 meter=5,62 seconds, 2 meters=9,67 seconds, 3 meters=11,54
seconds, 4 meters=16,53 seconds, and 5 meters=19,82 seconds.
References
[1] Ramdhani M A, Aulawi H, Ikhwana A and Mauluddin Y 2017 “Model of green technology
adaptation in small and medium-sized tannery industry,” J. Eng. Appl. Sci. 12 (4) 954–962.
[2] Kusuma I R, Sarwito S and Irawati R A W A 2017 “Analysis of Electric Propulsion Performance
on Submersible with Motor DC, Supply Power 10260AH at Voltage 115VDC,” Int. J. Mar.
Eng. Innov. Res. 1 (2) 76–87.
[3] Bosco M C, Guedes J J, Castoldi M F, Goedtel A, da Silva E R P and Buzachero L F S 2017
“Estimation of parameters and tuning of a speed PI of permanent magnet DC motor using
differential evolution,” in Electric Machines and Drives Conference (IEMDC) 1–6.
[4] Daud D and Rahmaniar R 2017 “The Characteristics of Conveyor Belt of Rubber Compound by
Using Coconut Shell Charcoal as the Filler,” J. Din. Penelit. Ind. 28 (2) 138–146.
[5] Katsambe C T, Luckose V and Shahabuddin N S 2017 “Effect of Pulse Width Modulation on DC
Motor Speed,” Int. J. Students’ Res. Technol. Manag. 5 (2) 42–45.
[6] Prasad B V S and Rao G V S K 2017 “Fuzzy Controlled Permanent Magnet Synchronous Motor
Drive by Space Vector Pulse Width Modulation,” Int. Res. J. Eng. Technol. 4 (10) 480–483.
[7] Fadhil A R 2008 Desain dan Implementasi Kontrol PID pada Lengan Rabot Dua Derajat
Kebebasan (Bandung).
[8] Prinandika E B, Rahmadwati and Siswoyo B 2014 “Sistem Pengaturan Kecepatan Motor pada
Robot Line Follower Berbeban Menggunakan Kontroler PID,” J. Mhs. TEUB 2 (5) 1–8.
[9] Pratama Y 2015 “Pengontrolan Kecepatan Motor Protoype Konveyor Pengangkut Pasir
Berdasarkan Jarak Menggunakan Arduino Uno Atmega 328p,” Mataram.
[10] Adhitya A V, Agustine L and Wibowo A 2017 “Troli Pengikut Otomatis Berbasis Mikrokontroler
AVR,” Widya Tek. 13 (1) 1–9.
10
3rd Annual Applied Science and Engineering Conference (AASEC 2018) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 434 (2018) 012205 doi:10.1088/1757-899X/434/1/012205
1234567890‘’“”
11