Next Article in Journal
Adaptive Ascent Control of a Collaborative Object Transportation System Using Two Quadrotors
Next Article in Special Issue
Maximum Power Point Tracking-Based Model Predictive Control for Photovoltaic Systems: Investigation and New Perspective
Previous Article in Journal
Comprehensive Generation of Historical Construction CAD Models from Data Provided by a Wearable Mobile Mapping System: A Case Study of the Church of Adanero (Ávila, Spain)
Previous Article in Special Issue
A Control Process for Active Solar-Tracking Systems for Photovoltaic Technology and the Circuit Layout Necessary for the Implementation of the Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Test of a High-Performance Wireless Sensor Network for Irradiance Monitoring

by
Manuel Jesús Espinosa-Gavira
*,†,
Agustín Agüera-Pérez
,
José María Sierra-Fernández
,
Juan José González de-la-Rosa
,
José Carlos Palomares-Salas
and
Olivia Florencias-Oliveros
Research Group PAIDI-TIC-168, Computational Instrumentation and Industrial Electronics (ICEI), University of Cadiz, ETSI of Algeciras, Av. Ramonn Puyol S/N, Algeciras, 11202 Cadiz, Spain
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2022, 22(8), 2928; https://doi.org/10.3390/s22082928
Submission received: 17 March 2022 / Revised: 4 April 2022 / Accepted: 7 April 2022 / Published: 11 April 2022
(This article belongs to the Special Issue Advanced Sensing Technologies in Photovoltaic Systems)

Abstract

:
Cloud-induced photovoltaic variability can affect grid stability and power quality, especially in electricity systems with high penetration levels. The availability of irradiance field forecasts in the scale of seconds and meters is fundamental for an adequate control of photovoltaic systems in order to minimize their impact on distribution networks. Irradiance sensor networks have proved to be efficient tools for supporting these forecasts, but the costs of monitoring systems with the required specifications are economically justified only for large plants and research purposes. This study deals with the design and test of a wireless irradiance sensor network as an adaptable operational solution for photovoltaic systems capable of meeting the measurement specifications necessary for capturing the clouds passage. The network was based on WiFi, comprised 16 pyranometers, and proved to be stable at sampling periods up to 25 ms, providing detailed spatial representations of the irradiance field and its evolution. As a result, the developed network was capable of achieving comparable specifications to research wired irradiance monitoring network with the advantages in costs and flexibility of the wireless technology, thus constituting a valuable tool for supporting nowcasting systems for photovoltaic management and control.

1. Introduction

The increase in the installed photovoltaic (PV) power observed in recent years is expected to continue for both distributed and utility-scale systems [1]. With increasing penetration levels, grid stability and power quality can be affected by cloud-induced PV variability posing a series of technical challenges that have been the main focus of research in the topic during the last decade [2]. Techniques such as power curtailment or Battery Storage Energy Systems (BESS) have been widely used to minimize the high frequency PV power variability derived from cloud passage [3,4]. It has been demonstrated that forecasts in the range of seconds are necessary to take full advantage of these techniques. Concretely, power curtailment has proven to be efficient in smoothing upwards power ramps, but its application to the downward ones requires forecasts to perform curtailment before cloud arrival [5]. BESS based techniques can smooth both upwards and downwards ramps, but forecasts are also required for the optimized control of the charge/discharge cycles, which allows a reduction of battery capacity and an extension of its lifespan [6].
The term ’nowcasting’ is frequently associated with ultra-short-term forecasts to clearly differentiate it from short-term forecasting, which involves longer prediction horizons and different applications. Namely, short-term forecasting is associated with horizons from tens of minutes to some hours, with applications in load dispatch, intra-day market, and operational security of the electricity system [7]. Short-term forecasting is generally based on Numerical Weather Prediction (NWP) models and satellite observations with the goal of estimating the average cloud coverage over the period rather than the detection of individual clouds. On the other hand, nowcasting focuses on the range of seconds to few minutes, being used in real-time operation and control of PV systems and distribution feeders with significant PV penetration levels [8,9]. In this case, it is necessary to consider irradiance transitions generated by the passage of individual clouds, thereby requiring data sources capable of providing this information: satellite imagery, sky cameras, or irradiance sensor networks. However, satellite imagery has a limited spatial resolution and low sampling rate on the order of hundred of meters and several minutes, respectively. Thus, they are appropriate for the detection of atmospheric fronts that could cover the PV system in the next few minutes, but they are not particularly useful in the prediction of ramp events. Sky cameras, despite having a high acquisition rate, present difficulties in the translation of images to irradiance values [10]. Many studies focused on the reduction of errors derived from this translation, but they are generally higher than 20% Root Mean Square Error (RMSE) under partial cloud cover conditions [11,12,13].
Irradiance sensor networks are positioning themselves as a promising data source for nowcasting and short-term forecasting applications since they represent the simplest way to obtain spatial distributions of irradiance with a high sampling rate [10]. In this sense, Hoff and Perez stated that “regularly gridded networks of pyranometers” are the ideal data source for analyzing PV variability [14]. Chen et al. demanded a “dense sensor network dispersed over a wide area” as the best option to precisely capture cloud shadow features [15].
There are many examples of irradiance sensor networks in scientific literature, although they are typically designed for research purposes, with measurements stored in data loggers for an offline analysis. Table 1 includes some representative cases of these offline networks. For instance, the Oahu [16] and the Meltzip [17] networks have been used in many studies for different purposes, thanks to the data being available on their web sites. They share characteristics that are extensible to most of the offline networks: 1-s resolution, use of data-loggers, comparable areas and density of measurement points, and research focus. In Table 1, we referenced only two recent articles based on these networks for illustration purposes: data from the Oahu dataset applied to control of utility-scale PV plants [18], and data from the Melpitz dataset applied to model cloud advection [19]. The networks described in [20,21] has similar characteristics to the previous ones, although, in these cases, the pyranometers are arranged in a gridded layout.
The Singapore network used in [25] is also used as an offline data source, but, in this case, it has a more regional focus with spatial and temporal resolutions not appropriate for cloud passage events.
The above monitoring systems effectively fulfill the purpose for which they were conceived. However, in order to support real-life solutions for PV systems, irradiance sensor networks must be designed with different specifications. First, they should be able to capture and transmit data in real time or near real time. Second, the cost of the infrastructure must be economically justified. This limits the cost of the monitoring network in comparison with the PV system, as stated in [32]. In this sense, while wired networks are better in terms of latency, reliability, and data rates, they have penalties in deployment complexity, higher costs, and lower flexibility for adding new devices or moving existing ones. For instance, the wired irradiance network of the Tampere University of Technology described in [22] was able to capture 25 samples/s (sampling period of 40 ms) with 21 pyranometers connected to a CompactRIO data-acquisition system. The authors finally concluded that a sampling period of 100 ms “is sufficient for detecting even the fastest phenomena related to power generation with PV power plants”, which is the sampling frequency applied in subsequent studies based on this network [30,33]. Again, this deployment with advanced devices, complex infrastructure, and excess performance is justified by research purposes. Therefore, a wireless configuration implementing ordinary devices while meeting the necessary measurement specifications seems a more practical and cost-effective solution for real applications.
Examples of online irradiance Wireless Sensor Networks (WSN) with these characteristics are very scarce in scientific literature. There is specific research on the design of nodes for irradiance WSN [34,35], although no network is deployed in these investigations. In other cases, the potential of online irradiance WSN at regional scales is evaluated, but considering coarse spatial and temporal resolutions not adapted to cloud passage events [27,31]. In [29], the development of a rooftop irradiance WSN comprising 10 pyranometers is described, but again the 5-minutes sampling period is not adequate to deal with PV ramps.
As summary, there are only a few articles that describe real implementations of online irradiance WSN able to support control strategies for minimizing cloud-induced PV fluctuations. Achleitner et al. deployed an online sensor network in rooftops of neighboring buildings for forecasting purposes. The system was based on IEEE 802.15.4/ZigBee protocol, comprised 19 motes, and operated at a sampling period of 5 s [23]. The network described in [26] was also based in the 802.15.4/ZigBee protocol. In this case, it comprised 16 nodes regularly distributed over 15 × 15 m. The authors found network instability for sampling periods shorter than 500 ms and with a certain lack of synchronization. In [28], five nodes implementing LoRa were used to test a nowcasting method for “grid-friendly control” of PV systems. The network is conceived as a partial prototype of a theoretical monitoring system composed of two concentric circles of sensors with radii of 500 and 440 m, respectively, comprising a total of 48 pyranometers. The partial prototype of five sensors is designed to cover cloud motion directions from 0 to 60 North. The system described in [24] is designed to monitor a utility scale PV system using National Instruments (NI) devices. It cannot strictly be considered an irradiance monitoring network, as it is focused on power measurements and only three of the 12 motes include pyranometers but illustrates the feasibility of deploying Wireless Sensor Networks (WSN) with the required specifications in PV plants to provide additional information for PV plant control. Some of these studies will be used for comparison in Section 5.
The present article deals with the design and test of a wireless irradiance monitoring network with specifications comparable to the wired ones regarding sampling periods, stability, and synchronization. The article is structured as follows: Section 2, Section 3, Section 4 and Section 5 and finalize with Section 6.

