You are on page 1of 9

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/326675017

Design of an Electronic Governor for a Diesel Generator with Synchronous,


Isochronous and Islanded Modes

Article · January 2015

CITATIONS READS

0 4,623

6 authors, including:

Rohan Lucas Narendra de Silva


University of Moratuwa Lanka Electrcity Company
118 PUBLICATIONS   365 CITATIONS    10 PUBLICATIONS   3 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Energy View project

Lightning Protection and Earthing View project

All content following this page was uploaded by Rohan Lucas on 29 July 2018.

The user has requested enhancement of the downloaded file.


Design of an Electronic Governor for a Diesel
Generator with Synchronous, Isochronous and
Islanded Modes
M.P.L.Jayathilake, K.P.M.Karunanayake, A.M.M.Karunarathna,
A.P.M.Kethumalika, J.R.Lucas, N.De Silva
Abstract: The design of an electronic governor to change the fuel valve of a diesel generator and
the algorithm to control the speed is presented in this paper. Initially a control hardware circuit was
designed and built, capable of controlling the fuel flow of the generator so that it can be operated at a
desired speed in isochronous mode. Unlike in the traditional controllers, no speed sensor is required,
and the instantaneous frequency is extracted from the generator output voltage waveform. This
governor has been developed to have the ability to run in synchronous and islanded modes as well as
the isochronous mode. The developed governor will be used as a teaching tool for electrical
engineering undergraduates with the power system simulator that has been recently developed, to
gain the real power system operation experience.

Keywords: Diesel generator, Electronic governor, Mechanical governor, Fuel rack, Power system
simulator

1. Introduction In this project, an electronic governor for a


