Electrical Machines & Power Systems Laboratory

Chapter 13
Renewable Energy, Storage, and Microgrids

Bachelors Program in Electrical Engineering
Electrical Machines & Power Systems Laboratory   •   Bachelor

Renewable Energy, Storage, and Microgrids

Introduction and Context

Electrical power systems are changing from predominantly synchronous-generator networks to systems containing large numbers of inverter-based resources (IBRs). Solar photovoltaic (PV) generators, variable-speed wind turbines, battery energy-storage systems (BESSs), electric vehicles, and electronically controlled loads can improve efficiency and reduce emissions, but they also change power-flow patterns, fault behavior, voltage regulation, frequency response, and protection requirements.

A microgrid is an electrically bounded group of loads and distributed energy resources (DERs) that can operate connected to a utility grid or, when separated, as an intentional island. Its central engineering problem is coordination: generation, storage, loads, power converters, protection, communications, and control must operate safely under changing conditions.

This chapter develops the laboratory-level theory and practice needed to integrate solar, wind, batteries, controllable loads, and grid-forming or grid-following inverters. Emphasis is placed on MPPT, synchronization, islanding, energy management, protection, hosting capacity, and grid-code compliance.

Learning Objectives

After completing this chapter, a student should be able to:

  1. Explain the operating principles and electrical interfaces of PV, wind, storage, and controllable loads.
  2. Apply maximum-power-point-tracking methods and interpret their limitations.
  3. Distinguish grid-following, grid-forming, and grid-supporting inverter controls.
  4. Analyze synchronization, islanding, voltage, frequency, and power-quality issues.
  5. Formulate basic energy-management and battery-sizing calculations.
  6. Explain protection challenges caused by inverter-limited fault current.
  7. Evaluate hosting capacity and identify major grid-code requirements.
  8. Design and test a safe laboratory microgrid using appropriate measurements and procedures.

1. Microgrid Architecture and Operating Modes

A practical microgrid normally contains an AC or DC bus, DER interfaces, loads, a point of common coupling (PCC), measurement devices, protection, and a supervisory energy-management system (EMS). A typical system may include:

  • PV arrays connected through DC–DC converters and voltage-source inverters;
  • wind turbines using induction or permanent-magnet generators with converters;
  • batteries connected through bidirectional DC–DC converters;
  • controllable loads such as water heaters, pumps, HVAC systems, and EV chargers;
  • a static switch or circuit breaker at the PCC; and
  • local controllers and a supervisory controller.
Microgrid architecture Microgrid PV + MPPT Wind turbine AC busV, f, P, Q control BESS Loads PCCswitchUtility grid EMS, protection, metering and communications
Microgrid architecture showing renewable sources, battery, loads, PCC and utility grid
Figure: Microgrid architecture showing renewable sources, battery, loads, PCC and utility grid

Figure: Functional architecture of a microgrid with renewable generation, storage, loads, and a utility PCC.

In grid-connected mode, the utility usually establishes the voltage waveform and frequency. The microgrid may exchange active power P and reactive power Q with the utility. In islanded mode, at least one resource must establish voltage magnitude, frequency, and phase. A grid-forming inverter, synchronous generator, or suitably controlled storage inverter commonly performs this function.

The transition between modes may be planned or unplanned. A planned transition can first reduce power exchange, open the PCC, and transfer control authority. An unplanned transition requires rapid detection and stable control without exposing personnel or equipment to an unsafe energized island.

2. Renewable-Energy Conversion

2.1 Photovoltaic generation

A PV cell is a semiconductor p–n junction whose current depends on irradiance and temperature. PV modules are connected in series and parallel to obtain the required voltage and current. Their power–voltage characteristic has a single operating point, under uniform irradiance, at which power is maximum:

PPV = VPV IPV

Here PPV is PV power in watts, VPV is terminal voltage in volts, and IPV is terminal current in amperes. The maximum-power point (MPP) changes with irradiance, temperature, aging, and partial shading. A DC–DC converter changes the electrical operating point seen by the array, while an inverter transfers power to an AC bus.