2. Materials and Methods

2.1. Wireless Protocols

The communication protocol is a fundamental element that strongly determines the design and specifications of a WSN. Since this WSN aims to support nowcasting applications for a wide range of PV systems, the design process will prioritize the achievement of high bandwidth and maximum spatial coverage as possible with reasonable power consumption and economic cost.
Bandwidth determines the amount of data that can be transmitted on the network per unit of time, thereby being a constraint for the maximum amount of motes for a specific sampling rate. In this sense, the selected wireless protocol aims to provide the maximum versatility in the amount of motes in the WSN and achievable sampling rate. On the other hand, coverage maximization pretends to provide large area connectivity using the minimum amount of wired parts, e.g., network devices that will require wired connection to a Local Area Network (LAN). Thus, the selection of the wireless protocol involves a trade-off between the two considerations, since high bandwidth and poor coverage are as detrimental as high range and inadequate bandwidth for the proposed objective. Table 2 is given to facilitate the comparison of main specifications of most commonly used wireless protocols.
Among these alternatives, Bluetooth was discarded due to its short range. As commented in the previous section, [26] found a maximum acceptable limit of 500 ms with 16 motes using ZigBee [26]. Since LoRa has lower data rate, it was also discarded. Finally, WiFi was the selected protocol for their range and data rate.

2.2. Application Layer Protocols

The Application Layer Protocol (ALP) is an abstraction layer that defines how applications should communicate. There are several ALP available for IoT messaging, but most commonly used ones are provided in Table 3.
According to the information on the table, MQTT is a good candidate for ALP attending to two considerations: low overhead (header size) and high usage as M2M/IoT protocol. Low overhead is important since the required amount of information for data transmission is minimized, while the high IoT usage is a guarantee of good support of the protocol. Furthermore, 3 levels of QoS (Quality of Service) is an additional valuable feature for ensuring data reception. In this study, a QoS of 0 will be used, which is the minimum.

2.3. Development Board

