Next Article in Journal
Construction of Analogy Indicator System and Machine-Learning-Based Optimization of Analogy Methods for Oilfield Development Projects
Previous Article in Journal
Methods for Measuring and Computing the Reference Temperature in Newton’s Law of Cooling for External Flows
Previous Article in Special Issue
Novel Hybrid Islanding Detection Technique Based on Digital Lock-In Amplifier
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Study on the Effect of Sampling Frequency on Power Quality Parameters in a Real Low-Voltage DC Microgrid

by
Juan J. Pérez-Aragüés
*,† and
Miguel A. Oliván
*,†
CIRCE Technology Centre, 50018 Zaragoza, Spain
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Energies 2025, 18(15), 4075; https://doi.org/10.3390/en18154075 (registering DOI)
Submission received: 9 June 2025 / Revised: 24 July 2025 / Accepted: 30 July 2025 / Published: 31 July 2025
(This article belongs to the Special Issue Power Electronics and Power Quality 2025)

Abstract

In recent years, DC grids have gained traction, and several proposals regarding measuring strategies and several Power Quality (PQ) parameters have been defined to be used in such networks that differ from traditional AC power grids. As a complement to all this preliminary work, this study on the effect of modifying the sampling frequency on some of those parameters has been conducted. For time series evaluation of mean and RMS voltage values, the Dynamic Time Warping (DTW) algorithm has been used. Additionally, the consequence of varying the sampling rate in voltage event detection has also been analysed. As a result, relevant advice regarding sampling frequency is presented in this paper for an effective and optimum evaluation of RMS or mean voltage values and its implementation in detecting voltage events (dips or swells). At least for the parameters in the monitored DC microgrid, a clue for the minimum sampling rate that guarantees accurate measurements is found.

1. Introduction

Nowadays, DC networks are greatly increasing their presence and relevance due to the intense deployment of distributed generation (generally associated with renewable energies) as well as the operation of electronic appliances in microgrids integrating storage devices or bidirectional vehicle-to-grid (V2G) chargers.
However, standardization of Power Quality (PQ) assessment for DC systems is still an ongoing process. Up to now, very few, timid attempts have been developed in this sense, like a recently published technical report [1], which collected some previous experience in order to make recommendations for standardization of LV DC systems.
On one hand, some efforts have been made to define and measure PQ indices suited for specific purposes such as DC railway systems [2]. On the other hand, several PQ parameters, adapted from AC PQ definitions, have been proposed to characterize DC systems, such as voltage fluctuations, voltage dips and interruptions, and rapid voltage changes and ripple [3,4].
The EMPIR (European Metrology Programme for Innovation and Research) project ‘20NRM03 DC grids’ aimed to contribute to this knowledge by providing additional insights from the analysis of simulations and measurements, as well as test benches for calibration and validation among different partners.
For this purpose, as a first step, some real LV DC grids were monitored to gather a significant amount of data [5]. As a result of the project, several considerations have been made regarding measuring strategies, and also related PQ parameters have been defined, specifically to be used in such networks that differ from traditional AC power grids [6].
The obtained results of those measurements have been analysed covering different DC network topologies, such as an experimental smart grid integrating several technologies [7], a configurable urban microgrid with photovoltaic (PV) generation and LED lights [8], some joints of electrical vehicles (EVs) and charging stations [9], and an open parking garage combining PV generation, EV charging stations, and LED lamps [10].
In all those articles, the initially selected sampling frequency remained fixed for the whole analysis, and no studies were realized in order to evaluate its convenience for the specific desired purpose. Specifically, the contribution of this article is to deal with this important issue due to its impact on the selection of measurement devices and sensors, as well as the size of the required processor and memory needs.
In addition to experimental measurements, some theoretical tests have been carried out, generating laboratory signals that were sampled at 6.4 kHz [3,11] or using Wavelets at eight sampling frequencies over synthetic signals with three levels of white Gaussian noise [12]. In this last case, the analysed frequencies range from 3.2 to 30 kHz.
For a whole period of two weeks, in the monitored DC microgrid firstly voltage signal was continuously recorded at a sampling rate of 200 kHz. Later, this highest frequency was subsampled, with an anti-aliasing filter, into eight additional frequencies: 100, 50, 25, 10, 5, 4, 2, and 1 kHz. The finally obtained database (507 Gb compressed) constitutes the input of the analysed algorithms in Section 4 and Section 5.
The remainder of this paper is as follows: Section 2 defines the DC PQ parameters subsequently used; Section 3 describes the monitored DC microgrid and data acquisition arrangement; Section 4 presents initial results for mean and RMS voltage values, after applying DTW analysis; and Section 5 strengthens these outcomes by their application to voltage event detection.

2. DC PQ Parameter Definition

When evaluating PQ in a DC grid, the first parameter to be assessed should be the value of voltage magnitude. For its calculation, two alternative formulas can be used:
U m e a n = 1 N i = 1 N u i
U R M S = 1 N i = 1 N u i 2
where u i represents the voltage sampling values and N is the number of computed sampling values, which depends on the sampling frequency and the period of calculation or measurement window.
In accordance with the prescription of IEC 61000-4-30 [13] regarding AC measurements for 50 Hz systems, the time window for these calculations should be established as 20 ms (for event detection), being refreshed every 10 ms (if class A requirements are applied). Later, aggregation periods will be applied over 200 ms (10 times 20 ms windows), 3 s (15 times 200 ms windows) and 10 min (in coincidence with every UTC re-synchronization).
Theoretically, in an ideal DC grid, both results (mean and RMS values) might be identical, but, in the real world, their difference may be used to calculate the value of voltage ripple [1,14], which represents a measurement of the deviation of the voltage signal from the average:
U r i p p l e = U r m s 2 U m e a n 2
In an analogous way, it is possible to define current ripple, and this index was also studied in [8,10].
Regarding frequency analysis, analogously to (inter-)harmonic calculation in AC grids, the Fast Fourier Transform (FFT) algorithm at a resolution of 5 Hz (using 200 ms measurement windows) might be suggested for frequencies up to 2 kHz, changing to 200 Hz for higher frequencies up to 150 kHz ([13,15]). Some results of applying this analysis in a DC grid were already presented in previously referenced articles [8,10].
As a guide, a correspondence list among DC and AC PQ parameters is presented in Table 1.