A useful laboratory approximation is that rated energy over an interval is

E = ∫ P(t) dt

where E is energy in watt-hours if power is in watts and time is in hours. For a constant-power approximation, E ≈ Pt. This approximation is valid only when power is approximately constant over the interval.

2.2 Wind generation

The kinetic power available in wind is

Pw = ½ ρ A v³ Cp(λ, β)

where ρ is air density in kg/m³, A is rotor swept area in m², v is wind speed in m/s, and Cp is the power coefficient. The tip-speed ratio is

λ = ωr R ÷ v

where ωr is rotor angular speed in rad/s and R is rotor radius in metres. The pitch angle is β. The coefficient Cp depends on turbine design and operating point; it cannot exceed the Betz-limit value of approximately 0.593 for an ideal actuator disk. Real turbines have lower values.

Wind turbines may use fixed-speed induction generators or variable-speed permanent-magnet or doubly fed machines. Power electronic converters decouple generator speed from grid frequency, permitting aerodynamic maximum-power tracking over a range of wind speeds. Above rated wind speed, pitch control limits mechanical power.

3. Maximum Power Point Tracking

MPPT is a control function, not a separate source of energy. It continually adjusts converter duty ratio, PV voltage, generator torque, or another control variable to operate near the MPP.

Perturb-and-observe

The perturb-and-observe (P&O) method changes the operating voltage by a small increment and compares the new power with the previous power. If power increases, the next perturbation continues in the same direction; if power decreases, the direction reverses. Near the MPP, the algorithm oscillates around the optimum. A larger step produces faster tracking but more steady-state ripple; a smaller step reduces ripple but slows response.

Incremental conductance

At the MPP, the slope of the power–voltage curve is zero. Since P = VI,

dP ÷ dV = I + V(dI ÷ dV)

Therefore the MPP condition is

dI ÷ dV = −I ÷ V

The method compares incremental conductance with instantaneous conductance. It can distinguish movement caused by irradiance changes from movement caused by the algorithm, but it requires more measurement and computation than basic P&O.

MPPT testing should include steady irradiance, irradiance steps, temperature variation, converter limits, and partial shading. Under partial shading, multiple local maxima may occur, so simple local methods may not find the global maximum.

4. Inverter Control and Grid Synchronization

Grid-following inverters

A grid-following inverter uses a phase-locked loop (PLL) to estimate grid angle and frequency. Its inner current controller injects commanded active and reactive currents. It requires a sufficiently strong voltage reference and can become unstable or poorly synchronized in weak grids, during voltage dips, or when many IBRs interact.

Grid-forming inverters

A grid-forming inverter regulates an internal voltage source or voltage angle and can establish frequency and voltage in an island. Common strategies include droop control, virtual synchronous-machine control, and direct voltage-source control. Grid-forming control does not imply unlimited fault current; semiconductor ratings still impose strict current limits.

For an ideal balanced three-phase system, active and reactive power are related to RMS voltage and current. For a three-phase load with line-to-line RMS voltage VLL, line current IL, and power-factor angle φ,

P = √3 VLL IL cosφ
Q = √3 VLL IL sinφ

These equations assume sinusoidal balanced voltages and currents. With harmonics or unbalance, true power must be obtained from instantaneous power or harmonic measurements rather than blindly applying the balanced sinusoidal formulas.

Synchronization

Before closing the PCC breaker, the microgrid voltage and utility voltage must be compatible in phase sequence, frequency, magnitude, and phase angle. A practical synchronism check compares:

  • phase sequence;
  • RMS voltage difference;
  • frequency difference; and
  • phase-angle difference.

The breaker should close only within the limits specified by the utility and equipment manufacturer. Closing an out-of-phase source can cause severe transient current and torque.

5. Batteries and Energy Storage

A battery stores energy electrochemically. A BESS includes cells, modules, racks, a battery-management system (BMS), thermal management, contactors, fuses, sensors, and a bidirectional power converter.

State of charge (SOC) is commonly expressed as