The board selected for the development of the WSN is based on the ESP32 microcontroller from Espressif Systems, which includes features such as a dual-core 32-bits microprocessor running up to 240 MHz, 12-bit ADC channels, several digital interfaces such I2C, SPI, Serial and built-in Wi-Fi and Bluetooth connectivity, all of which are highly valuable for online WSN. As negative aspects, ESP32 microcontroller has some known issues, the most notable being the high noise and nonlinearity of the built-in ADC.
In order to overcome this issue, the manufacturer recommends connecting a 0.1 μ F capacitor to the ADC pad and multi-sampling to reduce the noise profile [37]. The nonlinearity issue was also addressed in [38], and authors concluded that a calibration is compulsory for reliable results or using a narrow range where the ADC behavior can be considered to be linear. We conducted both procedures, but the observed improvement was not as relevant as expected. Furthermore, it was noticed that the noise profile changed with the sampling rate.
This issue can be solved using an external ADC if noticeable noise reduction is achieved. For this purpose, the ADS1115 IC was chosen as ADC because it provides up to 4 channels of 16-bit precision and up to 860 Samples Per Second (SPS) over I2C, with promising low noise profile and can be found in ready to use PCB boards.
Figure 1 shows the performance comparison for 200, 100, 50, and 10 ms of a sampling period of both ADCs. Each sampling period was tested for a duration of 60 s. A triangular signal of 2 s of periodicity was used for testing purposes, covering the expected pyranometer output from 700 W/m 2 to 800 W/m 2 , as a representation of a linear irradiance ramp of 100 W/m 2 per second. The behavior of the function generator was considered ideal. The embedded ESP32 ADC was calibrated with a linear regression for this range in order to compute noise, excluding nonlinearity response which is another drawback for the use of the built-in ADC. The ADS1115 was configured with a data rate of 128 SPS, which is capable of achieving 10 ms of sampling rate without overlapping samples.
In Figure 1, each column represents the same sampling period, indicated at the top text. The first two rows correspond to the four seconds of the test, the upper one corresponds to the built-in ADC as labelled on the right side, and the second row corresponds to the ADS1115. The gray lines represent the ideal input waveform and the red dots the sampled values from ADC. Error histograms with 1 W/m 2 of bin size are shown following the same organization in the last 2 rows.
The noise reduction provided by the ADS1115 over built-in ADC from histograms in Figure 1 is noticeable. The noise profile of the embedded ADC can be assumable for a single irradiance monitoring sensor, but it is a major issue when the 16 signals captured from motes are processed by cloud motion estimation algorithms. Based on the previously mentioned and the noise reduction achieved with the inexpensive external ADC, authors consider that its usage is justified.

2.4. Sensor Selection

Pyranometers can be classified into two main types according to their working principle: thermopiles and photodiodes. While thermopile based pyranometers have better spectral response than photodiode ones, they are more expensive and present longer response times. Photodiode based pyranometers have a response time on the order of milliseconds, while thermopile ones usually stand on the order of seconds. These differences make the photodiodes based pyranometers adequate for a low cost and high sample rate irradiance monitoring network. Based on the above statement, a good candidate sensor for monitoring solar irradiance is the SP-214, which is a photodiode pyranometer from Apogee Instruments, Inc. Logan, USA. Its main specifications are given in Table 4.

2.5. Mote Prototype

The mote was built by connecting the pyranometer to the external ADC (ADS1115), and the latter to the ESP32. The irradiance sensor and the voltage regulator are powered using an external 15V AC-DC power supply with additional voltage regulations inside the prototype box. The voltage regulator is a DC–DC step down, providing 5V at the output, which is acceptable to power the ADS1115 and ESP32 boards. Figure 2 illustrates the connections among the different components of the mote.
The electronic circuits of the prototype were placed inside a box (Figure 3a), except for the irradiance sensor, which was placed outside connected by a 5 m cable (Figure 3b).
For the load resistance, R L , a 150  Ω value resistor, was used to convert the 4–20 mA output from pyranometer to voltage ranging from 0.6 to 3 V. Based on the electronic diagram of Figure 2, the ADS1115 input impedance creates a current divider, and its effects should be quantified.
Texas Instruments characterize the typical ADS1115 IC input impedance in 6 M Ω for the common-mode, with a sensibility of 125  μ V /count and 8 SPS. Texas Instruments does not provide electrical characterization for data rates different to 8 SPS. This study tested the ADS1115 with 8 SPS and 128 SPS, and no difference was found. Hence, it can be assumed for current divider estimation that the input impedance stays on the order of 6 M Ω . On this basis, the deviation of voltage drop in R L should be much less than 0.01%, which is small enough to be assumed with the benefit of no extra circuitries like operational amplifiers in voltage follower configuration.

2.6. Server

The WSN requires a server and a software stack to perform the data processing and store the irradiance values sent by the motes. The software was intended to be lightweight and the bare minimum. Initially, the software stack consists of an MQTT Broker, databases with agents for processing and pushing data to databases. Mosquitto is the software chosen as an MQTT Broker due to its extended usage and its open source license. For data storage, two databases were tested: InfluxDB, which is a time series database, and MariaDB, which is a relational one, are both open source.
Some agent is needed between the MQTT Broker and the databases. For that purpose, the Telegraf agent was chosen for collecting data from the MQTT broker, processing and pushing them into InfluxDB (a simplified configuration file is provided in Code 1, Appendix A), while, for storing data in the MariaDB, the Node-RED and the data flow shown in Figure 4 were used.
Figure 5 offers a visual description of the network topology initially used.
The hardware used in this study was an HP Proliant MicroServer Gen8 (HP Inc., Palo Alto, CA, USA) with a XEON E3160L and 12 GiB of RAM at 1333 MHz. The required software was installed on virtualized Debian 11 running on a LXC container in Proxmox VE 7.1. from Proxmox Server Solutions Gmbh (Wien, Austria). Some performance loss could be expected due to virtualization technology.

2.7. Performance Test Design

The performance test is focused on characterizing the network stability, data synchronization, and storage process efficiency. To achieve this goal, the network motes were programmed using timer interruption at a fixed rate to prevent time drifting due to processing time. The interruption period can be changed remotely using a specific MQTT topic that reprograms the timer according to the requested period. In each timer interruption, the microcontroller sends Unix time with millisecond precision, providing a timestamp to contextualize the samples. The capability of each mote to perform sampling at a fixed rate can be assessed by computing the vector D, defined as the differences of sent times (T) of consecutive measurements ( k , k 1 ) from one mote:
D [ k 1 ] = T [ k ] T [ k 1 ] k [ 1 , 2 , 3 . . . n ]
On the server side, each datum is stored with the reception timestamp with the precision of milliseconds. Similarly to Equation (1), the reception stability can be analyzed using time differences of a reception timestamp.
Finally, packet loss ratio, defined as the amount of packets not received over the expected, is another relevant aspect to characterize the network stability. Calling T t e s t the test time for the sampling period T s , the number of expected packets per device, p e , can be calculated as:
p e = T t e s t T s
Let p r be the amount of packet received from one device during T t e s t time and sampling period T s , the packet loss ratio, p l , can be defined as follows:
p l ( % ) = p e p r p e · 100
As stated above, operational data for PV plants and nowcasting techniques require sub-second sampling. Based on this, the performance test was designed to analyse the following sampling periods: 500, 300, 200, 100, 50, 25, and 10 ms, with a duration of 600 s per sampling period.
Since ESP32 has the capability to perform time synchronization using Simple Network Time Protocol (SNTP) against a NTP server [39], this functionality will be used for a timestamp each datum with absolute time reference for better traceability. In this case, the Masterclock GMR5000 (Figure 6) has been used as a precision local NTP server for accurate characterization purposes, but a public or another kind of local NTP server could be used. Each mote performs a NTP synchronization after the boot up, and sets up the timer for interruptions with the UTC second changes. Under normal operation mode, NTP resynchronization is done once every 10 min to avoid noticeable time drift of the RTC timer.
In the preliminary implementations of the performance test, it was evident that the Node-RED and MariaDB branch did not work as expected: data ingestion demanded an excessively long time at sampling periods shorter than 200 ms. Consequently, for the sake of simplicity in testing and presentation of results, this branch was discarded and hence the topology shown in Figure 7 was used in the following sections.