3. Microgrid Experimental Setup

This section describes the elements of a DC microgrid, their configuration, and the general behaviour of the grid. In addition, it also describes the data acquisition setup, the acquisition criteria, and the software implementation.

3.1. DC Microgrid Description

The microgrid considered in this work is part of Malaga Smart City [16], located in the south of Spain and already presented in [7].
It consists of the following elements: 1 small wind turbine (600 W), 9 micro-wind turbines (300 W), 1 PV power plant (9 kWp), 10 street lamps with PV panels (950 Wp in total), Pb batteries (30 kWh in total), 1 super-capacitor power bank (20 kW), and 1 V2G charger (10 kW).
The DC microgrid is connected to the external AC grid by three single-phase Schneider Conext XW+ 8548 E [17]. They are sine-wave inverter/chargers with a self-contained DC-to-AC inverter, battery charger, and integrated AC transfer switches. Additionally to these inverters, the microgrid DC bus consists of five Schneider Conext MPPT 60 Solar controllers [18], used for tracking the maximum power point of the PV arrays to deliver the maximum available current to the DC bus. The inverters and MPPT devices are connected via Modbus and configured to form a DC bus of 48 V. In addition to this, the inverters are configured to export the power extracted by the MPPT to the external AC grid once the Pb batteries are charged.
As is explained later in Section 4, this microgrid presents a different behaviour at night than during daylight hours due to the generation with PV panels and connection or disconnection of DC/AC inverters. This operation might be smoothened and improved using an energy management system (EMS) based on adaptive fuzzy control techniques, similar to the case presented in [19].
A simplified schematic diagram of this microgrid can be seen in Figure 1.
At the time of the measurements of this work, the devices were configured in such a way that all the PV power generated was exported. With this configuration in mind, the DC bus had power flux only during daylight hours.
In Appendix A, statistical analysis of mean voltage behaviour along the measurement campaign is presented.

3.2. Data Acquisition Strategy, Setup, and Software

The data acquisition chain was designed to digitize the voltage of the bus. It was also able to obtain the voltage of AC side of the same inverter in order to study a possible correlation between AC PQ parameters and DC PQ indices [7], but the AC side was not digitized for this work.
An NI PXIe 1071 chassis was used for this purpose, with three PXI boards inside: two PXIe-6124 data acquisition boards [20], each one with four simultaneous sampling analogue channels (16 bits, up to 4 MHz), and one PCIe-8381 for PXI/PCI connection. The system was based on an Intel i5-11400 processor with six cores (12 threads) and 128 Gb RAM memory running Ubuntu 20.04.4 LTS as the operating system. The associated measurement instrumentation also includes high-accuracy Hioki P9000-01 voltage probes [21].
Some calculations regarding measurement accuracy are included in Appendix B. According to these, the total error of voltage measurement may be estimated at 25.32 mV.
In the case of the work presented here, the aim was to characterize the PQ parameters of this microgrid without the possible bias of events based on DC triggering. The data acquisition software was based on a previous version used to test real-time trigger strategies for DC [7], written in Python 3 and using the nidaqmx [22] package. It was modified to fulfil the previous requisites by changing the acquisition criteria and the output format.
First, the continuous mode was configured. Second, a compression process with gzip library [23] was applied to the data before storing it in the hard drive. The higher sampling rate was selected to be 200 kHz due to technical limitations: the hard disk size, the objective of taking data for two weeks, and the low-bandwidth Internet connection to the microgrid. The acquisition system only stored DC voltage in order to save space.
The final data presented here is the result of data acquired from 1st to 15th of August, 2023 in continuous mode.

4. DTW Analysis

Dynamic Time Warping (DTW) is an algorithm for measuring the similarity between two time series, even if they are not synchronized [24]. In this work, this tool has been used to compare differences in temporal sequences with different sampling frequencies from the higher (reference) sampling rate in order to have a metric of similarity. Thereby, these results are used to find the effect of downsampling in PQ parameter computation.
In general, DTW is a method that calculates an optimal match between two given sequences, according to the following rules:
  • Boundary condition: The first index from the first sequence must be matched with the first index from the other sequence, and the last index from the first sequence must be matched with the last index from the other sequence.
  • Monotonicity condition: The mapping of the indices from both sequences must be monotonically increasing.
  • Step condition: Every index from the one sequence must be matched with one or more indices from the other sequence, but in this case steps are limited to avoid long jumps (shifts in time) in the path.
