Beruflich Dokumente
Kultur Dokumente
Abstract—The power factor (PF) levels are established by affordable costs of its components and the ease of
each country’s national standards. In Brazil the lower power programming it through a simplified version of C++ [6], [7].
factor level allowed is 0.92. In order to monitor this quantity, For example, in [8]-[12], Arduino is implemented for the real-
the present paper uses Arduino to develop a PF metering system. time monitoring of electrical quantities, such as current,
It presents all the necessary theories concerning the calculus of voltage, P, S, and PF.
the power factor itself, the programming logic applied to the data
acquisition, and the details of the hardware components used in The objective of this article is to develop a PF metering
this system. In the end, two tests are conducted so that the meter system using Arduino addressing a different methodology from
accuracy can be evaluated. The results are compared with other papers. Thus, the discussions in Section II relate to the
regulated measuring instruments. components of the meter hardware, the electrical connections
used, and the applied programming logic. In Section III, two
Keywords—power factor; Arduino; energy efficiency; power loads with different impedances are connected to the meter,
quality; electrical measurement. and the results are compared with regulated measuring
instruments and analyzed in Section IV. Finally, Section V
I. INTRODUCTION presents the conclusions of this paper and suggests
Power Factor (PF) is an electrical quantity which is often improvements for future works.
related to power quality and energy efficiency analyzes. A low
PF increases the losses of the conductors; contributes to the II. METHODOLOGY
occurrence of overload conditions on electrical systems; This section discusses the operating principles of the meter,
reduces the voltage level, especially when it is located on from the PF calculation to the presentation of every system
connection points that are far from the feeder; and component, including the measuring instruments used on the
compromises the capacity of transformers and feeders [1], [2]. tests in Section III.
From an economic point of view, in Brazil, extra taxes are
charged to the electric bill of group “A” consumers – those A. Theorical Introduction
whose voltage supply is equal to or higher than 2.3kV or The PF is estimated according to the instantaneous values
served by an underground distribution system – with a leading of the current and voltage measured on the load. Based on
PF lower than 0.92 from 23:30h to 6:30h and with a lagging these quantities, it is possible to calculate the rms current, the
PF below 0.92 during the complementary daily period [3]. rms voltage, P, S, and then the PF, according to (1)-(5) [8]:
According to the literature, PF is defined as the ratio
between the active power (P) and the apparent power (S) [2], n I 2
i=1 i
[4]. Alternatively, it can be expressed as the cosine of the angle IRMS = (1)
n
between the power phasors (cos φ), only for pure sinusoidal
voltage and current components [1]. In the presence of n V 2
i=1 i
nonlinear loads, the total harmonic distortion (THD) must be VRMS = (2)
n
considered in the PF calculation. In this condition, PF is
different from cos φ [1], [4].
1 n
In many industries, for example, loads with a quick P=n i=1 V𝑖 × I𝑖 (3)
dynamic operation consume high levels of reactive power (e.g.,
induction motors, welding machines, electric arc furnaces,
etc.). Therefore, there is a significant PF reduction that should S = VRMS × IRMS (4)
be fixed, usually through capacitor banks switching [1], [5].
Currently, the open-source prototyping platform Arduino is P
PF = (5)
becoming popular among students and researchers, due to the S
Where: The function analogRead( ), used in Arduino programming
for reading analog values, takes about 100 µs (0.0001 s) to read
Ii and Vi are the instantaneous values of the current and an analog input, so the maximum reading rate is about 10,000
voltage of the ith sample; times a second [13].
IRMS and VRMS are the rms values of the current and voltage; The tests determined that, on a 60 Hz cycle, Arduino can
and n is the maximum number of samples. read approximately 75 samples of instantaneous values of
Fig. 1 and 2 show the simplified and real circuit of the PF voltage and current and measure the quantities simultaneously.
meter. The measurements are displayed in Fig. 5 and 7 in Section III.
C. Current Measurement
The sensor ACS712 for currents up to 30 A was used for
the current measurement. For this current level, it has a
sensitivity of 66 mV/A. The device operating principles are
based on the Hall Effect [14]. In addition, it can read both
alternating and direct current.
There are other measurement techniques used to read
current with Arduino, such as current transformers associated
with voltage dividers. In this work, the ACS712 was chosen
because of its good accuracy and simplicity.
D. Voltage Measurement
Fig. 1. Simplified circuit of the PF meter. The circuit of Fig. 3 was used for the voltage measurement
[15]. The values of the passive elements are: R1 = 100 kΩ; R2
= 10 kΩ; R3 = R4 = 100 kΩ; C = 2.2 µF. The winding turns
ratio of the transformer (AC - AC Adapter) is approximately
2 11: 1.
1
1 1
1
1
4
1
3 1
5
1
1
1
1
1 Arduino M ega 2560
2 USB
3 ProtoBoard Fig. 3. Voltage measurement circuit.
4 ACS712 (Current Sensor)
5 AC - AC Adapter The transformer and the resistors R1 and R2 reduce the
supply voltage (127 VRMS) to safe levels regarding the Arduino
analog inputs (bellow 5 V).
Fig. 2. Real circuit of the PF meter.
On the other hand, as the values read by Arduino analog
inputs must be positive, R3 and R4 resistors are responsible for
B. Arduino the offset required, so there are no negative values on the
The board Arduino Mega 2560 was used in this article. It analog input. In other words, these resistors divide the
has 54 digital inputs and outputs, 16 analog inputs, and 256 kB continuous voltage 5 V (provided by Arduino) to 2.5 V at the
of flash memory operating at 16 MHz [13]. The device feeding node among R3, R4, R2 and C. Therefore, the instantaneous
is supplied by USB, which is connected to a computer. values of the read voltage are increased by 2.5 V, so all of these
values are positive.
The Arduino has a 10-bit analog-to-digital converter (A/D).
Therefore, the values read from 0 to 5 V (maximum The capacitor C is simply used as a low-pass filter, filtering
permissible value) in the analog inputs are converted from 0 to high frequency disturbances. Thus, the capacitor has an
1023 bits. So, the resolution obtained is 5 V/1024 bits [13]. important role in the circuit, because the voltage signal would
be floating without it, due to the high frequency components.
E. Digital Data Processing III. TESTS
The read data from both voltage and current measurements In order to verify the accuracy of the developed meter, two
are digital values from 0 to 1023 bits. Thus, it requires a tests were performed: the first one with a purely resistive load,
programming logic that centralizes the waveforms on the consisting of incandescent lamps, and the second one with an
horizontal axis and then converts these digital values to analog, inductive load, consisting of compact fluorescent lamps.
considering the Arduino resolution (item B).
On the current measurement, this data processing also A. Purely Resistive Load (R)
considers the sensor sensibility (item C). Regarding the voltage
measurement, the voltage divider and the transformer winding The load R investigated in this section is only made of an
turns ratio must be taken into account (item D). incandescent lamp set. In this test, the voltage VRMS measured
by the multimeter was 125.6 V. This voltage is assumed as the
To illustrate this process, Fig. 4 shows the waveform of the reference. Table I and Fig. 5 show the data measured by the
digital voltage (in red) and the analog voltage (in black), Arduino, and Table II and Fig. 6 show the data measured by the
properly centered on the horizontal axis and converted. The voltage source and the oscilloscope, respectively.
read values come from the distribution grid, so there is a slight
harmonic distortion on the waveforms.
TABLE I. PARAMETERS MEASURED BY THE ARDUINO (R-LOAD)
H. Multimeter
Due to the significant voltage drop in the electrical cables, it
was necessary to measure the rms voltage at points located
near the load, in the tests in Section III. The multimeter ICEL
MD-6220 was used; it has a 0.1V resolution for the scale of
400V [18].
Fig. 5. Voltage and current waveforms measured by the Arduino (R load).
Fig. 7. Voltage and current waveforms measured by the Arduino (RL load).
TABLE III. PARAMETERS MEASURED BY THE ARDUINO (RL-LOAD) Fig. 8. Waveforms of current (CH1) and voltage (CH2) measured by the
oscilloscope (RL load).
ACKNOWLEDGMENT
The authors recognize the contributions of Daniel Flores
Silva, Daniel Henrique Nogueira Dias and Walter Vieira
Teixeira concerning the development of this article. Besides,
they are thankful for the financial support provided by CAPES
and CEPEL.
REFERENCES