Next Article in Journal
Financial Aspects of Energy Investments in the Era of Shaping Stable Energy Development in Poland: A Case Study
Next Article in Special Issue
Coordinated Frequency Modulation Control Strategy of Wind Power and Energy Storage Considering Mechanical Load Optimization
Previous Article in Journal
Prediction of Matching Prices in Electricity Markets through Curve Representation
Previous Article in Special Issue
Performance Signature of the Best Candidate-Graded Bandgap Materials for Solar Cells with Steady-State Conversion Efficiency
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development of a Hardware-in-the-Loop Platform for the Validation of a Small-Scale Wind System Control Strategy

by
Juan Martínez-Nolasco
1,
Víctor Sámano-Ortega
2,*,
José Botello-Álvarez
2,
José Padilla-Medina
3,
Coral Martínez-Nolasco
1 and
Micael Bravo-Sánchez
2
1
Departamento de Ingeniería Mecatrónica, Tecnológico Nacional de México, Instituto Tecnológico de Celaya, Celaya 38010, Mexico
2
Doctorado en Ciencias de la Ingeniería, Tecnológico Nacional de México, Instituto Tecnológico de Celaya, Celaya 38010, Mexico
3
Departamento de Ingeniería Electrónica, Tecnológico Nacional de México, Instituto Tecnológico de Celaya, Celaya 38010, Mexico
*
Author to whom correspondence should be addressed.
Energies 2023, 16(23), 7813; https://doi.org/10.3390/en16237813
Submission received: 26 October 2023 / Revised: 16 November 2023 / Accepted: 17 November 2023 / Published: 28 November 2023
(This article belongs to the Special Issue Renewable Energy Systems (Solar, Wind) and Grid Integration)

Abstract

:
The use of renewable energies contributes to the goal of mitigating climate change by 2030. One of the fastest-growing renewable energy sources in recent years is wind power. Large wind generation systems have drawbacks that can be minimized using small wind systems and DC microgrids (DC-µGs). A wind system requires a control system to function correctly in different regions of its operating range. However, real-time analysis of a physical wind system may not be feasible. An alternative to counteract this disadvantage is using real-time hardware in the loop (HIL) simulation. This article describes the implementation of an HIL platform in an NI myRIO 1900 to evaluate the performance of control algorithms in a small wind system (SWS) that serves as a distributed generator for a DC-µG. In the case of an SWS, its implementation implies nonlinear behaviors and, therefore, nonlinear equations, and this paper shows a way to do it by distributing the computational work, using a high-level description language, and achieving good accuracy and latency with a student-oriented development kit. The platform reproduces, with an integration time of 10 µs, the response of the SWS composed of a 3.5 kW turbine with a fixed blade pitch angle and no gear transmission, a permanent magnet synchronous generator (PMSG), and a three-phase full-bridge AC/DC electronic power converter. The platform accuracy was validated by comparing its results against a software simulation. The compared variables were the PMSG currents in dq directions, the turbine’s angular speed, and the DC bus’s voltage. These comparisons showed mean absolute errors of 0.04 A, 1.9 A, 0.7 rad/s, and 9.5 V, respectively. The platform proved useful for validating the control algorithm, exhibiting the expected results in comparison with a lab-scale prototype using the same well-known control strategy. Using a well-known control strategy provides a solid reference to validate the platform.

1. Introduction