diesel generator is developed to give the
Governors are devices which are used to generator the ability to run in multi modes.
control the speed of a generator. When diesel The main objectives are as follows:
generators are considered, the governor should • To develop a linear actuator using an
be capable of handling the fuel flow to the electric motor and to control the fuel rack
engine when the speed is changed from the set position
speed [1]. Earlier, mechanical governors were • To design a frequency detection system
used, but with the advancement of electronic using the output voltage waveform of the
components, the control features of governors generator
have become much more flexible and electronic • To control the fuel rack position by
governors are more and more used for speed mounting the linear actuator to the fuel
control [2]. injection pump
• To combine the whole system of the
Generally electronic systems are not as reliable generator with the power system simulator
as mechanical systems. But it is possible to available at the power systems lab as a
build reliable control systems with more power source to be used as a teaching tool
complex operations, accuracy, precision and for the undergraduates.
reliability. Normally mechanical governors
operate in Isochronous mode. But electronic The three-phase diesel generator obtained for
systems are compulsory when it comes to the project, being of small capacity had been
complex operating modes like droop mode. designed with a mechanical governor to
This variable parameter governor presented in operate in standalone manner and thus in the
this paper has the capability to operate in isochronous mode to balance the demand and
various control modes like hysteresis, PI and supply [4]. However, when additional features
PID which are not available in mechanical are needed, such as to run in synchronous
controllers. mode with other generators, or to run in
islanded mode, an electronic governor is
When the load of the generator is changed, the needed.
speed of the engine will be changed resulting in
a change in the frequency. So, to keep the Thus the existing mechanical governor of the
engine running at a desired speed (or diesel engine was modified to co-exist with an
frequency), fuel flow to the engine needs to be electronic governor, designed by us to give it
controlled [3]. the ability to run in these three distinct modes.
Initially, the generator was run in isochronous
mode with the developed electronic governor
using a tuned programmable controller. The 1.4 Diesel Generator
control algorithm was then modified in order to Diesel engines are widely used as prime
run in the synchronous and islanded modes as movers for generators as they can be placed
well [2]. anywhere regardless of the location, resources,
size etc. In today’s context, large diesel
1.1 Isochronous Mode generators are connected to the grid while a
When functioning in the isochronous mode, the large number of small scale diesel generators
governor would always try to keep the are used as backup power plans due to some
frequency of the output voltage of the generator unique advantages such as compactness, less
at a fixed value regardless of the load demand. initial cost, less fuel cost compared to gasoline,
This control is achieved by varying the fuel less pollution compared to gasoline, etc.
flow to the diesel engine. If the load demand is However there are some disadvantages in
increased, the output frequency will drop, and diesel generators compared to some other
the governor will increase the fuel flow to the sources like hydro, such as the presence of
diesel engine until the output frequency is higher time constant which causes difficulties
increased up to the fixed frequency value. If the in controlling[3], [2].
load demand is decreased the output frequency
will be increased and the governor will reduce 1.5 In-built Mechanical Governor
the fuel flow to the diesel engine until the The Diesel generator had a fly-ball mechanical
output frequency is reduced down to the fixed governor which could only be run under
frequency value [4]. When the diesel generator isochronous mode. The objective was to
with the developed governor is connected to develop an electronic governor and mount it to
the power system simulator to operate in the the fuel injector pump while keeping the
isochronous mode, no other power source existing mechanical governor [1].
should be connected.
The mechanical governor is not completely
1.2 Synchronous Mode replaced. But the set point of the electronic
In the synchronous mode, the frequency is not governor is lower than the mechanical
fixed with variation of the active power output governor. Therefore mechanical governor does
[4]. Therefore in order to keep the frequency of not operate unless electronic governor fails to
an isolated system constant, there should be operate. Compared to the mechanical governor,
several droop settings in one generator. Then, the electronic governor designed has less
according to the variation of load, the droop performance under no load and low load
setting can be changed in order to keep the conditions. But with the inertia of the load, both
frequency constant by getting a current governors has almost same performance in
feedback. Power system simulator has a Isochronous mode which is not compared in
synchronous generator coupled with an the research paper. But the mechanical
induction motor as a power source from one governor doesn’t have the capability to operate
end and the diesel generator at the other end. with either variable parameter operation or
The developed governor will operate in Droop mode operation.
synchronous mode when the two power
sources are connected at the same time. 2. Methodology
1.3 Islanded Mode 2.1 Hardware Circuit
Islanding operation is a phenomenon that the Diesel generator has a solenoid actuator in the
power system is isolated and the generation fuel injector pump in order to control the fuel
control is done by the island itself. Here the flow in starting state and stopping state of the
generator should have an isochronous governor generator. When the solenoid is de-energized,
(flat droop curve). But in a networked power the fuel flow to the engine is fully closed and
system, this type of operation can be naturally the generator is kept in the stopping state. And
occurred due to failure of a tie line. In such a once the solenoid is energized, the fuel flow to
situation a generator or set of generators within the engine will be fully opened and the
the island may be operated in the islanded generator will be started with the support of
mode and the local loads can be fed by those starter motor, fuel pump and other auxiliary
generators although the rest of the network is systems. Since the solenoid only changes the
not feeding in to the island. Such a situation is fuel flow between two states, the engine
known as intentional islanding [5]. consists of a mechanical fly-ball governor to
vary the fuel flow rate continuously within a This actuator is designed using a servo motor
small range such that the generator will be able with rack and pinion mechanism. The precision
to respond to the changes in the demand by of the actuator is lesser than to the precision of
varying fuel flow rate by smaller amounts [2], the mechanical governor. It caused small
[3]. Initially it was decided to develop a oscillations (around the frequency set point) of
controlled solenoid which could replace the the frequency under no load and low load
existing solenoid which would work under the conditions. The actuator should be replaced
principle of PWM, consisting only two states. It with a DC motor controlled actuator which can
was decided to increase the fuel flow by give more accurate results compared to the
increasing the PWM duty cycle. But due to the existing governor.
limitations of the mechanical design of the
existing diesel engine, linear actuator had to be When the linear actuator is connected to the
designed analogously to change the fuel rack diesel engine the frequency set point is set to
position [6]. Even a speed sensor can sense the 60Hz such that the mechanical fly-ball governor
frequency reliably. But here in this case the always tries to achieve the 60 Hz power output.
method implemented takes less than 100 ms to This operates as it always opposes the action of
calculate the frequency accurate up to the the linear actuator and the rack of the linear
second decimal point. The electronic circuit actuator pushes the fuel rack position of the
used in frequency sensing is again used in engine in order to control the fuel flow of the
active power measuring where the resources engine to achieve 50 Hz frequency.
were utilized efficiently compared to using
separate systems. 2.2 Linear Actuator Mounting
The developed linear actuator consists of a
In order to control the fuel rate continuously, servo motor and rack and pinion in order to
the existing solenoid which has only two steps convert the rotary motion to linear motion.
has been replaced with a linear actuator. This
linear actuator is tailor-made for the available
engine and has the dimensions of the existed
solenoid. This actuator consists of a servo motor
and a rack and pinion mechanism to convert
the rotary motion of the servo motor to linear
motion. A servo motor is used because it has an
error feedback system which can rotate by a
very precise angle without errors and also very
convenient to use and program. Rack and
pinion method is chosen since it has a less
complex design and more compact in nature
and can be easily coupled with a servo motor to
gain a linear motion by converting the rotary Figure 1 - Mounted Linear Actuaror
motion of the motor.
2.3 Controller : Arduino Mega 2650
Even though this actuator acts as an electronic
An Arduino board has been used as the control
governor with an Arduino control circuit, the
circuit and analog input is obtained from the
existed mechanical fly-ball governor is not
frequency detection circuit. And the output
removed when connected to the diesel engine.
signal to the servo motor in order to function
The control mechanism is achieved through
the linear actuator is provided from the
coinciding operation of the mechanical fly-ball
Arduino board. The program drives the servo
governor and newly added linear actuator.
motor by connecting the motor to PWM pin 8 of
the Arduino, and a frequency detecting input to
The frequency set point of the engine is set by
analog 0. The signal to the potentiometer from
varying the throttle lever position. If only the
the feedback circuit will determine the position
mechanical fly-ball governor is in operation, the
of the servo motor by sending a variable
frequency set point is placed at 50 Hz and
resistance current to the A0 analog port on the
regardless of the power demand the fly-ball
Arduino [7]. Then the Arduino code interprets
governor will try to achieve that by varying the
to a pulsed signal to the servo motor to position
fuel rack position.
the fuel rack based on the signal from the
potentiometer.
Figure 2 shows the hardware arrangement with were calculated (28 milliseconds) and hence the
both servo motor and the feedback circuit with time to one sample is calculated (28/250 = 0.112
Arduino. milliseconds) which is the sampling time. In the
above circuit there is no DC offset added to the
voltage waveform. Hence the arduino cannot
read the negative half cycle of the signal as
Arduino only reads the positive values.
Therefore the arduino reads analog inputs as
zero within the negative half cycle of the
waveform. In the program, a counter is started
when a non-zero value is received and counts
the number of non-zero samples. The counter is
stopped when it begin to give zero values
again. Therefore by using the sampling time of
the arduino which is 0.112 milliseconds, it is
possible to calculate the power frequency. The
formula stated below can be used for that.
103
𝑓= (1)
2×0.112×𝑘