SOC = Eavailable ÷ Erated × 100%

where Eavailable is presently usable energy and Erated is rated energy under specified conditions. A simple coulomb-counting update is

SOCk+1 = SOCk − ηd Ik ∆t ÷ Qn

for discharge, with sign conventions defined explicitly. Here Ik is discharge current, ∆t is the sample interval, Qn is nominal charge capacity, and ηd represents the selected efficiency convention. Real BMSs compensate for charge efficiency, temperature, rate dependence, sensor bias, and aging; coulomb counting alone drifts over time.

A first estimate of usable battery energy is

Eusable = Enominal × DODallowed × ηrt

where DODallowed is allowable depth of discharge as a fraction and ηrt is round-trip efficiency. This is an estimate, not a cell-electrochemical model.

For a constant load, approximate discharge duration is

t ≈ Eusable ÷ Pload

provided the load is constant and converter and battery power limits are not exceeded. Thermal runaway, overcharge, over-discharge, short circuit, and mechanical damage require engineered protection. Lithium-ion systems require cell balancing, temperature monitoring, isolation supervision, and emergency procedures.

6. Energy Management and Controllable Loads

The EMS coordinates production, storage, imports, exports, and demand. A basic priority strategy may be:

  1. supply critical loads;
  2. use renewable power locally;
  3. charge the battery within SOC and power limits;
  4. curtail renewable power when necessary;
  5. import from the grid or shed noncritical loads according to the operating objective.

A simplified power balance is

PPV + Pw + Pgrid + Pdis − Pch = Pload + Pcurt

where Pdis and Pch are battery discharge and charge power, and Pcurt is curtailed renewable power. All terms must use a consistent sign convention.

An EMS may minimize an objective such as operating cost, emissions, peak demand, or battery degradation. A conceptual cost function is

J = ∑k=1N (ck Pgrid,k ∆t + cdeg Pdeg,k + cshed Pshed,k)

where ck is electricity price, cdeg is a degradation cost coefficient, and cshed is the penalty for unserved load. This expression is useful for explaining optimization; an implementable controller must also enforce power, SOC, voltage, frequency, ramp-rate, and switching constraints.

Controllable loads can provide flexibility without reducing essential service. Examples include shifting EV charging, pre-cooling buildings, delaying pumping, or modulating resistive heating. Load control must respect user comfort, process safety, equipment cycling limits, and fairness among users.

7. Islanding, Protection, and Safety

Unintentional islanding

Unintentional islanding occurs when a DER continues energizing a section of the network after utility supply is lost. It threatens worker safety, may create abnormal voltage and frequency, and can cause out-of-phase reclosing. Detection methods include passive voltage/frequency/vector-shift methods and active impedance-disturbance methods. No method is perfect: a near-balanced local load can make detection difficult, while aggressive active methods may degrade power quality.

A microgrid controller should coordinate anti-islanding detection, PCC status, intentional island commands, reconnection checks, and load-shedding logic. Intentional island operation must not bypass utility interconnection requirements.

Protection challenges

Traditional overcurrent protection assumes high fault current from synchronous generators. Inverters often limit current to approximately a controlled multiple of rated current and may change current direction or sequence behavior rapidly. Consequently:

  • conventional pickup settings may fail to detect faults;
  • fault current may be present for too short a time;
  • islanded and grid-connected fault levels differ;
  • bidirectional power flow complicates coordination; and
  • communications-assisted, differential, directional, or adaptive protection may be required.

Protection design must include grounding, arc-flash energy, touch and step voltage, DC fault interruption, battery isolation, and safe operating procedures. Laboratory work must use low-voltage training equipment, interlocks, emergency stops, guarded terminals, and documented lockout/tagout practices.

8. Hosting Capacity and Grid-Code Compliance

Hosting capacity is the amount of DER that can be connected without violating defined limits, such as voltage rise, thermal loading, protection coordination, flicker, harmonics, reverse power flow, or unintentional islanding performance. It is not a universal constant: it depends on feeder topology, conductor impedance, load profile, inverter functions, phase allocation, and the chosen acceptance criteria.