3. Network Performance Test Results

As stated above, sampling stability, reception stability, and packet loss ratio will be analyzed. The results are presented grouped by sampling period, providing a characterization of the performance of the WSN for each working state. Figure 8 corresponds to the sampling histograms of 16 motes.
It can be inferred from the histograms of Figure 8 that the WSN motes present an excellent sampling behavior. For each sampling period, a mean deviation of 0 ms is observed thanks to the timer interrupt that avoids time drifting.
A good mote sampling stability does not imply reception stability, most especially in wireless devices. Following the procedure described in the previous section, the reception stability was analyzed based on the server reception time differences between two consecutive packets for the same device. Figure 9 shows the histograms associated with this analysis by aggregating the individual results of the 16 motes for each sampling period.
The histogram associated with the sampling period of 10 ms in Figure 9 shows a bimodal distribution. From that distribution, it can be inferred that delayed packets overlap in time with the next ones; hence, it cannot be assumed that the reception time is representative of the sample time when sampling periods are in this range.
For all the other sampling period histograms, the reception time deviation stays in a range of ±10 ms, with the highest peak at the sampling period interval bin and almost symmetrical distribution considering a bin size of 1 ms. As a special particularity, the highest probability to receive the data at requested interval ±0.5 ms is given for a sampling period of 50 ms, followed by 25 ms. These results can be counter-intuitive since it reflects a better performance at these sampling periods than at longer sampling periods, when the network is supposed to be less congested.
Another important performance aspect to analyze is the packet loss ratio. This ratio provides a quantization of packets that did not reach the end of the data flow, which is in this case the database. The cause of the packet losses could be diverse: packet not sent by the mote, mote disconnections, packet lost by the WiFi network, or even data not processed properly by the server. Figure 10 shows packet loss ratio versus sampling period.
Attending to the Figure 10, no correlation was found between sampling period and packet losses. Packet loss ratio was kept under 0.45% for all tested sampling periods, thereby being a low value with no relevant impact for WSN purposes.

4. Irradiance Field Results

The developed WSN was deployed at the rooftop of the University building in a regular 4-by-4 gridded configuration with a minimum inter-sensor distance of 5 m, covering an area of 15 × 15 m, as can be seen in Figure 11. The red circles of the figure indicate the pyranometers’ positions, while the blue one locates the router and power supply.
A monitoring campaign was done using the presented distribution on 10 February 2022 under partial cloud cover conditions. For this campaign, a sampling period of 50 ms was used—half of the 100 ms period sufficient to capture the fastest irradiance changes [22,33]—to offer a comparative of longer sampling periods. The acquired GHI time series’ values include several interesting cloud passages for analysis. One of them is represented in the 20 s time-series shown in Figure 12, which started at 12:40:22 UTC time.
The same irradiance values can be represented in a 4-by-4 matrix for each sampling time, representing the spatial distribution. This technique provides a visual representation of the irradiance field evolution, allowing a better comparison between sampling periods. Using the previous 20 s irradiance time-series, the 2D representation is shown in Figure 13. Snapshots for sampling periods of 1000, 500, 200, and 100 ms are also represented using a subsampling technique to offer a visual comparison of the evolution for several sampling periods.
Note that, for shorter sampling periods, the irradiance field evolution is captured with high detail but requires more snapshots to capture a complete ramp.
The continuation of the above time series with a total duration of one minute is shown in Figure 14. Snapshots evolution using these data and downscaling to a sampling period of 500 ms can be seen in Figure 15.
The stated results reveal the potential of the developed WSN to online monitor the irradiance field at fast sampling periods. This makes this WSN a valuable data source for PV power plants with the benefits in costs of a wireless alternative and for research to apply cloud shadow motion algorithms and nowcasting techniques.

5. Discussion

This section aims to contextualize the results of the previous two sections in relation to other studies. Assuming a certain quality of pyranometers, the key factor in evaluating the usefulness of an irradiance sensor network for nowcasting applications is the sampling period. In this aspect, the results described in Section 3 illustrating adequate performance for 50 ms—even 25 ms—can only be compared to the 40 ms in [22], and significantly outperforms the sampling rates of the WSN summarized in Table 1. In any case, the WSN is able to sample at 100 ms, which which is considered sufficient to describe the fastest changes of irradiance [22,40].
Another fundamental aspect is the capability of the network of supporting cloud motion estimation algorithms, which is critical information for irradiance nowcasting systems. Espinosa-Gavira et al. defined the relationship between sampling period, sensing area, and cloud shadow speed in [41]. This and other studies established 30 m/s as an upper limit of cloud shadow speeds for testing the operation of PV systems, since higher speeds have an extremely low occurrence [40]. Applying the equations, a cloud passage at the maximum expected speed, 30 m/s, will be registered in 5 snapshots using a 15 × 15 m gridded configuration and a sampling period of 100 ms, which should be enough to support a nowcasting system. In this sense, larger area networks and/or lower cloud speeds will be registered in more snapshots. In summary, a sampling period of 100 ms should also be sufficient for most of the monitoring systems if there are cloud motion estimation algorithms.
The WSN showed great stability of sampling and reception with a very low packet loss ratio. The motes were kept in synchronization via the NTP server, avoiding the time drift of the RTC, and enabling the contextualization of samples with absolute timestamping. It would be interesting to compare these results with other studies, but this type of characterization is generally neglected in similar research. In this sense, it would be desirable that further studies incorporate characterizations of sampling, reception, synchronicity, or packet losses to determine which is the most efficient technology for this problem.
The use of WSN to provide additional information for PV system control has proven to be a feasible solution using NI-WSN [24] or ZigBee [42], although, in these cases, the networks were mainly focused on power measurements. According to the results in [26], the application of these technologies—both based in the IEEE 802.15.4 standard—to irradiance measurement would encounter problems in achieving sampling periods of 100 ms and the required level of synchronization. In fact, in [24], the IEEE 1588 Precision Time Protocol (PTP) standard is used to guarantee synchronization, with a consequent increase in system complexity, but maintaining a 10 s sampling period. LoRaWAN could represent another communication option, but its maximum data rate is below the IEEE 802.15.4 standard, being only able to achieve sub-second sampling under very favorable conditions [43]. In this framework, the use of WiFi with NTP synchronization represents an adequate option to achieve the requirements of an irradiance monitoring system for nowcasting applications, with options of scalability by adding new routers without performance penalties.
The ESP32 has demonstrated to be an IoT device capable of performing outdoor monitoring using WiFi [44,45]. For two weeks, the WSN was deployed on the university building rooftop under variable weather conditions, showing no appreciable difference in performance.