Where, k is the number of nonzero samples


Figure 2 - Schematic Circuit of Arduino
derived from the counter reading. The power
Mega 2650 in Proteus
frequency can be monitored using Arduino
serial monitor. [10]
2.4 Frequency Detection Method
Instead of using sensors like encoders or The above method was successful but the
tachometers, the output voltage waveform of measured frequency was not accurate enough
the generator is used to measure the power for governor controlling as some odd error
frequency and hence the speed of the generator. values were present. Therefore it was decided
This gives the advantage of incurring less to try a second method which is to use rising
maintenance and less cost compared to the edges in the output voltage waveform in
conventional method of using sensors. Digital determining the frequency. An interrupt was
Signal Processing through Arduino Mega done and time measurement was taken in the
microcontroller derives a much accurate value first rising edge of the waveform. The next
for power frequency. interrupt is done in the first rising edge of the
next cycle and the time between the two rising
A simple circuit was used to step down the edges is calculated which was used to measure
voltage of the generator in order to feed it to the the frequency. As the same feedback circuit
Arduino device. A transformer (230/12 V) was used in the previous method is used, only the
used to step down the voltage (230 V) of the rising edges in the positive half cycles are
generator into a 12 V waveform and then a considered due to the same reason as Arduino
voltage divider circuit is used to step down the cannot read negative cycle of the waveform.
voltage furthermore where the voltage was The later method was decided to be used in the
decreased further more until the peak voltage project as it was more successful and it gives
becomes less than 5 V. These steps were more accurate values.
followed to make sure that the peak voltage of
the output voltage waveform is less than 5V As the circuit was interfaced with the computer
since arduino device can only sample voltages through serial communication, it was possible
up to 5 V and the device may subject to to observe the performance of the existing
damages under higher voltages. mechanical governor [8].

The sampling was used in calculating the


