# Real-Time Implementation of Islanded Microgrid for Remote Areas

Authors: Monika Jain; Sushma Gupta; Deepika Masand; Gayatri Agnihotri; Shailendra Jain
Journal: Journal of Control Science and Engineering
 (2016)

---

## Abstract

Islanding is a condition in which a microgrid or a portion of power grid, consisting of distributed generation (DG) sources, converter, and load, gets disconnected from the utility grid. Under this condition the DG sources in a microgrid must switch to a voltage control mode, in order to provide constant voltage to local loads. In grid connected mode, the microgrid works as current controller and injects power to the main grid, depending on the power generation and local load with suitable market policies. Providing constant voltage at a stable frequency with proper synchronization amongst each DG in a microgrid is a challenge. The complexity of such grid requires careful study and analysis before actual implementation. These challenges of microgrid are addressed using real time OPAL-RT simulation technology. Thus the paper describes an islanded microgrid with master slave controller for power balance, voltage/frequency regulation, and synchronization. Based on an advanced real-time platform named Real-Time Laboratory (RT-LAB), the impacts of the micro sources, load, and converters in an islanded microgrid is studied in this paper. The effectiveness of the proposed controller is analyzed through experimental results under balanced/unbalanced nonlinear loads condition.


---

## Body

## 1. Introduction

Regular depletion of conventional energy sources has led the society to think of other alternative resources which will continue to cater the increasing demand of energy. One such alternative is an accretion of small scale renewable resources to form a microgrid and supply to a regional area [1, 2]. Microgrid can operate in two distinct modes: (1) grid connected and (2) islanded (autonomous) mode. In grid connected mode, the microgrid works as current controller and injects power to the main grid, depending on the power generation and local load with suitable market policies [3]. Microgrid can come in islanded/autonomous mode due to disturbances, such as a fault and its subsequent switching incidents, or due to preplanned switching events or due to unavailability of resources. In islanded mode, microgrid works as voltage controller and is responsible for voltage control as well as for power sharing and balancing. The role of power sharing features is to ensure that all modules share the load according to their rating and availability of power from their energy source. In islanded mode converters always require grid-forming (master) power converters; otherwise there is no voltage reference and no control to maintain the power balance. In the single master operation, one unit operates as a grid-forming converter. The other units operate as grid-following units. In the multimaster operation, more than one unit is grid-forming, possibly combined with grid-feeding converters. In this work one of the units (DG) is acting as master controller and other units are acting as a slave controller. The master DG operates as voltage controlled source and the rest of them as slave DGs which operate as current controller. The master controller works like grid-forming power converters and the main aim is to regulate the voltage and frequency of the microgrid. The slave DGs work like grid-feeding power converters and are controlled as current source, allowing active and reactive power modulation depending on voltage and frequency measurements at their Point of Common Coupling (PCC). Therefore, this kind of converter cannot operate independently in island mode [4, 5]. Since a microgrid comprises a number of micro sources, their synchronization with each other is an important task. When interconnecting the microgrid with the main grid, many authors have developed the synchronization algorithms [6–8] considering each micro source as a DC source. But in a microgrid maintaining constant voltage and frequency, each micro source is an important issue in addition to synchronization. This paper proposes a master-slave controller for synchronization/resynchronization of all the DGs, regulation of voltage/frequency, and effective power sharing among the micro sources. The islanded microgrid is formed by two DG units. Each unit consists of Self-Excited Induction Generator (SEIG) driven by ABB drive, controller, battery for storage, and load. The impact of the parallel operated DG units has to be carefully studied and analyzed before actual realization. This is achieved with the help of real-time simulation platform; the Real-Time Laboratory (RT-LAB) developed by OPAL-RT Technologies [9–11].


## 2. System Configuration