A simplified feeder voltage-drop approximation is

∆V ≈ (R P + X Q) ÷ V

where R and X are equivalent feeder resistance and reactance, P and Q are downstream active and reactive power, and V is nominal voltage. The approximation assumes small voltage deviations and a simplified balanced model. It illustrates why exporting active power can increase voltage and why reactive-power control can either support or reduce voltage depending on the sign convention and network parameters.

Grid codes commonly address voltage and frequency ride-through, reactive-current injection, active-power control, ramp rates, power quality, communications, anti-islanding, fault response, protection, and reconnection. The exact requirements are jurisdiction-specific. Engineers must consult the applicable utility interconnection standard rather than treating a laboratory setting as a substitute for certification.

9. Laboratory Investigation and Measurements

A progressive laboratory experiment can use a programmable source, PV emulator, inverter, battery emulator or protected BESS, controllable load bank, oscilloscope, power analyzer, and digital controller.

Suggested procedure

  1. Inspect the circuit, ratings, grounding, emergency stop, fuses, and communication links.
  2. Start with the PCC open and verify DC polarity, phase sequence, sensor scaling, and protective trips.
  3. Record PV voltage, current, power, and converter duty ratio while applying irradiance steps.
  4. Compare P&O and incremental-conductance MPPT under steady and changing conditions.
  5. Synchronize the inverter and verify voltage, frequency, phase angle, and current limits before closing the PCC.
  6. Apply controlled load changes and observe active power, reactive power, voltage, frequency, and SOC.
  7. Open the PCC under a planned test and confirm stable island formation only when permitted by the experimental design.
  8. Test load shedding, battery support, reconnection logic, and fault alarms at safe low-energy levels.
  9. Save time-stamped measurements and compare them with controller commands and protection events.

Important performance indicators include MPPT efficiency,

ηMPPT = Poperating ÷ PMPP × 100%

inverter efficiency,

ηinv = PAC,out ÷ PDC,in × 100%

voltage deviation, frequency deviation, total harmonic distortion (THD), settling time, SOC error, and unserved energy. The efficiency equations require consistent measurement locations and careful treatment of sign and standby power.

10. Illustrative Case: Campus Critical-Load Microgrid

Background

Consider an illustrative university laboratory microgrid with a 40 kW PV array, a 20 kW wind emulator, a 60 kWh battery, and a 30 kW critical load. The campus wishes to maintain laboratory ventilation and emergency lighting during short utility interruptions.

Problem

At a particular hour, PV produces 24 kW and wind produces 6 kW. The critical load is 30 kW. The battery is at 55% SOC, with an allowed operating range of 20–90%. The inverter and battery can deliver at least 10 kW for this event.

Analysis and approach

The renewable generation is

PRE = 24 + 6 = 30 kW

Thus, under the stated steady conditions, renewable generation equals the critical load and the battery need not discharge. If PV falls to 12 kW while wind remains 6 kW, the deficit becomes

Pdeficit = 30 − (12 + 6) = 12 kW

Because the battery power limit is 10 kW, the EMS cannot supply the full deficit from storage. It must either import 2 kW from the grid, shed a noncritical load, or reduce the critical-load assumption. If the battery supplies 10 kW for 0.5 h, the delivered energy is 5 kWh before accounting for SOC estimation and conversion losses.

During grid-connected operation, the inverter follows the utility and the EMS maintains battery reserve. On utility loss, the PCC opens, the battery inverter changes to grid-forming operation, and a noncritical 5 kW load is shed. The remaining load is 25 kW, supplied by 18 kW of renewable power and 7 kW of battery power. Reconnection is permitted only after voltage, frequency, phase sequence, and phase angle satisfy the approved synchronism check.

Outcome and learning points

The case demonstrates that energy sufficiency and power sufficiency are different constraints. A battery may contain adequate energy but be unable to supply the instantaneous power required. It also shows why reserve SOC, load priority, inverter mode, and PCC control must be designed together. The case is illustrative; actual implementation requires a load study, protection study, thermal assessment, utility approval, and certified equipment.