6. Conclusions

This study deals with the design and testing of an online wireless irradiance sensor network capable of providing real-time data to support PV systems operations and irradiance nowcasting. The WiFi protocol has been chosen with the objective of maximizing spatial coverage with sufficient bandwidth to achieve the most demanding requirements of research irradiance monitoring networks, while providing flexibility to add new motes or spatially move existing ones without economic impact. The designed wireless network proved its capability to achieve sampling periods up to 25 ms with good coordination and very low packet loss ratio, thus clearly outperforming the period of 100 ms that is considered enough to detect the fastest expected irradiance phenomena. Irradiance data of a monitoring campaign was spatially represented, showing that the system was able to capture detailed features of the irradiance field and its evolution. It was also discussed how the network measurement capabilities should be enough to capture even the fastest clouds and to be adapted to different extensions. The availability of this information with a low latency makes this monitoring system a valuable tool for a wide range of PV systems control and future research. Analysis of the mote side showed that the devices have enough computing power to overpass the most demanding test, as shown in Figure 8. On the server side, samples have a good behavior for a sampling period of 25 ms with good stability and packet loss ratio lower than 0.45% Based on the test conducted and results, the designed WSN is capable of achieving comparable specification to a state-of-the art irradiance monitoring network with the advantages in costs of the wireless technology.
Future work will improve the designed WSN by replacing the external power supply for a small PV panel and a battery pack to provide fully autonomous wireless features. Data collected by the WSN will be used to apply cloud motion estimation algorithms, nowcasting techniques, and how collaborative nearby irradiance networks could improve forecasting skills.

Author Contributions

M.J.E.-G. and A.A.-P. designed and tested the WSN, wrote the article, processed the data acquired from the WSN, generated images and tables, and deployed the WSN for the monitoring campaign J.M.S.-F. provided a contextualization of IoT protocols and managed the order of sensors and electronics. J.J.G.d.-l.-R. reviewed the writing and the English expressions A.A.-P. and J.J.G.d.-l.-R. contributed to the funding acquisition in the framework of a national research project. J.C.P.-S. and O.F.-O. performed the statistical analysis of WSN performance. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Spanish Ministry of Science and Innovation Grant No. PID2019-108953RB-C21. The authors would like to thank the Andalusian Government for funding the Research Unit PAIDI-TIC-168.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Code 1. Simplified Telegraf configuration file used for performance tests.
[agent]
interval="5s"
round_interval=true
metric_buffer_limit=10000
flush_buffer_when_full=true
collection_jitter="0s"
flush_interval="1s"
flush_jitter="0s"
 
[[outputs.influxdb]]
urls=["http://127.0.0.1:8086"]
database="influx"
precision="ms"
timeout="5s"
 
[[inputs.mqtt_consumer]]
servers=["tcp://127.0.0.1:1883"]
topics=["ESP32/#",]
data_format="value"