power frequency. Two methods were tried to
sense the frequency. The first method was to
use the zero crossing points in the voltage Figure 3 - Schematic Diagram of the
output waveform. Arduino takes 250 samples Frequency Detection System
from the analog input that was fed into the
arduino. The times taken to read those samples The detection of frequency using the output
voltage waveform instead of using a speed
sensor reduces the complexity of the design and designated as slave device which will measure
improves the controllability of the hardware. and monitor variables and send the required
Inbuilt 10 bit ADC of Arduino is used to sample parameters to the master device when it asks
the instantaneous voltage output of the and the master device will perform the
generator. Then thefrequency of the signal is controlling. This way controlling becomes more
calculated using the sampled voltage values [8]. accurate and convenient to understand. I2C
communication is established between the
arduino devices as it is one of the best
synchronized communication methods between
Arduino devices [11].

2.7 Serial Chart


In order to study the performance of the
modified governor it was required to observe a
plot of real time data including frequency and
load variations with time. Open source
software called “Serial Chart” is used for that.
This software can monitor a variation in a
parameter entered through serial
communication in CSV (comma-separated
values) format. It is convenient to use this
software to tune and monitor the performance
of the electronic governor. The program has to
be configured using a small configuration
program which depends on the requirement.

2.8 Isochronous Mode


Figure 4 - Schematic Diagram of the The hysteresis control is used in achieving the
System isochronous mode. The control mechanism is
simple compared to PID control and the tuning
is also comparatively simple. In hysteresis
2.5 Power Measurement control, at first basic on-off method was applied
Active power, reactive power, power factor, under no load conditions as indicated in Figure
current and voltage should be measured in 5and later the algorithm was further developed
order to run the generator under synchronous in order to control the fuel rack position while
mode and islanded mode and also for changing the loads.
monitoring purposes. As Arduino is the
currently used controller, an arduino program
is used to measure those variables. The arduino
must be fed with voltage and current feedbacks
to derive those quantities. The voltage signal
was obtained using the same which was used to
measure the frequency and a current
transformer was used to obtain the current
feedback. The root mean square values of
Voltage and Current, Active Power, Reactive
Power and Power Factor was calculated using
the energy monitoring library available in
Arduino.
Figure 5 - Hysteresis Control
2.6 I2C Communication 2.9 Synchronous Mode
There are several tasks that Arduino is expected P control with speed and load feedback loops is
to perform including frequency detection, used as the basic control method to achieve
active power measurement, measuring and synchronous operation as shown in the block
monitoring of parameters to LCD/ serial diagram in Figure 6. Load reference and R are
monitor/serial chart, executing control method the variable parameters where load reference
and servo motor driving. Therefore it is defines the power output at operating
convenient to delegate work between two frequency of 50 Hz and R defines the slope of
Arduino devices where one Arduino device is the characteristic curve. The isochronous mode
can be achieved by changing the value of R in
to zero which will eliminate the load feedback
loop.

The chart shown in figure 13 is drawn using


3000 samples where the load reference set point
of the governor is 2.9 kW where the full load is
8 kW and hence load reference in p.u. is 0.36.
The slope of the curve is set to 0.6 and the
droop in this case is about 13% which is
Figure 8 - Islanding Detection (Grid
considerably a higher value compared to actual
Connected)
values. In the frequency and power measuring
device, power is updated twice when frequency
is updated once, which causes two distinct
curves.

Figure 6 - Synchronous Mode Block


Diagram

Figure 9 - Islanded Detection (Not Grid


Connected)

3. Experimental Results

All the results shown in the figures under these


Figure 7 - Droop Characteristic Curves sections are in Hz.

2.10 Islanding Detection


Islanded detection is obtained using a simple 3.1 Isochronous Mode
algorithm using the frequency and load plots.
When the both generators are synchronized
into the system and a sudden increase of fuel
rack position of the diesel generator will give a
significant increase in the generator load but
not a significant change in the frequency. The
reason behind this phenomenon is that, the
increased fuel flow in the diesel generator will
cause an increase in the mechanical torque in
the generator which causes just an increase in
the load but not the frequency where the
system is considered to be a large one
compared to a single generator. Figure 8 shows
a significant change in the load but not the
frequency when the generator is synchronized
to the system. Figure 9 shows an isochronous
governor where the change of fuel flow results
a significant change in the frequency but not in
the load where there is no other generators
which can contribute to the reduced generation
and keep the frequency under the
recommended values.

Figure 10 - Isochronous Mode under No-load


Figure 13 - Synchronous Mode with a
Continuously Varying Load

3.3 Islanded Mode

Figure 14 - Not Connected to Grid

Figure 11 - Isochronous Mode under Step