11. Contemporary Developments and Professional Practice

Current developments include grid-forming control for low-inertia systems, advanced forecasting, virtual power plants, vehicle-to-grid operation, hybrid AC/DC microgrids, solid-state transformers, digital twins, and machine-learning-assisted fault detection. AI can assist forecasting, anomaly detection, and predictive maintenance, but it should not replace deterministic protection, safety interlocks, validation, or human accountability. Training data may be biased, cyberattacks may manipulate measurements, and opaque decisions are unsuitable for unverified protection trips.

Cybersecurity is part of power-system engineering. Authentication, network segmentation, secure firmware, least-privilege access, event logging, backup control modes, and recovery procedures should be considered. Ethical practice includes truthful reporting of test results, protection of personal energy data, transparent curtailment rules, equitable access to demand-response benefits, and explicit responsibility for automated decisions.

Chapter Summary

Renewable microgrids combine variable generation, power electronic interfaces, storage, controllable demand, protection, and supervisory control. PV and wind resources require operating-point control because their available power changes with environmental conditions. MPPT methods such as P&O and incremental conductance seek the renewable source's maximum operating point but involve speed, ripple, measurement, and partial-shading trade-offs.

Grid-following inverters depend on an existing voltage waveform, whereas grid-forming inverters establish voltage and frequency during islanded operation. Synchronization is essential before PCC closure. Batteries provide both energy and fast power support, but SOC, power limits, efficiency, thermal constraints, degradation, and safety must be considered. EMS algorithms balance generation and demand while respecting reserve and equipment constraints.

IBRs create protection challenges because their fault current is controlled and limited. Hosting capacity depends on voltage, thermal, harmonic, protection, and operational constraints rather than on DER nameplate power alone. Grid-code compliance, cybersecurity, safe laboratory practice, and responsible engineering judgment are essential for dependable deployment.

Key Terms

Inverter-based resource (IBR): A generation or storage resource interfaced to the grid through power electronics.

Microgrid: A bounded electrical system capable of connected and intentional islanded operation.

Point of common coupling (PCC): The interface between a microgrid and the utility network.

Maximum power point (MPP): The operating point at which a renewable source delivers maximum power under given conditions.

MPPT: Control that tracks the renewable source's maximum-power operating point.

Grid-following inverter: An inverter that synchronizes to and follows an existing grid voltage.

Grid-forming inverter: An inverter capable of establishing voltage and frequency references.

Phase-locked loop (PLL): A control system that estimates phase and frequency from a waveform.

Battery-energy-storage system (BESS): Cells, power converters, controls, protection, and auxiliary equipment for stored electrical energy.

State of charge (SOC): The estimated available battery energy expressed relative to rated capacity.

Energy-management system (EMS): Supervisory control coordinating sources, storage, loads, and grid exchange.

Intentional island: A planned electrically separated operating condition.

Unintentional islanding: Continued DER energization after loss of utility supply without an approved islanding command.

Hosting capacity: Acceptable DER capacity under specified network and interconnection limits.

Ride-through: Continued operation during specified voltage or frequency disturbances.

Power factor: The ratio of active power to apparent power for the applicable waveform conditions.

Curtailment: Deliberate reduction of available renewable generation.

Controllable load: A load whose timing or power can be adjusted within defined constraints.

Grid code: Technical requirements governing connection and operation of electrical resources.

Total harmonic distortion (THD): A measure of waveform distortion due to harmonic components.

Review Questions

Short Answer Questions

  1. Why is a PCC synchronism check required before connecting a microgrid to the utility?
  2. State the MPP condition used by the incremental-conductance MPPT method.
  3. Distinguish a grid-following inverter from a grid-forming inverter.
  4. Identify two protection challenges caused by inverter-limited fault current.
  5. Why are battery energy capacity and battery power capacity separate design constraints?

