PID Controlled Synchronous Motor For Power Factor Correction
PID Controlled Synchronous Motor For Power Factor Correction
PID Controlled Synchronous Motor For Power Factor Correction
Abstract- In this paper, a synchronous motor controlled by a II. THE APPLICATION OF A PID CONTROLLER TO A PIC18F452
PID based on a PIC 18F452 microcontroller has been studied MICROCONTROLLER
under three different working conditions using varying excitation
currents. Due to the complexity of PID parameters such as While defining a controller, the specifications of system
integrative and derivative terms, their conversion to digital characteristics such as the velocity, the response time, the
systems has proven difficult. Hence, the collection of errors in a sensitivity and the tolerance are investigated. The algorithms of
specified time period has been multiplied be means of a sampling the control systems are classified into two main types: open
period rather than complex integral algorithms. The difference loop algorithms and closed loop algorithms, but there are lots
between the error rate and its previous value has been divided
into a sampling period to obtain the derivative operation.
of rigid differences between these algorithms. In open loop
Therefore, a PID controlled algorithm has been embedded into a algorithms, there are no adjustable control parameters or
microcontroller which is easily implemented without complex feedback loops. In addition to this, correction of output values
algorithms. In addition, the design of this study includes an LCD is not performed. The open loop algorithms are not preferred in
based visual interface, allowing users to instantly monitor the industrial control systems due to these disadvantages. In closed
current, the voltage and the power factor of the synchronous loop algorithms, the error is minimized by measuring instant
motor. values continuously and adjusted for stabilizing values. The
I. INTRODUCTION closed loop algorithms are widely used in industrial control
systems owing to these corrector characteristics [7]. A closed
Synchronous motors have ohmic, inductive and capacitive
loop system can be formalized as given in 1.
operational characteristics when their excitation current is
changed. Papers and studies about various control applications e(t ) = r (t ) − y (t ) (1)
of synchronous motors can be found in the literature [1], [2],
[3]. The uses of PIDs in synchronous motor control are Where, r(t) defines the magnitude of input and y(t) defines
classified into two main applications. In the first application, the feedback information while e(t) is error rate in a first order
the control parameters of a PID algorithm can be stable during linear control system. It is clearly seen in (1) that the error rate
the operation or adjusted to an optimum value according to is the difference between input magnitude and the feedback
obtained measurements. This control method is defined at a information of the system being controlled.
basic level of PID control. The most widely seen problem of The three different main controllers used in control systems
this method is that the system may not be efficiently controlled are defined as proportional (P), integral (I) and derivative (D).
when the parameters are changed [4].The second application The PID control algorithm is;
differs from the first type with regard to the requirement for
obtaining parameters simultaneously. The controllers in this de(t )
r (t ) = Kpe(t ) + Ki ³ e(t ) + Kd (2)
group are referred to as nonlinear multiple-order controllers dt
because they do not require stable parameters. Each controller
of this algorithm is designed for various aims, which gives this The integral and derivative controllers have been structured
type of control structure a most significant advantage. Thus, in C programming language as an algorithm which is
control algorithms become simpler, more accurate, faster, and dependent on error measurement and downloaded to a 18F452
more sensitive [5]. In closed-loop control systems, timing is microcontroller to digitize the system. The integral controller
the most important factor for sensing error-correction response of 18F452 is given in (3).The Ts variable in (3) defines the
functions. In addition, since the derivative and integrative sampling period of the microcontroller. The derivative
operations performed by the microprocessor require huge equivalent of the microcontroller is seen in (4),
amounts of time and memory, the frequency response of the t n
system will be decreased critically when encountering instant
errors. Besides, it is also probable that the system may become
³ e(t )dt ≅ Ts¦ e(n) (3)
0 0
uncontrollable or begin oscillating and is therefore unable to
hold the reference value during the time interval mentioned
above [6].
de(t ) e(n) − e( n − 1)
≅ (4)
dt Ts
The designed system’s PID control algorithm is obtained by
using (3) and (4) and given in (5) by rearranging,
n e(n) − e(n − 1)
r (t ) = Kpe(t ) + KiTs ¦ e(n) + Kd (5)
0 Ts
409
POWERENG 2009 Lisbon, Portugal, March 18-20, 2009
The proportional gain Kp, integrative gain Ki and derivative the synchronous motor which is capable of conducting 150A
gain Kd have been adjusted according to the requirements of and up to 400V.
the system by using the software developed. In the study, the
After defining Kp, Ki and Kd values, the processor assumes
current and voltage of a phase have been obtained by
the parameters as reference values which are displayed on the
measurement circuits which consists of an LA55P current
LCD. The microprocessor generates switching frequency by
transformer and a 220/6 V voltage transformer as seen in Fig.
acquiring the excitation current of the motor, and calculates the
2.
power factor by comparing the difference between current and
These values have been transferred to the AD converter pins voltage. The comparison of calculated power factor (PF) and a
of the microprocessor by using the AD536 true RMS to DC reference has been used to detect the error signal. At the final
converter. A zero-crossing detector has been used to measure step, the obtained error signal has been applied to the PID
the power factor and the frequency. The obtained values have algorithm to adjust the magnitude of PWM. In experimental
been processed by the PIC 18F452, and the current, the studies, the grid has been loaded with various ohmic, inductive
voltage, the frequency and the power factor values have been and capacitive loads while the synchronous motor is operating
displayed on the LCD panel. The Mitsubishi 2MBI150N-60 at a defined Cos reference value.
IGBT module has been used to adjust the excitation current of
(a) (b)
Fig. 2. The designed sensing circuits ( a) voltage sensing circuit and (b) current sensing circuit with LA55-P
Fig. 3. The block diagram of the designed system containing the microprocessor and the LCD monitoring blocks
410
POWERENG 2009 Lisbon, Portugal, March 18-20, 2009
400-231
5.8-10 2.25 1500 0.8 4 156
λ−Δ
50.02 Hz operation frequency and 1.0 for PF. The load current
R () 1050 750 435 300 213 150 123
was rapidly decreased in synchronous mode when the
excitation current was applied.
L (H) 4.46 3.19 1.84 1.27 0.90 0.64 0.52
The grid was loaded with 1st level ohmic and 3rd level
C (F) 2 3 5 8 10 13 18 inductive loads as given in Table IV and the experiment result
is shown in Fig.6. Under this condition, the parameters of the
synchronous motor were measured as 1.96A for the terminal
The asynchronous working mode of the synchronous motor
current, 239.5V for the terminal voltage, 50.15 Hz operation
is shown in Fig.4. The experimental results of various load
frequency and 1.0 for PF.
conditions are seen in Fig.5, Fig.6 and Fig.7 while P.F. is 1.
The regular sinusodial curves depict the voltage and the Fig.7 shows the working conditions while the grid was
oscillating curves show the current in the following figures. loaded with 3rd level ohmic and 4th level inductive load as seen
in Table IV. Under this condition, parameters of the
In the asynchronous working mode seen in Fig.4, the
synchronous motor were measured as 3.04A for the terminal
parameters of the synchronous motor were measured as 8.34A
current, 239.2V for the terminal voltage, 50.13 Hz operation
for the terminal current, 229.3V for the terminal voltage, 49.91
frequency and 1 for PF.
Hz operation frequency and 0.06 for PF.The synchronous
operation mode was performed by applying an excitation
current to the motor as the reference value of Cos was 1.0.
In the synchronous operation at no load mode seen in Fig.5,
the parameters of synchronous motor were measured as 0.98A
for the terminal current, 240.06V for the terminal voltage,
411
POWERENG 2009 Lisbon, Portugal, March 18-20, 2009
REFERENCES
[1] M.A. Abido and Y.L. Abdel-Magid, “A fuzzy basis function network for
current generator excitation control.” IEEE Proceedings of The Sixth
International Conference on Fuzzy Systems, 3, pp. 1445-1450, 1997.
[2] E. Handschin, W. Hoffmann, F. Reyer, T. Stephanblome, U. Schlucking,
D. Westermann and S.S. Ahmed, “A new method of excitation control
voltage based on fuzzy set theory” IEEE Transactions on Power Systems, 9(1),
pp. 533-539, 1994.
[3] I. Colak, R. Bayindir and O.F. Bay, “Reactive power compensation using
a fuzzy logic controlled synchronous motor”, Energy Conversion and
Management, 44 (13), pp. 2059-2215, 2003.
[4] Z.Y Zhao, M. Tomizuka and. S. Isaka, “Fuzzy gain scheduling of PID
controllers.” IEEE Transactions on Systems, Man and Cybernetics., vol.
23, no. 5, pp. 1392-1398, 1993.
[5] M. Berger, “Self-tuning of a PI Controller Using Fuzzy Logic for A
Construction Unit Testing Apparatus”, Control Engineering Practice,
4(6), 785-790, 1996.
[6] J. Charais, R. Lourens, “Software PID Control of an Inverted Pendulum
Using PIC”, Microchip Application Note AN 964A, 2004.
[7] D. brahim, “Microcontroller Based Applied Digital Control”, John
Fig.6. Synchronous working mode with ohmic and inductive load Willey & Sons Ltd., pp. 230-240, 2006.
[8] A.F. Baba, Marmara Unv. Institute of Science, “Computer Aided PID
Control” MS Thesis, pp. 41-53, 1989.
[9] J.H. Park, S.W. Sung and I. Lee, “An enhanced PID control strategy for
unstable processes”, Automatica, vol. 34, pp. 751-756, 1998.
current [10] D.P. Atherton and S. Majhi, “Tuning of optimum PID controllers”, Proc.
of Int. Conf. Controlo’98, pp. 549-554, Coimbra 1998.
[11] D.K. Fredarick, J.H. Chow, “Feedback Control Problems Using
voltage MATLAB and The Control System Toolbox”, Brooks/Cole, 2000.
[12] R.H. Bishop, “Modern Control Systems Analysis and Design Using
MATLAB and SIMULINK”, Addison Wesley Longman, 1997.
[13] J.G. Ziegler, N.B. Nichols, “Optimum Settings for Automatic
Controllers”, Transactions of ASME, 64, 759-768, 1942.
[14] E.A. Gonzalez, L.U. Ambata, “Adaptive Control Using Fuzzy-PI
Means”, ECE Technical Report, 2004.
IV. CONCLUSIONS
The paper has described an automatic adjusting procedure to
determine PID parameters for PID control of a synchronous
motor. In this approach, operations are performed by summing
of all error values at a fixed time interval and multiplying them
with a sampling period instead of integrative work. In addition,
equivalency is used in place of a derivative operation to
calculate the difference between the error and its previous
value, and then dividing the result by sampling period.
Therefore, a PID controlled algorithm has been embedded into
a microcontroller and then implemented easily without
requiring complex algorithms. In addition, design of this study
includes an LCD based visual interface allowing users to
instantly monitor the current, the voltage and the power factor
of the synchronous motor. Results show the effectiveness of
the methodology and a way of using power factor correction in
a synchronous motor. Furthermore, the optimization method
can be used and applied to obtain improved closed loop
performance for different systems.
412