References

  1. IEA. Snapshot of Global PV Markets 2021. pp. 1–21. Available online: www.Iea-Pvps.Org (accessed on 14 March 2022).
  2. Eltawil, M.; Zhao, Z. Grid-connected photovoltaic power systems: Technical and potential problems-A review. Renew. Sustain. Energy Rev. 2010, 14, 112–129. [Google Scholar] [CrossRef]
  3. Sukumar, S.; Marsadek, M.; Agileswari, K.; Mokhlis, H. Ramp-rate control smoothing methods to control output power fluctuations from solar photovoltaic (PV) sources-A review. J. Energy Storage 2018, 20, 218–229. [Google Scholar] [CrossRef]
  4. Shivashankar, S.; Mekhilef, S.; Mokhlis, H.; Karimi, M. Mitigating methods of power fluctuation of photovoltaic (PV) sources—A review. Renew. Sustain. Energy Rev. 2016, 59, 1170–1184. [Google Scholar] [CrossRef]
  5. Chen, X.; Du, Y.; Wen, H.; Jiang, L.; Xiao, W. Forecasting-Based Power Ramp-Rate Control Strategies for Utility-Scale PV Systems. IEEE Trans. Ind. Electron. 2019, 66, 1862–1871. [Google Scholar] [CrossRef]
  6. Chen, X.; Du, Y.; Xiao, W.; Lu, S. Power ramp-rate control based on power forecasting for PV grid-tied systems with minimum energy storage. In Proceedings of the IECON 2017—43rd Annual Conference of the IEEE Industrial Electronics Society, Beijing, China, 29 October–1 November 2017; pp. 2647–2652. [Google Scholar] [CrossRef]
  7. Ahmed, R.; Sreeram, V.; Mishra, Y.; Arif, M. A review and evaluation of the state-of-the-art in PV solar power forecasting: Techniques and optimization. Renew. Sustain. Energy Rev. 2020, 124, 109792. [Google Scholar] [CrossRef]
  8. Theo, W.L.; Lim, J.S.; Ho, W.S.; Hashim, H.; Lee, C.T. Review of distributed generation (DG) system planning and optimisation techniques Comparison of numerical and mathematical modelling methods. Ren. Sustain. Energy Rev. 2017, 67, 531–573. [Google Scholar] [CrossRef]
  9. Samu, R.; Calais, M.; Shafiullah, G.; Moghbel, M.; Shoeb, M.A.; Nouri, B.; Blum, N. Applications for solar irradiance nowcasting in the control of microgrids: A review. Renew. Sustain. Energy Rev. 2021, 147, 111187. [Google Scholar] [CrossRef]
  10. Yang, D.; Kleissl, J.; Gueymard, C.A.; Pedro, H.T.C.; Coimbra, C.F.M. History and trends in solar irradiance and PV power forecasting: A preliminary assessment and review using text mining. Sol. Energy 2018, 168, 60–101. [Google Scholar] [CrossRef]
  11. Alonso-Montesinos, J.; Batlles, F.; Portillo, C. Solar irradiance forecasting at one-minute intervals for different sky conditions using sky camera images. Energy Convers. Manag. 2015, 105, 1166–1177. [Google Scholar] [CrossRef]
  12. Scolari, E.; Sossan, F.; Haure-Touzé, M.; Paolone, M. Local estimation of the global horizontal irradiance using an all-sky camera. Sol. Energy 2018, 173, 1225–1235. [Google Scholar] [CrossRef]
  13. Schmidt, T.; Kalisch, J.; Lorenz, E.; Heinemann, D. Evaluating the spatio-temporal performance of sky-imager-based solar irradiance analysis and forecasts. Atmos. Chem. Phys. 2016, 16, 3399–3412. [Google Scholar] [CrossRef] [Green Version]
  14. Hoff, T.; Perez, R. Quantifying PV power Output Variability. Sol. Energy 2010, 84, 1782–1793. [Google Scholar] [CrossRef]
  15. Chen, X.; Du, Y.; Lim, E.; Wen, H.; Yan, K.; Kirtley, J. Power ramp-rates of utility-scale PV systems under passing clouds: Module-level emulation with cloud shadow modeling. Appl. Energy 2020, 268, 114980. [Google Scholar] [CrossRef]
  16. National Renewable Energy Laboratory (NREL). Oahu Solar Measurement Grid. 2021. Available online: https://midcdmz.nrel.gov/apps/sitehome.pl?site=OAHUGRID (accessed on 17 December 2021).
  17. World Data Center for Climate (WDCC) at DKRZ. HD(CP)2 Short Term Observation Data of Pyranometer Network, HOPE-Melpitz Campaign by TROPOS. 2021. Available online: https://cera-www.dkrz.de/WDCC/ui/cerasearch/entry?acronym=HOPM_TROP_PYRNET (accessed on 17 December 2021).
  18. Julien, S.; Sajadi, A.; Hodge, B.M.S. Hierarchical Control of Utility-Scale Solar PV Plants for Mitigation of Generation Variability and Ancillary Service Provision. IEEE Trans. Sustain. Energy 2022. [Google Scholar] [CrossRef]
  19. Ranalli, J.; Peerlings, E.E. Cloud advection model of solar irradiance smoothing by spatial aggregation. J. Renew. Sustain. Energy 2021, 13, 033704. [Google Scholar] [CrossRef]
  20. Monger, S.H.; Morgan, E.R.; Dyreson, A.R.; Acker, T.L. Applying the kriging method to predicting irradiance variability at a potential PV power plant. Renew. Energy 2016, 86, 602–610. [Google Scholar] [CrossRef]
  21. Schenk, H.; Hirsch, T.; Wittmann, M.; Wilbert, S.; Keller, L.; Prahl, C. Design and Operation of an Irradiance Measurement Network. Energy Procedia 2015, 69, 2019–2030. [Google Scholar] [CrossRef] [Green Version]
  22. Torres Lobera, D.; Mäki, A.; Huusari, J.; Lappalainen, K.; Suntio, T.; Valkealahti, S. Operation of TUT solar pv power station research plant under partial shading caused by snow and buildings. Int. J. Photoenergy 2013, 2013, 837310. [Google Scholar] [CrossRef]
  23. Achleitner, S. SIPS: Solar Irradiance Prediction System. In Proceedings of the IPSN-14 Proceedings of the 13th International Symposium on Information Processing in Sensor Networks, Berlin, Germany, 15–17 April 2014; pp. 225–236. [Google Scholar] [CrossRef]
  24. Moreno-Garcia, I.M.; Palacios-Garcia, E.J.; Pallares-Lopez, V.; Santiago, I.; Gonzalez-Redondo, M.J.; Varo-Martinez, M.; Real-Calvo, R.J. Real-Time Monitoring System for a Utility-Scale Photovoltaic Power Plant. Sensors 2016, 16, 770. [Google Scholar] [CrossRef] [Green Version]
  25. Yang, D. On adding and removing sensors in a solar irradiance monitoring network for areal forecasting and PV system performance evaluation. Sol. Energy 2017, 155, 1417–1430. [Google Scholar] [CrossRef]
  26. Espinosa-Gavira, M.J.; Agüera-Pérez, A.; de la Rosa, J.J.G.; Palomares-Salas, J.C.; Sierra-Fernández, J.M. An online low-cost irradiance monitoring network with sub-second sampling adapted to small-scale PV systems. Sensors 2018, 18, 3405. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  27. Pereira, R.I.; Jucá, S.C.; Carvalho, P.C. IoT embedded systems network and sensors signal conditioning applied to decentralized photovoltaic plants. Measurement 2019, 142, 195–212. [Google Scholar] [CrossRef]
  28. Chen, X.; Du, Y.; Lim, E.; Wen, H.; Jiang, L. Sensor network based PV power nowcasting with spatio-temporal preselection for grid-friendly control. Appl. Energy 2019, 255, 113760. [Google Scholar] [CrossRef]
  29. Pal, A. EPIC-RoofNet: A Sensor Network Testbed for Solar Irradiance Measurement and Analysis. In Proceedings of the 2020 16th International Conference on Distributed Computing in Sensor Systems (DCOSS), Marina del Rey, CA, USA, 25–27 May 2020; pp. 147–150. [Google Scholar] [CrossRef]
  30. Lappalainen, K.; Valkealahti, S. Experimental study of the maximum power point characteristics of partially shaded photovoltaic strings. Appl. Energy 2021, 301, 117436. [Google Scholar] [CrossRef]
  31. Lorenz, E.; Guthke, P.; Dittmann, A.; Holland, N.; Herzberg, W.; Karalus, S.; Müller, B.; Braun, C.; Heydenreich, W.; Saint-Drenan, Y.M. High resolution measurement network of global horizontal and tilted solar irradiance in southern Germany with a new quality control scheme. Sol. Energy 2022, 231, 593–606. [Google Scholar] [CrossRef]
  32. Mazzola, S.; Vergara, C.; Astolfi, M.; Li, V.; Perez-Arriaga, I.; Macchi, E. Assessing the value of forecast-based dispatch in the operation of off-grid rural microgrids. Renew. Energy 2017, 108, 116–125. [Google Scholar] [CrossRef]
  33. Lappalainen, K.; Valkealahti, S. Recognition and modelling of irradiance transitions caused by moving clouds. Sol. Energy 2015, 112, 55–67. [Google Scholar] [CrossRef]
  34. Pazikadin, A.R.; Rifai, D.; Ali, K.; Mamat, N.H.; Khamsah, N. Design and implementation of fuzzy compensation scheme for temperature and solar irradiance wireless sensor network (Wsn) on solar photovoltaic (pv) system. Sensors 2020, 20, 6744. [Google Scholar] [CrossRef]
  35. Rocha, A.B.d.; Fernandes, E.d.M.; Santos, C.A.C.d.; Diniz, J.M.T.; Junior, W.F.A. Development of a Real-Time Surface Solar Radiation Measurement System Based on the Internet of Things (IoT). Sensors 2021, 21, 3836. [Google Scholar] [CrossRef]
  36. Ray, P.P. A survey on Internet of Things architectures. J. King Saud Univ.-Comput. Inf. Sci. 2018, 30, 291–319. [Google Scholar] [CrossRef] [Green Version]
  37. Analog to Digital Converter - Espressif ESP-IDF Programming Guide for ESP32. Available online: https://docs.espressif.com/projects/esp-idf/en/v4.2/esp32/api-reference/peripherals/adc.html (accessed on 16 October 2021).
  38. Carducci, C.G.C.; Monti, A.; Schraven, M.H.; Schumacher, M.; Mueller, D. Enabling ESP32-based IoT Applications in Building Automation Systems. In Proceedings of the 2019 IEEE International Workshop on Metrology for Industry 4.0 and IoT (MetroInd 4.0 and IoT), Naples, Italy, 4–6 June 2019; pp. 306–311. [Google Scholar] [CrossRef]
  39. System Time—SNTP Time Synchronization—Espressif ESP-IDF Programming Guide for ESP32. Available online: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system_time.html#sntp-time-synchronization (accessed on 10 January 2021).
  40. Lappalainen, K.; Valkealahti, S. Analysis of shading periods caused by moving clouds. Sol. Energy 2016, 135, 188–196. [Google Scholar] [CrossRef]
  41. Espinosa-Gavira, M.J.; Agüera-Pérez, A.; Palomares-Salas, J.C.; de-la Rosa, J.J.G.; Sierra-Fernández, J.M.; Florencias-Oliveros, O. Cloud motion estimation from small-scale irradiance sensor networks: General analysis and proposal of a new method. Sol. Energy 2020, 202, 276–293. [Google Scholar] [CrossRef]
  42. Hu, T.; Zheng, M.; Tan, J.; Zhu, L.; Miao, W. Intelligent photovoltaic monitoring based on solar irradiance big data and wireless sensor networks. Ad Hoc Networks 2015, 35, 127–136. [Google Scholar] [CrossRef]
  43. Adelantado, F.; Vilajosana, X.; Tuset-Peiro, P.; Martinez, B.; Melia-Segui, J.; Watteyne, T. Understanding the Limits of LoRaWAN. IEEE Commun. Mag. 2017, 55, 34–40. [Google Scholar] [CrossRef] [Green Version]
  44. Glória, A.; Dionisio, C.; Simões, G.; Cardoso, J.; Sebastião, P. Water Management for Sustainable Irrigation Systems Using Internet-of-Things. Sensors 2020, 20, 1402. [Google Scholar] [CrossRef] [Green Version]
  45. García, L.; Parra, L.; Jimenez, J.M.; Parra, M.; Lloret, J.; Mauri, P.V.; Lorenz, P. Deployment Strategies of Soil Monitoring WSN for Precision Agriculture Irrigation Scheduling in Rural Areas. Sensors 2021, 21, 1693. [Google Scholar] [CrossRef]