Long Answer Questions

  1. Explain the architecture and operating modes of an AC microgrid containing PV, wind, a BESS, controllable loads, and a PCC.
  2. Compare perturb-and-observe and incremental-conductance MPPT, including their advantages and limitations.
  3. Discuss the sequence and technical conditions for a safe transition from grid-connected to islanded operation.
  4. Explain how an EMS can coordinate renewable generation, storage, grid exchange, curtailment, and load shedding.
  5. Discuss how high IBR penetration changes voltage regulation, fault behavior, protection, and grid-code requirements.

Analytical / Application Questions

  1. A microgrid has a 25 kW load, 14 kW PV output, and 5 kW wind output. Determine the battery discharge power required if the grid is unavailable. If the battery power limit is 4 kW, propose two technically appropriate actions.
  2. A three-phase 400 V line-to-line load draws 20 A at 0.8 lagging power factor. Calculate its active and reactive power using the balanced sinusoidal equations, and state the assumptions.
  3. Design a laboratory test plan to compare MPPT performance under constant irradiance, irradiance steps, and partial shading. Specify measurements, safety controls, performance metrics, and evidence needed to support your conclusions.

Multiple Choice Questions with Answers

Question 1

Which condition defines the maximum-power point of a PV array using the incremental-conductance method?

A. dI/dV = I/V

B. dI/dV = −I/V

C. dI/dV = 0 for all operating points

D. I = 0 and V = 0

Correct Answer: B. dI/dV = −I/V

Question 2

Which inverter type establishes a voltage and frequency reference during intentional island operation?

A. Grid-forming inverter

B. Passive rectifier

C. Grid-following inverter only

D. Uncontrolled diode bridge

Correct Answer: A. Grid-forming inverter

Question 3

A microgrid has 24 kW PV, 6 kW wind, and a 30 kW critical load. Neglecting losses, what battery power is required?

A. −6 kW charging

B. 0 kW

C. 6 kW discharge

D. 30 kW discharge

Correct Answer: B. 0 kW

Question 4

Which quantity is most directly checked before closing a PCC breaker?

A. Battery color code

B. Phase sequence and phase-angle difference

C. PV module surface area only

D. Transformer oil viscosity only

Correct Answer: B. Phase sequence and phase-angle difference

Question 5

Why can conventional overcurrent protection be inadequate in an inverter-dominated microgrid?

A. Inverters always produce infinite fault current

B. Inverter fault current is controlled and may be limited

C. Inverters cannot measure current

D. Faults never occur on inverter feeders

Correct Answer: B. Inverter fault current is controlled and may be limited

Question 6

For a balanced three-phase load, active power is calculated as:

A. P = V_LL I_L sinφ

B. P = V_LL I_L

C. P = √3 V_LL I_L cosφ

D. P = 3 V_LL I_L tanφ

Correct Answer: C. P = √3 V_LL I_L cosφ

Question 7

If renewable generation is 18 kW and the load is 25 kW, what is the deficit before storage or grid support?

A. 7 kW

B. 18 kW

C. 25 kW

D. 43 kW

Correct Answer: A. 7 kW

Question 8

Which statement about hosting capacity is correct?

A. It depends only on DER nameplate rating

B. It is independent of feeder impedance

C. It depends on network limits and specified acceptance criteria

D. It is always equal to the peak load

Correct Answer: C. It depends on network limits and specified acceptance criteria

Question 9

What is the principal purpose of anti-islanding protection?

A. To increase battery temperature

B. To prevent an unauthorized energized island after utility loss

C. To eliminate all reactive power

D. To maximize PV module area

Correct Answer: B. To prevent an unauthorized energized island after utility loss

Question 10

A battery has 60 kWh nominal energy, an allowed depth of discharge of 0.8, and round-trip efficiency of 0.9. Using the stated estimate, what usable energy is obtained?

A. 43.2 kWh

B. 48.0 kWh

C. 54.0 kWh

D. 67.5 kWh

Correct Answer: A. 43.2 kWh

Electrical Machines & Power Systems Laboratory
Chapter 13 of 15