The optimal match is denoted by the outcome that satisfies all above conditions and provides the minimum sum value of absolute differences between both sequences. The algorithm gives as a result an optimal warping path.
In this work, the dtw-python package [25,26] was used. The parameter to compute the best match was the warp area, i.e., the area between the warping function and the diagonal (no-warping) path: the lower the warp area the more compatible the compared sequences.
The warp area has been computed using the temporal sequences of mean values and RMS computed in windows of 20 ms every 10 ms, as described in Section 2. These sequences have been calculated with different sampling frequencies (from 1 to 100 kHz) to see how the warp area behaves when that frequency is decreased.
The sequence introduced to the DTW algorithm was formed by taking one of these values per second in order to have a sequence of 3600 values in an hour. This was performed to reduce the computation time of each DTW invocation, given the very high computational complexity of the algorithm ( O ( N 2 ) , where N is the sequence size).
It has to be noted that response times of the effects observed in the events of the microgrid (see Section 5) are of the order of seconds. For this reason, a time series with values every second is considered representative enough to for the DTW algorithm to be able to reconstruct the temporal sequence without losing information.
To illustrate this technique, two examples of DTW results are presented for 1 kHz (‘query index’) against 200 kHz (‘reference index’) at two different hours that present quite different trends. In Figure 2, obtained at 7 am UTC, DTW analysis shows a very good correspondence between frequencies; meanwhile in Figure 3, obtained at 12 pm UTC, DTW analysis shows a clearly worse correspondence between the two.
Consequently, the resulting warp area in Figure 2 is smaller than the area in Figure 3. These two different intervals were selected taking into account the temporal grid behaviour described in Appendix A.
Numerical results of applying DTW algorithm on the mean and RMS voltage are available to be consulted in Appendix C. The same analysis was also tried for voltage ripple, but the obtained results applying this technique were not significant enough to draw conclusions. A lower variation in this PQ parameter throughout the day made the use of this algorithm more difficult.
The following graphs show the warp area for mean voltage values from sequences at different sampling rates that are computed against the reference frequency of 200 kHz, split in two ranges of sampling frequency: from 1 to 5 kHz (Figure 4) and from 10 to 100 kHz (Figure 5).
In a similar way, the warp area on RMS voltage values from sequences at different sampling rates computed against the reference frequency of 200 kHz are presented in two different graphs, spanning the same intervals: from 1 to 5 kHz (Figure 6) and from 10 to 100 kHz (Figure 7).
Analysing all previous results, it can be concluded that the DTW correlation among frequencies presents a more scattered behaviour at night than during daylight hours (approx. from 6 am to 6 pm UTC), both for mean and RMS voltage values.
This may be explained under the assumption of white noise presence during the period in which solar panels and DC/AC inverters do not work due to the lack of PV generation. Conversely, the DC bus presents features when the PV generation starts and stops that help the DTW algorithm to find the optimum path.
In addition to this, lower sampling frequencies (around 1 kHz) are clearly insufficient for a proper calculation of these values; intermediate sampling frequencies (5–10 kHz) offer a similar performance, but only higher frequencies (25–100 kHz) guarantee more accurate results.
In Figure 8, a detail view of mean voltage values at higher frequencies (10–100 kHz) is included just for sunlight hours (6–18 UTC), which are the ones in which the whole set of PV sources and inverters will actually be operating.
Similarly to the mean value case, in Figure 9 a detailed view of RMS voltage values at higher frequencies (10–100 kHz) is included just for hours considered as real ‘working hours’ due to the coincidence of solar generation and inverter operation (6–18 UTC).
It can be finally concluded that using a sampling frequency of 25 kHz proves to be a very advisable choice when evaluating mean or RMS voltage values, achieving an adequate accuracy without increasing the computing rate unnecessarily.

5. Voltage Event Detection

Voltage events are unpredictable phenomena that may appear due to changes in the balance between generation and consumption or, sporadically, be caused by faults in the electric grid.
Reference international standards address how to evaluate them in AC systems ([27,28]) by means of two parameters: duration (difference between starting and ending times) and the maximum or minimum RMS voltage reached during their occurrence.
If the RMS voltage goes over a multiplying factor of the reference value (generally, rated voltage), then the event is called ‘swell’; if the RMS voltage is below a percentage of that reference value, then the event is referred to as ‘dip’ or ‘sag’.
However, dips deeper than a 5–10 % are considered as ‘interruptions’. A hysteresis interval is generally used to avoid counting more than one event when voltage is oscillating close to the corresponding threshold.
The duration of these events may range from just 10 ms to several seconds or even minutes. Anyway, the IEEE standard [29] renames them, if longer than 1 min (but shorter than 10 min), as ‘undervoltages’ and ‘overvoltages’, instead of dips/sags and swells, respectively.
Considering the usual values presented in [13] for the analysed DC microgrid, the limits indicated in Table 2 were set (in this case, the rated voltage is 48 V). These limits are also aligned with the previously mentioned technical report [1], and were used for another DC grid evaluation in [30]. However, for its application on the analysed DC microgrid, the mean voltage was used instead of the RMS value.
As it was already said in Section 4, and previously mentioned in Section 2, the time window for mean voltage calculations was established as 20 ms and refreshed every 10 ms.
Initially, no dips were detected for a threshold of 90 %, so a threshold of 95 %, which means 45.6 V, was tried later, but again no dips were detected. In contrast, three swells were detected using the referenced threshold.
These results make sense, since during the measurement period mean voltage data ranges from 47.340 V (minimum) to 53.059 V (maximum), presenting an average of 49.439 V and a standard deviation of 1.524 V.
The pseudo-codes for these calculations are presented in Algorithms 1 and 2.
Algorithm 1 Voltage swell evaluation
  • function Voltage_swell
  •     if  c o m p u t e d _ m e a n ( i ) > t h r e s h o l d _ s w e l l  then
  •         return  T r u e
  •          s t a r t _ s w e l l : = t i m e s t a m p ( i )
  •          m a x _ v o l t a g e : = c o m p u t e d _ m e a n ( i )
  •         while  c o m p u t e d _ m e a n ( i ) > ( t h r e s h o l d _ s w e l l h y s t e r e s i s )  do
  •             e n d _ s w e l l : = t i m e s t a m p ( i )
  •            if  c o m p u t e d _ m e a n ( i ) > m a x _ v o l t a g e  then
  •                 m a x _ v o l t a g e : = c o m p u t e d _ m e a n ( i )
  •            end if
  •             i : = i + 1
  •         end while
  •          s w e l l _ d u r a t i o n : = e n d _ s w e l l s t a r t _ s w e l l
  •     end if
  • end function
