Modelling and Control of DC Motor Speed and Position For Wheel Mobile Robot Application
Modelling and Control of DC Motor Speed and Position For Wheel Mobile Robot Application
Modelling and Control of DC Motor Speed and Position For Wheel Mobile Robot Application
Abstract—This paper presents the simulation works of PID prostitution controller works combine PID based controller
based speed and position controllers for the DC motor used in with other artificial intelligent method such as Fuzzy [7],
mobile robot applications. The mathematical model of the DC Genetic algorithm [8] and artificial neural Network [9] to
motor modelling is developed using Matlab System Identification improve its position accuracy.
Toolbox based on its input and output signals obtained during
open loop experiments under full load condition. The PID For this study, one of the DC motor of the two wheeled
controllers are proposed to regulate the speed of the motor for mobile robot is used as the plant. The mathematical model of
the maximum of 100rpm. The initial PID parameters are the DC Motor is carried out by first obtaining the input and
obtained using relay feedback experiment method and Ziegler- output signal from open loop experiment of the DC motor by
Nichols formula. These parameters are then further fine tuned applying the working voltage (+5V dc) of the DC motor
based on practical knowledge in tuning PID. The best PID speed system as input signal and measure its speed electronically as
controller is then selected and used in designing the DC motor output signal. The step response of the mathematical model
position controller which utilizes both speed and position feed resulted from the identification process is compared to that of
backs. The simulation results show that both speed and position the original one to evaluate its validity. The PID based speed
controllers have a very good performance. controller is proposed with its initial PID parameters obtained
from relay feedback experiment method and Ziegler-Nichols
Keywords—wheel mobile robot application, PID speed
formula. These parameters are then fine tuned manually based
controller, and two-wheel mobile robot
on practical knowledge in PID tuning to get the good results
with no overshoot and no steady state error. The best PID
I. INTRODUCTION based speed controller is then slightly modified and used in the
DC motors have been used extensively as actuators for DC motor based position controller by utilizing both speed and
wheel mobile robot. The wheel mobile robot is a kind robot position feedbacks. This position controller is tested for several
that uses wheel to move. It is controlled by programmed position set points. The controller performance is evaluated
embedded inside the microcontroller or computer to work based on the overshoot and steady state error values.
automatically by recognizing its environmental conditions
based on its sensor information and to navigate around its II. SYSTEM IDENTIFICATION
working area to carry out its programmed tasks. Generally, the
System identification is a way of developing a
robot can have two wheels [1], three wheels [2] or four wheels
mathematical model of the DC motor as a plant by analyzing
[3]. Each of the robot active wheels is driven by the DC motor.
the input and output signals of the process during experiment
The smooth maneuvering of the robot depends on its DC motor
or normal running. The construction of the model is primarily
controller. Two general control applications widely used for
based on the observed data. There is a discrepancy between the
the DC motor are speed and position controllers. The speed
real system and the mathematical model representation of the
controller is used to regulate how fast the robot to move, while
system, so a perfect mathematical model of the process cannot
the position controller is used to regulate how accurate the
be obtained. The system identification process needs
robot to move to its predetermined position.
experimental planning to obtain the input and output data as the
Various works related to the methods of controlling the DC observed data, selection of the model structure, a certain
motor speed have been introduced lately to stabilize. Some of criterion needed to measure how well a model fits the
these works combined the PID based controllers with other experiment data, parameter estimation, and model validation.
methods such as fuzzy logic controller [4]. Genetics algorithm This system identification is performed using identification tool
[5] and Particle swam optimization [6] to stabilize the DC in Matlab.
motor speed performance during operation. Some of the
C. Position Controller
The simulink program for position controller is shown in
Fig. 1. Relay feedback experiment.
figure 4. The position controller is developed based on the
previous PID speed controller in which the speed output is
converted to its linear displacement by multiplying the speed
with the wheel circumference. The set point is the desired
position, while the output is actual position of the robot which
is the distance travelled by the wheel from its point of origin.
The difference between the set point and the actual position is
then multiply by the position gain. The output of this gain is
fed to the speed controller unit as the current speed set point.
Fig. 2. (a) Oscillation output, (b) Relay output.
81
Advances in Engineering Research, volume 208
120
Exp.
100
Speed (rpm)
80
SI
60
40
20
0
0 0.5 1 1.5 2
Time(s)
Fig. 4. Position controller.
80
computer from Arduino Uno via serial USB and then processed y
60
using Excel software. The data consists of time, input voltage
and speed of the shaft motor. By using the system 40
4
maximum speed of about 115 rpm, while the mathematical
3
model one has maximum speed of about 112 rpm. Based on
data in figure 5, the average percentage error of the open loop 2
82
Advances in Engineering Research, volume 208
83
Advances in Engineering Research, volume 208
Computer-Integrated Manufacturing, vol. 26, no. (1), pp. 268–272, [6] R.G. Kanojiya and P.M. Meshram, “Optimal Tuning of PI Controller for
2010. Speed Control of DC motor drive using Particle Swarm Optimization,”
[2] M.A. Sharbafi, C. Lucas, and R. Daneshvar, “Motion Control of Omni- International Conference on Advances in Power Conversion and Energy
Directional Three-Wheel Robots by Brain-Emotional-Learning-Based Technologies (APCET), pp. 1-6, 2012.
Intelligent Controller,” IEEE transactions on systems, man, and [7] E. Natsheh and K.A. Buragga, “Comparison between Conventional and
cybernetics—part c: applications and reviews, vol. 40, no. (6), pp. 630- Fuzzy Logic PID Controllers for Controlling DC Motors,” JCSI
638, 2010. International Journal of Computer Science, vol. 7, no. (5), pp. 128-134,
[3] Y. Hao, J. Wang, S.A. Chepinskiy, A.J. Krasnov, and S. Liu, 2010.
“Backstepping Based Trajectory Tracking Control for a Four-Wheel [8] N.P. Adhikari, M. Choubey, and R. Singh, “Dc Motor Control Using
Mobile Robot with Differential-Drive Steering,” Proceedings of the Ziegler Nichols and Genetic Algorithm Technique,” International
36th Chinese Control Conference, pp. 4918-4923, 2017. Journal of Electrical, Electronics andComputer Engineering, vol. 1, no.
[4] U.K. Bansal and R. Narvey, “Speed Control of DC Motor Using Fuzzy (1), pp. 33-36, 2012.
PID Controlle,” Advance in Electronic and Electric Engineering, vol. 3, [9] M. Aamir, “On replacing PID controller with ANN controller for DC
no. (99), pp. 1209-1220, 2013. motor position control,” International Journal of Research Studies in
[5] V.K. Giri and S.K. Suman, “Speed control of dc motor using Computing, vol. 2, no. (1), pp. 21-29, 2013.
optimization techniques based PID controller,” The 2nd IEEE [10] K.J. Åström and T. Hägglund, “Automatic tuning of simple regulators
International Conference on Engineering and Technology (ICETECH), with specifications on phase andamplitude margins,” Automata, vol. 20,
pp. 581-587, 2016. no. (5), pp. 645-651, 1984.
84