1 Introduction

Nowadays the electric energy demand is constantly increasing, and while the primary energy resources are decreasing, the exploitation of renewable energy sources is not yet widespread enough to cope with the growing need of electrical energy (Waeresch et al. 2015). Electrical energy management is becoming crucial to optimize the way to produce, to distribute and to use energy. Today, Smart Grids integrate ICT capability into the power grid to enhance the efficiency, reliability, economics, and sustainability of the production and distribution of electricity (Amin and Wollenberg 2005) and forecasting of the consumption (Quilumba et al. 2015). Among the services delivered by Smart Grids, intelligent, unobtrusive and unattended energy metering is key to profile the quality and the quantity of the energy delivered and to detect failures. Furthermore, energy metering offers a wide range of applications oriented to consumers, such as real time energy monitoring systems used to track and analyze the power consumption of industrial loads. In this way, users can reduce energy waste (Ahmad 2011) and the electrical bill, as well. For this purpose, low-cost, meters, will play an increasingly important role (Depuru et al. 2011; Campbell and Dutta 2014) in the future, in particular if massively deployed to monitor in a pervasive way the electric power consumed correlated to everyday activities. The procedures of installation of these measurement systems do not facilitate today the widespread diffusion of such energy meters, because they are usually not inexpensive and they need expert technicians to connect the meters to the mains.

For a pervasive exploitation, power meters should use non-intrusive sensors, which can easily be installed in any circumstances by any user without disconnection of the electrical loads; with a small form factor, and should operate unattended for years.

In this paper, we present an electrical energy meter which meets all the above user requirements and can be extended even for three-phase measurements. The meter is energy autonomous, namely it harvest energy from the environment to reduce costs of battery replacement, and analyzes voltage and current waveforms with power quality estimation without any direct contact to the conductors of the power cables. Hence, our smart meter permits the implementation of non-intrusive load monitoring (NILM) techniques for disaggregating global energy consumption data in a household scenario (Liang et al. 2010a, b).

The meter exploits a clamp-on sensor for both current measurement and energy harvesting, and new voltage contact-less sensors, based on capacitive coupling, that permits to measure the difference of electrical potential between two conductors in a single-phase power line. Our goal is to obtain an easy-to-install device which does not need any interruption of the 230 V AC power supply, and can be installed without any interruption of the loads. The voltage measurement front-end can self-calibrate to sense current and voltage waveforms regardless of the size and the type of the cable. Although the smart sensor node is non-intrusive and low-cost, its metric performance is comparable to the results obtained with professional expensive and intrusive measurement instruments. Finally, we present the three-phase version of the device designed to measure current and voltage waveforms from three-phase AC power systems.

The paper is organized as follows. Section 2 presents an overview of the non-intrusive measurement systems. In Sect. 3, we describe in detail the proposed smart sensor node, with a focus on the designed non-intrusive voltage measurement system. The design of the three-phase front-end extension is discussed in Sect. 4, while Sect. 5 shows the experimental results. Finally, Sect. 6 concludes the paper.

2 Related works

The measurement of current is a well-established technique, using either magnetic transducers or shunt resistors. Shunt resistors are a widespread and inexpensive method which however suffers of an error on accuracy higher than 5 % (Misti et al. 2014) and necessitate of particular designs because the non-galvanic isolation between the acquisition system and the load. For this reason, the measurement through the magnetic field across a single wire is preferable and plenty of transducers such as Rogowsky coils, current transformers or Hall effect sensors (Ripka 2010; Ziegler et al. 2009; Xiao 2003) are available on the market. A survey of smart electricity meters and their utilization, highlighting challenges as well as opportunities arising due to the advent of big data is reviewed in (Alahakoon and Yu 2016).

For voltage measurement, to the best of our knowledge, there is no commercially available non-invasive sensor that can measure the voltage in wires for single-phase or three-phase lines (usually 230–380–400 VAC). Some solutions proposed in literature focus on monitoring in extra/high-voltage (EHV/HV) power systems. For example, the authors in (Wu et al. 2011) present a method to measure the voltage based on a capacitive system, but the monitored voltages are of the order of hundreds of kV. HV Metering has demonstrated that customer voltage measurements exhibit hierarchical correlations which are consistent with the hierarchical connectivity relationships that exist between customers and distribution network (Mitra et al. 2015). The authors in (Kubo et al. 2009) propose a new resin-molded sensor for voltage and current monitoring, which measures power consumption, power factor and harmonics in 6.6 kV power line systems.

However, solutions developed for high voltage (HV) monitoring are usually designed for a different purpose because they are mainly exploited to gather information on overvoltage events and fast transient voltage waveforms, which could create problems on the HV management. They basically probe the time derivative of the phase voltages and the waveform can be restored either by numerical integration or by an analog integrator as part of the measuring system. This integration create drifts in the estimation of the continuous voltage monitoring which is hard to eliminate. In summary, the HV solutions are mainly designed to detect abrupt events and not for a continuous and regular acquisition of the waveform. Moreover HV capacitive sensors are usually not selective for a single-phase voltage, while it is a main requirement which has driven our work.

Recently some solutions for 230 V AC voltage power system have been proposed, but none of them is suitable for our purpose. For example, in (Tsang and Chan 2011) a sensor with two capacitive probes for 230 V AC systems is used to monitor the voltage on a conductor without making direct contact with it. However, the proposed sensor is conceived to be used in voltage monitoring of conductors with planar surfaces, as opposed to most common cylindrical conductors, such as wires or cables. Finally, the authors in (Chen et al. 2014) present a single sensor capable of measuring both the current and the voltage on a type of cable for domestic applications, but, for the particular materials and production processes used to realize it, the cost is remarkably high, and, most of all, the sensor is suitable for only one type of cables. Recently, the combination between hardware front-end and signal processing has been pushed further in (Borkowski et al. 2015), where voltage waveforms are reconstructed by artificial neural network (ANN) using the signals originating from electric field sensors. The system under measurement is yet another medium voltage (MV) substation, where costs and safety requirements still justifies complex and expensive solutions like this. Data gathered from meters have been used also in (Waeresch et al. 2015; Alimardani et al. 2015) where algorithms for linear LV state estimation are developed based on smart meter data. The approach uses a relatively high measurement redundancy, which is not common for state estimation in LV grids, and which are given by new generation metering systems.

In this paper we propose a non-invasive method for measuring the 230 V AC voltage waveform (low voltage (LV) configuration) between the wires of a single-phase or three-phase power line. The proposed approach does not require interruption of power supply, which makes measurements much safer and easy, and includes an algorithm for self-calibrating which permit the measure regardless the type and the size of the cables typical in residential and industrial buildings.

3 System description

In this section we present the enhancements to the wireless meter presented in (Porcarelli et al. 2013; Balsamo et al. 2013; Villani et al. 2015) to obtain a complete non-intrusive and self-powered meter, capable of sensing in a contactless manner. Moreover, the proposed extensions of the ADC front-end permit the usage both for a single-phase and for a three-phase electrical load regardless the type of cable. The firmware on board elaborates the current waveform and calculates some power quality features of the electric load such as power factor, apparent power, active power and reactive power. The block diagram of the proposed smart meter is shown in Fig. 1.

Fig. 1
figure 1

Block diagram of the proposed smart meter

The contactless voltage and current sensors are connected to the energy harvesting system (that supplies the whole node) and to the analog front end, that pre-processes the signals. The microcontroller computes the measurement data and send it to the local central gateway through the wireless module. Each meter exploits from one to three clamp-on transformers used for both current measurement and energy harvesting. The non-invasive capacitive-coupling sensors for voltage measurement are also used for each cable.

In the following subsections, we describe the four main design blocks of the meter architecture: (1) the microcontroller and wireless transceiver, (2) the current sensing section, (3) the energy harvester, (4) the voltage sensing section.

3.1 Microcontroller and wireless transceiver

The smart meter architecture is based on the JN5148 module from NXP, which provides an ultra-low power, high performance wireless microcontroller targeted to WSN applications, a 512 kB serial flash memory and a real-time clock. The microcontroller features an enhanced 32-bit RISC processor, a 2.4 GHz IEEE 802.15.4 compliant radio transceiver, 128 kB ROM, 128 kB RAM, and a complete set of analogue and digital peripherals such as a 12-bit ADC, a 12-bit DAC, a SPI interface etc. The key features of the JN5148 module are the very low sleep current, only 2.6 μA, and the low power consumption of the radio transceiver (namely at 3.0 V it draws 15 mA during transmission and 17.5 mA when receiving).

The smart meter transmits data to the Energy@Home compliant Gateway (Alahakoon et al. 2016) (connected to a java-enabled host), using ZigBee PRO protocol with Home Automation profile. This gateway is a commercial product called FlexKeyFootnote 1 and it is one of the most compact Zigbee USB Dongle available on the market today. Due to its RF performance, it enables secure and reliable wireless connectivity between internal and external environment.

3.2 Current sensing section

To assess the current we used a clamp-on current transformer, which can be easily wrapped around the cable, thus it does not require any interruption of the load or any wire cuts for series insertion. The installation is therefore much easier and safer to install. The adopted current transformer features linear performance over a wide range of input currents. Its main electrical characteristics are the number of turns (n = 3000) and the maximum input current of 60A for the cable under measurement (primary), which corresponds to a maximum output current from the secondary winding of 20 mA. Figure 2 shows the schematic view of the current measurement circuit.

Fig. 2
figure 2

Schematic view of the current sensing section, where the current sensor output is switched between the energy harvesting system and the current measurement circuit

The current coming from the inductive coupling is switched (with a relay controlled by the MCU) between the energy harvesting system and the current measurement circuit, where it is converted, with a resistance, to a proportional voltage, which is then sampled by the MCU internal ADC and elaborated by the 32-bit microcontroller.

3.3 Energy harvester

The energy harvesting circuit exploits the same current transformer used for the current measurement as power transducer, with the switching system shown in Fig. 2. When the node is in sleep mode, the energy harvesting unit charges the supercapacitor used as energy buffer. Since the acquisition of each samples from the ADC takes few milliseconds, the remaining time is used for energy harvesting, which leverages the measurement’s duty-cycle for recovering the energy spent in measurement mode, in which the transformer is used for sensing current. Using the supercapacitor, the smart meter performs a start-up without any external energy storage (such as a battery). Figure 3 shows the schematic view of the energy harvesting system. The system starts executing the association with the gateway only when the supercapacitor has collected enough energy for completing the network joining. This is guaranteed by the use of an ultra-low power voltage monitor (Vcc monitor) which enable the power supply to the whole wireless meter only when the energy reservoir passes a preset voltage level, which means that the energy stored in the supercapacitor suffices for the start-up completion.

Fig. 3
figure 3

Schematic view of the energy harvesting system

The AC to DC converter is a full-wave passive rectifier, realized by four Schottky diodes with very low forward voltage to minimize power losses across the bridge. The energy buffer is a 1F electric double layer capacitor with 2.5 mΩ internal resistance. An external battery is connected only during the MCU programming. An over-voltage protection circuit and a Vcc monitor circuit keep Vcc stable within a ±10 % at the nominal value of 3.3 V.

3.4 Voltage sensing section

The knowledge of the voltage waveform is important for measuring the Power Factor (PF), that is the ratio between the real power P (measured in W) and the apparent power |S| (measured in VA, where S is the complex power, measured in VA and given by the sum of active power P and reactive power Q, measured in var). PF spans from 0 to 1, but international regulations suggest to keep it bigger than 0.9 using dedicated compensation circuits. It is important to note that the PF value measures not just the contribution of the phase lag ϕ between voltage and current, but also the high frequency content of the input current. This harmonic content, as well as the phase lag ϕ, is regulated by the European Standard EN 60555, which defines the limits and the constraints for appliances and mains.

In the following subsections, we present the innovative non-intrusive and self-calibrating system we designed for electrical potential difference measurement.

3.5 Voltage sensors

The voltage sensors is based on capacitive coupling: we put a cylindrical conductor of length l = 1.25 cm around the cable, as shown in Fig. 4.

Fig. 4
figure 4

a Scheme of the capacitance-coupling voltage sensor. b Photo of the sensor

In this way, we obtain a cylindrical capacitor consisting in the internal conductor of the wire, of radius R1, and the external hollow conductor, of radius R2, separated by the insulating of the cable, with permittivity ε. The capacitance between the two conductors of such structure is given by the formula:

$$C = \frac{2\pi l\varepsilon }{{\ln \frac{{R_{1} }}{{R_{2} }}}}$$
(1)

Considering a normal cable for domestic applications, with R1 = 2÷3 mm, R2 = 3÷4 mm, and a PVC insulator, C is in the order of pF, as evaluated from the Eq. (1).

Applying this sensor on both cables of the power lines, we obtain the differential input of our system, as shown in Fig. 5a, which is equivalent to model the input voltage between the terminals of two capacitors depicted in the scheme of Fig. 5b.

Fig. 5
figure 5

a Block diagram of the voltage measurement system. b Equivalent circuit for the analog front-end input

3.6 Mathematical model

The problem consists in calculating two unknown variables (i.e., the capacitance C and the voltage Vin) from data acquired by the ADC. To do this, we use two equations, given by the transfer functions of the two analog filters implemented to realize the analog processing front end.

The first filter is shown in Fig. 6. It is an impedance voltage divider, made of two capacitances: the input unknown capacitance C and a capacitance C1 of 6.8nF, whose optimal value has been estimated through simulations and verified with experiments, to discern even smaller values of the input voltage and not to exceed the microcontroller ADC conversion range.

Fig. 6
figure 6

The first of the two filters used to implement the mathematical two-equation system that models the problem

The input–output relationship of this CC filter is:

$$V_{outCC} = \frac{C}{{C + C_{1} }}V_{in}$$
(2)

This is a real function, and the attenuation of Vin depends on the input capacitance C, without modifying its phase.

The second filter is shown in Fig. 7, and consists of a high-pass filter with a resistance voltage divider (R1 of 1 GΩ, and R2 of 3 MΩ) in series to the input capacitance. The resistance values are calculated with the aim of keeping the output signal in the available range and maximizing the dynamic, as well.

Fig. 7
figure 7

The second filter used to implement the mathematical system

The transfer function of this CRR filter is:

$$H_{CRR} \left( s \right) = \frac{{V_{outCRR} }}{{V_{in} }} = \frac{{sCR_{2} }}{{1 + sC\left( {R_{1} + R_{2} } \right)}}$$
(3)

The cut-off frequency of this filter is given by:

$$f_{t} = \frac{1}{{2\pi C\left( {R_{1} + R_{2} } \right)}}$$
(4)

From the transfer function, the resulting module and phase of the frequency response of this filter are given by:

$$\left| {H_{CRR} \left( {j\omega } \right)} \right| = \frac{{\omega CR_{2} }}{{\sqrt {1 + \omega^{2} C^{2} \left( {R_{1} + R_{2} } \right)^{2} } }}$$
(5)
$$\phi_{CRR} = \phi_{CRR} \left(\omega, C \right)$$
(6)

Starting from the phase ϕCRR, that is the phase shift corresponding to the delay between the VoutCC waveform (that is in phase with Vin) and the VoutCRR waveform (that is shifted of ϕCRR from Vin and, therefore, from VoutCC), we calculate the value of the input capacitance C by reversing (6), and then the waveform of Vin, by reversing (2).

3.7 The analog front end

A complete analog front end has been designed for the voltage measurement system. Each input channel is connected to both the CC filter and the CRR filter through a MCU-controlled switch, used to select the filter connected to the cable. Every filter output is decoupled from the downstream circuit by a buffer. Then we used an OPAMP in differential configuration to send a differential signal to the ADC. To avoid waste of energy when voltage measurement is not performed, all OPAMPs are turned off when not working, with a MCU-controlled pMOS which enables/disables their power supply. We also introduced a reference voltage (generated from the supply voltage) in the common mode node of filters and OPAMPs to bias their output voltages to positive values and therefore get the system to work correctly also in the negative semi-period of input signal.

3.8 Voltage measurement algorithm

The following steps summarize the algorithm designed to implement voltage measurement:

  1. 1.

    when the node wakes up from the sleep mode, it samples a period of VoutCC and then, after an exact multiple of signal periods from the beginning of sampling of VoutCC, samples a period of VoutCRR;

  2. 2.

    measures the delay between VoutCC and VoutCRR, and converts this time in an angle (considering that a delay of a whole period corresponds to a phase shift of 360°), obtaining ϕCRR;

  3. 3.

    knowing ϕCRR, calculates C from the reverse of the (6):

    $$C = C\left(\omega,\phi_{CRR}\right)$$
    (7)
  4. 4.

    knowing VoutCC waveform and C, calculates Vin waveform from the reverse of the (2):

    $$V_{in} = \left( {1 + \frac{{C_{1} }}{C}} \right)V_{outCC}$$
    (8)

3.9 Power features calculation

From the sample arrays of several periods of current signal and Vin signal, we can get the root mean square values for input current and voltage, using the formulas:

$$V_{RMS} = \sqrt {\frac{1}{N}\sum\limits_{k = 0}^{N - 1} {v^{2} \left[ k \right]} }$$
(9)
$$I_{RMS} = \sqrt {\frac{1}{N}\sum\limits_{k = 0}^{N - 1} {i^{2} \left[ k \right]} }$$
(10)

Hence, we can calculate the apparent power |S| with the following:

$$\left| S \right| = V_{RMS} \cdot I_{RMS}$$
(11)

We can also calculate the active power P directly from the instantaneous powers p[k]:

$$P = \frac{1}{N}\sum\limits_{k = 0}^{N - 1} {p\left[ k \right]} = \frac{1}{N}\sum\limits_{k = 0}^{N - 1} {v\left[ k \right]_{{}} } i\left[ k \right]$$
(12)

As the active power P can be also written with the following:

$$P = V_{RMS} \cdot I_{RMS} \cdot PF$$
(13)

hence, we can calculate the power factor PF as:

$$PF = \frac{P}{\left| S \right|}$$
(14)

Finally, we can calculate the absolute value of the reactive power Q with the following:

$$Q = \left| S \right|\sqrt {1 - PF^{2} }$$
(15)

Figure 8 shows the prototype of the single-phase smart metering system described above.

Fig. 8
figure 8

Contact-less smart power meter prototype

4 Three-phase extension

A schematic view of the three-phase version of the proposed smart meter is shown in Fig. 9

Fig. 9
figure 9

Schematic view of the three-phase version of the smart meter, with the main blocks that compose it

The three-phase device is quite similar to the single-phase model described above, as can be noted in this figure. A current transformer is set to each of the three phase cables, and their outputs is used both for energy harvesting and for current measurement. A capacitive coupling voltage sensor is installed on each of the three phase cables and on the neutral cable, and, as shown in the following, the voltage measuring technique is the same of the single-phase version.

The only significant difference with the single-phase device is the external ADC used to sample simultaneously all the voltage and current channels: for this purpose, we used the 14-bit low-power Linear Technology LTC1408 ADC, which permits to sample simultaneously up to six differential inputs at a frequency of 600 ksps. Data is then sent to the MCU through the SPI protocol.

4.1 Current sensing and energy harvesting section

The current coming from each sensor is routed (with a latching-coil relay controlled by the MCU) either the energy harvesting system (that is shared for all the three lines and similar to the one presented in Sect. 3.3) or the current measurement circuit, where it is converted, with a resistance, to a proportional voltage, which is then sampled by a differential channel of the external ADC (simultaneously to the two other current channels and the three voltage channels), sent through SPI to the MCU, and finally elaborated by the 32-bit microcontroller.

An additional CT is used for the neutral-cable. This is used to assess the current with unbalanced three-phase loads, and since this current is supposed to be small, the Ct is not used for the energy harvesting sub-circuit.

4.2 Voltage sensing section

A schematic view of the voltage sensing section for all the three phases is shown in Fig. 10.

Fig. 10
figure 10

Schematic view of the voltage sensing section for the three phases

The signal coming from each voltage sensor is routed (using a MCU-controlled signal that drives all the relays) either to the CC filter shown in Fig. 6, or to the CRR filter shown in Fig. 7. The output of each filter is decoupled from downstream circuit with a buffer, then is selected with another relay (controlled by the same MCU signal). Then it is sampled by an external ADC with dual-end channels. Converted data is sent through SPI to the MCU, and finally elaborated by the 32-bit microcontroller using the algorithm described in Sect. 3.4.

When the CC filters are selected, each of the three phase lines is sampled by a differential channel of the external ADC using the CC filter output of the neutral line as the negative input, as shown in Fig. 11.

Fig. 11
figure 11

Schematic view of the voltage sensing section with the CC filters selected

The dual happens when the CRR filters are selected: each of the three phase lines are sampled by a differential channel of the external ADC using the CRR filter output of the neutral line as the negative input, as shown in Fig. 12.

Fig. 12
figure 12

Schematic view of the voltage sensing section with the CRR filters selected

This architecture permits to replicate easily the analog front-end presented in Sect. 3. The relays are latching coil type, which permits to perform a commutation using short pulses instead of delivering continues current to the coil. However, the output current of the MCU is not sufficient to commutate all the relays and thus we added a current buffer to the GPIO output. The switch losses are minimized due to the galvanic contact of the relay and, in the same time, they permit to transfer bipolar signals.

5 Experimental results

All tests were realized with the highest ADC sampling frequency for the JN5148 microcontroller, 100 kHz, and with a sleep time for the sensor node of 60 s. The cables used for the tests include all the main types of wires for domestic applications, from AWG3 (at which corresponds a C of 12pF) to AWG15 (at which corresponds a C of 8pF), and are listed in Table 1.

Table 1 Properties of the types of cable for domestic applications used for the tests

Results for power factor measurement, reported for three types of cables and with three measurements for each of four different electric loads, are shown in Table 1, in which they are compared with the values measured with an intrusive power meter. Measured values demonstrate the performance of the proposed non-intrusive measurement system in comparison to professional instruments (see Table 2).

Table 2 Results for PF measurement for three types of cables, compared with the intrusive power meter measurements

As can be noted, PF values measured with the proposed non-intrusive smart meter has an error from the values measured with the intrusive power meter lower than 2 % and a deviation from the measured average value for a fixed load lower than 0.5 %.

Results for voltage measurement are shown in Table 3, reported for the bigger (AWG3) and the smaller (AWG15) form factor cables and for three types of electric load, with the percentage error on the measured average value and the value measured with an intrusive power meter. The error for the voltage measurement is negligible too, in fact it is lower than 3 %, as reported in the Table.

Table 3 Results for voltage measurement for the bigger and the smaller type of cables, for three types of electric load, with the deviation from the average value and the percentage error from the value measured with the intrusive power meter

6 Conclusions

In this paper we presented a wireless smart meter, compliant to IEEE 802.15.4 standard, which exploits a current transformer for contactless current measurement and an innovative contactless manner to measure the voltage waveform in a single-phase electrical line, and computes power consumption features. The device is therefore much safer and easy to install. The proposed system is also energetically self-sustainable, thanks to an energy harvesting module, which uses the same current sensor used for current measuring. The achieved accuracy is high, in fact the error for the electrical parameter measurements (i.e., current and voltage waveforms, power features) is lower than 3 %. Hence, results are comparable to professional (and intrusive) measurement instruments, but at a cost that is dozens of times lower.