Microgrid architecture is shown in Figure1, operating in islanded mode. Islanding is a situation where microgrid is disconnected from the main utility but remains energized and continues to supply local loads. Microgrid can be formed by numbers of micro sources connected together. This paper considers an islanded microgrid formed by two DG units. Each unit consists of SEIG based micro sources, controllers with storage system, and loads. The SEIGs are preferred in microgrid due to their robust construction, less maintenance, and so forth [12, 13].Figure 1
Microgrid architecture.The SEIG requires constant reactive power support for voltage build up, which is provided by conventional capacitor banks. The controller is used to regulate voltage/frequency and active/reactive power under varying load and fault conditions, thus maintaining the SEIG terminal voltage and frequency constant. When these SEIGs are connected to form a microgrid, an additional problem of phase angle mismatch also occurs. The control algorithm proposed in this paper effectively synchronizes the DGs in addition to power sharing and voltage/frequency regulation in a microgrid. The proposed controller is also effective when one micro source is shut down due to unavailability of resources or due to a fault in the line. The controller provides proper phase matching when the outage micro source is reconnected to the system. The system parameters used for experimental analysis are mentioned in appendix.


## 3. Control Strategy for Proposed Controller

A microgrid is said to be in islanded mode when it is disconnected from the main grid and it operates independently with micro sources and load. In the proposed work autonomous microgrid is formed by considering two units only.Each unit consists of induction motor driven ABB drive, with star connected fixed capacitor bank, the conversion unit which performs the interface function between the DC link and the generated three-phase voltages of micro source, and LC filter that transports and distributes the energy to the load and three-phase nonlinear load. In the proposed configuration two such units are connected in parallel through line impedances; values are mentioned in appendix. Figure2 shows the proposed schematic diagram for one unit with its firing scheme. When the microgrid is disconnected from main grid that is islanded condition, each micro source should operate in voltage control mode and provide a constant voltage to the local loads. In addition to this, synchronization of microgrid is also important due to unpredictable renewable energy resources and varying electrical loads.Figure 2
The illustrative diagram of plant “1” with its entire control unit.In parallel operation of micro sources, phase angle, frequency, and voltage difference should be as close as possible. This is called synchronization. Thus in a microgrid system synchronizing conditions should be fulfilled by each generating unit in order to connect them in parallel with varying load [6, 7].This is achieved by the proposed topology. This topology uses a DQ and Phase Lock Loop (PLL), a PI regulator, and an integrator. The synchronizing scheme using DQ algorithm is depicted in Figure3. The Vq is set to zero. This becomes the input of PI regulator and its output is an angle (theta, denoted by θold). This θold is compared with the θnew to generate the reference angle for all micro sources. This angle (θnew) can be the angle between the grid and micro source; in the islanded mode of microgrid this angle is obtained from any reference (master) source and the rest is acting like slave source. Here plant one is considered as master plant and other two plants are considered as slave plant [7]. The θnew is generated as follows.Figure 3
Synchronizing scheme using DQ algorithm.Assume that the phase difference between the two micro sources voltages (1 and 2) is given by(1)θ=∠Vg1-∠Vg2.In order to obtain the information of θ, two sets of voltage values are used:(2)k=Vga1Vga2+Vgb1Vgb2+Vgc1Vgc2,g=Vga1Vgb3+Vgb1Vgc3+Vgc1Vga3.Using the variables k and g, sin⁡(θ) can be found as(3)sin⁡θnew=4/3g+2/3k3.When this θnew is compared with θold, the final reference angle (θfinal) will be generated.The synchronizing angleθfinal obtained is used to generate unit vector template as shown in Figure 4. The unit templates are obtained as(4)Uva=sin⁡θfinal,Uvb=sin⁡θfinal-2π3,Uvc=sin⁡θfinal+2π3.Figures 5 and 6 depict the block diagrams of the control algorithm employed for the proposed system. In this algorithm the master controller is based on frequency and voltage regulation. The slave controller is based on active/reactive power balance theory [12, 14, 15].Figure 4
Generation of unit vector using synchronizing angle (θfinal).Figure 5
Control scheme for master controller for phase angle generation, voltage, and frequency regulation in microgrid.Figure 6
Control scheme for single slave controller in microgrid.The proposed microgrid in islanded mode comprises one master DG which behaves as an ideal voltage source and one slave DG which can be represented as ideal current source. Any voltage and frequency deviations are regulated by the master controller. Therefore voltage and frequency controller is utilized to compensate and adjust the system frequency and voltage within a stable range in addition to synchronization. The control scheme is based on the generation of reference source voltage (Vsa∗,Vsb∗,Vsc∗). Reference source voltage has two components: (1) quadrature component (Vsaqq∗, Vsbqq∗, Vscqq∗) for controlling the magnitude of generator voltage and (2) in-phase component (Vsapp∗, Vsbpp∗, Vscpp∗) for regulating the frequency of the system. The generation of direct and quadrature axis reference voltages is as per the diagram shown in Figure 5. These reference voltages (Vsa∗,Vsb∗,Vsc∗) are compared with the sensed generator voltage (VDGa, VDGb, VDGc). The difference of these signals (error) is given to the PWM controllers which generate the firing pulses.The master controller generates the reference angle for generation of in-phase and quadrature unit vector templates of the slave controller. The in-phase components of reference current are generated from the active power and the quadrature components of reference current are generated for the reactive power component. To estimate the active component of the reference source current as shown in Figure6, the instantaneous active power of the load is calculated from micro source voltage and its load current. This power contains an average or DC and AC or oscillating components. Thus, in order to extract the DC component of the load power, a low pass filter is used. The active load current is obtained by dividing the output of filter with the terminal voltage and denoted by Id. The output of frequency PI controller is added with the DC component (Id) of the load current to generate the reference in-phase current (Id∗). This current when multiplied with the unit vector, generates the three-phase reference in-phase current.Similarly the reactive power component is calculated and is denoted byIq. The output of terminal voltage PI controller is subtracted with the DC component (Iq) of the load current to generate the reference quadrature current (Iq∗). This current when multiplied with the quadrature vector, generates the reference three-phase quadrature current. The sum of these components yields the total reference current (Isa∗, Isb∗, Isc∗). These reference currents are then compared with the sensed generator currents (IDGa, IDGb, IDGc). The difference between these signals (error) is given to the controller as shown in Figure 6. For neutral current compensation, sensed neutral current is compared with the reference current (isn∗=0) and the difference is given to the controller. The hysteresis controller generates the pulses for the IGBTs in a 4-leg voltage source converter. Figure 7 shows the control algorithm for all slaves controller. The micro sources are represented by number 1,2,3,…,K and the total capacity “S” of the microgrid is the sum of total individual micro sources.Figure 7
Centralized control scheme for microgrid.


