1. Introduction
There are two essential reasons why the use of renewable energy is attractive—environmental protection and the increasing demand for energy consumption. Among the different renewable energy sources, solar energy through photovoltaic systems (PV) is rapidly spreading in recent years as solar farms or distributed photovoltaic systems. As it is widely known, solar energy has several advantages such as cleanness, broad availability, and low maintenance, but it has a limited energy conversion efficiency, which makes it crucial to guarantee the correct operation of the PV system components. That refers to the whole PV system, consisting of the PV modules connected in series and/or parallel, and the DC/DC and DC/AC converters when they are connected to the power grid. Moreover, improving system performance in PV installations requires monitoring, which makes the continuous investigation of advanced monitoring and control techniques a necessity to keep up with the advances of the technology. Monitoring focuses on measuring production and checking the operation of the converter and communication devices. The monitoring and control systems for PV installations include sensors, a data acquisition system, and data analysis algorithms [
1].
The PV modules are responsible for converting photon energy into electrical power, and they are exposed to outdoor environments, hence to the negative effects of soiling, heavy rain, hail, strong wind, etc. To maintain their efficiency close to the nominal efficiency, it is required to monitor their main parameters with sensors to detect if the solar modules suffer any fault, partial shading conditions, or aging degradation. With the appearance of these conditions, the hot spots [
2], in the PV modules can make the PV system efficiency decrease and accelerate the degradation of the modules. Therefore, the sensors to detect early faults play an important role in PV systems.
On the other hand, the DC/DC converter transforms the voltage from one DC level to another DC level. In this case, the DC/DC converter used is a boost topology, which can only increase the input voltage level. The control of the boost converter is responsible for searching the maximum power point (MPP) through an MPPT algorithm. There is a wide variety of MPPTs, from the simplest to the most complex, and all of them have the same goal—searching for the MPP. Usually, the MPPT algorithms obtain the voltage that provides the MPP and the system works at that voltage, controlling the DC/DC converter duty cycle. The most used MPPT is the perturb and observe (P&O) algorithm [
3], which is very simple and easy to implement. Other simple and linear MPPT algorithms are the incremental conductance [
3], or the ripple correlation control [
4]. When there are perturbations, the response of the linear systems can be slower or commit the stability of the system. Then, other MPPT algorithms are used, such as the sliding mode control [
5], the fuzzy logic [
6], neural networks [
7], particle swarm optimization [
8], etc. [
9]. The non-linear backstepping control is another algorithm used as MPPT [
10]. The controller provides the reference voltage to be achieved to work at the MPP by means of the regulation of the duty cycle. This type of control is robust and guarantees global stability. In this study, the adaptive Lyapunov control is used to control the boost converter. The adaptive Lyapunov control is similar to the backstepping control, the difference being that the former takes into consideration the degradation of the components of the DC/DC converter, such as the inductor and the capacitor, to make the system work more efficiently and robustly.
Then, the DC/AC converter is connected at the output of the DC/DC converter when the PV system is grid-connected. The inverter is responsible for converting the DC voltage into AC voltage. Moreover, the DC/AC converter injects the energy from the PV system into the power grid. To provide the energy from the PV modules to the grid in the correct way, a zero-crossing detector [
11] is required to inject the voltage in phase with the grid voltage and guarantee the grid stability [
12] and power quality [
13]. These problems arise in distributed PV systems when a large number of DC/AC converters are connected. The reason for the instability of these kinds of systems is the intermittent nature of solar energy since it depends on environmental conditions. That may cause fluctuations in the grid and over-voltage, making the voltage regulation difficult. Different control strategies have been proposed to reduce the reactive power [
14], stabilize the voltage [
15], or achieve maximum energy transfer [
16]. In this study, the DC/AC converter uses a proportional integral (PI) control to supply energy to the grid. This method is simple and obtains a proper system operation [
17].
The integration of the distributed PV systems in the power grid entails technological improvements in the power systems, such as updated sensors and communication, in order to detect the faults in the solar modules [
18], control the DC/DC and DC/AC converter to search for and transfer the maximum power, and guarantee the correct operation of the whole system, ensuring the power quality, the stability of the power grid, and a safe operation and maintenance [
19].
Wireless sensor networks (WSN) have become popular in the last decade and represent an opportunity in photovoltaic applications as opposed to wired ones, given their different constraints in terms of design and resources. For WSNs, resource constraints refer to the limited amount of energy, communication range, bandwidth, or limitations in processing power and data storage. The design is constrained by the environment to be monitored and is application-specific. Nevertheless, there are clear advantages that wireless technologies offer. The lack of cabling reduces costs and improves scalability and flexibility. They are easy to deploy, reliable, and require lower maintenance than the wired solutions.
The components required for the deployment of WSNs have seen improvements in costs, size, and power constraints, mainly due to recent advances in microelectronics and wireless technologies. However, the widespread deployment of WSNs requires addressing a variety of challenges, which have to be researched. In this study, collecting precise real-time information on photovoltaic system performance is essential to track efficiently the MPP and guarantee the reliability of the power grid. Therefore, several design aspects must be adequately addressed, such as low latency for a suitable performance of the controllers, robustness against interference, reliability in the wireless data transmission, accuracy in data acquisition, and synchronization between sensor nodes and coordinator nodes. Although ZigBee and Bluetooth protocols have been used in PV systems for the monitoring of currents, voltages, temperature, and irradiance, [
20,
21,
22,
23,
24,
25], providing energy-efficient designs, they cannot comply with tight latency and reliability requirements. This fact has required the design of a tailored wireless sensor network for the target application based on low latency techniques to achieve real-time monitoring and stable performance of the controllers. The Institute of Electrical and Electronics Engineers (IEEE) 802.15.4 standard in beacon-enabled mode and with a guaranteed time slot (GTS) mechanism has been used to meet the data monitoring with a predetermined latency.
For a better understanding of the readers, a list of symbols along with their descriptions that are used in this article are given in
Table 1.
2. System Architecture Overview
Figure 1 shows the two-stage, grid-connected wireless PV system. It consists of PV modules connected to a DC/DC converter that transfers the energy to the grid through a DC/AC converter. It has two main building blocks—a wireless grid-connected PV system (WGPVS) that links with a wireless centralized control system (WCC). More specifically, the WGPVS is composed of several wireless smart photovoltaic systems (WSPS) connected to a wireless conversion unit (WCU). Then, there are different WGPVSs connected to the AC bus to transfer all the energy provided by the PV modules to the power grid. The WCC includes the coordinator node that controls all the WGPVSs. Both DC/DC and DC/AC converters are connected to a wireless sensor network where data collected by motes are periodically transmitted to the coordinator node through wireless communication. Then, two control strategies are applied in parallel to generate the required signals for the converters, optimizing the energy conversion of the overall system.
The WSPS includes PV arrays connected to boost converters and wireless sensor network nodes. The boost converter is responsible for managing the MPP of each PV array. For this purpose, the boost converter is connected to the sensor node, which gathers the signals of the required parameters and sends them to the coordinator node. Then, the WCC provides to the sensor node the control signal for the DC/DC converter. Finally, each DC/DC converter is connected to the DC bus to transfer the energy.
The DC/AC converter is also connected to the DC bus to transfer the energy from the WSPS to the AC bus and then to the power grid, and convert the DC into AC. This part is called WCU and it is composed of the DC/AC converter connected to a wireless sensor network node, which is responsible for providing the required pulse-width modulation (PWM) signal to inject the energy generated by the PV modules into the grid. For that, the sensor node collects the required values of the inverter and then sends them to the coordinator node. In this case, the control strategy in the WCC is a PI that generates the control signal, which is provided to the inverter also by the sensor node. Moreover, a zero-crossing detector is required to synchronize the signal generated by the DC/AC converter with the grid. Thus, the inverter injects energy into the AC bus.
Finally, the WCC consists of the wireless centralized network node, known as host or coordinator node. The host node is responsible for linking the wireless nodes of the DC/DC converter and the DC/AC converter by means of the IEEE 802.15.4 standard. In addition, the host also has to manage the communication in the sensor network and sends the generated control signals. Thus, the WCC contains the calculations of the control signal for the DC/DC converter to search for the MPP depending on the sensor measurements and the control strategy. The controller applied in this study is the adaptive Lyapunov control for the boost converter and the PI control for the inverter to obtain the control signals to inject the energy into the grid and to synchronize the voltages.
4. Communication Module
A WSN consists of nodes, which are sensor devices, and a coordinator or host, which is the controller of the network. The nodes send their data wirelessly to the coordinator. The choice of the technology to be used depends on the requirements of the target application, with considerations such as latency, security requirements, or battery life. Amongst the various WSN standards, such as the well-known IEEE 802.11 (Wi-Fi) and IEEE 802.15, the IEEE 802.15.4 standard shows high flexibility and is specifically designed for low power, low data rates, and low-cost sensor communication. For these networks, Wi-Fi is inappropriate because, even though it provides high data rates and superior range, its power consumption is an important disadvantage. Bluetooth low energy (BLE) is an interesting option for WSNs, but it has a short range. The IEEE 802.15.4 defined only the lowest two layers of the protocol stack, the physical layer (PHY) and the medium access control layer (MAC). The upper layers of the protocol stack are defined separately by other architectures, such as 6LoWPAN, ZigBee, ISA100.11a, and WirelessHART.
4.1. Wireless Signal Flow
The wireless, grid-connected PV system has a coordinator node, WCC, which is responsible for linking the communications and receiving the sensor data sent by the WSPS and the WCU nodes. The WCC receives the voltage,
Vin, the boost converter input current,
iin, the inductor current,
iL, the temperature,
T, and the irradiance,
G, from the sensors of the WSPS every 7 ms. Then, the WCC applies the adaptive Lyapunov control and generates the control signal, the duty cycle,
γ, which is sent by the host to the WSPS. As for the data sent by the WCU, they are received every 0.1 ms. The values sent by the WCU are the DC/AC converter input voltage,
Vo, and the inverter output current,
igrid. With those values, the control signal, the duty cycle for the inverter,
γinv, is obtained after applying the cascade PI control in the WCC. This information is depicted in
Figure 8, in which the communication between the host node and the two different controllers is presented. The host node sends the signal values to the controllers and the controllers calculate the duty cycle required for the correct operation of the system. Then, the control signals are sent by the host node to the WSPS and WCU. The two figures at the bottom of
Figure 8 are the DC/DC controller and the DC/AC controller, showing the signals required to obtain the control signals. In the case of the DC/DC controller, the signals are the irradiance, the temperature, the boost converter input voltage and current, the DC/DC converter output voltage, and the inductor current. For the DC/AC controller, the signals needed are the grid current and the inverter input voltage,
Vo.
The WSPS node is responsible for controlling the boost converter to extract the maximum power from the PV modules. To this purpose, the values of the DC/DC converter input voltage, the boost converter input current, the inductor current, the irradiance, and the temperature must be read by means of analog to digital converters (ADCs). Those values are sampled and sent to the host node every 7 ms. Then, the WSPS node receives the control signal for the DC/DC converter.
The WCU node controls the DC/AC converter and is responsible for maintaining the inverter input voltage given by the reference value. For that, the sensor signals, in this case, the DC/DC converter output voltage and the DC/AC converter inductor current,
igrid, are sampled every 0.1 ms. The received signal is the control signal for the inverter,
γinv, as
Figure 9 presents.
4.2. Hardware of the Network Nodes
Two sensor nodes send their data to the coordinator through wireless links. The coordinator uses the data locally. It is responsible for processing the data from the sensors and responding to every DC/DC converter and every inverter. As such, the coordinator manages the WSPS and the WCU as two relatively independent networks.
Despite their aforementioned advantages, proper attention must be paid when selecting the components of the WSNs because failure to do so could compromise the reliability of the monitoring system. The implementation of the network nodes is compact and features a versatile design, with a highly integrated and cost-effective solution. The proposed solution is power-aware, with care to the selection of the microprocessor, and power management is addressed in both the hardware and the software design.
The hardware has been designed so that the network node can be configured as both a sensor node for the DC/DC converter and the inverter and a coordinator node. The SJ1 jumper allows this change of role of the node.
Figure 10 shows the board of the wireless network node. It comprises a wireless module, sensors, a microcontroller, a differential analog to digital converter (ADC), and a power source. Several nodes have been deployed to configure the sensor network for the grid-connected PV system. Each unit is governed by an ATmega328 microcontroller from Atmel (San Jose, CA, USA) that processes information from the sensors. The set of sensors measure the required parameters, i.e., voltages, currents, temperature, and irradiance, and have analog outputs that are sampled by the external ADC. A second microcontroller ATmega128RFA1 (Atmel), which includes the wireless transceiver, controls the transmission stack of the IEEE 802.15.4 standard. These components are powered by a rechargeable 3.3 V/2600 mAh battery. The charge is maintained by the photovoltaic panel to achieve full energy autonomy when the network node performs as a sensor node. If it acts as a coordinator, it is powered from the base station. All components were selected to minimize the power consumption for the target application. The proposed dual-processor architecture allows balancing cost, power consumption, and performance. If a single microcontroller were used, it would be more difficult to achieve real-time monitoring and control of the PV system because the number of samples required for accurate tracking would be more limited.
- (1)
ATmega328 processor: An 8-bit microcontroller with 32 pins and Automatic Voltage Regulator (AVR) enhanced Reduced Instruction Set Computer (RISC) architecture, with an input voltage range from 1.8 V to 5.5 V, and a 20 MHz internal oscillator. It has up to 23 digital input/output pins, 8-channel 10-bit Analogue to Digital Converter (ADC), two Serial Peripheral Interface (SPI), one I2C and one Universal Synchronous/asynchronous Receiver Transmitter (USART) module, two 8-bit timers and one 16-bit timer, 32 KB of program memory, 1 KB of Electrically Erasable Programmable Read-Only Memory(EEPROM), 2 KB of Statis Random Access Memory (SRAM), and a real-time counter (RTC). The microcontroller is well suited for this application, given its low-power operating current, which is 200 µA at 1.8 V and 1 MHz, and 0.75 µA for standby current in power-save mode with 32 kHz RTC.
- (2)
Single-chip wireless module: The short-range radio module is an ATmega128RFA1, which exchanges data via wireless communication at 2.4 GHz following the IEEE 802.15.4 standard. The ATmega128RFA1 is a low-power 8-bit microcontroller based on the AVR-enhanced RISC architecture combined with a high data rate transceiver. It handles the physical layer of the wireless communication, enables very robust transmission, and only uses a minimum number of external components. It combines excellent Radio Frequency (RF) performance with low cost, small size, and low current consumption. It has an input voltage range of 1.8 V to 3.6 V at 16 MHz and has 128 KB of program memory, 4 KB of EEPROM, 16 KB of SRAM, and RTC. The supply current of the device is 14.5 mA at the maximum transmission output power of 3.5 dBm and 12.5 mA in the reception state. The microcontroller and the transceiver provide various sleep modes, allowing the user to tailor the power consumption to the requirements of the application.
- (3)
External ADC: This device allows precise sensor data acquisition, while also improving software management and reducing the microcontroller load required for real-time monitoring. The MCP3428 (Microchip, Chandler, AZ, USA) is a 16-bit ADC with four-channel differential inputs. This configuration provides precision in the current measurement of up to 9 µA, which allows for the appropriate control of the DC/DC boost converter. Moreover, this ADC can be put in a low-power standby mode or shut down completely through simple pin-driven control, allowing improved power consumption control. The ADC data is read by the ATmega328 microcontroller through SPI.
- (4)
Sensors and sensor interface circuits: The measurements of current are carried out with resistors in the PCB, and voltage dividers for the required measurements of voltages. The temperature sensor uses four wires and the irradiance sensor uses two wires. All these analog values are periodically sampled under practical operation conditions by the differential ADC.
As it was shown in
Figure 8, the DC/AC controller needs a zero-crossing detector to synchronize the signal generated by the DC/AC converter with the grid. An integrator circuit using the micropower TLV2761IDBV (Texas Instruments, Dallas, TX, USA) operational amplifier has been used. Its output is directly connected to an external interrupt of the ATmega328 microcontroller. On the order hand, to measure the AC current of the grid, a four-pad current sensing resistor of 50 mΩ from Vishay Precision Group (Malvern, PA, USA), with a maximum power of 3 W, a tolerance of 0.1%, a temperature coefficient of resistance of 15 ppm/°C, and a maximum current of 54 A, has been used. The voltage across the resistor is applied to a differential input amplifier circuit based on the same previously mentioned operational amplifier.
The coordinator node also acts as a gateway between the sensor network and the base station. The coordinator node is powered from an external source via USB and is connected directly to a PC via a Transistor-Transistor Logic to Universal Serial Bus (TTL-USB) transceiver, using the JP1 connector.
4.3. Firmware
The Atmel microcontrollers used in the network nodes follow a layered approach compatible with the IEEE 802.15.4 standard. The stack modules PAL, MAC (MAC-API), TAL, and Resources have been modified to the requirements of the grid-connected photovoltaic system. The beacon-enabled mode has been the mechanism chosen of the IEEE 802.15.4 standard to synchronize the bidirectional data transmission between the sensor nodes and the coordinator. The network coordinator is responsible for setting up the wireless network and follows the known negotiation protocol with the launching of beacons to receive the data sent by the sensor nodes, the association requests, and the confirmations by means of acknowledgment (ACK) frames. A slotted Carrier Sense Multiple Access with Collision Detection (CSMA/CA) is the mechanism that provides media access to the sensor nodes, synchronized by means of the beacons of the superframe structure. Nevertheless, sensor nodes also use GTS to avoid time delays in the data transmission and provide a predetermined data monitoring latency. This fact ensures that the controllers of both the boost converters and the inverters can operate stably and in real-time since they receive data at low latency intervals and within a specified time.
The coordinator (host) node configures the parameters required to create the network. Each sensor node gathers the PV module parameters and broadcasts an association beacon. Then, the coordinator associates a PV module number to the MAC address of each sensor node, and these can now forward the data to the coordinator in a reserved GTS. Next, the data is processed by the algorithms, generating the control signals for the DC/DC converters and the inverters, which return to each sensor node accordingly to track the MPPT and provide the energy from the PV modules to the grid in the correct way. The parameters Beacon Order (BO) and Superframe Order (SO) are defined in the standard and have been set to determine the time between beacons and the time in which the sensor node can transmit, respectively [
27].
6. Conclusions
A great number of monitoring applications are based on WSNs, given their advantages in terms of costs by drastically reducing the required cabling, their scalability, flexibility, and variety of network topologies, in addition to the ease of deployment and reduced maintenance. WSNs have successfully provided monitoring solutions in many fields, including PV power plants. Nowadays, many efforts are devoted to increasing the energy production of PV plants, which can be monitored to control the proper operation of the system and assess its production. This paper presents a wireless solution for a grid-connected PV system with two approaches for the control of the DC/DC converters and the inverters. The communication module has been developed to achieve the required low latency for the controllers to operate stably and in real-time. Communications are built using the IEEE 802.15.4 protocol because the aim is to construct a WSN with low power consumption, low complexity, and low data transmission rate. A low-cost wireless multi-sensor node has been deployed with a versatile design, which is able to perform as both a sensor node and a coordinator node. Long-term operation is allowed using solar cells and rechargeable batteries solution to power the nodes, requiring minimum human intervention.
Experimental results show an MPPT efficiency higher than 99.05% by applying an adaptive Lyapunov control for the boost converter, which transfers energy with an efficiency between 93% and 98%, and for the DC/AC converter, the power transferred to the power grid ranges from 92% to 94.5%, injecting nearly sinusoidal grid currents at near unity power factor since the THD is only 2%. The robustness of the wireless grid-connected PV system has also been verified even under external perturbations in the environmental conditions, ensuring the stability of the system even when there are sudden changes in the irradiance.