Variable Speed Control Using Fuzzy-PID Controller
Variable Speed Control Using Fuzzy-PID Controller
net/publication/318585925
CITATIONS READS
9 3,776
4 authors, including:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
PID controller for NARX and ANFIS models of marine pipe cylinder undergoes vortex induced vibration View project
Comparison between Mechanical Properties, Microstructures andElectrical Conductivity of AA2024 Doped with Various Amount of Alumina and Zirconium Oxide. View
project
All content following this page was uploaded by Basma Abdullah Abbas on 09 June 2019.
Abstract
In a robotic grinding process, a light-weight grinder is held by an intelligible robot arm. Material
removal is carried out by the rotating grinding tool while the end effector of robot guarantees that the tool
follows a programmed path in order to work on complex curved surfaces. Grinding tool is driven by Two-
Phase Hybrid Stepping motor derive. This work aims to develop a controller based on fuzzy logic to
improve the speed control performance of Two-Phase Hybrid Stepping motor derive in order to achieve a
controller that provides grinding with higher quality. The analysis and design of PID-Fuzzy controller to
improve the response of the motor speed were studied. This paper simulates six motor speed input
conditions. The simullink package of the MATLAB. Comparison between the conventional PID controller
and Fuzzy-PID output was done on the basis of the simulation result obtained by MATLAB. The simulation
results demonstrate that the designed Fuzzy-PID controller realize a good dynamic behavior of the Two-
Phase Hybrid Stepping motor, a perfect speed tracking with less rise and settling time, minimum
overshoot, minimum steady state error and give better performance compared to conventional PID
controller.
Keywords: force control, speed control, PID controller, fuzzy logic controller, PID-Fuzzy controller, two-
phase hybrid stepping motor, grinding robot.
Copyright © 2016 Institute of Advanced Engineering and Science. All rights reserved.
1. Introduction
Robotic grinding, in early industrial applications, was resolved using a grinding machine
attached to the end effector of robot through a damper and spring arrangement. In the process
of grinding and finishing, grinding force needs to be actively controlled both in direction and in
value all the time along with feed movement controlling, thus the process requires to be
controlled by the policy of compliant controlling. When the force controlled robot is applied to
grinding operation, the position control style is selected to control the grinding tool path in the
feed direction exactly. In the press direction, which is perpendicular to the feed direction, the
compliance control style or force control style is selected to get the appropriate contact force. It
is essential to maintain a suitable amount of contact force in grinding operation, and as well to
take into account the workpiece profile after grinding. Either compliance control or force control
can be chosen. In the force control style, the grinding tool follows the surface of workpiece by
maintaining the contact force constant in order to provide equally grinding on the whole surface.
So it is possible to follow an unknown curved surface. The grinding process can be finished
easily without taking into account the position errors like for example in setting the workpiece
that is the problem when using a position controlled robot. This style therefore is most
successfully for grinding a surface usually made or in small deburring of machined parts. In the
compliance control style, the requested profile of the workpiece surface after grinding process
performs as the reference position; also the contact force is accomplished by contraction or
expansion of virtual spring. So it is possible to produce a target profile after grinding. Then, it
must be compensate the large error of workpiece position that can’t be corrected by virtual
Received February 2, 2016; Revised May 25, 2016; Accepted June 10, 2016
IJEECS ISSN: 2502-4752 103
spring. This style is appropriate for grinding to get a target profile as an example of large
deburring of casting [1].
The hybrid movement–force control policy is the best way for a compliant control
system to deal with the coupling of the force control subsystem and the movement control
subsystem. In this paper the grinding tool is driven by Two-Phase Hybrid Stepping motor
derive. Stepper motors were chiefly used for simple point-to-point positioning tasks in which
they were open-loop controlled. In the open-loop control system, without feedback, there is no
way to know if the speed response is oscillatory or if the stepping motor has missed a pulse. It
shows a poor dynamic performance and suffers from lack of ability to be modified to load
variations and system variations. In order to increase the accuracy positioning of the stepping
motor, closed-loop control principle was introduced in the 1970's, as long as making it less
sensitive to load disturbances. The closed-loop control is characterized by starting the motor
with one pulse, and the following drive pulses are generated as a function of the motor shaft
speed and/or position by the use of a feedback encoder [2].
Nowadays, due to advances manufactured in both data processing and power
electronics, stepping motors are further frequently closed-loop controlled, in special, for robotics
manipulators and machine tools in which they have to present high-precision operations in spite
of the mechanical formation changes. The conventional proportional–integral–derivative (PID)
controllers stay to be the most prevalently used in the industrial processes in spite of the many
complicated control techniques and theories that have been invented in the last few decades
[5] The PID controller attempts to minimize the error by modifying the process control input [10].
The famous method, Ziegler–Nichols method, supplies a systematic tuning method for the PID
parameters which has good load disturbance reduction but, with a long settling time and large
overshoot it shows disappointing performance. In addition, using of proportional-integral-
derivative (PID) control as a classic closed-loop algorithm is not perfect because these
algorithms are not insensitive quite when confronted by mechanical configuration changes [3].
The serious problems in applying a proportional-integral-derivative (PID) in a speed
controller are the effects of non-linearity in the Two-Phase Hybrid Stepping motor. The
nonlinear characteristics of the motor such as fiction and saturation could degrade the
performance of conventional controllers [4]. Mostly, it is difficult to find an accurate nonlinear
model of an actual Two-Phase Hybrid Stepping motor and parameter achieved from systems
identification possibly only approximated values. In recent years, fuzzy control field has been
making rapid progress [5].
In this paper, an optimal Fuzzy-PID controller is proposed to control the variable speed
of a two phase hybrid stepping motor drive. The application of fuzzy theory in the closed-loop
control system entails in combine engineering knowledge into the automatic control system by
using the experience and intuition of the designer.
The policy was proposed by Zadeh in 1965 to describe complicated systems, which are
hard to analyze using traditional mathematics. Fuzzy logic theory has found wide commonness
since the 1970's in various applications such as management, medicine, economics, or control
process. In fact, Mamdani et al. were the first to present the application of fuzzy set theory to
control a small laboratory steam engine. This study’s successful led many researchers to try to
control industrial processes such as nuclear or chemical reactors and automatic trains using
fuzzy algorithms. The results of these experiments showed that fuzzy controllers perform better.
Furthermore, this technique offers the advantage of demanding only a simple mathematical
model to formulate the algorithm, which can absolutely be implemented by a digital computer.
These features are esteemed for nonlinear processes for that there is no reliable model and
complex systems where the model is not practical because of the large number of equations
involved [6]. In the past decade, common researches attempt on fuzzy logic control have been
dedicated to model-based fuzzy control systems that assure stability and the closed-loop fuzzy
control systems performance. It has a rare feature of simplicity and its flexibility to deal in
problems with exactness and accuracy with its simulation results. It can be carried out in
software or hardware or by joining of both of them.
F Betin D Pinchon, G Andre, 2000 [3], suggested the application of fuzzy logic theory to
control speed of a permanent magnet stepper motor drive with feedback. Using simulation
software of stepping motor dynamics, the most efficient topology of the fuzzy controller has
been determined. An advanced test bed was used to confirm experimentally the insensitivity to
external disturbances, the tracking capacities, and for parameter changes. The study has also
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
104 ISSN: 2502-4752
proved that the fuzzy control is absolutely implemented using a low-cost single-chip
microcontroller. Also, this method does not require a fixed sampling time. Therefore the
proposed design approve that fuzzy control is related to the control of fast nonlinear processes
where quantitative techniques are not always suitable.
KS Cheol, CY Sung, PJ Hyung, KaSChul, BGHan, 2005 [7], designed a stepper motor
drive using a fuzzy logic control based on PID-controller to enhance robust characteristic in
which the deviation of external load affect parameter. They could not acquire rabidly response,
but robustness in disturbance.
The aim of this paper is the development of fuzzy controller to simulate the automatic of
feedback control of the tow phase hybrid stepping motor operation with various speed. PID and
Fuzzy – PID controllers are advanced and their responses are to be compared.
Figure 1. General Stepping Motor with its Figure 2. Cross-Section of a Stepper Motor.
Main Parts
will magnetically attracts the nearest teeth of the gear-shaped iron rotor. The gear's teeth will
be slightly offset from the next electromagnet right electromagnet (2). When the right
electromagnet (2) is energized and the top electromagnet (1) is turned off, it will pull the teeth
into alignment with it. This means that the gear rotates slightly to align with the next one when
the next electromagnet is turned on and the first is turned off. The process is repeated from
there. Each of those rotations is called a "step", making a full rotation with an integer number of
steps, for example, it will take 100 steps to make a full rotation if there are 25 teeth. In that way,
the motor can be turned by an exact angle.
Stepper motors have various merits such as small inertia, great output torque, and high
frequency response. These characteristics donate to the wide usage in the industry nowadays,
especially in control applications and measurement [8]. They have also some demerits such as
step response with relatively long settling time and overshoot. In addition, when steps of high
frequency are given, loss of synchronism appears. Therefore it is necessary to develop control
systems to improve the performance of stepper motors [13].
The stator has eight poles; each phase has four of them, which broaden at the tips to a
group of teeth. Every stator pole has a twisting in the form of a short pitched phase coil. Usually,
these are connected in series to form two electrically independent motor phases, A and B
shown in Figure 3. The rotor has a large number of teeth (typically 50) and embodies a
permanent magnet in the center of it. The permanent magnet products static flux along the axis
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
106 ISSN: 2502-4752
of the machine. The rotor tooth pitch is the same as that of the stator [16]. In a two phase
stepper motor, there are two basic winding arrangements for the electromagnetic coils: bipolar
and unipolar. Bipolar stepper motors have a single winding per phase and unipolar stepper
motor has one winding with center tap per phase. Standard hybrid stepper motors are
assembled with a spring washer that applies pressure on the ball bearings in order to reduce
bearing noise, keep the rotor in position, and increase bearing life. Also, to prevent unwanted
shaft movement, motors are supplied with a snap ring behind the front bearing which locks the
bearing in position even under very heavy axial loads, see Figure 4.
Due to the fact that motor performance varies greatly with the drive at variable speed,
holding torque is used to rate the two-phase hybrid stepping motors. Holding torque is the
maximum torque that can be applied to the motor shaft and not cause the shaft to rotate. It is
energized with rated DC current and measured with the motor at standstill.
The pull-in torque curve limits an area referred to the start stop region. With a load
applied and without loss of synchronism, this is the maximum frequency at which the motor can
start/stop instantly. The maximum start rate is the maximum starting step frequency with no load
applied. The pull-out torque curve defines the maximum frequency at which the motor can set in
motion without losing synchronism. It limits an area referred to as the slew region. The motor
must accelerated or decelerated into this area since it is outside the pull-in torque area. The
maximum operating frequency of the two-phase hybrid stepping motor with no load applied is
called the maximum slew rate. A block diagram of a hybrid stepping motor and drive is shown in
Figure 7 and consists of a hybrid stepping motor, power converter and controller.
Where:
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
108 ISSN: 2502-4752
The subdivided driving is assumed for the Hybrid Stepping Motor in order to reach to
the actual system performance parameter and to decrease the intricacy of the system transfer
function. In simulation, the parameters of the two-phase Hybrid Stepping Motor selected are as
follows:
Where:
Nsp = Nref-n, is the current motor speed error,
Nref is a given speed, n is the actual speed.
Ne=Nsp-Nsp0 is the current speed error variation.
Nsp0 is the speed error on the previous moment.
Nelast is the speed error variation of the previous moment [20]
The most conventional PID controller or linear PID controller is described as follows:
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
110 ISSN: 2502-4752
Where KP is the proportional constant gain, KI is the integral constant gain and KD is the
derivative constant gain according to manual expertise. The signal e(t) is the error signal
between the reference and the process output c(t) it is explained as:
The PID controller internal structure is explained in Figure 13, the input parameters for
the PID controller are Kp, Ki, Kd, e and ec, the output for the controller is u.
In this paper, Fuzzy subsets of all inputs and outputs are total explained as {NB, NM,
NS, Z, PS, PM, PB}. Elements of every subset refer to: negative large Nb, negative middle Nm,
negative small Ns, zero Z, positive small Ps, positive middle Pm and positive large Pb.
We set the ranges {−6,6} for both e and ec, {−1,1} for both Kd and Ki and {−3,4} for Kp
as shown in Figure 16-20.
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
112 ISSN: 2502-4752
The surface view of Kp, Ki, and kd will be as shown in Figure 21- 23.
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
114 ISSN: 2502-4752
By Fuzzy optimizing, the values of the three characteristic parameters would be:
Kp=200, Ki=14.75, Kd=3.6875.
In Figure 27, there are two inputs and three outputs for the Fuzzy Logic Controller, the
inputs are (e) and (ec = d/dt), and the outputs are Kp, Ki and Kd.
With the MATLAB SIMULINK, a famous simulation software, and for a conventional PID
controlling system, step response is also shown in Figure 4 with Kp=200,Ki=14.75, Kd=3.6875.
Step response of the Fuzzy-PID controlling system is completely different from that of the
conventional PID controlling system.
Remarkably, the Fuzzy-PID controller has improved the force servo system by deducing
the optimized Kp, Ki and Kd
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
116 ISSN: 2502-4752
Figure 32. The Hole Variable Speed Controller System of the Two-Phase Hybrid Stepping Motor
Figure 33. Step response of the System Under PID, Fuzzy & Fuzzy-PID Controllers
Step response of the Fuzzy-PID controlling system is completely different from that of
the conventional PID and Fuzzy controlling systems. For each step, as shown in Figure 15, we
note that when we used PID controller: the rise time value, the overshoot value, and the steady
state error value are higher than if we use Fuzzy controller. Also we note an under shoot value
with using Fuzzy controller. While when we use Fuzzy-PID controller we note that the Rise Time
value, the Overshoot value and Steady State Error are reduced for each step with no under
shoot value.
Remarkably, the Fuzzy-PID controller has improved the variable speed control system
by inferring the optimized Kp, Ki, Kd.
11. Conclusion
In this work, the close loop control for the two-phase hybrid stepping motor derive has
studied and presented. Fuzzy logic based controller (fuzzy-PID) has also studied and
presented. Results for one parameter was monitored, namely, the speed of the motor
(step/sec). The results were obtained using Simulink representation of the Two-Phase Hybrid
Stepping Motor transfer function have been done using the software package
MATLAB/SIMULINK.
Analysis and comparison of the results presented for the following conclusion:
a. The time response of the motor speed can be effectively suppressed by the two
model; excitation sequence and load torque.
b. By adding fuzzy control tools fuzzy PID-controller to the motor speed control make
its response with low effect on the rise time, and low peak over shoot.
c. In this work we proved that fuzzy control is related to the control of fast nonlinear
processes such as Two-Phase Hybrid Stepping Motor drives.
References
[1] Attiya, Adnan Jabbar, Yang Wenyu, Salam Waley Shneen. Fuzzy-PID Controller of robotic grinding
force servo system. TELKOMNIKA Indonesian Journal of Electrical Engineering. 2015; 15(1): 87-99.
[2] BC Kuo. Theory and application of step Motor. West Publishing Co. University of Illiniois. 1974.
[3] F Betin, M Deloizy, C Goeldel. Closed loop control of stepping motor drive: Comparison between PID
control, self tuning regulation and fuzzy logic control. Eur. Power Electron. 1999; 8(1–2): 33–39.
[4] CT Johnson, RD Lorenz. Experimental identification of friction and its compensation in precise,
position controlled mechanism. IEEE Trans. Ind, Applicant. 1992; 28(6).
[5] Umesh Kumar Bansal, Rakesh Narvey. Speed Control of DC Motor Using Fuzzy PID Controller,
Advance in Electronic and Electric Engineering. 2013; 3(9): 1209-1220.
[6] F Bettin, D pinchon, G Andre. Fuzzy logic applied to speed control of a stepping motor drive IEEE,
trans. IE. 2000; 47(3).
[7] KS Cheol, CY Sung, PJ Hyung, KS Chul, BG Han. A study on the fuzzy based PID Position controller
for step motor drives. University of Handan-dong, Saha-gu. Busan, Korea. 2005: 604-714.
[8] Zhaojin Wen, Weihai Chen, Zhiyue Xu, Jianhua Wang. Analysis of Two-Phase Stepper Motor Driver
Based on FPGA. Presented at the IEEE International Conference on Industrial Informatics. 2006.
Variable Speed Control Using Fuzzy-PID Controller for… (Adnan Jabbar Attiya)
118 ISSN: 2502-4752
[9] Zhang Ran, et al. Design of two-phase hybrid stepping motor driver with current closed-loop control
based on PIC18F2331. Electrical Machines and Systems, ICEMS 2008. International Conference on.
IEEE. 2008.
[10] A Bellini, C Concari, G Franceschini, A Toscani. Mixed mode PWM for high performance stepping
motors. Presented at the 30th Annual Conference of IEEE Industrial Electronics Society, IECON.
2004.
[11] Andrew J Blauch, Marc Bodson, John Chiasson. High-speed Parameter Estimation of Stepper
Motors, IEEE Transactions on control systems technology. 1993; 1(4): 270-279.
[12] Melin, Patricia, Oscar Castillo. Intelligent control of a stepping motor drive using an adaptive neuro–
fuzzy inference system. Information Sciences. 2005; 170(2): 133-151.
[13] Ja Alvarez-Gallegos, E Alvarez-Sanchez, R Castro Linares. Experimental setup for sensorless rotor
position control of a permanent magnet stepper motor. Presented at the 9th IEEE International Power
Electronics Congress, CIEP. 2004.
[14] Nobuyuki Matsui, Makoto Nakamura, Takashi Kosaka. Instantaneous Torque Analysis of Hybrid
Stepping Motor. IEEE Transactlons on Industry Applications. 1996; 32(5).
[15] Wale JD, C Pollock. Hybrid stepping motors and drives. Power Engineering Journal. 2001; 15(1): 5-
12.
[16] JD Wale, C Pollock. Hybrid Stepping Motors and Drives. IEE: Power Engineering Journal. 2001: 5-
12.
[17] Degang Chen, Brad Paden. Adaptive Linearization of Hybrid Step Motors: Stability Analysis. IEEE
Transactions on Automatic Control. 1993; 38(6): 874-887.
[18] Hunt Steven. Increasing the High-Speed Torque of Bipolar Stepper Motors. Proceedings of the
International Intelligent Motion Conference, Intertec International, INC. 1992.
[19] XU Wenqiang, YAN Jianhong. Derivation of Transmission Function Model of Two-phase Hybrid
Stepping Motor. Space Electronic Technology. 2011; (3): 50-53.
[20] Ma Qiujie, Shi Jingzhuo. Fuzzy PID Speed Control of Two phase Ultrasonic Motor. TELKOMNIKA
Indonesian Journal of Electrical Engineering. 2014; 12(9): 6560-6565.