Loads of 2.3 kW

3.2 Synchronous Mode

Figure 15 - Connected to Grid

4. Conclusion

In this project, an electronic governor was


developed which has the ability to operate
Figure 12 - Synchronous Mode with a under isochronous, synchronous and islanded
Continuously Varying Load modes. An actuator was developed using a rack
and pinion mechanism with a servo motor to
change the fuel rack position of the fuel
injection pump of the engine. The actuator is
directly controlled by the Arduino Mega 2560
without using any driver circuit. At the same
time the Arduino device takes the output
voltage waveform for the device into account
and calculates the frequency of the waveform
which is same as the speed of the shaft of the
generator. This is achieved after reducing the
voltages to a bearable value. The frequency is
achieved using digital signal processing. The
Arduino device is programmed so that it can
control the actuator position using the feedback References
and the current position of the actuator.
Hysteresis control is implemented to achieve [1] I.J. Nagrath, Control Systems Engineering, 2nd ed.,
the isochronous mode. After implementing the New Age International, 2006,
isochronous mode, the system was then
modified to work under synchronous mode [2] Sushant R. Burje, Prof.S.A.Kulkarni,
N.B.Dhande, “Design and Development of
and islanded mode. The synchronous mode Microcontroller Based Electronic Speed
was implemented using the P control where the Governor for Genset/Automative Engine”,
Research inventory: International Journal of
output is directly proportional to the difference Engineering and Science,Vol. 1, PP 26-33, Issue
between the frequency output and the set value 5,Oct. 2012
of 50 Hz. Islanded detection is obtained using a
simple algorithm where the detection is
achieved through a comparison between [3] MohdMuqeem, NavneetSaini,
“Electromechanical Governing of Diesel Engine
frequency and load curves. The biggest of a Generator Set through Torque Sensing ”,
obstacle in this operation is the presence of the International Journal of Advanced Research in
considerable time constant of the diesel engine Engineering and Technology, Vol.4, pp.27-32,
Apr. 2013
where it takes a considerable time to respond to
a change in fuel rack position. [4] Allen J. Wood and Bruce F.Wollenberg, Power
Generation, Operation and Control, 2nd ed., 2013
Fuel flow rate to the diesel engine is controlled
in the implemented electronic governor.
Therefore the developed governor is only [5] H. Zeineldin, E.F .El-Saadany, M.M.A. Salama,
“Intentional Islanding of Distributed
compatible with the generators which have a Generation”, in Power Engineering Society
diesel engine as the prime mover. The General Meeting,IEEE, 2005, 1496-1502 Vol.2
parameters of the linear actuator have to be
changed accordingly. But this control [6] Ned Mohan, Tore M. Undeland, William P.
Robbins, Power Electronics Converters,
mechanism can be used to control other Applications and Design, Vol.1, 2nd ed., John Wiley
generators with different prime movers such as and Sons, 2003
hydro power plants as well. In this project, a
pre-programmed governor is developed for the
diesel generator. But modifications can be made [7] “Arduino Mega 2560 Datasheet”
in order to program according to the type of the
[8] Li Fengpan, Lu wenhua, “Turbine Governor
application such that the user is able to use the System Frequency Measurement Based On
governor for several applications. Here the DSP”, in 2nd International Conference on
islanding detection part is done manually and Intelligent System and Applied Material(GSAM
2013), 2013
then the appropriate mode to be operated is
given as a manual input. But with the
modifications in the future islanding detection [9] MohdDzarif Bin MohdBakhari, “Speed control
can be made automatically and appropriate of Diesel engine system through PID approach”,
A project report for the Bachelor of Mechanical
mode can be chosen accordingly. In the Engineering (Structure & material), University
frequency control machines the power system, of TeknikalMalysia Melaka, May 2007
there are several droop settings. Therefore the
project can be developed with several droop [10] http://www.instructables.com/id/Power-
settings with the ability to change droop System-Frequency-Determination-using-
Arduino/
settings by the given input according to the [11] http://www.starlino.com/imu_kalman_arduin
application. o.html

Acknowledgement
Authors would like to pay their gratitude to
Department of Electrical Engineering of
University of Moratuwa for providing the
required facilities. Authors would also like to
extend their gratitude to Dialog Axiata for
providing the diesel generator and Hayleys
industrial solutions (Pvt) Ltd. for providing the
technical support in repairing the diesel
generator.

View publication stats

You might also like