Algorithm 2 Voltage dip evaluation
  • function  Voltage_dip
  •     if  c o m p u t e d _ m e a n ( i ) < t h r e s h o l d _ d i p  then
  •         return  T r u e
  •          s t a r t _ d i p : = t i m e s t a m p ( i )
  •          m i n _ v o l t a g e : = c o m p u t e d _ m e a n ( i )
  •         while  c o m p u t e d _ m e a n ( i ) < ( t h r e s h o l d _ d i p + h y s t e r e s i s )  do
  •             e n d _ d i p : = t i m e s t a m p ( i )
  •            if  c o m p u t e d _ m e a n ( i ) < m i n _ v o l t a g e  then
  •                 m i n _ v o l t a g e : = c o m p u t e d _ m e a n ( i )
  •            end if
  •             i : = i + 1
  •         end while
  •          d i p _ d u r a t i o n : = e n d _ d i p s t a r t _ d i p
  •     end if
  • end function
In summary, three voltage events (swells) were captured, as shown in Table 3.
The profiles of those events are represented in Figure 10, Figure 11 and Figure 12, showing mean values calculated with sampling frequencies of 1 kHz, 2 kHz, and 200 kHz against swell threshold and hysteresis level. As will be noted in the next paragraphs, their different performances explain the observed differences in recorded event characterization.
Characterization of the two different recorded events on Friday 4th of August of 2023, for each selected sampling rate, can be seen in Table 4 and Table 5.
In addition, another voltage event was recorded on Monday 14th of August of 2023, whose characteristics can be seen in Table 6 for each selected sampling rate.
Analysing all above tables, and assuming as ‘conventionally true values’ those obtained for the reference frequency of 200 kHz, the existence of a correlation between resulting errors (both in maximum voltage and duration) and considered sampling rates is definitely clear.
Maximum voltage errors and duration errors in event 1 are presented in Table 7 and Table 8, respectively.
Clearly, the maximum errors (absolute differences of voltage and duration) in event 1 are obtained at 1 kHz, reaching 115 mV and 0.3 s. However, at 25 kHz, these errors are drastically reduced to just 2 mV and around 0, respectively.
Analogously, maximum voltage errors and duration errors in event 2 are presented in Table 9 and Table 10.
In the case of event 2, the maximum errors at 1 kHz are even higher than those obtained in event 1, resulting in 83 mV and 5.47 s. This clear inconsistency, especially in duration, is caused by the specific profile of this swell, in which there is a rapid recovery curve described by an asymptote bordering the hysteresis level.
This can be observed in Figure 11, showing the effect of sampling frequency on the event detection due to the use of fewer points to calculate the value of mean voltage, increasing in this way the statistical fluctuation and exceeding the hysteresis level, which causes a significant reduction in the obtained event duration.
Anyway, at 25 kHz, resulting errors are again quite contained: 2 mV in maximum voltage and 20 ms in duration.
Finally, maximum voltage errors and duration errors in event 3 are presented in Table 11 and Table 12.
Again, the maximum errors in event 3 are obtained at 1 kHz, reaching 165 mV and 1.12 s. However, at 25 kHz, these errors constitute only 1 mV in maximum voltage and around 0 in duration.
So, in general, the same conclusion obtained in Section 4 may be reached here: a sampling frequency of 25 kHz is a very advisable option for a proper combination of accuracy and computing rate. Indeed, using 25 kHz instead of 200 kHz may lead to errors far below AC standard [13] requirements for class A analysers, which are 0.2 % of the rated voltage (96 mV) and 20 ms in duration, as can be confirmed in all recorded events.

6. Conclusions and Future Work

According to the analysis presented in this paper, for a proper assessment of at least PQ voltage parameters regarding RMS or mean values and event detection in the monitored DC microgrid, sampling frequency might be set at 25 kHz as a minimum rate, which represents a proper combination of accuracy and computing rate.
Anyway, it must be noted that the selected sampling frequency may also directly impact the maximum rate of harmonic distortion to be captured. As the Nyquist theorem states, if sampling the signal at a rate of 25 kHz, the maximum frequency to be digitized without aliasing error shall be 12.5 kHz. This should be taken into account if significant spectral components are expected to be present at this frequency and there is a need to evaluate them.
In any case, the same approach presented in this paper might be applied to other measured data in real LV DC grids in order to check the validity and extension of this advice as a general rule for any different topology and condition. Moreover, in addition to RMS or mean voltage values and event detection, other parameters (ripple, transients, voltage fluctuations… and, of course, harmonic distortion) should be also analysed for an appropriate comprehensive processing of PQ phenomena in DC networks.
As future work, the behaviour of the PQ parameters as a function of the temporal window width could be explored. Additionally, a parallel frequency analysis could be carried out in order to better understand and justify the results.

Author Contributions

Conceptualization, J.J.P.-A.; methodology, J.J.P.-A. and M.A.O.; software, M.A.O.; validation, J.J.P.-A. and M.A.O.; writing—original draft preparation, J.J.P.-A. and M.A.O.; writing—review and editing, J.J.P.-A. and M.A.O. All authors have read and agreed to the published version of the manuscript.

Funding

This work has received funding from the project 20NRM03 DC grids (Standardisation of measurements for DC electricity grids) of the EMPIR programme co-financed by the Participating States and from the European Union’s Horizon 2020 research and innovation programme.

Data Availability Statement

Restrictions apply to the availability of these data. Data were obtained from Malaga Smart City and are available from the authors with the permission of ENEL-Endesa.

Acknowledgments

The authors of this work would like to thank ENEL-Endesa for their collaboration in this project by facilitating the carrying out of measurements in the Malaga Smart City network.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
LVLow Voltage
PQPower Quality
DCDirect Current
ACAlternating Current
EMSEnergy Management System
DTWDynamic Time Warping
PVPhotovoltaic
V2GVehicle To Grid
EVElectrical Vehicle
FFTFast Fourier Transform
MPPTMaximum Power Point Tracker