## 4. Performance of Proposed Controller Using OPAL-RT

In order to analyze the behavior of a microgrid before practical implementation, real-time digital simulation is essential and beneficial. Hence to validate the functionality of microgrid before the on-site implementation, it is not only beneficial but also necessary to test operation of microgrid in real-time conditions. The OPAL-RT-LAB simulator [9] enables the parallel simulation of power drives and electric circuits. Using standard Simulink models, RT-LAB builds computation and communication tasks necessary to make parallel simulation of electrical systems with standard PCs and communication links [9–11]. A discrete fixed step size of 20 μs is used to compute the proposed controller. In all the experiments, the measured variables available in controller block running on real-time digital simulator were scaled down as given in Table 1, before sending them to real-time digital simulator output ports for their display on a Digital Storage Oscilloscope (DSO). Furthermore, measured variables are scaled down when they reach the monitoring ports of the real-time simulator. Measured variables from monitoring ports of the real-time digital simulator were then directly displaced on the DSO. Therefore in order to determine actual value of a variable, DSO reading has to be multiplied by scaling parameter. After some modification the model can run in RT-LAB environment and the corresponding steady state and transient performance of a proposed controller for a microgrid with balanced and unbalanced nonlinear load is shown in Figure 8. To observe the performance of microgrid under OPAL-RT two SEIGs of the same rating driven by ABB drive are taken as micro sources and converter unit, and load is considered. The real-time results of the other micro sources are also the same as they are of the same rating. Figures 8 and 9 represent generator voltage (Vg), generator current (Ig), load current (IL), controller current (Ic), load neutral current (ILn), and neutral current controller (ILnc). Vga represents the generator voltage of phase “a” for both generators.Table 1
Scaling parameters.
Parameters
Actual value
Scaling value
Generator voltage
600 V (415 Vrms)
6 V
Generator current
10 A
10 A
Load current
10 A
10 A
Terminal voltage
600 V
6 V
Frequency
50 Hz
5 Hz
Load neutral current
10 A
10 A
Neutral current controller
10 A
10 AFigure 8
Experimental result for the proposed system on DSO (a) with/without controller: (b)–(d) load is balanced and (e)–(g) load is unbalanced. (h) Battery voltage, frequency with generator voltage, and current.
(a)
CH1: 6 V, CH2, CH3, and CH4: 10 A
(b)
CH1: 6 V, CH 2, CH3, and CH4: 10 A
(c)
CH1: 6 V, CH2, CH3, and CH4: 10 A
(d)
CH1: 6 V, CH2, CH3, and CH4: 10 A
(e)
CH1: 6 V, CH2, CH3, and CH4: 10 A
(f)
CH1: 6 V, CH2, CH3, and CH4: 10 A
(g)
CH1: 6 V, CH2, CH3, and CH4: 10 A
(h)
CH1: 6 V, CH2: 10 A, CH3: 50 Hz, and CH4: 6 VFigure 9
Experimental result on DSO after resynchronization of micro source 2 after fault clearing.
(a)
CH1 and CH2: 6 V; CH3 and CH4: 6 V
(b)
CH2 and CH4: 6 VFigure8(a) shows the effect of nonlinear load on the system without controller. As the controller is turned on after 5 cycles, the voltage and current become sinusoidal. Figures 8(b)–8(d) describe the steady state performance of compensated microgrid system with the application of nonlinear load. Figure 8(e) shows the unbalanced behavior of a three-phase nonlinear load for 11 cycles. Figures 8(f)–8(h) show the transient performance of microgrid system in all the three phases. The source voltage and current are purely sinusoidal even during the unbalance condition. In Figure 8(h) load neutral current and controller current are shown, which are opposite in nature, thus reducing the magnitude of neutral current and size of conductor. Figure 9(a) describes the generator voltage during and after the fault clearing. After the fault clearing both generator voltages must be synchronized to be operating in parallel and form the gird. During synchronization the phase angles must be the same. As shown in Figure 9(a), as the fault arises in generator “2” for 5 cycles, it thus disconnected from the grid. During this period phase angle of generator “2” gets distorted as shown in Figure 9(b). After fault clearing both generators get resynchronized after two cycles because of effective operation of the proposed controller.


## 5. Conclusion

The highest potential for microgrid is in remote regions, where grid connection is not possible. The proposed master/slave controller in the microgrid has been successfully demonstrated through OPAL-RT environment for nonlinear loads during transient and steady state conditions. The master controller regulates the voltage and frequency of the microgrid whereas slave controller works in indirect current control mode, thus regulating the active and reactive power. The controller works satisfactorily for sharing of loads during load perturbations and failure of one micro source in microgrid due to fault or unavailability of renewable resources and avoids critical load curtailment. The proposed scheme in autonomous mode ensures that the micro source (slave unit) can be effectively synchronized/resynchronized to a master micro source maintaining synchronizing criteria. The experimental results prove the performance of the controller under different transient and steady state conditions.



---

*Source: 5710950-2016-04-18.xml*