Figure 1. Comparison between ESP32 embed ADC and the external ADC ADS1115.
Figure 1. Comparison between ESP32 embed ADC and the external ADC ADS1115.
Sensors 22 02928 g001
Figure 2. Electronics box diagram of one mote of the WSN.
Figure 2. Electronics box diagram of one mote of the WSN.
Sensors 22 02928 g002
Figure 3. Inside and outside looking of the mote prototype. (a) Elements inside the box with Voltage Regulator (marked as Vreg); (b) box and pyranometer.
Figure 3. Inside and outside looking of the mote prototype. (a) Elements inside the box with Voltage Regulator (marked as Vreg); (b) box and pyranometer.
Sensors 22 02928 g003
Figure 4. Node-RED data flow.
Figure 4. Node-RED data flow.
Sensors 22 02928 g004
Figure 5. Initial network topology. Black dots refer to other motes devices.
Figure 5. Initial network topology. Black dots refer to other motes devices.
Sensors 22 02928 g005
Figure 6. GMR5000 (from Masterclock Inc., St Charles, MO, USA) as an NTP local server used for time syncing.
Figure 6. GMR5000 (from Masterclock Inc., St Charles, MO, USA) as an NTP local server used for time syncing.
Sensors 22 02928 g006
Figure 7. Final network topology.
Figure 7. Final network topology.
Sensors 22 02928 g007
Figure 8. Sampling histograms for each sampling period tested. Each Sampling Period (SP) is indicated in the histogram title (ag).
Figure 8. Sampling histograms for each sampling period tested. Each Sampling Period (SP) is indicated in the histogram title (ag).
Sensors 22 02928 g008
Figure 9. Histogram of reception time difference for each sampling period, indicated in the histogram title (ag).
Figure 9. Histogram of reception time difference for each sampling period, indicated in the histogram title (ag).
Sensors 22 02928 g009
Figure 10. Packet loss ratio versus tested sampling periods.
Figure 10. Packet loss ratio versus tested sampling periods.
Sensors 22 02928 g010
Figure 11. WSN deployed at the rooftop of the University building. Red circles indicate pyranometers, and the blue circle locates the position of the router and AC–DC power supply.
Figure 11. WSN deployed at the rooftop of the University building. Red circles indicate pyranometers, and the blue circle locates the position of the router and AC–DC power supply.
Sensors 22 02928 g011
Figure 12. 20 s of 16 irradiance time series captured from WSN on 10 February 2022 starting at 12:40:22 UTC time.
Figure 12. 20 s of 16 irradiance time series captured from WSN on 10 February 2022 starting at 12:40:22 UTC time.
Sensors 22 02928 g012
Figure 13. Snapshots evolution from data represented in Figure 12. Each row represents the evolution at different sampling periods.
Figure 13. Snapshots evolution from data represented in Figure 12. Each row represents the evolution at different sampling periods.
Sensors 22 02928 g013
Figure 14. 60 s of 16 irradiance time series captured from WSN on 10 February 2022 starting at 12:40:22 UTC time.
Figure 14. 60 s of 16 irradiance time series captured from WSN on 10 February 2022 starting at 12:40:22 UTC time.
Sensors 22 02928 g014
Figure 15. 60 s of snapshots evolution at 500 ms from time series shown in Figure 14 acquired with the designed WSN. Each row represents 10 seconds of the evolution.
Figure 15. 60 s of snapshots evolution at 500 ms from time series shown in Figure 14 acquired with the designed WSN. Each row represents 10 seconds of the evolution.
Sensors 22 02928 g015
Table 1. Irradiance sensor networks.
Table 1. Irradiance sensor networks.
Ref.YearSampling PeriodN Pyran.Area (Approx.)Online?/Technology?
[22]201340 ms2150 m × 50 mNo
[23]20145 s19400 m × 500 m (5 buildings)Yes/IEEE 802.15.4—ZigBee
[21]20151 s20350 m × 280 m (gridded)No
[24]201610 s3200 m × 130 mYes/IEEE 802.15.4—NI WSN
[20]20171 s481.5 km × 1.5 km (gridded)No
[25]20171 s (avg 1 min)2442 km × 23 kmNo
[26]20180.5 s1615 m × 15 m (gridded)Yes/IEEE 802.15.4—ZigBee
[27]20191 min215 km (distance)Yes/WiFi+IoT
[28]20191 s5200 m × 200 m (5 buildings)Yes/LoRa
[29]20205 min10100 m × 50 mYes/IEEE 802.15.4 MAC
[19]20211 s502 km × 2 kmNo
[30]20210.1 s2125 m × 50 mNo
[31]20221 s (avg 1 min)40200 m × 200 kmYes/Mobile network
[18]20221 s171 km × 1 kmNo
Table 2. Comparative of main Wireless IoT communication protocol: Bluetooth, LoRa, ZigBee, and Wi-Fi. Simplification made from [36]: Table 2.
Table 2. Comparative of main Wireless IoT communication protocol: Bluetooth, LoRa, ZigBee, and Wi-Fi. Simplification made from [36]: Table 2.
TechnologyBluetoothLoRaZigBeeWiFi
StandardIEEE 802.15.1LoRaWANIEEE 802.15.4IEEE 802.11 a/c/b/d/g/n
Frequency band2.4–60 GHz868/900 MHz868/915 MHz; 2.4 GHz2.4–60 GHz
Data rate1–24 Mb/s0.3–50 kb/s40–250 kb/s1 Mb/s–6.75 Gb/s
Typical range10 m30 km10–100 m100 m
Table 3. Comparison of main ALP for IoT messaging.
Table 3. Comparison of main ALP for IoT messaging.
Specification∖ProtocolMQTTCoAPAMQPHTTP
Transport layerTCPUDPTCPTCP
Min. header size2 Bytes4 Bytes8 Bytes26 Bytes
QoS/Reliability3 Levels2 Levels2 LevelsLimited
M2M/IoT usageLargestMediumHighLow
Table 4. Main specifications of the pyranometer SP-214 (Apogee Instruments, Inc., Logan, UT, USA).
Table 4. Main specifications of the pyranometer SP-214 (Apogee Instruments, Inc., Logan, UT, USA).
SpecificationValue
Power supply range7–24 V DC
Output range4–20 mA
Calibration factor125 W/m 2 per mA + 4 mA offset
Sensibility0.008 mA per W/m 2
Measurement range0–2000 W/m 2
Nonlinearity<1% (up to 2000 W/m 2 )
Response time<1 ms
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Espinosa-Gavira, M.J.; Agüera-Pérez, A.; Sierra-Fernández, J.M.; González de-la-Rosa, J.J.; Palomares-Salas, J.C.; Florencias-Oliveros, O. Design and Test of a High-Performance Wireless Sensor Network for Irradiance Monitoring. Sensors 2022, 22, 2928. https://doi.org/10.3390/s22082928

AMA Style

Espinosa-Gavira MJ, Agüera-Pérez A, Sierra-Fernández JM, González de-la-Rosa JJ, Palomares-Salas JC, Florencias-Oliveros O. Design and Test of a High-Performance Wireless Sensor Network for Irradiance Monitoring. Sensors. 2022; 22(8):2928. https://doi.org/10.3390/s22082928

Chicago/Turabian Style

Espinosa-Gavira, Manuel Jesús, Agustín Agüera-Pérez, José María Sierra-Fernández, Juan José González de-la-Rosa, José Carlos Palomares-Salas, and Olivia Florencias-Oliveros. 2022. "Design and Test of a High-Performance Wireless Sensor Network for Irradiance Monitoring" Sensors 22, no. 8: 2928. https://doi.org/10.3390/s22082928

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