Appendix A. DC Microgrid Behaviour

The temporal behaviour of the voltage in a day has been studied, as can be seen in Table A1. It shows the average, standard deviation, maximum, and minimum of each hour in 20 ms mean calculations.
A very different behaviour can be seen, very static in night hours and more dynamic when the PV generation is active. This is also plotted in Figure A1, illustrating the effect. The minimum values also explain the lack of detected dips and interruptions.
Table A1. Mean voltage behaviour on hourly basis.
Table A1. Mean voltage behaviour on hourly basis.
UTC HourAverage [V]Std. Dev. [V]Max. [V]Min. [V]
047.790.0347.7347.84
147.680.0347.6247.73
247.580.0347.5347.63
347.490.0247.4547.54
447.420.0247.3847.45
547.480.1747.3648.02
649.981.0548.0052.76
750.910.3549.5253.06
850.920.2949.2052.04
950.990.1549.7551.83
1051.050.0250.9651.11
1151.060.0250.8451.11
1251.000.0250.7851.10
1350.940.0650.6151.23
1450.820.1050.3251.15
1550.980.4950.2052.94
1651.020.5250.2352.14
1750.530.3249.8451.47
1849.910.8348.7751.82
1948.810.0948.6649.07
2048.560.0648.4548.67
2148.340.0748.2148.45
2248.080.0647.9948.22
2347.930.0447.8748.00
Figure A1. Mean voltage average, std. dev., max., and min. values.
Figure A1. Mean voltage average, std. dev., max., and min. values.
Energies 18 04075 g0a1

Appendix B. Voltage Measurement Accuracy

According to the voltage probe manufacturer [21], the DC amplitude accuracy is 0.5% of the full scale (3.5 V for a voltage ratio of 100:1):
U ( voltage _ DC ) = 0.5 % · 3.5 V = 17.5 mV
Nevertheless, prior to its installation, this device was also calibrated in the Electrical Metrology Laboratory of CIRCE (LME-CIRCE), and the following results were obtained for DC for the ratio of 100:1:
Average Ratio: 99.981             Expanded Uncertainty: 0.013
Error _ ratio = [ ( 100 99.981 ) + 0.013 ] / 100 = 0.032 %
So, instead of using the manufacturer’s specifications, the following value might be considered for the voltage probe:
U ( voltage _ DC ) = 0.032 % · 48 V = 15.36 mV
Regarding the DAQ board [20], the absolute accuracy for the 1 V range is
U ( DAQ _ 1 V ) = ( 0.48 V · 215 ppm ) + ( 1 V · 40 ppm ) + 58 μ V = 201.2 μ V
In order to apply this result to the real measured voltage of 48 V, the above uncertainty may be multiplied by a factor of 100 (in a ratio of 100:1).
Then, considering both above results, the total error of voltage measurement may be estimated as follows:
U ( voltage _ meas ) = U ( voltage _ DC ) 2 + ( 100 · U ( DAQ _ 1 V ) 2 = 25.32 mV

Appendix C. DTW Numerical Results

In Table A2, the warp area for mean voltage values from sequences at different sampling rates are computed against the reference frequency of 200 kHz. These values are graphically presented in Figure 4 and Figure 5.
Table A2. Results of applying DTW algorithm on mean voltage values at different sampling frequencies (warp area in ms2; UTC hour).
Table A2. Results of applying DTW algorithm on mean voltage values at different sampling frequencies (warp area in ms2; UTC hour).
Hour1 kHz2 kHz4 kHz5 kHz10 kHz25 kHz50 kHz100 kHz
07682810230599013185701345200105738016580609079601560720
13385810166893017155201432520194058018420309420601657890
236701002203750151177021259502119130190115010017801897130
336716302346790201349023877201821060205654011010702040060
482919103376870251360023896102546160263937014478002430430
59766030251685022812901218510141361013896506692601503860
61508407156049950462304976017690984013570
7878604020185020501610760390590
83515011570618093908450183011201410
9285370175570316704158032350723036005890
10123933014685063000823606435013890690010960
11120470041202062510737005497014360790011550
1224119400170700370503096024010679037705500
1388352043370131901290011440350022303070
1418870568031903640302011907601070
151091301236051705360418016309001200
167761021380116301048010400334021502920
17614006740311039303360940630910
185969017800116801383012920464023103000
191364930648030574530535140507780471110272060461740
2021134401097150843300817490909720810310492320921440
21170380011181708857201023770718050858010663570841670
222525330142600010080701398050136463012354601345320983110
2327220601564910132181014545101472140147729016059101548850
In a similar way, Table A3 presents the warp area for RMS voltage values from sequences at different sampling rates, computed against the reference of 200 kHz. These values are graphically shown in Figure 6 and Figure 7.
Table A3. Results of applying DTW algorithm on RMS voltage values at different sampling frequencies (warp area in ms2; UTC hour).
Table A3. Results of applying DTW algorithm on RMS voltage values at different sampling frequencies (warp area in ms2; UTC hour).
Hour1 kHz2 kHz4 kHz5 kHz10 kHz25 kHz50 kHz100 kHz
092879501728710983910877570905070380200230390193750
133448801204570112399013404801249290405900296630212330
238898901597320104271012779101249490448390325470253590
34670630214371095573011590901373920590580372440245300
47198020248793014959001241500928570424480337650286690
5950658024707701217390816070624980502810408210243380
6151430654504578045630417101249074804860
7878904010168019601600520250230
833220118406260890080801490920590
9392960116320291403836037530562035602000
1015344301321506411087010712101050052903360
116649504111105020064260614501314064403910
1225756150110950385102943024960520031402280
1381350034470125301257010360261016901410
141876057403210361029801010560400
15109810121204820487037501160800390
16760402072010810102109650294015601030
17611106800300037903260820440410
18603001790011120125101292036701790940
19127981077989044602057766058386027505018926088390
201819560932990712980688460771390458200246040146790
2115820509305905292201086150593630622140370510160480
22238046012068307187401494890155948012186201044520165960
23281325019171909577001780540142458019293901335700262830

References

  1. IEC TR 63282:2020; LVDC Systems—Assessment of Standard Voltages and Power Quality Requirements. International Electrotechnical Commission: Geneva, Switzerland, 2020.
  2. Giordano, D.; Signorino, D.; Delle Femine, A.; Gallo, D.; Cipolletta, G. Power Quality in DC railway systems. In Proceedings of the 2021 IEEE 11th International Workshop on Applied Measurements for Power Systems (AMPS), Cagliari, Italy, 29 September–1 October 2021; pp. 1–6. [Google Scholar] [CrossRef]
  3. Barros, J.; de Apráiz, M.; Diego, R.I. Power Quality in DC Distribution Networks. Energies 2019, 12, 848. [Google Scholar] [CrossRef]
  4. Van den Broeck, G.; Stuyts, J.; Driesen, J. A critical review of power quality standards and definitions applied to DC microgrids. Appl. Energy 2018, 229, 281–288. [Google Scholar] [CrossRef]
  5. van den Brom, H.; Melero, J.; Cuk, V.; Frigo, G.; Gallo, D.; Istrate, D.; Giordano, D.; Blaz, M.; Stewart, B.; Yang, X. Traceable power quality measurements in DC electricity grids. In Proceedings of the Conference on Precision Electromagnetic Measurements, Wellington, New Zealand, 12–16 December 2022; pp. 1–2. [Google Scholar] [CrossRef]
  6. Giordano, D.; Gallo, D.; Pérez-Aragüés, J.J.; Melero, J.; van den Brom, H. Industry Guide on Equipment Specifications and Methods for PQ “Compatibility Levels”, and “Planning Level” Surveys in LVDC Grids for DC Parameters. 2024, pp. 1–28. Available online: https://zenodo.org/records/12158967 (accessed on 29 July 2025).
  7. Oliván, M.A.; Pérez-Aragüés, J.J.; Melero, J.J. A High-Frequency Digitiser System for Real-Time Analysis of DC Grids with DC and AC Power Quality Triggering. Appl. Sci. 2023, 13, 3871. [Google Scholar] [CrossRef]
  8. van den Brom, H.E.; van Leeuwen, R.; Maroulis, G.; Shah, S.; Mackay, L. Power Quality Measurement Results for a Configurable Urban Low-Voltage DC Microgrid. Energies 2023, 16, 4623. [Google Scholar] [CrossRef]
  9. Blaz, M.; Langemann, J.; Schmidt, M.; Leicht, C. Setup for Testing Energy Meters with Disturbed DC Signals Occuring in DC Charging Stations. In Proceedings of the 2023 IEEE 13th International Workshop on Applied Measurements for Power Systems (AMPS), Bern, Switzerland, 27–29 September 2023; pp. 1–6. [Google Scholar] [CrossRef]
  10. van den Brom, H.; van Leeuwen, R.; Warmerdam, J.; Schaacke, R. Power Quality Measurements in a Low-Voltage DC Microgrid in an Open Parking Garage. In Proceedings of the 2024 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Glasgow, Scotland, 20–23 May 2024; pp. 1–6. [Google Scholar] [CrossRef]
  11. Barros, J.; De Apráiz, M.; Diego, R.I. Definition and Measurement of Power Quality Indices in Low Voltage DC Networks. In Proceedings of the 2018 IEEE 9th International Workshop on Applied Measurements for Power Systems (AMPS), Bologna, Italy, 26–28 September 2018; pp. 1–5. [Google Scholar] [CrossRef]
  12. Medina-Molina, J.A.; Reyes-Archundia, E.; Gutiérrez-Gnecchi, J.A.; Rodríguez-Herrejón, J.A.; Chávez-Báez, M.V.; Olivares-Rojas, J.C.; Guerrero-Rodríguez, N.F. Optimal Selection of Sampling Rates and Mother Wavelet for an Algorithm to Classify Power Quality Disturbances. Computers 2025, 14, 138. [Google Scholar] [CrossRef]
  13. IEC 61000-4-30:2015; Electromagnetic Compatibility (EMC)—Part 4-30: Testing and Measurement Techniques—Power Quality Measurement Methods. International Electrotechnical Commission: Geneva, Switzerland, 2015.
  14. Cipolletta, G.; Delle Femine, A.; Gallo, D.; Landi, C.; Luiso, M. Considerations on Voltage Ripple Assessment in DC Power Network. In Proceedings of the 2022 IEEE 12th International Workshop on Applied Measurements for Power Systems (AMPS), Cagliari, Italy, 28–30 September 2022; pp. 1–6. [Google Scholar] [CrossRef]
  15. IEC 61000-4-7:2002; Electromagnetic Compatibility (EMC)—Part 4-7: Testing and Measurement Techniques—General Guide on Harmonics and Interharmonics Measurements and Instrumentation, for Power Supply Systems and Equipment Connected Thereto. International Electrotechnical Commission: Geneva, Switzerland, 2002.
  16. Melero, J.J.; Bruna, J.; Leiva, J. On-site PQ Measurements in a Real DC Micro-grid. In Proceedings of the 2022 20th International Conference on Harmonics and Quality of Power (ICHQP), Naples, Italy, 29 May–1 June 2022; pp. 1–5. [Google Scholar] [CrossRef]
  17. Schneider Electric. Conext XW Inverter/Charger Conext XW+ 8548 E—Installation Guide. 2017. Available online: https://solar.se.com/eu/wp-content/uploads/sites/4/2021/09/XW-230V-Installation-Guide_975-0714-01-01_ENG.pdf (accessed on 13 May 2025).
  18. Schneider Electric. Conext MPPT 60 Solar Charge Controller—Installation Guide. 2022. Available online: https://solar.se.com/eu/wp-content/uploads/sites/4/2023/03/Conext-MPPT-60-Solar-Charge-Controller-Installation-Guide990-9546.pdf (accessed on 13 May 2025).
  19. Hussan, U.; Hassan, M.; Ayub, M.A.; Peng, J.; Rasheed, H.; Jiang, H.; Asghar, F. Smooth and Uninterrupted Operation of Standalone DC Microgrid Under High and Low Penetration of RESs. IEEE Access 2024, 12, 48620–48629. [Google Scholar] [CrossRef]
  20. National Instruments. PXIe-6124 Specifications. 2024. Available online: https://www.ni.com/docs/en-US/bundle/pxie-6124-specs/resource/372526b.pdf (accessed on 13 May 2025).
  21. Hioki Differential Probe P9000—Product Brochure. 2024. Available online: https://www.hioki.com/euro-en/download/32910 (accessed on 13 May 2025).
  22. National Instruments. NI-DAQmx Python Documentation. 2025. Available online: https://nidaqmx-python.readthedocs.io/ (accessed on 4 June 2025).
  23. Python Software Foundation. The Python Standard Library: Gzip—Support for gzip Files. 2025. Available online: https://docs.python.org/3/library/gzip.html (accessed on 4 June 2025).
  24. Senin, P. Dynamic Time Warping Algorithm Review; Information and Computer Science Department University of Hawaii at Manoa: Honolulu, HI, USA, 2008; Volume 855, pp. 1–23. [Google Scholar]
  25. Giorgino, T. Computing and Visualizing Dynamic Time Warping Alignments in R: The dtw Package. J. Stat. Softw. 2009, 31, 1–24. [Google Scholar] [CrossRef]
  26. Giorgino, T. The DTW Suite for R and Python. 2025. Available online: https://dynamictimewarping.github.io/ (accessed on 14 May 2025).
  27. EN 50160:2022; Voltage Characteristics of Electricity Supplied by Public Electricity Networks. European Committee for Electrotechnical Standardization (CENELEC): Brussels, Belgium, 2022.
  28. IEC TS 62749:2020; Assessment of Power Quality—Characteristics of Electricity Supplied by Public Networks. International Electrotechnical Commission: Geneva, Switzerland, 2020.
  29. IEEE 1159-2019; Recommended Practice for Monitoring Electric Power Quality. Institute of Electrical and Electronics Engineers: New York, NY, USA, 2019.
  30. Cipolletta, G.; Delle Femine, A.; Gallo, D.; Seferi, Y.; Fan, F.; Stewart, B.G. Detection of Dips, Swells and Interruptions in DC Power Network. In Proceedings of the 2022 20th International Conference on Harmonics & Quality of Power (ICHQP), Naples, Italy, 29 May–1 June 2022; pp. 1–6. [Google Scholar] [CrossRef]
Figure 1. Microgrid outline and digitization setup.
Figure 1. Microgrid outline and digitization setup.
Energies 18 04075 g001
Figure 2. Example of DTW analysis for 1 kHz at 7 am UTC.
Figure 2. Example of DTW analysis for 1 kHz at 7 am UTC.
Energies 18 04075 g002
Figure 3. Example of DTW analysis for 1 kHz at 12 pm UTC.
Figure 3. Example of DTW analysis for 1 kHz at 12 pm UTC.
Energies 18 04075 g003
Figure 4. DTW analysis for mean voltage values at frequencies 1–5 kHz.
Figure 4. DTW analysis for mean voltage values at frequencies 1–5 kHz.
Energies 18 04075 g004
Figure 5. DTW analysis for mean voltage values at frequencies 10–100 kHz.
Figure 5. DTW analysis for mean voltage values at frequencies 10–100 kHz.
Energies 18 04075 g005
Figure 6. DTW analysis for RMS voltage values at frequencies 1–5 kHz.
Figure 6. DTW analysis for RMS voltage values at frequencies 1–5 kHz.
Energies 18 04075 g006
Figure 7. DTW analysis for RMS voltage values at frequencies 10–100 kHz.
Figure 7. DTW analysis for RMS voltage values at frequencies 10–100 kHz.
Energies 18 04075 g007
Figure 8. Zoom of DTW analysis for mean voltage values at frequencies 10–100 kHz.
Figure 8. Zoom of DTW analysis for mean voltage values at frequencies 10–100 kHz.
Energies 18 04075 g008
Figure 9. Zoom of DTW analysis for RMS voltage values at frequencies 10–100 kHz.
Figure 9. Zoom of DTW analysis for RMS voltage values at frequencies 10–100 kHz.
Energies 18 04075 g009
Figure 10. Recorded voltage swell on 2023-08-04 at 7:02:11 UTC.
Figure 10. Recorded voltage swell on 2023-08-04 at 7:02:11 UTC.
Energies 18 04075 g010
Figure 11. Recorded voltage swell on 2023-08-04 at 15:30:59 UTC.
Figure 11. Recorded voltage swell on 2023-08-04 at 15:30:59 UTC.
Energies 18 04075 g011
Figure 12. Recorded voltage swell on 2023-08-14 at 6:53:21 UTC.
Figure 12. Recorded voltage swell on 2023-08-14 at 6:53:21 UTC.
Energies 18 04075 g012
Table 1. Correspondence list of AC and DC PQ parameters.
Table 1. Correspondence list of AC and DC PQ parameters.
AC PQ ParameterDC PQ Parameter
Frequency of supply voltageNot applicable
Magnitude of supply voltageMean or RMS voltage
FlickerTo be defined
Voltage fluctuationsVoltage fluctuations, ripple
Voltage events (dips, swells, interruptions)Voltage events (dips, swells, interruptions)
Voltage transientsVoltage transients
Voltage unbalanceTo be defined
Harmonics and interharmonicsSpectral components
DC offsetNot applicable
NotchingNot applicable
Table 2. Event detection configuration.
Table 2. Event detection configuration.
TypeThreshold [%]Value [V]
Swell11052.8
Dip9043.2
Hysteresis20.96
Table 3. Recorded voltage events (swells).
Table 3. Recorded voltage events (swells).
Date [yyyy-mm-dd]UTC Time [hh:mm:ss]Event id.
2023-08-047:02:111
2023-08-0415:30:592
2023-08-146:53:213
Table 4. Recorded voltage swell on 2023-08-04 at 7:02:11 UTC (event 1).
Table 4. Recorded voltage swell on 2023-08-04 at 7:02:11 UTC (event 1).
Sampling Freq. [kHz]Max. Voltage [V]Duration [s]
20053.05983.60
10053.06283.60
5053.06083.60
2553.06183.60
1053.07083.61
553.07183.61
453.07783.58
253.08583.40
153.17483.30
Table 5. Recorded voltage swell on 2023-08-04 at 15:30:59 UTC (event 2).
Table 5. Recorded voltage swell on 2023-08-04 at 15:30:59 UTC (event 2).
Sampling Freq. [kHz]Max. Voltage [V]Duration [s]
20052.9346.00
10052.9366.37
5052.9356.04
2552.9336.02
1052.9276.02
552.9275.17
452.9224.90
252.9191.97
153.0170.53
Table 6. Recorded voltage swell on 2023-08-14 at 6:53:21 UTC (event 3).
Table 6. Recorded voltage swell on 2023-08-14 at 6:53:21 UTC (event 3).
Sampling Freq. [kHz]Max. Voltage [V]Duration [s]
20052.87624.65
10052.87924.65
5052.87824.65
2552.87724.65
1052.87624.59
552.87524.53
452.88224.59
252.89724.56
153.04123.53
Table 7. Maximum voltage errors in event 1 for each sampling rate compared to reference frequency.
Table 7. Maximum voltage errors in event 1 for each sampling rate compared to reference frequency.
Sampling Freq. [kHz]Max. Voltage Error [V]Max. Voltage Error [%]
1000.0030.005
500.0010.001
250.0020.004
100.0110.020
50.0120.022
40.0180.033
20.0260.048
10.1150.216
Table 8. Duration errors in event 1 for each sampling rate compared to reference frequency.
Table 8. Duration errors in event 1 for each sampling rate compared to reference frequency.
Sampling Freq. [kHz]Duration Error [s]Duration Error [%]
1000.000.000
500.000.000
250.000.000
100.010.012
50.010.012
4−0.02−0.024
2−0.20−0.239
1−0.30−0.359
Table 9. Maximum voltage errors in event 2 for each sampling rate compared to reference frequency.
Table 9. Maximum voltage errors in event 2 for each sampling rate compared to reference frequency.
Sampling Freq. [kHz]Max. Voltage Error [V]Max. Voltage Error [%]
1000.0020.004
500.0010.001
25−0.002−0.003
10−0.008−0.015
5−0.008−0.014
4−0.012−0.023
2−0.015−0.029
10.0830.157
Table 10. Duration errors in event 2 for each sampling rate compared to reference frequency.
Table 10. Duration errors in event 2 for each sampling rate compared to reference frequency.
Sampling Freq. [kHz]Duration Error [s]Duration Error [%]
1000.376.167
500.040.667
250.020.333
100.020.333
5−0.83−13.833
4−1.10−18.333
2−4.03−67.167
1−5.47−91.167
Table 11. Maximum voltage errors in event 3 for each sampling rate compared to reference frequency.
Table 11. Maximum voltage errors in event 3 for each sampling rate compared to reference frequency.
Sampling Freq. [kHz]Max. Voltage Error [V]Max. Voltage Error [%]
1000.0030.005
500.0020.004
250.0010.002
100.000−0.001
5−0.001−0.003
40.0060.012
20.0210.040
10.1650.312
Table 12. Duration errors in event 3 for each sampling rate compared to reference frequency.
Table 12. Duration errors in event 3 for each sampling rate compared to reference frequency.
Sampling Freq. [kHz]Duration Error [s]Duration Error [%]
1000.000.000
500.000.000
250.000.000
10−0.06−0.243
5−0.12−0.487
4−0.06−0.243
2−0.09−0.365
1−1.12−4.544
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

Pérez-Aragüés, J.J.; Oliván, M.A. Study on the Effect of Sampling Frequency on Power Quality Parameters in a Real Low-Voltage DC Microgrid. Energies 2025, 18, 4075. https://doi.org/10.3390/en18154075

AMA Style

Pérez-Aragüés JJ, Oliván MA. Study on the Effect of Sampling Frequency on Power Quality Parameters in a Real Low-Voltage DC Microgrid. Energies. 2025; 18(15):4075. https://doi.org/10.3390/en18154075

Chicago/Turabian Style

Pérez-Aragüés, Juan J., and Miguel A. Oliván. 2025. "Study on the Effect of Sampling Frequency on Power Quality Parameters in a Real Low-Voltage DC Microgrid" Energies 18, no. 15: 4075. https://doi.org/10.3390/en18154075

APA Style

Pérez-Aragüés, J. J., & Oliván, M. A. (2025). Study on the Effect of Sampling Frequency on Power Quality Parameters in a Real Low-Voltage DC Microgrid. Energies, 18(15), 4075. https://doi.org/10.3390/en18154075

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