To mitigate climate change by 2030, renewable energies have been increasing in markets such as power generation, heating and cooling, and transport. The production of renewable energy from photovoltaic, wind, and hydropower systems has notably increased. One of the most viable options to produce this type of energy is large-scale wind systems; however, they have disadvantages such as space availability, the impact on the utility network, public acceptance, and transmission and distribution losses. An alternative that reduces some of these drawbacks is using small wind turbines [1]. Although the study of small wind turbines began in the 1970s, they have now gained popularity. They are presented as a viable option for the sustainable energy development of new buildings in urban environments [2]. Another reliable, sustainable, and economical technology contributing to climate change mitigation is microgrids (µGs), defined as a low-voltage distribution network in which renewable energy sources and loads are interconnected through power electronic converters (PECs). There are different types of µGs depending on the current type and operating modes they handle. However, DC µGs (DCµGs) present advantages in aspects such as efficiency, size, investment, and operating costs [3,4]. On the other hand, although photovoltaic systems are the more common distributed energy resources used in µGs, wind power has also been used extensively [5]. At the same time, photovoltaic, wind, and biomass are the renewable resources with the fastest-growing usage recently since they are ecological, simple to deploy, and highly developed [6]. Several examples of the use of wind energy in µGs can be found in the literature. The authors of [7] present a methodology for sizing a battery energy storage system for a µG feed by a wind system. The energy storage system is sized using wind speed measurements over a year. In [8], a comparison between a battery energy storage system and a superconducting magnetic energy storage system is presented; both systems are controlled using fuzzy logic. These energy storage systems aim to improve the stability and quality of the energy in a DCµG feed by a photovoltaic system and a wind system. In [9], the implementation of a controller applied to a DCµG feed by a wind system, including a doubly fed induction generator, is described. In [10], a case study is presented in which the authors implement a PI controller for a hybrid insolated µG; the energy sources of this µG are biomass, solar photovoltaic, and wind. In [11], an energy management strategy for a grid-connected µG is presented; the primary renewable energy source of this µG is a wind turbine.
Wind speed is variable by nature; therefore, wind systems are designed to operate between lower and upper-speed limits, called cut-in and cut-out speeds. A control system is required to manage these speed limits and extract the greatest amount of energy from the wind, making the wind system more efficient. Between the cut-in and cut-out speeds, the control system performs different tasks. If the system has not reached its maximum allowable power (partial load region), the control performs the task of maximum power point tracking (MPPT). On the other hand, if the system reaches its maximum power (full-load region), the control increases the rotational resistance of the turbine, limiting its angular velocity and extracted power [12,13]. Due to the importance of the MPPT algorithm in increasing the usage of renewable energy resources and system efficiency, recent research is being conducted in this field. In [14], an adaptative optimal fuzzy controller for the MPPT in a wind system based on reinforcement learning is described. The wind system in this research uses a permanent magnet synchronous generator (PMSG). In [15], an MPPT controller was implemented in a grid-connected wind system. The algorithm implemented considers the wind speed, a unified model of the wind system, and energy conversion losses to extract the maximum power available and inject it into the utility grid. In [16], a controller for the MPPT applied to a PMSG-based small-scale wind system connected to a DC-Bus is presented. The energy conversion system comprises an uncontrolled rectifier connected in series with a DC/DC boost PEC. Similarly, in [17], the implementation of a robust controller for the MPPT applied to a grid-connected PMSG-based wind system is described. The control in this work is based on a high-gain perturbation observer-based nonlinear adaptive control. Finally, in [18], an MPPT algorithm applied to a wind system with a doubly fed induction generator is presented; in this case, the MPPT is achieved with searching space minimization-based particle swarm optimization.
Testing the MPPT control algorithms, the PECs, and other elements of a wind system in real-time on a physical system may be unfeasible due to the space required, the cost that this entails, and the discontinuity in the wind. These limitations can be reduced with an emulator [19]. An alternative to emulating physical systems, which allows validating their control systems and is widely used in energy systems, is real-time hardware in the loop (HIL) simulation [20]. If the power elements that make up a system are emulated while their controller or a part of it is embedded, the real-time HIL simulation is classified as a Controller-HIL (C-HIL) [21]. With real-time C-HIL simulation, testing real controllers with algorithms and parameters like those used in the field is feasible. Also, the C-HIL provides a wide range of operating conditions at the experimental stage without the risk of damaging actual equipment [22]. Currently, HIL simulation is essential in the system life cycle, in processes from design to implementation. HIL simulation is applied in aerospace, automotive, marine, defense, robotics, and energy fields. In these fields, the HIL simulation provides benefits like flexibility, safety, rapid prototyping, cost-effectiveness, credibility, and simulation speed [20]. Due to the importance of the HIL, several recent research studies integrate this topic; for example, some of them are presented next. In [23], a self-adaptative control method based on a digital twin is presented. The control is applied to a heating, ventilation, and air-conditioned system that is a MIMO system. The digital twin is developed by integrating HIL and software in the loop. In [24], the testing of the flight software of a CubeSat is presented. The satellite studied is a MOVE-II CubeSat (Technical University of Munich, Munich, Germany), and the HIL allows testing it on-ground in a simulated space environment. The HIL simulation replaces the satellite sensors and actuators. Finally, in [25], an automatic test system for the autopilot of an unnamed aerial vehicle is presented. For this purpose, a unified model for different types of aerial vehicles is deployed and implemented in an FPGA-based HIL platform.
Also, several works in the literature report using HIL simulation in energy conversion systems. In [26], an HIL system was developed using NI technology to study MPPT in a wind generation system. The HIL system was implemented with NI PXI platform (NATIONAL INSTRUMENTS CORP., Austin, TX, USA) based on LabVEW (Available on: https://www.ni.com/es/shop/labview.html, Accessed 17 November 2023) The implemented wind system consists of a turbine with a gearbox, a non-controllable rectifier, and a DC-boost converter connected in series. In [27], an HIL platform is presented to validate an optimal control strategy. The platform was developed in a real-time digital simulator (RTDS) and includes a turbine with a gearbox and variable pitch angle, a PMSG, a PEC AC/DC, and a PEC DC/AC. This paper does not detail the RTDS used to implement the model in hardware. In [28], an HIL simulation to evaluate the dynamic response of a floating wind turbine is described. The HIL platform is composed of a wind turbine of 15 MW scaled by a factor of 1:1000, a wind tunnel, and a six-degree freedom robotic base that emulates the wave movement. In [29], a wind power generation system model for operating a modular multi-level converter in an HIL simulation is proposed. The model was developed in MATLAB/Simulink (Availabe on: https://la.mathworks.com/products/matlab.html, Accessed 17 November 2023) and implemented on an HIL OP4510 platform (OPAL-RT TECHNOLOGIES, Montreal, Canada). In [12], an HIL simulator was implemented to evaluate wind turbines’ pitch angle control system. The simulator is divided into two parts: an emulator reproducing the wind energy conversion system (wind speed, aerodynamics, drive train, and generator) and a digital hydraulic pitch system (hydraulic motor, flow sensor, valves, etc.). The wind energy conversion system model was implemented in MATLAB/Simulink (Availabe on: https://la.mathworks.com/products/matlab.html, Accessed 17 November 2023) and communicates with the digital hydraulic pitch system via NI-Veristand. In [30], a nonlinear integral backstepping controller for the load frequency control in a µG is presented. The µG in this research includes, among others, a wind generator. The controller is validated with an OPAL-RT (OPAL-RT TECHNOLOGIES, Montreal, Canada), showing to be efficient for frequency regulation. HIL simulation is also used in this kind of system in topics related to cybersecurity. In [31], experimental validation of remedial action against false data injection cyberattacks in a µG fed by wind and photovoltaic energy is presented. The security mechanism includes the detection of false data injection using artificial intelligence and reacts to keep the functionality of the µG. The mechanism was proven over an HIL testbed. In [32], the detection of false data injection cyberattacks targeting a lab-scale microgrid is performed. The detection is deployed using a recurrent neural network and is proven in an HIL testbed in which the cyberattack and the detection are implemented in an OP4510 HIL simulator. Finally, in [33], the development of an HIL testbed for studying cyberattacks over a µG is described. The µG is lab-scale and includes wind and photovoltaic power generators. The HIL setup includes the lab-scale µG, an OPAL-RT platform, data acquisition units, and controllers.
Despite the advantages that HIL simulation provides, its cost represents a drawback. Hence, recently, researchers have developed HIL platforms using low-cost hardware like digital signal processors, graphic processing units, and FPGAs [34]. In [35], a floating-point format is designed for FPGA applications. This new format’s resource usage is validated by implementing an HIL PEC emulator in a Xilinx FPGA Zynq 7 (Advanced Micro Devices, Inc., Santa Clara, USA). In [36], a low-cost HIL for real-time simulation of electric machines and electric drives is presented. The platform includes a TMS28379D DSP (Texas Instruments Incorporated, Dallas, USA) that emulates an electric machine and its drive and a TMS28377S DSP (Texas Instruments Incorporated, Dallas, USA) that runs the controller. The platform was evaluated by controlling a DC machine with a chopper and a three-phase induction machine with a full-bridge inverter. In [37], an open-source, low-cost HIL simulation platform for testing control strategies for artificial pancreas research is presented. The platform comprises two Arduino UNO boards, with one reproducing the Bergman’s minimal model. In [38], a power-sharing control in a grid-tied DC microgrid using an HIL platform is presented. The platform was developed in an NI myRIO 1900 (NATIONAL INSTRUMENTS CORP., Austin, USA) and exhibits relative errors below 2%. Finally, in [39], a testbed to validate a residential photovoltaic system is presented. The testbed includes, among other components, an HIL platform developed in an NI myRIO that emulates a system composed of a photovoltaic array, a boost converter, and a monophasic inverter. Although these alternatives have the advantage of being low-cost, the specific language used in these applications and the high technical level at which these implementations are reported can make their reproduction difficult for non-expert researchers. In this case, graphical language facilitates the implementation of FPGA applications, helping non-expert users deploy these applications efficiently [34].
This article describes the implementation of an HIL platform (following the C-HIL approach) in a NI myRIO 1900 to evaluate the performance of controllers applied to a small wind system (SWS) that functions as a distributed generator for a DCµG. The platform reproduces the dynamic response of a wind system with an integration time of 10 µs. This wind system comprises a 3.5 kW turbine with a fixed blade pitch angle, no gear transmission, a PMSG, and a full three-phase H-bridge AC/DC power electronic converter. It includes a control algorithm based on the wind speed measurement, implemented in a separate loop of the wind system model, allowing for its modification without altering the wind system. Implementing this platform on relatively limited hardware is not trivial and represents a valuable contribution. In the case of the SWS, its implementation implies nonlinear behaviors and, therefore, nonlinear equations. This paper shows how to do it by distributing the computational work, using a high-level description language, and achieving good accuracy and latency with a student development kit. The main contributions of this article are summarized below:
  • Description of the development of an HIL platform that serves as a research infrastructure in the field of control algorithms for wind systems.
  • Description of developing an HIL platform with low-cost hardware compared to commercial HIL platforms and using dedicated real-time platforms.
  • Implementing a platform in a student development kit using LabVIEW makes it more accessible for reproduction, considering the cost of the hardware and the fact that it is programmed using a high-level graphical language.
  • The wind system and its controller are embedded in different loops, allowing the control system to be modified to validate different algorithms without the need to modify the wind system’s model or include new hardware.
  • The nonlinear behaviors of the wind system model and its control algorithm are embedded using look-up tables or in a different instance of the FPGA, allowing the model to be solved with high latency using relatively limited hardware.
The article is organized into six sections. Section 1 corresponds to the introduction; Section 2 describes the wind system and its model; Section 3 describes the control algorithm applied to the wind system; Section 4 describes the implementation of the HIL platform; Section 5 describes the results; and Section 6 describes the conclusions.

2. Wind System Description and Modeling

The wind system studied in this research is of the small wind type, with a maximum generation capacity of 3.5 kW. It features a turbine with a fixed blade pitch angle and does not include a speed reduction system with gears. Instead, it utilizes a PMSG, and the rotation speed of the blades is controlled by manipulating the stator current through a full three-phase H-bridge AC/DC CEP. Therefore, the CEP has two functions: transferring the generated energy and controlling the rotation speed of the blades to extract the maximum possible power. In Figure 1, the diagram of the wind system that was studied is shown [40]. In this Figure, variables denoted with * are set-point values.
In Equation (1) [40], the power of the wind P w is determined based on its density ρ , speed v , and the area described by the wind turbine when rotating A .
P w = 1 2 ρ A v 3
The mechanical power P m generated from the wind power depends on the power coefficient C p β , λ as shown in Equation (2) [40].
P m = C p β , λ P w
In turn, the power coefficient depends on the speed ratio (TSR) λ and the angle of attack of the blades β expressed in degrees. The TSR is defined in Equation (3), where ω m is the angular speed of the wind turbine, and r is its radius. This variable represents a ratio between the tangential speed at the extreme of the blades and the wind speed.
λ = ω m r v
The dependency of the power factor with β and λ is expressed in Equation (4). At the same time, Equation (4) depends on the ratio 1 γ , which is a λ dependent function. Coefficients in Equations (4) and (5) are characteristics of the wind turbine and, for this research, are taken from [40].
C p β , λ = 0.22 116 γ 0.4 β 5 e 12.5 γ
1 γ = 1 λ + 0.089 0.035 β 3 + 1
The power coefficient described in Equations (3)–(5) for different attack angles and speed ratios is shown in Figure 2. As can be seen in this figure, C p β , λ reaches a maximum value for a given λ , known as the optimal λ ( λ o p t ). For the model presented in Equations (3)–(5), the λ o p t takes a value of 8.1, and with this value, the C p β , λ reaches a maximum value of 0.48 when β = 0 ° . Therefore, λ o p t represents the speed ratio with which the power of the wind is transformed into mechanical power to the greatest extent possible. This means that for a given wind speed, the turbine has an angular speed ( ω o p t ) at which the greatest possible amount of energy is extracted. This angular speed can be determined by substituting λ o p t in Equation (3), resulting in Equation (6).
ω o p t = v λ o p t r
Knowing the angular velocity of the blades and the transferred mechanical power, the mechanical torque T m exerted by the blades on the PMSG is calculated according to Equation (7).
T m = P m ω m
Solving ω m from Equation (3) and expressing the area of Equation (1) as π r 2 , Equation (7) is expressed as shown in Equation (8).
T m = 1 2 ρ π r 3 C p β , λ λ v 2
In the case of the wind system studied in this investigation, the term 1 2 ρ π r 3 C p β , λ λ can be expressed as a function f λ since the attack angle is fixed. This simplification expresses the mechanical torque as shown in Equation (9).
T m = f λ v 2
Opposed to the mechanical torque, there is an electromagnetic torque T e that is generated due to the magnetic fields of the rotor and stator. This torque is calculated using Equation (10), where p is the number of PMSG poles, ϕ m is the constant magnetic flux of the rotor magnets, and i q is the component of the stator current in the q-direction.
T e = 3 4 p ϕ m i q
With both torques defined and given that the turbine under study does not have a gear transmission, Equation (11) describes the dynamics of the rotation of the blades. In this equation, J is the combined inertia of the PMSG, blades, and rotor, and B is the combined coefficient of friction.
J d ω m d t = T m T e B ω m
To define the component of the stator current in the q-direction, the equivalent circuit of the electrical part of the wind system is considered, including the generator and the three-phase rectifier with a resistive load R connected on the DC side, in dq coordinates as shown in Figure 3. A more detailed proceeding to obtain this model is presented in [41,42].
In this circuit, ω e is the electrical circular frequency of the PMSG and is calculated according to Equation (12). R s is the stator phase resistance, C d c is the DC side capacitor, v d c is the DC bus level, d d and d q are the modulation signal, and L d and L q are the direct and quadrature stator inductances.
ω e = p 2 ω m
Finally, applying Kirchhoff’s laws to the circuit in Figure 3, Equations (13)–(15) are obtained, which define the electrical model of the wind system, including the PMSG and the three-phase AC/DC CEP.
L d d i d d t = ω e L q i q R s i d v d c d d
L q d i q d t = ω e ϕ m ω e L d i d R s i q v d c d q
C d c d v d c d t = 3 2 i d d d + i q d q 1 R v d c
Synthesizing the modeling of the wind system described by Equations (1)–(15) and including the PI controllers for the schematic of Figure 1, this system is represented as a block diagram in Figure 4.
The diagram presented in Figure 4 does not include the AC dynamics of the PMSG and the AC side of the three-phase CEP. Consequently, it does not include the abc/dq and dq/αβ transformations or the three-phase modulator shown in Figure 1. Given that the wind system is proposed as a distributed generator for a DCµG, the model in dq coordinates provides sufficient dynamic response for its analysis in this context.

3. Control Description

In Figure 1 and Figure 4, ω m * is the target angular velocity determined by the MPPT algorithm. One of the typical algorithms for controlling a wind system starts by measuring the wind speed. This variable determines an angular velocity, an attack angle for the blades, and/or a transmission ratio between the turbine and the generator that maximizes the power factor C p β , λ [43,44]. This ensures that the maximum possible mechanical power is extracted. However, in systems such as the one implemented in this study, there is no control over the attack angle, which is fixed, or the transmission ratio. Only the angular velocity of the blades is controlled by regulating the electrical torque of the generator. Additionally, since the system is designed for low generation (small wind), it operates within limited ranges of mechanical power, angular speed of the blades, and wind speed. Once these limits are reached, the angular speed acquires values that regulate them and does not necessarily extract the maximum available power. Figure 5 shows the operational curve of the wind system implemented in this research. It has two cut-off wind speeds: a lower one of 3.5 m/s, below which the generator does not extract enough energy to transfer it to the DC side of the rectifier, and a higher one of 17.5 m/s, beyond which the current required in the generator to maintain the mechanical power at the limit exceeds its capacities. It is also observed that the curve in the generation range is divided into two regions: one below the limit power, where the maximum available power is extracted and/or the maximum angular velocity of the blades is regulated, and another where the system regulates the mechanical power to keep it at the limit value [45]. For the system studied in this research, the maximum angular velocity of the blades is 48.69 rad/s, and the maximum mechanical power allowed is 3500 W.
To cover the system’s limitations and determine the blades’ angular velocity as a function of the wind, Equations (1)–(8) were solved for the different operating states described by the generation curve, obtaining the relationship shown in Figure 6. This relationship is divided into five cases identified as A to E. In cases A and E, the system is outside the production range, so it is disconnected. In case B, the angular velocity of the blades maximizes the power factor, and the maximum possible mechanical power is extracted (that is, ω m * = ω o p t ). The angular speed limit has been reached in case C, so it remains constant. Finally, in case D, the mechanical power extracted at constant angular speed reaches the allowed limit, so the rotation speed is decreased to maintain a constant power output. With ω m * defined for each value of v in the operating range, the control algorithm simplifies the measurement of the wind speed and the setting of a reference value ( ω m * ) for the nested control loops in Figure 1. This control strategy is well known and does not represent the research contribution of this paper. The paper focuses on implementing the HIL platform using relatively low-cost, student-oriented hardware, described with a high-level description language and with relatively limited hardware resources. Implementing a well-known control strategy provides a solid foundation for the HIL platform validation.

4. Hardware-in-the-Loop Implementation

The HIL platform in this research was implemented on an NI myRIO 1900 development board (myRIO), which features a System on Chip (SoC) Xilinx Zynq-7010 integrating a real-time processor and an FPGA with a 40 MHz clock. The processor and the FPGA communication are employed through the ARM Advanced Microcontroller Bus Architecture (AMBA) standard (AMBA Specification (Rev 2). ARM Limited: 1999). To embed the model of the wind system in the FPGA of the myRIO, Equations (11)–(15) were discretized using the backward Euler approximation [34], resulting in Equations (16)–(19). Equation (20) was proposed to implement the PI controllers, where P is the proportional gain, I is the integral gain, u k is the control signal, and e k is the error. In these equations, T represents the integration time and takes a value of 10 µs.
ω m k = 1 B T J ω m k 1 + T J T m k 1 3 T p ϕ m 4 J i q k 1
i d k = 1 R s T L d i d k 1 + T p 2 ω m k 1 i q k 1 T L d v d c k 1 d d k 1
i q k = 1 R s T L q i q k 1 + T p 2 ω m k 1 i d k 1 + ϕ m L q T L q v d c k 1 d q k 1
v d c k = 1 T R C d c v d c k 1 + 3 T 2 C d c i d k 1 d d k 1 + 3 T 2 C d c i q k 1 d q k 1
u k = u k 1 + P e k + T I P e ( k 1 )
In addition to these equations, the system model includes the nonlinear function f λ and the nonlinear operations r / v and v 2 . On the other hand, the control algorithm involves solving the nonlinear Equations (1) to (8) to determine ω m * as a function of v . The function f λ and the relation ω m * v were implemented in the FPGA with one-dimension look-up tables (1D-LUTs). The nonlinear operations r / v and v 2 are solved on a PC and sent to a real-time processor via USB and then to the FPGA via AMBA as inputs. The dynamic of the wind speed is relatively slow compared to that implemented in the FPGA, so the difference in the execution time between the PC and the FPGA does not significantly affect the dynamic response of the wind system. Thus, only linear operations are solved in the FPGA while maintaining small integration periods. This data flow from the PC to the FPGA, which could be bidirectional, adds a communication layer to the HIL platform, allowing the wind system to be integrated into a more complex energy system, such as a µG, which is the goal of this distributed generator.
The wind system model and control system were organized on the FPGA of the myRIO in two loops. The first loop includes Equations (16)–(19) and a 1D-LUT for the function v 2 and is executed every 10 µs. The second loop includes a 1D-LUT for the function ω m * v and three PI controllers implemented with Equation (20), running every 25 µs. In Figure 7, the layout of the wind system and the control algorithm on the myRIO are shown. With this division, the control algorithm can be modified without altering the loop containing the wind system model. On the other hand, Figure 8 shows the HIL platform composed of a PC to emulate the wind behavior, the NI myRIO 1900, and a four-channel oscilloscope for monitoring the variables ω m , i q , i d , and v d c .
The parameters used to feed the wind system model are presented in Table 1 and correspond to the Anelion SW 3.5 GT turbine (Anelion Smart Power, Rafelbuñol, Spain), which has a generation capacity of 3.5 kW and is referenced in [46]. Table 1 also includes the gains (P and I) of the PI controllers; the subscript q indicates that the gains belong to the PI that produces d q , the subscript d is for the PI that produces d d , and the subscript d is for the PI that produces i q * .

5. Results

To validate the operation of the wind system, the results obtained from the hardware implementation were compared with the results of a continuous model simulation in Matlab. The first experiment evaluated the system’s response to a stepped wind speed profile, starting with a value of 6 m/s, then transitioning to 17.5 m/s, and finally returning to 8 m/s. The variables compared included the angular velocity of the blades, the currents in the q and d directions, and the DC voltage. These comparisons are shown in Figure 9, items (a) to (d), respectively. The platform’s accuracy in reproducing these variables’ behavior was measured by calculating the mean absolute error using the simulation values as a reference. The errors found for ω m , i q , i d , and v d c correspond to 0.7 rad/s, 1.9 A, 0.04 A, and 9.5 V.
Once the correct reproduction of the wind system’s behavior in hardware was verified, it was tested throughout the generation range to validate the operation of the control algorithm. The results of this experiment are shown in Figure 10 and Figure 11. Figure 10a compares the angular velocity of the proposed control algorithm and the angular velocity of the implemented system. This angular speed satisfies the constraints described in Figure 6, extracting the maximum power when possible and keeping the system within its operation limits when the power increases. Figure 10b illustrates the implemented system’s operating curve compared to the theoretical one. This figure shows that the controller can extract the maximum power in the whole operating range.
Figure 11 shows the trajectory followed by the mechanical power of the system. In this figure, the dotted red line labeled M P P T o p t represents the theoretical optimal trajectory that touches the maxima of the extracted mechanical power function for any wind speed. The extracted mechanical functions are presented with gray dotted lines for different speeds. These curves have similar shapes to the C p β , λ function presented in Figure 3. As can be seen in Figure 11, for each value of wind speed, there is an angular speed that reaches the maximum value of the extracted mechanical function; this is the value that satisfies Equation (6). Ideally, a wind system should extract the maximum power for every wind speed. However, the mechanical power that the turbine can support is reached for a specific value. The dotted red line P m a x represents the limit power the studied wind system can extract. The green line, M P P T t , represents the theoretical trajectory of the studied system. This trajectory follows the M P P T o p t line until the limit angular velocity is reached (segment B of Figure 6), then it rises vertically while maintaining ω m constant and increasing P m until the trajectory intersects the P m a x line (segment C of Figure 6). From this point, ω m begins to decrease, maintaining the trajectory on the P m a x line (segment D of Figure 6) until reaching the upper cut-off wind speed of the operating range. Finally, the blue line, M P P T h , represents the trajectory followed by the wind system implemented with the control algorithm. As shown in Figure 11, the M P P T h trajectory follows the M P P T t trajectory satisfactorily; this implies that the controller behavior is as expected. Therefore, this implies that the HIL platform is useful for testing the wind system in its whole operation range. Here, it is essential to highlight that this controller is used for validating the usefulness of the platform, but not only this controller can be tested.
Finally, to test the system with wind behavior, including gusts, an autoregressive moving average (ARMA) model was implemented. This model generates a wind profile with a normal distribution based on a specified mean and variance [47]. This algorithm models the wind speed v t according to Equation (21) as the sum of two components: an average speed μ w and an instantaneous turbulence v t t , which is modeled as a first-order Gaussian noise-excited filter as shown in Equation (22) (where T w is the time constant, and α t represents Gaussian noise with a mean of 0). With the filtered noise, the instantaneous turbulence is expressed in Equation (23), where σ t is the standard deviation of the wind speed, and ϑ t is the ARMA time series model expressed in Equation (24). This algorithm was implemented with the block diagram shown in Figure 12.
v t = μ w + v t t
v ˙ t t = 1 T w v t t + α t
v t t = σ t ϑ t
ϑ t = 1.7901 ϑ t 1 0.9087 ϑ t 2 + 0.0948 ϑ t 3 + α t 1.0929 α t 1 + 0.2892 α t 2
Using the ARMA model, the control algorithm was tested with a wind profile featuring an average speed of 8 m/s and a standard deviation of 0.5 m/s. The experiment lasted 5 min, during which 300 values for the wind speed were generated, one every second. The purpose of this experiment was to verify the operation of the controller in maintaining the turbine operating in ω m * . The variables analyzed are the angular speed of the blades and the speed ratio. Figure 13 shows the wind speed used in the experiment, Figure 14a illustrates the angular velocity response, and Figure 14b shows the speed ratio compared to the optimum.

6. Conclusions

The distribution within the FPGA allows the modification of the control algorithm without altering the wind system model, establishing a Controller Hardware in the Loop platform. This platform enables the validation of an embedded controller, represented by the 25 µs loop, before its implementation in the field. The controller’s validation does not imply the addition of new hardware, while the resources available in the FPGA are not exceeded, in addition to the fact that, since it is integrated with the myRIO, its description is performed using a high-level graphic language. Moreover, compared to platforms presented in [12,26,27,28,29], the one developed in this work represents a more cost-effective alternative.
The comparison shown in Figure 9 and the errors obtained in this comparison validate the HIL platform’s ability to emulate the wind system’s behavior. Therefore, the controller is validated under conditions that closely resemble reality. This holds true even when comparing the platform with software simulation rather than a real system since the used model is widely accepted in the field.
Including nonlinear functions such as 1D-LUTs and implementing linear operations in a separate instance from the FPGA allows the platform to operate with high latency, resulting in integration times of 10 µs for the wind system model. All of this is achieved using hardware with relatively limited resources.
The platform adequately analyzes the wind system as a distributed generator for a DCµG. However, if its use is considered in a context where AC dynamics must be analyzed, it must include transformations that generate AC signals.
In [45], a control algorithm like the one used in this work to validate the HIL platform is presented. The system used in [45] is a lab-scale prototype with a real PMSG driven by a permanent magnet synchronous motor (PMSM). At the same time, the PMSM is driven by an inverter operating in the torque control mode, with the torque established by an emulator based on the TMS320F2812 DSP. The trajectory followed by the control algorithm in our work is like the one presented in [45]. The fact that the HIL platform reproduces the trajectory implies that it is useful for validating the control strategy. This algorithm was used only to test the platform, but others can be validated. In this context, the platform implemented in this research serves as a valuable research infrastructure for testing MPPT control algorithms. This field is of interest, as evidenced in the introduction section:
  • References [5,6] mention the importance of wind systems as distributed generators in microgrids.
  • References [7,8,9,10,11] are examples of research published in high-impact journals from 2020 to 2023 that use wind systems in microgrids. These works confirm the significance and current relevance of wind systems mentioned in [5,6].
  • References [12,13] emphasize the importance of studying algorithms for maximum power point tracking in wind systems.
  • References [14,15,16,17,18], published from 2019 to 2022, underscore the relevance and significance of studying algorithms for maximum power point tracking in wind systems.
  • References [19,20,21,22] highlight the utility of hardware in the loop for validating control algorithms. This utility is demonstrated in references [12,23,24,25,26,27,28,29,30,31,32,33].
Considering all aspects mentioned, the main findings and contribution of this research are summarized next:
  • The distribution of nonlinear behaviors and equations in different hardware instances allows the implementation of the wind system in relatively cost-effective and limited hardware.
  • Implementing the controller and the model in different loops provides a C-HIL scheme that allows testing different control algorithms without modifying the system model.
  • The results show that the hardware can accurately reproduce the system behavior.
  • To obtain the expected results, implementing a well-known controller proves the platform’s usefulness for validating control algorithms.
For future research, the integration of the developed platform into a DCµG with additional components, such as other generators and energy storage systems, is proposed. Managing a DCµG requires a hierarchical control structure, usually a tertiary one, which can be centralized or decentralized. This control structure sets control objectives to fulfill an energy management strategy in all cases. Since the wind system represents a clean, distributed energy resource and is highly dependent on environmental factors with significant variability, the most common energy management strategy aims to extract the maximum possible power from this system. Therefore, the MPPT is the most crucial local control for this system. At the same time, the communication layer is the crucial aspect of establishing a hierarchical control structure. The developed HIL platform includes a communication flow between an FPGA and a PC through a real-time processor. This communication will be sufficient for implementing this control architecture in the future.
Parallel with this development, other elements for composing a DCµG are being implemented using the same hardware. The elements under development include a photovoltaic system, an AC/DC PEC for the main grid interconnection, a battery bank, a supercapacitor bank, and variable DC loads. The system presented in this work is just an element of a future platform for emulating a whole DCµG. Although the digital device used in this research to emulate the wind system has relatively limited hardware resources, at the same time, it has three input–output (I/O) ports with both digital and analog I/O. Through these ports, communication can be established between multiple devices, emulating more complex systems modularly. This allows the dynamics of different subsystems to be distributed and, therefore, the computational requirement, managing to emulate complex and reconfigurable systems with relatively limited hardware. The DCμG of which the generator described in this research will be part is made up of three myRIOs. In one of them, a photovoltaic system, variable DC loads, a battery bank, and the dynamics of the DC bus are emulated. The utility network and a bidirectional AC/DC PEC are emulated in another. Finally, the third is presented in this research, where the wind system is emulated.
A characteristic that has motivated the development of HIL simulations is that the systems under test can be tested under conditions very close to reality. In this sense, future work to improve the platform presented in this research will integrate IoT for measuring wind speed in the field. Although the ARMA algorithm used in this research to emulate wind is a well-accepted approach, using real measurements will provide more information on the algorithm’s performance for the MPPT evaluated with the developed platform.

Author Contributions

Conceptualization, J.M.-N. and V.S.-O.; methodology, J.B.-Á.; software, J.P.-M.; validation, C.M.-N. and M.B.-S.; formal analysis, J.B.-Á.; investigation, J.M.-N. and V.S.-O.; writing—original draft preparation, J.M.-N. and V.S.-O.; writing—review and editing, C.M.-N. and M.B.-S.; supervision, J.M.-N.; project administration, V.S.-O. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Anup, K.C.; Whale, J.; Urmee, T. Urban wind conditions and small wind turbines in the built environment: A review. Renew. Energy 2019, 131, 268–283. [Google Scholar] [CrossRef]
  2. Battisti, L.; Benini, E.; Brighenti, A.; Dell’Anna, S.; Castelli, M.R. Small wind turbine effectiveness in the urban environment. Renew. Energy 2018, 129, 102–113. [Google Scholar] [CrossRef]
  3. Abhishek, A.; Ranjan, A.; Devassy, S.; Kumar Verma, B.; Ram, S.K.; Dhakar, A.K. Review of hierarchical control strategies for DC microgrid. IET Renew. Power Gener. 2020, 14, 1631–1640. [Google Scholar] [CrossRef]
  4. Ullah, S.; Haidar, A.M.; Hoole, P.; Zen, H.; Ahfock, T. The current state of Distributed Renewable Generation, challenges of interconnection and opportunities for energy conversion based DC microgrids. J. Clean. Prod. 2020, 273, 122777. [Google Scholar] [CrossRef]
  5. Ahmad, S.; Shafiullah, M.; Ahmed, C.B.; Alowaifeer, M. A Review of Microgrid Energy Management and Control Strategies. IEEE Access 2023, 11, 21729–21757. [Google Scholar] [CrossRef]
  6. Bihari, S.P.; Sadhu, P.K.; Sarita, K.; Khan, B.; Arya, L.D.; Saket, R.K.; Kothari, D.P. A Comprehensive Review of Microgrid Control Mechanism and Impact Assessment for Hybrid Renewable Energy Integration. IEEE Access 2021, 9, 88942–88958. [Google Scholar] [CrossRef]
  7. Salman, U.T.; Al-Ismail, F.S.; Khalid, M. Optimal sizing of battery energy storage for grid-connected and isolated wind-penetrated microgrid. IEEE Access 2020, 8, 91129–91138. [Google Scholar] [CrossRef]
  8. Kotb, K.M.; Elmorshedy, M.F.; Salama, H.S.; Dán, A. Enriching the stability of solar/wind DC microgrids using battery and superconducting magnetic energy storage based fuzzy logic control. J. Energy Storage 2022, 45, 103751. [Google Scholar] [CrossRef]
  9. Akhbari, A.; Rahimi, M. Control and stability analysis of DFIG wind system at the load following mode in a DC microgrid comprising wind and microturbine sources and constant power loads. Int. J. Electr. Power Energy Syst. 2020, 117, 105622. [Google Scholar] [CrossRef]
  10. Badruhisham, S.H.; Abu Hanifah, M.S.; Yusoff, S.H.; Hasbullah, N.F.; Yaacob, M. PI Controller for Hybrid Biomass- Solar Photovoltaic- Wind in Microgrid: A Case Study of Mersing, Malaysia. IEEE Access 2022, 10, 95151–95160. [Google Scholar] [CrossRef]
  11. Abdelghany, M.B.; Mariani, V.; Liuzza, D.; Glielmo, L. Hierarchical model predictive control for islanded and grid-connected microgrids with wind generation and hydrogen energy storage systems. Int. J. Hydrogen Energy 2023. [Google Scholar] [CrossRef]
  12. Narayanan, V.L.; Ramakrishnan, R. Design and implementation of an intelligent digital pitch controller for digital hydraulic pitch system hardware-in-the-loop simulator of wind turbine. Int. J. Green Energy 2021, 18, 17–36. [Google Scholar] [CrossRef]
  13. Mousa, H.H.; Youssef, A.R.; Mohamed, E.E. Variable step size P&O MPPT algorithm for optimal power extraction of multi-phase PMSG based wind generation system. Int. J. Electr. Power Energy Syst. 2019, 108, 218–231. [Google Scholar] [CrossRef]
  14. Vu, N.T.T.; Nguyen, H.D.; Nguyen, A.T. Reinforcement Learning-Based Adaptive Optimal Fuzzy MPPT Control for Variable Speed Wind Turbine. IEEE Access 2022, 10, 95771–95780. [Google Scholar] [CrossRef]
  15. Sai Manoj, P.; Vijayakumari, A.; Kottayil, S.K. Development of a comprehensive MPPT for grid-connected wind turbine driven PMSG. Wind Energy 2019, 22, 732–744. [Google Scholar] [CrossRef]
  16. Dursun, E.H.; Kulaksiz, A.A. MPPT control of PMSG based small-scale wind energy conversion system connected to DC-bus. Int. J. Emerg. Electr. Power Syst. 2020, 21, 20190188. [Google Scholar] [CrossRef]
  17. Chen, J.; Yao, W.; Zhang, C.K.; Ren, Y.; Jiang, L. Design of robust MPPT controller for grid-connected PMSG-Based wind turbine via perturbation observation based nonlinear adaptive control. Renew. Energy 2019, 134, 478–495. [Google Scholar] [CrossRef]
  18. Sai, B.S.V.; Chatterjee, D.; Mekhilef, S.; Wahyudie, A. An SSM-PSO Based MPPT Scheme for Wind Driven DFIG System. IEEE Access 2022, 10, 78306–78319. [Google Scholar] [CrossRef]
  19. Rajendran, S.; Diaz, M.; Devi, V.S.K.; Jena, D.; Travieso, J.C.; Rodriguez, J. Wind Turbine Emulators—A Review. Processes 2023, 11, 747. [Google Scholar] [CrossRef]
  20. Mihalič, F.; Truntič, M.; Hren, A. Hardware-in-the-Loop Simulations: A Historical Overview of Engineering Challenges. Electronics 2022, 11, 2462. [Google Scholar] [CrossRef]
  21. Syed, M.H.; Guillo-Sansano, E.; Wang, Y.; Vogel, S.; Palensky, P.; Burt, G.M.; Xu, X.; Monti, A.; Hovsapian, R. Real-time coupling of geographically distributed research infrastructures: Taxonomy, overview and real-world smart grid applications. IEEE Trans. Smart Grid 2021, 12, 1949–3061. [Google Scholar] [CrossRef]
  22. Salcedo, R.; Corbett, E.; Smith, C.; Limpaecher, E.; Rekha, R.; Nowocin, J.; Lauss, G.; Fonkwe, E.; Almeida, M.; Gartner, P.; et al. Banshee distribution network benchmark and prototyping platform for hardware-in-the-loop integration of microgrid and device controllers. J. Eng. 2019, 8, 5365–5373. [Google Scholar] [CrossRef]
  23. Abrazeh, S.; Mohseni, S.R.; Zeitouni, M.J.; Parvaresh, A.; Fathollahi, A.; Gheisarnejad, M.; Khooban, M.H. Virtual hardware-in-the-loop FMU co-simulation based digital twins for heating, ventilation, and air-conditioning (HVAC) systems. IEEE Trans. Emerg. Top. Comput. Intell. 2022, 7, 65–75. [Google Scholar] [CrossRef]
  24. Kiesbye, J.; Messmann, D.; Preisinger, M.; Reina, G.; Nagy, D.; Schummer, F.; Mostad, M.; Kale, T.; Langer, M. Hardware-In-The-Loop and Software-In-The-Loop Testing of the MOVE-II CubeSat. Aerospace 2019, 6, 130. [Google Scholar] [CrossRef]
  25. Dai, X.; Ke, C.; Quan, Q.; Cai, K.Y. RFlySim: Automatic test platform for UAV autopilot systems with FPGA-based hardware-in-the-loop simulations. Aerosp. Sci. Technol. 2021, 114, 106727. [Google Scholar] [CrossRef]
  26. Wu, A.; Mao, J.F.; Zhang, X. An ADRC-based hardware-in-the-loop system for maximum power point tracking of a wind power generation system. IEEE Access 2020, 8, 226119–226130. [Google Scholar] [CrossRef]
  27. Tian, J.; Liu, J.; Shu, J.; Tang, J.; Yang, J. Engineering modelling of wind turbine applied in real-time simulation with hardware-in-loop and optimising control. IET Power Electron. 2018, 11, 2490–2498. [Google Scholar] [CrossRef]
  28. Fontanella, A.; Facchinetti, A.; Daka, E.; Belloli, M. Modeling the coupled aero-hydro-servo-dynamic response of 15 MW floating wind turbines with wind tunnel hardware in the loop. Renew. Energy 2021, 219, 119442. [Google Scholar] [CrossRef]
  29. Shin, D.-C.; Lee, D.-M. Development of Real-Time Implementation of a Wind Power Generation System with Modular Multilevel Converters for Hardware in the Loop Simulation Using MATLAB/Simulink. Electronics 2020, 9, 606. [Google Scholar] [CrossRef]
  30. Yildirim, B.; Razmi, P.; Fathollahi, A.; Gheisarnejad, M.; Khooban, M.H. Neuromorphic deep learning frequency regulation in stand-alone microgrids. Appl. Soft Comput. 2023, 144, 110418. [Google Scholar] [CrossRef]
  31. Naderi, E.; Asrari, A. Experimental Validation of a Remedial Action via Hardware-in-the-Loop System Against Cyberattacks Targeting a Lab-Scale PV/Wind Microgrid. IEEE Trans. Smart Grid 2023, 14, 4060–4072. [Google Scholar] [CrossRef]
  32. Naderi, E.; Asrari, A. Detection of False Data Injection Cyberattacks: Experimental Validation on a Lab-scale Microgrid. In Proceedings of the 2022 IEEE Green Energy and Smart System Systems (IGESSC), Long Beach, CA, USA, 7–8 November 2022; pp. 1–6. [Google Scholar] [CrossRef]
  33. Naderi, E.; Asrari, A. Hardware-in-the-Loop Experimental Validation for a Lab-Scale Microgrid Targeted by Cyberattacks. In Proceeding of the 2021 9th International Conference on Smart Grid (icSmartGrid), Setubal, Portugal, 29 June–1 July 2021; pp. 57–62. [Google Scholar] [CrossRef]
  34. Estrada, L.; Vázquez, N.; Vaquero, J.; de Castro, Á.; Arau, J. Real-Time Hardware in the Loop Simulation Methodology for Power Converters Using LabVIEW FPGA. Energies 2020, 13, 373. [Google Scholar] [CrossRef]
  35. Sanchez, A.; de Castro, A.; Martínez-García, M.S.; Garrido, J. LOCOFloat: A Low-Cost Floating-Point Format for FPGAs.: Application to HIL Simulators. Electronics 2020, 9, 81. [Google Scholar] [CrossRef]
  36. Bastos, R.F.; Silva, F.B.; Aguiar, C.R.; Fuzato, G.; Machado, R.Q. Low-cost hardware-in-the-loop for real-time simulation of electric machines and electric drive. IET Electr. Power Appl. 2020, 14, 1679–1685. [Google Scholar] [CrossRef]
  37. Quesada, L.F.; Rojas, J.D.; Arrieta, O.; Vilanova, R. Open-source low-cost Hardware-in-the-loop simulation platform for testing control strategies for artificial pancreas research. IFAC-PapersOnLine 2019, 52, 275–280. [Google Scholar] [CrossRef]
  38. Samano-Ortega, V.; Rodriguez-Estrada, H.; Rodríguez-Segura, E.; Padilla-Medina, J.; Aguilera-Alvarez, J.; Martinez-Nolasco, J. Power Sharing Control in a Grid-Tied DC Microgrid: Controller Hardware in the Loop Validation. Appl. Sci. 2021, 11, 9295. [Google Scholar] [CrossRef]
  39. Sámano-Ortega, V.; Méndez-Guzmán, H.; Padilla-Medina, J.; Aguilera-álvarez, J.; Martínez-Nolasco, C.; Martínez-Nolasco, J. Control Hardware in the Loop and IoT Integration: A Testbed for Residential Photovoltaic System Evaluation. IEEE Access 2022, 10, 71814–71829. [Google Scholar] [CrossRef]
  40. Gajewski, P.; Pieńkowski, K. Control of the Hybrid Renewable Energy System with Wind Turbine, Photovoltaic Panels and Battery Energy Storage. Energies 2021, 14, 1595. [Google Scholar] [CrossRef]
  41. Collier, D.A.; Heldwein, M.L. Modeling and design of a micro wind energy system with a variable-speed wind turbine connected to a permanent magnet synchronous generator and a pwm rectifier. In Proceedings of the XI Brazilian Power Electronics Conference, Natal, Brazil, 11–15 September 2011; pp. 292–299. [Google Scholar] [CrossRef]
  42. Schmidlin, C.R.; Lima, F.A. Wind turbine and PMSG dynamic modelling in PSIM. IEEE Lat. Am. Trans. 2016, 14, 4115–4120. [Google Scholar] [CrossRef]
  43. Menezes, E.J.N.; Araújo, A.M.; Da Silva, N.S.B. A review on wind turbine control and its associated methods. J. Clean. Prod. 2018, 174, 945–953. [Google Scholar] [CrossRef]
  44. Saidi, Y.; Mezouar, A.; Miloud, Y.; Benmahdjoub, M.A. A robust control strategy for three phase voltage t source PWM rectifier connected to a PMSG wind energy conversion system. In Proceedings of the 2018 International Conference on Electrical Sciences and Technologies in Maghreb (CISTEM), Algiers, Algeria, 17 January 2019; pp. 1–6. [Google Scholar] [CrossRef]
  45. Chen, J.; Wen, C.; Song, Y. Power control strategy for variable-speed fixed-pitch wind turbines. In Proceedings of the 2014 13th International Conference on Control Automation Robotics & Vision (ICARCV), Singapore, 10–12 December 2014; pp. 559–564. [Google Scholar] [CrossRef]
  46. García-Sánchez, T.; Mishra, A.K.; Hurtado-Pérez, E.; Puché-Panadero, R.; Fernández-Guillamón, A. A Controller for Optimum Electrical Power Extraction from a Small Grid-Interconnected Wind Turbine. Energies 2020, 13, 5809. [Google Scholar] [CrossRef]
  47. Abdelmalek, S.; Belmili, H. A New Robust H∞ Control Power. In Renewable and Alternative Energy: Concepts, Methodologies, Tools, and Applications; IGI Global: Hershey, PA, USA, 2017; pp. 1695–1718. [Google Scholar] [CrossRef]
Figure 1. Wind system.
Figure 1. Wind system.
Energies 16 07813 g001
Figure 2. Power coefficient curve.
Figure 2. Power coefficient curve.
Energies 16 07813 g002
Figure 3. Equivalent circuit.
Figure 3. Equivalent circuit.
Energies 16 07813 g003
Figure 4. Block diagram of the wind system model.
Figure 4. Block diagram of the wind system model.
Energies 16 07813 g004
Figure 5. Power curve of the wind system.
Figure 5. Power curve of the wind system.
Energies 16 07813 g005
Figure 6. Control algorithm curve. In regions A and E wind system is outside the operation range. In region B the controller extracts the maximum power keping λ at its optimal value. In region C the controller maintains the angular speed at its maximum allowable limit. In region D the controller maintains the extracted power at its maximum allowable limit.
Figure 6. Control algorithm curve. In regions A and E wind system is outside the operation range. In region B the controller extracts the maximum power keping λ at its optimal value. In region C the controller maintains the angular speed at its maximum allowable limit. In region D the controller maintains the extracted power at its maximum allowable limit.
Energies 16 07813 g006
Figure 7. Wind system HIL implementation.
Figure 7. Wind system HIL implementation.
Energies 16 07813 g007
Figure 8. HIL platform.
Figure 8. HIL platform.
Energies 16 07813 g008
Figure 9. Wind system outputs (HIL vs. continuous software simulation). (a) ω m platform response vs. software simulation; (b) i q platform response vs. software simulation; (c) i d platform response vs. software simulation; (d) v d c platform response vs. software simulation.
Figure 9. Wind system outputs (HIL vs. continuous software simulation). (a) ω m platform response vs. software simulation; (b) i q platform response vs. software simulation; (c) i d platform response vs. software simulation; (d) v d c platform response vs. software simulation.
Energies 16 07813 g009
Figure 10. Power and control algorithm curves (HIL vs. continuous software simulation). (a) Theoretical turbine angular speed vs. platform response; (b) Theoretical power extracted vs. platform response.
Figure 10. Power and control algorithm curves (HIL vs. continuous software simulation). (a) Theoretical turbine angular speed vs. platform response; (b) Theoretical power extracted vs. platform response.
Energies 16 07813 g010
Figure 11. Control algorithm power trajectory.
Figure 11. Control algorithm power trajectory.
Energies 16 07813 g011
Figure 12. Wind gust implementation with ARMA algorithm.
Figure 12. Wind gust implementation with ARMA algorithm.
Energies 16 07813 g012
Figure 13. Wind gusts.
Figure 13. Wind gusts.
Energies 16 07813 g013
Figure 14. Angular speed and speed ratio (output vs. target). (a) Mechanical speed set-point vs. response; (b) Optimal λ vs. λ reached with the controller.
Figure 14. Angular speed and speed ratio (output vs. target). (a) Mechanical speed set-point vs. response; (b) Optimal λ vs. λ reached with the controller.
Energies 16 07813 g014
Table 1. Wind system parameters.
Table 1. Wind system parameters.
Model Parameters
ParameterDefinitionValue
ρ Air density1225 kg/m3 (normal)
r Blade radius1.75 m
p Generator poles8
ϕ m Flux linkage of PMSG0.433 Wb·t
J Combined inertia0.02 kg m2
B Combined friction factor0.0002 N m s
L d = L q PMSG inductance8.4 mH
R s PMSG stator resistance0.425 Ω
R Resistive load100 Ω
C d c DC side capacitor4 mF
-Converter topologythree-phase full-wave bridge rectifier
P q Proportional gain of the q PI0.1
I q Integral gain of the q PI1
P d Proportional gain of the d PI0.1
I d Integral gain of the d PI1
P ω Proportional gain of the ω PI5
I ω Integral gain of the ω PI5
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Martínez-Nolasco, J.; Sámano-Ortega, V.; Botello-Álvarez, J.; Padilla-Medina, J.; Martínez-Nolasco, C.; Bravo-Sánchez, M. Development of a Hardware-in-the-Loop Platform for the Validation of a Small-Scale Wind System Control Strategy. Energies 2023, 16, 7813. https://doi.org/10.3390/en16237813

AMA Style

Martínez-Nolasco J, Sámano-Ortega V, Botello-Álvarez J, Padilla-Medina J, Martínez-Nolasco C, Bravo-Sánchez M. Development of a Hardware-in-the-Loop Platform for the Validation of a Small-Scale Wind System Control Strategy. Energies. 2023; 16(23):7813. https://doi.org/10.3390/en16237813

Chicago/Turabian Style

Martínez-Nolasco, Juan, Víctor Sámano-Ortega, José Botello-Álvarez, José Padilla-Medina, Coral Martínez-Nolasco, and Micael Bravo-Sánchez. 2023. "Development of a Hardware-in-the-Loop Platform for the Validation of a Small-Scale Wind System Control Strategy" Energies 16, no. 23: 7813. https://doi.org/10.3390/en16237813

APA Style

Martínez-Nolasco, J., Sámano-Ortega, V., Botello-Álvarez, J., Padilla-Medina, J., Martínez-Nolasco, C., & Bravo-Sánchez, M. (2023). Development of a Hardware-in-the-Loop Platform for the Validation of a Small-Scale Wind System Control Strategy. Energies, 16(23), 7813. https://doi.org/10.3390/en16237813

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop