Preprint
Article

Development a Low-Cost Wireless Smart Meter with Power Quality Measurement for Smartgrid Applications

Altmetrics

Downloads

189

Views

52

Comments

0

A peer-reviewed article of this preprint also exists.

Submitted:

03 July 2023

Posted:

05 July 2023

You are already at the latest version

Alerts
Abstract
Developing a low-cost wireless energy meter with power quality measurement for smart grid applications represents a significant advancement in efficient and accurate electrical energy monitoring.In increasingly complex and interconnected electrical systems, this device is essential in various applications, such as smart grids, enabling real-time energy usage monitoring. In such a context, smart meters expand the possibilities for sustainable and efficient energy use and promote better utilization of energy sources, especially non-renewable ones. According to the 2020 International Energy Agency (IEA) research, non-renewable energy sources represent 65% of the global total. The smart meter developed in this work is built based on the ESP32 microcontroller and easily accessible components, using a user-friendly development platform that offers a cost-effective solution while ensuring reliable performance. The main objective of the smart meter development was to enhance the software and simplify the hardware. Unlike traditional meters that perform electrical parameter calculations using complex hardware circuits, this project performed the calculations directly on the microcontroller. This approach reduced the complexity of the hardware, simplifying the meter’s design. With the high-performance processing capability of the microcontroller, efficient and accurate calculations of electrical parameters were achieved without the need for additional circuits. This software-driven approach with simplified hardware brought benefits such as reduced production costs, lower energy consumption, and increased meter development and updates flexibility. Furthermore, the integrated wireless connectivity in the microcontroller enables the transmission of collected data to remote monitoring systems for later analysis. The developed smart meter offers cost, energy efficiency, and flexibility benefits. It represents an innovative, efficient, and versatile solution for smart grid applications.
Keywords: 
Subject: Engineering  -   Electrical and Electronic Engineering

1. Introduction

The growth of energy consumption in the world is constant, which demands continuous investment in expanding the energy matrix, improving production and distribution processes.
In 1965, global energy consumption was 43TWh, but in 2022 it exceeded 165TWh, an increase of almost 400% over the last five decades. Two significant categories exist for the energy sources comprising the world’s energy matrix: renewable and non-renewable. Fossil fuels, such as oil, natural gas, and coal, are widely used worldwide due to their availability, reliability, and relatively low prices. However, they are non-renewable energy sources and the primary sources of greenhouse gas emissions and air pollution.
The development of Smart Meters for Smart Grids represents a solution to improve energy transmission between power plants and end consumers. It is possible to improve the transmission in various ways, such as real-time monitoring, quick detection and restoration of failures, as well as providing users with access to information about their consumption, identifying opportunities for savings. This approach aims to maximize energy efficiency, reduce waste, and sustainably meet the growing energy demand.
Constructing low-cost smart meters is crucial in making this technology accessible to a broader audience. By reducing production costs, it becomes possible to expand the adoption of smart meters across different sectors and regions, promoting greater awareness of energy consumption and contributing to large-scale energy efficiency.
Furthermore, the popularization of smart meters drives the transformation of electrical grids into smart grids, integrating renewable energy resources and energy storage systems. The integration of renewable energy resources is achieved through real-time monitoring and generation forecasting, demand management, as well as communication and real-time control, enabling greater efficiency in the management and control of renewable energies. This transition results in greater flexibility and resilience of the grid, enabling the incorporation of clean energy sources and promoting the shift towards a more sustainable energy matrix.
Smart Grids are defined as an electrical network that can intelligently integrate the actions of all connected users, such as generators and consumers, in order to provide energy efficiently, economically, and safely [1]. According to [2], Smart Grid can be defined as the next-generation, intelligent electrical network capable of addressing the main deficiencies of the existing grid. It is a network that intelligently integrates new technologies to enhance the monitoring and control of the operation of electrical systems, specifically in generation and distribution, while also incorporating user actions connected to it. These networks are characterized by implementing innovative equipment and services, as well as new communication, control, monitoring, and self-diagnostic technologies within the system [3].
The operation of Smart Grids includes the use of software, hardware, and technologies that help electricity companies instantly identify and correct imbalances between generation and demand in order to improve service quality, increase energy reliability, and reduce costs [4]. It is precisely through these readings and the integration of Smart Grids that we find Smart meters. The Smart meter is an essential component of the Smart Grid. It is an electronic energy measurement device that replaces traditional meters, providing significant benefits for the implementation and operation of an intelligent electrical network.
A smart meter is an advanced electronic device used to measure and monitor real-time electricity consumption. It differs from traditional meters by having additional features, such as the ability to communicate remotely and provide detailed information about energy consumption [5]. Smart meters have gained prominence worldwide due to the benefits they offer to both energy providers and consumers. These meters allow for more accurate and reliable measurement of energy consumption, eliminating the need for manual readings and reducing reading errors [6]. Another important factor for smart meters is the ability to read power quality parameters.
Power quality is a crucial factor to be considered in energy measurement, as it directly impacts the efficiency and safety of electrical systems. It relates to the presence of various issues, such as distortions, interruptions, fluctuations, and others that affect the distribution of electrical energy. One of the most relevant aspects of power quality is the occurrence of harmonics [7]. These harmonics refer to electrical currents or voltages with multiple frequencies compared to the fundamental frequency of the electrical grid, usually 60 Hz. They arise due to nonlinear electrical equipment, such as motors, electronic lamps, frequency converters, and computers. The presence of harmonics can cause waveform distortions in voltage and current, resulting in energy losses, equipment overheating, and possible system failures [8].
Another critical aspect of power quality is the presence of voltage surges. Voltage surges are short peaks in voltage that can damage sensitive electronic equipment. Lightning strikes, high-power equipment operations, or switching operations in the electrical network can cause them. Monitoring and controlling the presence of voltage surges is essential for safeguarding electronic equipment. Voltage fluctuation is also a factor that affects power quality. Voltage fluctuation occurs when the voltage in the electrical network varies due to changes in electrical load. Such occurrences can result in operational issues for electrical equipment, including motor failures and flickering lights. Maintaining stable and controlled voltage is crucial to ensure power quality [7].
Assessing the quality of electrical energy is essential to ensure the proper operation of electrical equipment and systems and protect consumers from potential safety issues and equipment damage [9,10]. Additionally, continuous monitoring of the quality of electrical energy can help energy companies identify issues in the electrical grid and implement corrective measures to improve the efficiency and reliability of energy distribution [11]. This continuous monitoring is carried out with the integration of Internet of Things (IoT) devices, such as smart meters and sensors.
The Internet of Things (IoT) is a new paradigm rapidly gaining popularity in today’s wireless landscape. The basic idea behind this concept is the widespread presence of various "things" or objects around us, such as Radio Frequency Identification (RFID) tags, sensors, actuators, cell phones, and more. - that can interact with each other and cooperate with their neighbors to achieve common goals through exclusive addressing schemes [12]. We can realize the Internet of Things is gaining more applications and making cities safe and sustainable, impacting more and more people’s lives [13].
Smart meters are intelligent electrical energy measurement systems that measure this consumption and transmit the collected data to a central server in real-time [14]. By utilizing this data, stakeholders can make informed decisions regarding electrical energy supply, enabling them to adjust the energy supply according to demand, prevent consumption peaks, and minimize energy waste.
Due to these benefits, intelligent electricity metering is one of the most critical applications of the IoT, especially in the energy sector, as in addition to monitoring energy consumption in real-time, it can also identify opportunities to save and reduce energy costs [15].
To measure, these devices acquire data from the electrical network, such as voltage, current, and power factor, to a central system through bidirectional communication [16]. Consumers can use the information acquired by the smart meter to improve consumption behavior [11], while energy suppliers can monitor and bill the system [10].
In addition, smart meters facilitate the integration of variable renewable energy sources, such as solar and wind, and new loads, such as energy storage and electric vehicle charging, ensuring the stability and efficiency of the [17] system. These devices also allow consumers who produce their energy to respond to market prices and sell the surplus to the grid. Feedback for consumption is essential, as smart meters can provide consumers with real-time feedback on energy consumption through devices such as intelligent home displays. This feedback may include comparisons with other consumers (normative feedback), which can potentially encourage long-term energy conservation [17,18]. Studies show that normative feedback can motivate consumers to reduce consumption if they perceive themselves as above average or above their peers [19].
Therefore, we can understand the use of traditional meters, such as the CW500, despite still being useful mainly for specialized users. However, its applicability in an electrical system that is increasingly interconnected and volatile becomes limited. This limitation stems from its high cost, usability, and risks associated with handling.
The smart meters are designed to verify that the quality of energy supplied is adequate for the intended use by end consumers or even the utilities that distribute electricity [10]. Power quality can be affected by a number of factors such as voltage fluctuations, frequency variations, harmonic disturbances and interruptions in the power supply.
The quality of electrical energy is currently a crucial factor for the competitiveness of virtually all industrial and service sectors. Thus, to keep the voltage level within certain acceptable operating limits, both at the transmission and distribution levels, control and monitoring measures are necessary from the inspection bodies and the energy-supplying concessionaires [20]. Some aspects need to be observed, as in the voltage: the waveform, which must be as close as possible to a sinusoid; the symmetry of phases of the electrical system and the magnitudes of voltages within acceptable limits [20].
In addition to assessing whether the system is operating correctly, phenomena, random or intrinsic, occur in the electrical system causing changes in the data reading. Among these phenomena, we can have: sags and/or voltage swells, interruptions, harmonic distortions, voltage fluctuations, oscillatory or impulsive transients, noise, overvoltages, and undervoltages [20].
Therefore, a low-cost smart meter was developed targeting the interests of the current energy sector, capable of storing and sending data from the electrical system to a central in real time. After being tested, the equipment presented results very similar to products currently on the market.

2. Development

Based on the above assumptions, we designed an intelligent meter capable of capturing essential signals from the electrical grid. A flowchart in Figure 1 outlines the main components of the smart meter and their connections.
In the Section 2.1 and Section 2.2, the circuits used to convert voltage and current from the electrical network to a voltage level the ESP32 microcontroller can analyze will be explained. The Section 2.3, the zero crossing circuits of voltage and current sine waves will be shown, responsible for calculating various parameters, such as frequency and angles between phases. And in the Section 2.4, all points of the microcontroller used will be elucidated, focusing mainly on its 12-bit ADC, which allows the reading of fundamental signals with good precision.

2.1. Voltage conditioning circuit

The voltage conditioning circuit conducts and converts the voltage measured directly in the electrical network to the microcontroller’s input. In Figure 2, the blocs of the circuit implemented can be seen, where the collected voltage is reduced through the arrangement of resistors, which presents a significant advantage due to the cost and linearity obtained with the circuit. The block, named filter, is composed of capacitors, with the function of filtering any noise from the electrical network and decoupling. Moreover, the voltage reaper block, composed of diodes, mainly limits the voltage values and thus protects the circuit’s other components.
In the arrangement of resistors, there is a common node called ref, which is directly connected to the buffer circuit. This circuit is a resistive divider to generate the reference voltage with an operational amplifier in the buffer configuration so that the isolation between the circuits is carried out. This circuit’s primary function is to insert a DC component into the wave so that the value the minimum value is 0.3 V and the maximum value is 1.2 V, which causes this wave to be presented in the range of best linearity of the 12 bits ADC of the ESP32, as shown in Section 2.4.
All circuits were simulated in the LTSpice [21] software to validate the proposed circuit properly. As a way of simulating the circuit shown in Figure 2, the input voltage was 311 Vpp (220 Vrms) and presented an output signal between 0.15 V and 1.15 V. When sizing the circuit, it is also essential to measure the power on top of each resistor in the array, and through simulations a maximum power of 150 mW was found.

2.2. Current conditioning circuit

The current conditioning circuit, Figure 3, has the same principle as the voltage conditioning circuit; its main difference is in how the signal is input from the current transformers, injecting a current wave with a maximum amplitude of 5 A. After that, the input current passes through a circuit that will convert the input current into voltage and leave it at the appropriate thresholds, as in the conditioning circuit of tension. The resulting current wave has an amplitude of 0.7 V, which is also inserted into a DC component, which leaves the wave between 0.3 V and 1 V. The other blocks in Figure 3 have the same operation as those in Figure 2.

2.3. Voltage and current zero crossing circuit

Implementing a zero-crossing circuit to read parameters such as the frequency and angles of each voltage and current phase is necessary. The zero crossing circuit has as its primary function the detection of the passage of the sine wave through the zero volts line, or reference voltage. This information is essential to know precisely the instant the sinusoid passed through zero and thus perform the necessary comparisons and mathematical operations to calculate the desired parameters.
The proposed circuit uses a comparator circuit for both voltage and current applications. This circuit uses an operational amplifier as a comparator, using as reference the values coming from the voltage and current reference circuits and the signal to be compared is the sinusoidal signal of each voltage and current phase after the conditioning circuit.

2.4. Microcontroller ESP32

The ESP32 chip, Figure 4, refers to a microcontroller chip produced by Espressif, which has already been considered one of the most powerful and notorious microcontrollers on the market, having as strong characteristics its processing speed, accessibility, and connectivity, highlighting the latter mainly by its intelligibility with the Wi-Fi and Bluetooth connection.
The ESP32 was designed with a model that can be single or dual-core 32-bits, with two physical processing cores, and that can work with clock frequencies of up to 240 MHz, in addition to having a massive advantage regarding its storage capacity being exponentially more significant compared to that of the already established Arduino development boards, which can be twice as much based on flash memory, compared to the ATmega 2560 model [22].
One of the crucial features for selecting this chip was its Analog-to-Digital Converter (ADC), which integrates two 12-bit SAR ADCs and supports measurements on 18 channels (analog-enabled pins). The Ultra-Low-Power (ULP) coprocessor in ESP32 is also designed to measure voltage while operating in sleep mode, which enables low-power consumption. The CPU can be woken up by a threshold setting and/or via other triggers. The ADCs can be configured with appropriate settings to measure the voltage on 18 pins maximum [23].
The ADC resolution can map input voltage from 0 to 3.3 Vdc according to the resolution setting (9-12 bits) and the maximum voltage reading configured according to the frequency filter and the recommended ranges for each voltage, Table 1.
Another side, Espressif noted that, by default, there is a difference of ± 6 % in measured results between chips. Because of this, it is essential to calibrate the microcontrollers, and one of the guidelines is to select a single reference value for the project [24].

3. Prototyping

In the current market, a massive range of integrated specialized circuits in measuring electrical quantities. These integrated circuits offer several advantages over conventional circuits, such as greater accuracy, smaller size, and lower power consumption.
However, specialized circuits tend to be more expensive due to their complexity and precision, which may make using these circuits unfeasible in low-cost projects. Furthermore, this type of circuit is less flexible than conventional circuits, especially in terms of customization or adaptation to specific project requirements.
Another disadvantage is the integration of these circuits into a system, as they require more advanced technical knowledge and a deep understanding of their performance characteristics, which may increase the difficulty of implementing these circuits in smaller-scale projects or projects that involve less experienced professionals.
Several specialized integrated circuits for electrical energy measurement are on the market, such as the ADE9000 from Analog Devices, the MCP39F511 from Microchip, and the CS5490 from Cirrus Logic.
The ADE90001 is a highly accurate, fully integrated, multiphase energy and power quality monitoring device. Superior analog performance and a digital signal processing (DSP) core enable accurate energy monitoring over a wide dynamic range. An integrated high end reference ensures low drift over temperature with a combined drift of less than ±25 ppm/°C maximum for the entire channel including a programmable gain amplifier (PGA) and an analog-to-digital converter (ADC). The integrated ADCs and DSP engine calculate various parameters and provide data through user accessible registers or indicate events through interrupt pins. With seven dedicated ADC channels, the ADE9000 can be used on a 3-phase system or up to three single-phase systems [25].
The MCP39F511 is a highly integrated, complete single-phase power-monitoring IC designed for real-time measurement of input power for AC/DC power supplies, power distribution units, consumer and industrial applications. It includes dual-channel Delta-Sigma ADCs, a 16-bit calculation engine, EEPROM and a flexible 2-wire interface [26].
The CS5490 is a high-accuracy, two-channel, energy measurement analog front end. The CS5490 incorporates independent 4th order Delta-Sigma analog-to-digital converters for both channels, reference circuitry, and the proven EXL signal processing core to provide active, reactive, and apparent energy measurement. In addition, RMS and power factor calculations are available. Calculations are output via a configurable energy pulse, or direct UART serial access to on-chip registers. Instantaneous current, voltage, and power measurements are also available over the serial port. The two-wire UART minimizes the cost of isolation where required [27].
These circuits feature multiple high-speed, high-precision ADCs and DSPs and control units to perform the necessary mathematical calculations to obtain key measurement parameters. Integrating all these components on a single chip makes the construction of these circuits complex and expensive.
With the improvement of microcontrollers, the chips offer high processing power, with multiple processing cores, making it possible to implement increasingly complex and advanced systems with more excellent performance and energy efficiency. In addition, they offer a wide variety of built-in features, such as communication peripherals, high-capacity memory, I/O device controllers, and even advanced security and encryption features. Due to the increasing availability of such technologies in the market, it was possible to use these dedicated circuits used in specialized software measurement circuits without loss of precision and quality, giving greater flexibility and reducing the final cost of the meter.
We chose to develop the project using the EasyEDA software, which offers online schematic creation, making it easier to work on the project remotely. The software provides convenient public and private sharing features and standard tools for 2D and 3D visualization. Additionally, it offers the option to directly send the design for manufacturing within the system.
In Figure 5 we have the 3D visualization of the project generated in EasyEda.
Table 2 contains all the components and their respective prices obtained from the market in small-scale purchases. It is worth noting that these costs may vary depending on the location and quantity.
A survey was made of all the components needed to manufacture a PCB, and Table 2 was set up with their respective components, quantities, and prices. As shown in the table, the developed hardware has a complete set of resources to measure and monitor critical electrical parameters, such as voltage, current, power, and power factor with a lower investment price, in relation to the products on the market, the that allows consumers to access reliable, high-quality monitoring tools without breaking their budget. This option becomes particularly attractive for companies, industries, and residential users who want to control and optimize energy consumption, ensuring energy efficiency and cost reduction.
The power input stages are a critical part of a meter’s circuit, requiring special care when defining the thickness of their tracks.
Taking into consideration the IPC-2221 [28] standard, which is the foundation design standard for all IPC-2221 design series which establishes the generic requirements for the design of PCBs and other forms of assembly of components or interconnecting structures, for the correct sizing of the required track width for a maximum current of 5A, present in the power stage of the current conditioning circuit, without overheating the track and possible collapse of the track on the board due to overheating, a track of 54.437 mil was used according to the calculated values following the standard.
A = I k · Δ T 0.44 1 0.725
For external layers:
k e = 0.048
For inner layers:
k i = 0.024 I = 5 A K = 0.048 Δ T = 10 C E = 2 o Z / f t 2
A = 5 0.048 · 10 0.44 1 0.725 A = 150.028
W i d t h = A 1.378 · E
W i d t h = 150.028 1.378 · 2 W i d t h = 54.437 m i l
We manufactured the remaining traces on the board with a thickness of 19.685 mil for low-current signals.
In the power stage, we used a parallel combination of resistors for current inputs and a series combination of resistors for voltage inputs. We used resistor combinations instead of a single higher-power resistor to ensure a larger heat dissipation area for these components. Additionally, using standard resistors in the market provides greater availability and significant cost reduction in the power stage.
We used voltage follower operational amplifiers on the reference signal of the voltage dividers to ensure more excellent stability in the ADC readings.
The Hilink model switching power supply created a compact and easy-to-install meter. This power supply is cost-effective, provides sufficient power, has a compact size, and is highly reliable.

4. Calibration and Standardization

When we talk about the use and development of measurement tools, one of the main points to be observed is the reliability of the data obtained; therefore, we must use methods that attest to the quality of the data captured by the smart meter. The method used to perform the calibration was divided into two stages, namely, analysis and generation of adjustment curves based on known loads in a controlled environment, as well as real loads over a long period of time. This need is known and arises because we use the analog-to-digital converter (ADC) input present in the ESP32, which, like any component in the real world, has a certain error curve that can be minimized through the mathematical technique of polynomial regression.

4.1. Calibration Platform

In order to calibrate the ESP32 ADC input, it is necessary to assemble a resistive circuit in the laboratory with the following components:
  • Three-phase Voltage Regulator;
  • Cables;
  • Equivalent resistors of 33.33 Ohms, with a power of 900 Watts per phase;
  • Three 5 Amp output current transformers;
  • Multimeter;
  • CW500 energy analyzer.
In Figure 6, we then have a basic diagram assembled in the laboratory to obtain the data, which were used to generate the fit equation, and in Figure 7, the bench test.

4.2. Performance of Calibration Using the Intelligent Meter

Performing the calibration of the Smart Meter, the CW500 was used, a product of Yokogawa T&M (Test & Measurement) which is a company specialized in test and measurement equipment. The CW500 is a portable electrical power quality analyzer used in power quality analysis and analysis in electrical system. This device is capable of monitoring and recording electrical parameters, such as voltage, current, power, power factor, harmonics, transients and other irregularities in power quality [29], thus being qualified equipment for:
  • Identifying power quality issues
  • Evaluating energy efficiency
  • Diagnosing faults
  • Analyzing the performance of the electrical system
Based on this information, it is possible to optimize the operation and maintenance of electrical systems, ensure compliance with regulatory standards and improve energy efficiency.
The calibration procedure starts with recording the measurements acquired from the CW500 meters and the Smart Meter, then we adjust the three-phase voltage regulator to gradually vary the voltage and/or current, allowing for the complete exploration of the voltage and/or current scale, resulting in the time series of measurements for both meters. However, since there is no guarantee that both meters will start measurements at the same time and that their clocks are completely synchronized, as well as the interval between measurements being uniform, it is necessary to perform synchronization corrections on the obtained time series.
After the laboratory work is completed, the corrections are made a posteriori with a data processing and analysis software made in the high-level programming language Python, due to its clear and concise syntax, as well as its wide range of data analysis tools.
The data obtained from the SD cards of each meter showed a temporal deviation, that is, a differentiated amount of samples. In the case of the current, there was a distinct scale due to the use of the current transformer in the circuit that connects the CW500 meter, while the smart meter was directly connected to the test bench. This is equivalent to a current transformer with a unitary transformation ratio. Due to its constructive characteristics, the current conditioning circuit in the smart meter is limited to a current of 5 amperes, a fact that does not impact the results obtained from the experiment. The corrected time series, through the identification of the voltage and/or current peak previously inserted to facilitate the detection of the beginning of the tests, had the amount of samples adjusted based on the repetition of samples from the smaller time series, and the scale was adjusted through a simple division.
Based on these data, properly synchronized, the regression equation coefficients were generated for each range and variable, resulting in a precise mathematical representation of the relationship between voltage and current. Returning the following polynomial equations:
Equation for currents (A, B and C):
I A = 3.1364973 · x 2 + 2.37540397 · x 0.15488245
I B = 3.94758478 · x 2 + 2.71596739 · x 0.19799091
I C = 5.03076935 · x 2 + 3.08317143 · x 0.22882746
Equation for voltages (A, B and C):
V A = 3.73087704 · x 2 + 1.01952000 · x 2.31686713 · 10 5
V B = 2.97068991 · x 2 + 1.04631432 · x 1.56420981 · 10 4
V C = 1.84121196 · x 2 + 1.06992181 · x 2.62561829 · 10 4
Through the curves obtained, we can generate graphs with the data already adjusted, so that we can understand visually.
Figure 8. Comparative Analysis of Curves: Results Before and After Calibration.
Figure 8. Comparative Analysis of Curves: Results Before and After Calibration.
Preprints 78475 g008
Through the obtained voltage and current data, we will be able to trace curves to analyze the reliability of the data, through error analysis.
We can observe in Figure 9 that the bench calibration process was perfectly satisfactory, since, although the measurements presented a relatively low error, we were able to reduce it to something around zero with the polynomial equations, even in the current measurements, which suffer from greater variability than voltage and therefore, in the comparison between the developed smart meter and the CW500, may present a certain degree of divergence, which in reality does not present a design error, but a constructive characteristic of the worked hardware.

5. Analysis on the Experiment Outcomes

After the completion of the bench calibration, the CW500 meter was used. This is an important tool for verifying the reliability of the obtained data. This meter is recognized for its precision and ability to monitor anomalies in the power system, including voltage and current fluctuations, and record up to the 50th order of harmonics, in both single-phase and three-phase systems.
The advanced interface of the CW500, including a graphical display and options for data collection through Bluetooth and SD cards, makes the equipment easy and intuitive to use. In addition, the data analysis software allows for visualization, storage, and analysis of the data acquired by the CW500. As a portable energy meter and analyzer, the CW500 uses current clamp probes and alligator clips to perform its measurements, as described in the user manual provided by the company [29]; all of these features make the CW500 a versatile tool for the development of low-cost meters.
With this, it was possible to capture this data in a similar way as done in the bench calibration, but this time over a longer period, from December 30th, 2021 to January 12th, 2022, which is approximately fourteen consecutive days. With these cataloged data, we were able to export them into comma-separated value files, which was implemented both with the CW500 and the smart meter. Afterward, these data went through event synchronization using software implemented in Python.

5.1. Results and Field Test Analysis

In order to analyze and evaluate the performance and accuracy of the smart meter, and thus determine its suitability for similar applications, a comparative analysis was conducted between the CW500 devices and the smart meter. This analysis was based on voltage and current measurements taken over different time periods. Therefore, presented below is one of these analyses with data sets collected over a one-day period.
Based on the Figure 10 we can observe that the voltages show excellent performance, with the data captured by the smart meter being very similar to that of the CW500 meter. In our analyses of the voltages, we observed a relative error of around 0.5%, except for the occurrence of outliers that arise rarely. However, when we analyze the relative errors found in the currents, we see values that exceed 100% with a recurrence of about 50% relative error.
Regarding electric currents, it is necessary to consider that the values collected by the smart meter exhibit discontinuities, which result from the lack of precise synchronization between this device and the CW500 meter. This factor contributes to a high relative error rate, so the error values associated with the currents do not accurately reflect the correspondence between the average value of the time series, but only the RMS value at the moment of measurement.

5.2. Power, PF, Frequency, and Harmonic Results in Field Test

In the measurement of frequencies, we achieved excellent performance. To obtain this data at the implemented hardware level, we used the methods described in Subsection 2.3 and then subjected it to a field test to assess its reliability.
We observed in Figure 11 that the frequency remained at 60 Hz, which is the current standard frequency in Brazil, where all field tests were conducted. In our calculations of relative error, we had an error of 0%, except for outliers that may have appeared due to connection problems during data acquisition.
Based on the collected data of frequency, voltage, and current, as presented above, it was possible to determine the total harmonic distortion rates, as illustrated in Figure 14. In addition, we performed measurements of the active power, represented in Figure 12. From these measurements, it was also possible to determine the power factor, and the results were presented in Figure 13, thus demonstrating the variety of possible applications with the smart meter, especially considering its low-cost proposition.
We can observe a similarity between the values read by the CW500 meter and the developed smart meter. However, some values deviate from the expected, which is due to the accumulated error of the base samples, in the specific case, the relative error presented in the current. But as explained earlier, it is not possible to determine that this compromises the reliability of the constructed equipment.
The fact that the smart meter provides measurement of harmonics up to the 50th order, at a low cost, is a major differential. The presence of harmonics at lower frequencies can affect the proper operation of electrical and electronic equipment, such as motors, transformers, power supplies, and lighting devices. In addition, it is important to ensure the quality of the electrical energy supplied to consumers and to ensure that the electricity meters are measuring the amount of electricity consumed correctly. It is important to note that higher frequency harmonics, above the 50th harmonic, can be more easily filtered and therefore are not as critical in the measurement of electrical energy.
The smart meter also has the ability to measure the angle between phases from the electrical grid. This is due to the zero-crossing detection circuit described in Section 2.3. The obtained results were promising, as we were able to measure real-time phase angles, further expanding the range of applications for the meter at a low cost. In an increasingly complex electrical system with distributed network systems, constant monitoring of phase angles [30,31] is necessary to prevent imbalances and distortions in the grid, which can even affect the protection of the electrical system.

6. Conclusion and Future Work

Analyzing what was presented in this article, despite using low-cost resources, the technology embedded in the smart meter can deliver a certain degree of reliability and accuracy. This makes its implementation possible, offering several advantages to energy suppliers and consumers, such as accurate real-time measurement and remote monitoring of power quality data, including voltage and current parameters, active power, power factor, harmonic distortion, and phase angles. This raises consumer awareness and allows energy providers to upgrade power grids promptly. In addition, replacing commercial meters with smart meters can generate long-term cost savings, even with a higher initial investment.
As seen in Section 5, the smart meter demonstrates reliability in its data, with a relative error of 0% when it comes to frequency measurement. Despite the synchronization difficulties, we can observe an error of approximately 0.5% in voltage measurement and consistent measurements of current and power factor over time. Therefore, when we consider the parameters required for energy quality measurement, the smart meter presents itself as a low-cost and reliable option.
The approximate final value of the meter is $82.77, as shown in the Table 2 of Section 3. However, by removing the current transformers (CTs), the final price would be reduced to $34.77, a price much lower than any quality energy meter currently available in the market. This price difference offers a more affordable option for those looking to purchase a high-quality energy meter without compromising performance or necessary features.
Comparing the value of the meter described in this article to a commercial model like the ISSO-DMI P500Rv2, which has an approximate price of $996.00, we can see that the described meter is about 10 times cheaper.
It is also possible to envision future implementations in the field, such as the use of embedded Artificial Intelligence in smart meters aimed at preventing failures, identifying devices, and preventing fraud in the electrical grid. With technological advancement, it is expected that these solutions will become increasingly accessible and widely used, bringing benefits not only to electricity companies but also to consumers.

References

  1. Tuballa, M.L.; Abundo, M.L. A review of the development of Smart Grid technologies. Renewable and Sustainable Energy Reviews 2016, 59, 710–725. [Google Scholar] [CrossRef]
  2. Farhangi, H. The path of the smart grid. IEEE power and energy magazine 2009, 8, 18–28. [Google Scholar] [CrossRef]
  3. Moreno Escobar, J.J.; Morales Matamoros, O.; Tejeida Padilla, R.; Lina Reyes, I.; Quintana Espinosa, H. A comprehensive review on smart grids: Challenges and opportunities. Sensors 2021, 21, 6978. [Google Scholar] [CrossRef] [PubMed]
  4. Wollman, D.A.; FitzPatrick, G.; Boynton, P.A.; Nelson, T.L. NIST coordination of smart grid interoperability standards. In Proceedings of the CPEM 2010. IEEE; 2010; pp. 531–532. [Google Scholar]
  5. Zheng, J.; Gao, D.W.; Lin, L. Smart meters in smart grid: An overview. In Proceedings of the 2013 IEEE Green Technologies Conference (GreenTech). IEEE; 2013; pp. 57–64. [Google Scholar]
  6. Barai, G.R.; Krishnan, S.; Venkatesh, B. Smart metering and functionalities of smart meters in smart grid-a review. In Proceedings of the 2015 IEEE Electrical Power and Energy Conference (EPEC). IEEE; 2015; pp. 138–145. [Google Scholar]
  7. Bollen, M.H. Understanding power quality problems. In Voltage sags and Interruptions; IEEE press: Piscataway, NJ, USA, 2000. [Google Scholar]
  8. Bollen, M.H.; Gu, I.Y. Signal processing of power quality disturbances; John Wiley & Sons, 2006.
  9. de Energia Elétrica, A.N. QC - Qualidade de Energia Elétrica. https://www.gov.br/aneel/pt-br/assuntos/pesquisa-e-desenvolvimento/temas-para-investimentos/qc, 2023. Acesso em: 29 jun. 2023.
  10. Commission, C.P.U. The Benefits of Smart Meters. https://www.cpuc.ca.gov/industries-and-topics/electrical-energy/infrastructure/the-benefits-of-smart-meters, 2023. Accessed em 28 de junho de 2023.
  11. Commission, E. Smart grids and meters. https://energy.ec.europa.eu/topics/markets-and-consumers/smart-grids-and-meters_en, 2023. Accessed em 28 de junho de 2023.
  12. Atzori, L and Iera, A and Morabito G. The Internet of Things: A survey. Computer Networks 2010. https://www.cs.mun.ca/courses/cs6910/IoT-Survey-Atzori-2010.pdf [Accessed on March 22, 2023].
  13. González-Zamar, M.D.; Abad-Segura, E. Visual and Artistic Effects of an IoT System in Smart Cities: Research Flow. IoT 2020, 1, 161–179. [Google Scholar] [CrossRef]
  14. Depuru, S.S.S.R.; Wang, L.; Devabhaktuni, V.; Gudi, N. Smart meters for power grid—Challenges, issues, advantages and status. In Proceedings of the 2011 IEEE/PES Power Systems Conference and Exposition. IEEE; 2011; pp. 1–7. [Google Scholar]
  15. Sun, Q.; Li, H.; Ma, Z.; Wang, C.; Campillo, J.; Zhang, Q.; Wallin, F.; Guo, J. A comprehensive review of smart energy meters in intelligent energy networks. IEEE Internet of Things Journal 2015, 3, 464–479. [Google Scholar] [CrossRef]
  16. Irfan, A.; Hassan, S.Z.; Ahmed, R.; Khanam, S.; Khanam, S. IoT Based Smart Meter. In Proceedings of the 2019 International Conference on Innovative Computing (ICIC). IEEE; 2019; pp. 1–5. [Google Scholar]
  17. Burger, C.; Weinmann, J.; Kuhlmann, A. Are our smart meters smart enough? World Economic Forum 2019. https://www.weforum.org/agenda/2019/09/are-our-smart-meters-smart-enough/ [Accessed on March 16, 2023].
  18. Nature Sustainability. Long-term water conservation is fostered by smart meter-based feedback that leverages behavioural nudges and social comparison feedback. Nature Sustainability 2021, 4, 111–118, https://www.nature.com/articles/s41545-021-00119-0 [Accessed on March 16, 2023]. [Google Scholar]
  19. Nature Human Behaviour. Making the smart meter social promotes long-term energy savings and prompts neighbours to save energy. Nature Human Behaviour 2019, 3, 1077–1084, https://www.nature.com/articles/s41599-019-0254-5 [Accessed on March 16,2023]. [Google Scholar]
  20. Oleskovicz, Mário and Carneiro, Adriano A F M and Delmont, Odilon and Coury, D V and Arruda, E F and Souza, S A. ESTUDO COMPARATIVO DE FERRAMENTAS MODERNAS DE ANÁLISE APLICADAS À QUALIDADE DA ENERGIA ELÉTRICA. Revista Controle & Automação 2006, 17. https://www.scielo.br/j/ca/a/JD8gvr9g4cjSCzwCms44VLG/?format=pdf&lang=pt [Accessed on March 23, 2023]. [Google Scholar]
  21. May, C. Passive Circuit Analysis with LTspice®; Springer, 2020.
  22. Ibrahim, D. The Complete ESP32 Projects Guide: 59 Experiments with Arduino IDE and Python; Elektor, 2019.
  23. ESPRESSIF. ESP32-WROOM32 Datasheet, 2019.
  24. Kolban, N. Kolban’s book on ESP32; Leanpub, 2018.
  25. Site, A.D.W. ADE9000 Data Sheet. High Performance, Multiphase Energy, and Power Quality Monitoring IC 2020.
  26. Site, M. MCP39F511 Data Sheet. MCP32F5XX Power Monitoring IC Family. Accessed em 28 de junho de 2023.
  27. Site, C.L. Two Channel Energy Measurement IC. CS548x/9x family of high performance analog front end solutions for energy measurement. Accessed em 28 de junho de 2023.
  28. Ipc, I. Generic standard on printed board design. IPC-2221 1998.
  29. Yokogawa Corporation of America. CW500 Power Quality Analyzer. Yokogawa, Tokyo, Japan, 2016. https://www.yokogawa.com/pdf/provide/E/GW/Bulletin/0000029902/0/BUCW500-01EN.pdf [Accessed on March 8, 2023]. /.
  30. Hojabri, M.; Dersch, U.; Papaemmanouil, A.; Bosshart, P. A Comprehensive Survey on Phasor Measurement Unit Applications in Distribution Systems. Energies 2019, 12. [Google Scholar] [CrossRef]
  31. Kozlov, A.; Kozlov, V.; Kozlov, A. MEASUREMENT OF INSTANTANEOUS AND AVERAGE VALUES OF PHASE ANGLE USING PRECISION VOLTMETER. ResearchGate 2019. [Google Scholar]
Figure 1. Flowchart of smart meter.
Figure 1. Flowchart of smart meter.
Preprints 78475 g001
Figure 2. Conditioning circuit of voltage.
Figure 2. Conditioning circuit of voltage.
Preprints 78475 g002
Figure 3. Current conditioning circuit.
Figure 3. Current conditioning circuit.
Preprints 78475 g003
Figure 4. Chip ESP32.
Figure 4. Chip ESP32.
Preprints 78475 g004
Figure 5. View 3D.
Figure 5. View 3D.
Preprints 78475 g005
Figure 6. Circuit diagram of the laboratory setup.
Figure 6. Circuit diagram of the laboratory setup.
Preprints 78475 g006
Figure 7. Bench-mounted Circuit With the Smart Meter Offline and the CW500 in Parallel.
Figure 7. Bench-mounted Circuit With the Smart Meter Offline and the CW500 in Parallel.
Preprints 78475 g007
Figure 9. Graph Illustrating the Evolution of Measurement Error Over Time.
Figure 9. Graph Illustrating the Evolution of Measurement Error Over Time.
Preprints 78475 g009
Figure 10. A One-Day Comparison Analysis Between CW500 and Smart Meter.
Figure 10. A One-Day Comparison Analysis Between CW500 and Smart Meter.
Preprints 78475 g010
Figure 11. Time series of measured frequencies over the course of a day.
Figure 11. Time series of measured frequencies over the course of a day.
Preprints 78475 g011
Figure 12. Time series of active power over the course of a day.
Figure 12. Time series of active power over the course of a day.
Preprints 78475 g012
Figure 13. Time series of power factors over the course of a day.
Figure 13. Time series of power factors over the course of a day.
Preprints 78475 g013
Figure 14. Time series of total harmonic distortions of voltages over the course of a day.
Figure 14. Time series of total harmonic distortions of voltages over the course of a day.
Preprints 78475 g014
Table 1. Table with the recommended frequency filters for each range.
Table 1. Table with the recommended frequency filters for each range.
Frequency Voltage Range
0 dB 100 - 950 mV
2.5 dB 100 - 150 mV
6 dB 150 - 1750 mV
11 dB 150 - 2450 mV
Table 2. Table Prices.
Table 2. Table Prices.
Components Amount Dollar Sum
AMS1117-3.3 1 $0.30 $0.30
Resistor 10k 1/8W 3 $0.04 $0.12
Resistor 680k 1/8W 6 $0.04 $0.24
Resistor 1k 1/8W 5 $0.04 $0.20
Diode 1N4732A 6 $0.03 $0.18
Resistor .2R 12 $0.17 $2.04
Capacitor 22uF 3 $0.05 $0.75
Capacitor 22nF 6 $0.05 $0.30
Capacitor 100nF 10 $0.06 $0.60
Diode 1N4148 6 $0.03 $0.18
Resitor 3k3 5 $0.04 $0.20
LEDS 3 $0.06 $0.18
Pin Header Socket 1 $0.80 $0.80
RST 1 $0.14 $0.14
ESP32-WROOM-32DC 1 $12.00 $12.00
LM324A-CORRENTE 1 $0.23 $0.23
LM324A-TENSAO 1 $0.23 $0.23
Capacitor 100uF 1 $0.18 $0.18
HLK-PM01 5v 600mA 1 $5.80 $5.80
PCB 1 $1.60 $1.60
CASE 3D 1 $5.00 $5.00
Conn 2EDGRC-5,0 M 6P 90º 1 $0.73 $0.73
Conn 2EDGK-5,0 F 6P 1 $1.18 $1.18
Conn 2EDGRC-5,0 M 4P 90º 1 $0.53 $0.53
Conn 2EDGK-5,0 F4P 1 $1.06 $1.06
Current Transformer 3 $16.00 $48.00
Sum $82.77
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated