You are on page 1of 7

labs project reader’s project

AC/DC
Power Meter
With high accuracy
and a wide measuring range
Hardware: Ton Giesberts (Elektor Labs) Software: Luc Lemmens (Elektor Labs)

When making voltage, current and power measurements on AC line-powered


devices, you need an instrument with good galvanic isolation between the
primary and secondary sides. The instrument described here, based on an
Arduino Uno with the Elektor Prototyping Shield, provides Class II insulation and
displays several quantities directly on an LCD. It also has separate measurement
signal outputs for connection to a multimeter or an oscilloscope.

The circuitry on the measurement board Shield (no. 140009-91), which processes Galvanic isolation
provides good isolation between the power the data and shows various readings on Power meters are mainly used to make
connections (AC or DC) on the primary the display. The displayed quantities for measurements on line-powered equip-
side and the measurement signal out- AC are effective power, voltage and cur- ment, and it is very important to have
puts on the secondary side. The signals rent, as well reactive power and power good galvanic isolation between the mea-
on the secondary side are digitized by the factor. If you connect a DC circuit to the surement circuitry on the one side and the
ADS1115, and the digital data is fed to an input, the meter shows the power, volt- data and measurement connector outputs
Arduino Uno with an Elektor Prototyping age and current. on the other side. This is often imple-

www.elektormagazine.com September & October 2015 47


learn design share

isolation amplifier and a good PCB lay-


Features out, you can obtain Class II insulation,
• Three measuring ranges: 10 A, 1.77 A and 0.177 A which makes the circuit very safe. The IC
• Maximum input voltage 500 VAC/300 VDC is housed in a gullwing-8 SMD package,
• Minimum measurable power 0.1 W which looks like an 8-pin DIP package
• Separate isolated measurement outputs for voltage and current with the pins bent out to the side. The
• Class II insulation between primary and secondary sides circuit also needs two completely sepa-
• Measurement data processing by Arduino rate power supplies — one for the input
• Measured values shown on a two-line LCD side and the other for the output side.
• Displays voltage, current, effective power, reactive power and In theory you could use standard power
power factor for AC modules with unregulated output voltage
• Displays power, voltage and current for DC for this purpose, but most of them are
not specified for Class II and you would
need extra components, including sepa-
mented with optocouplers and opamps, from Texas Instruments. This fully differ- rate voltage regulators. A better solution
but that approach results in a fairly high ential isolation amplifier has a minimum is to us an IC specifically designed for this
component count. Another option is to use bandwidth of 60 kHz and a rated gal- purpose. Here we chose the ADuM6000
a special isolation amplifier. Our search vanic isolation of 4250 Vpeak, with a rated from Analog Devices, which is an iso-
for a suitable type led us to the AMC1100 working voltage of 1200 Vpeak. With this lated DC/DC converter with a regulated

+5V

D1 +5VP +5V MOD1


140169-1

10
C14
+5VP GNDP
500VAC/10A max

VDD
K1 3 C8 C9 1 100n
K5
F1 AIN0 9
1 1 2 AL/RDY
~/+ IC1A 100n 100n AIN1 8 1 2
2 3 SDA
10A R2 AIN2 7 3 4
4 SCL
K2 R6 R7 GNDP AIN3 5 6
22R

R4 R5
IC2
1

GND

GND
1 5k6 4k3 7 8
VDD1 VDD2 C7
200R

~/-
2k2

R10 C6 R12 100n 9 10


R1 C1 2 7

6
12R VINP VOUTP 47R 11 12
1n
0R01

R11 R13 13 14
K3 JP1
C2 3 6
12R VINN VOUTN 47R
1 1n 330p C29
~/+ R3
GND1 GND2 470p EEC
10x 100x 5k6 4k3 R22
22R

K4
4

R8 R9 100k
+2V 6 AMC1100DUB
1 R21
~/- 7 GNDP 3
IC1B 100k
5 1
R23 IC4A
D2 2
R14 100k R29
+5VP +5V
+5VP GNDP R24
220k

47R
500V D3 100k +5V
R15 C12 C13 C30
K6
470p C34
220k

100n 100n I
500V C31
SP0502BAHTG 470p R36 100n
GNDP R26 U 100k
GNDP IC3
1

100k
VDD1 VDD2 R37
R17 C10 R19 C11 R25 R30
R16 2 7 5 5k6
12R VINP VOUTP 47R 100k
7
IC4B
75R

47R

R18 R20 R27


8

3 6 6 2
5

12R VINN VOUTN 47R 100k


6

330p 100n 7
GND1 GND2
R28 R34
3
IC7
100k 5k6 LM311
1

D1, D2, D4 = HSMS-2822


4

R35
+2V AMC1100DUB C32 C33 C35
4

IC1, IC4 = AD8639ARZ


100R

GNDP 470p
470n 100n

-2V8
+5VP +5V NCP5501DT50G
IC6 PMEG2010AEH
3 1
R31 R32 R33
D8
2k2

39k

2k2

C25
10
16

C23
2
7
1

D4 K7
VISO
VISO

VDD1
VDD1

+2V 100n 4u7 D6


+9...12V
11 6 L1 C27
NC RCSEL 6V3
8 C3 C15 C16 C17 C18 12 IC5 5 C19 C20 C21 C22 C28 8 0
NC RCOUT Power
IC1 13 4 IC4 10u
VSEL RCIN
4 100n 10u 100n 10u 100n 14 3 10u 100n 10u 100n 100n 4
D5 NC NC
GNDISO
GNDISO

C5 C4 D7
C24 C26
GND1
GND1

2V
100u 10u
6V3 100n 4u7
0W5
9

8
2
15

6V3

ACM4520-231-2P-T
GNDP ADuM6000ARWZ
-2V8 140409 - 11

Figure 1. The power meter uses a pair of AMC1100 ICs to measure voltage and current.

48 September & October 2015 www.elektormagazine.com


labs project reader’s project

output voltage of 5 V or 3.3 V. The max- and 0.177 A (gain = 100). The maximum (2.55 V typical at VDD = 5 V) is reduced
imum working insulation voltage VIORM is RMS values will be lower for signals with to nearly zero but not entirely eliminated.
846 Vpeak. high crest factors. Depending on the noise An offset of several millivolts (less than
level, the minimum power that can be 12 mV) is possible at the individual out-
The circuit measured with the circuit is less than puts of IC4, depending on the difference
The easiest way to measure current is to 0.1 W (ADC output at –50 dB full scale). between the DC voltages at the individual
connect a resistor in series with the load To keep the signal on the sense resistor outputs of the AMC1100.
and measure the voltage over the resis- within the common-mode range of IC1, The common-mode input range of the
tor. That’s how virtually every multime- one end of R1 is connected to a +2 V bias AD8639 extends from –0.1 V to 3 V with
ter works. Figure 1 shows the complete voltage provided by an LED (D5) on the a single 5 V supply voltage. To bring the
circuit diagram, with the measurement isolated side of IC5, which acts as a ref- output voltages of the AMC1100s within
terminals on the left (two inputs and two erence diode. D5 also serves as a power that range, voltage dividers R21/R22 and
outputs; K1 to K4). The sense resistor R1 indicator for the isolated side. R25/R26 reduce the DC voltage on the
(0.01 Ω) is connected between K1 and The maximum allowable differential volt- outputs of each AMC1100 from 2.55 V to
K3. There is also a 10-amp fuse in series age of the input signal to the AMC1100 1.275 V. According to our measurements,
with the resistor. isolation amplifier in the next stage the maximum differential output signal
Faston blade (‘spade’) terminals mounted (IC2) is 250 mV. The IC has a gain of 8, that the AMC1100 can deliver is approx-
on the PCB with screws are used for the resulting in a maximum output voltage imately 2.5 V (1.25 V peak) This means
measurement inputs and outputs. They of 2 V. IC2 has a differential input with that the maximum voltage on the inputs
provide good mechanical and electrical a switched-capacitor circuit. The output of IC4 will not exceed 1.9 V (1.275 VDC
connections and can easily accommodate noise level is specified as 3.1 mVrms with- plus 0.625 V, which is half the peak AC
fairly thick wires. out further details. If this specification voltage). That is well within the com-
applies to the full bandwidth, the actual mon-mode range of the AD8639.
To minimize the effect on the load, the noise level will be lower if the bandwidth
resistance of the sense resistor should be is limited ahead of the ADC. For this rea- An LM311 comparator (IC7) is included to
kept as low as possible, but the voltage son, we developed a filter board with four detect zero crossings. It has an open-col-
drop over the resistor also needs to be sections, which is inserted ahead of the lector output. This IC operates with +5 V
high enough for accurate measurement ADC module (see the Filter Module inset). and –2.8 V supply voltages instead of
at the lowest current level you want to If the ADC were connected directly to the +5 V and ground to allow zero crossings
measure. If the sense voltage is very low, output of IC2, the signal to noise ratio to be detected fairly easily without a lot
you can always boost it with an opamp. would be 645. This can be increased by a of extra components. Resistor R37 is a
Here this is handled by an adjustable gain factor of √60 by reducing the input band- pull-up for the output, and R35/R36 pro-
stage built around an additional opamp width of the ADC, yielding an S/N ratio of vide strong positive feedback to ensure
(IC1) ahead of the isolation amplifier. For 5,000. This makes it possible to measure reliable zero crossing detection. The com-
this we choose the AD8639, a dual opamp smaller signals over the sense resistor. parator output is connected to pin 12
with auto-zero inputs and rail-to-rail out- of K5. The best zero crossing detection
puts. The typical offset voltage of this IC The voltage over terminals K1 and K2 is accuracy is obtained with negative pulses.
is 3 µV (9 µV max.), and the maximum measured by a second AMC1100 (IC3). In that situation the output of IC7 is still
offset drift is only 0.06 µV. It is therefore The voltage divider R14-R15-R16 attenu- negative and there is no hysteresis, and
an outstanding choice for this application, ates the voltage over these terminals by the non-inverting input of the compara-
for both AC and DC measurements. The a factor of 5,900, resulting in a voltage tor is at ground level.
gain bandwidth product is 1.35 MHz. This of 39 mV at the input of IC3 at 230 VAC
means that the bandwidth at the max- line voltage. Resistor R16 of the volt- An EEC connector (K5) is provided for
imum desired gain is still greater than age divider is connected to the +2 V ref- transferring the data to the Arduino. It
10 kHz, which is more than enough for erence voltage. The outputs of the two allows the I2C signals from the A/D con-
our purpose. AMC1100s are connected to the four verter and several other signals to be
inputs of the ADS1115 BoB. sent to connector K2 on an Arduino pro-
IC1 is configured as an instrumenta- totyping shield mounted on the Arduino
tion amplifier with a differential gain of As previously mentioned, the circuit can Uno board.
1 + 2 x (R6 + R7)/RG, where R4 or R5 also be used to measure high voltages The 5 V supply voltage for the second-
can be selected for RG. The gain (the ratio safely with an oscilloscope or multimeter. ary side is provided by a low-drop volt-
of the voltage between the outputs of The differential outputs of the AMC1100s age regulator (IC6). That is sufficient for
IC1A and IC1B to the voltage over R1) are not particularly suitable for this; a most of the ICs in the circuit. However,
is 1 when no jumper is fitted on JP1. You single-ended output is easier to use. An IC4 also needs a negative supply voltage
can fit a jumper on JP1 to obtain a gain additional AC8639 dual opamp (IC4) is in order to deliver an AC signal without
of 10 or a gain of 100. In combination included for this purpose. It converts the any DC offset, and we additionally want
with the gain of IC2, these gain settings differential signals from the two isolation to be able to measure DC voltages. This
provide three current ranges with sinu- amplifiers into single-ended signals with means that the outputs of K6 also need
soidal currents: 17.7 A (gain = 1; limited the same amplitude. The common-mode to be able to deliver negative voltages.
to 10 A by fuse F1), 1.77 A (gain = 10), offset at the outputs of the AMC1100 For this purpose, a virtual ground is cre-

www.elektormagazine.com September & October 2015 49


learn design share

ated with the aid of a 2 V Zener diode overdimensioned with a current rating and current measurements at nearly the
(D7) in series with the ground pin of the of 3 A, but we chose it for its low series same time, the ADC would have to be
low-drop voltage regulator (IC6). resistance (50 mΩ per winding). switched back and forth by I2C bus com-
mands, and that would cause too much
The isolated supply voltage for the Measuring with Arduino delay between the two measurements.
input sections of the AMC1100s and the The maximum sample rate of the A/D (For a more detailed explanation, see
input amplifier IC1 is provided by the converter in free-running mode is only the Escaped from the Labs article “And
ADuM6000 (IC5). The integrated volt- 860 Hz and the IC has just one physical Then Just a Bit of Software” in the July
age regulator is set to 5 V by connect- ADC to serve the four inputs, so simul- & August 2015 edition).
ing VSEL to Viso. A common-mode choke taneous measurement of voltage and
(L1) is used with this IC to suppress any current at the maximum sample rate is We therefore chose a measuring method
noise that may be present. It is somewhat not possible. In order to make voltage in which a series of voltage measure-

Component List Measurement Board


Resistors
R1 = 0.01Ω 2W, 1% (Ohmite FC4L64R010FER)
R2,R3 = 22Ω, 0.25W, 5%, SMD 0805
R4,R31,R33 = 2.20kΩ, 0.125W, 1%, SMD 0805
R5 = 200Ω, 0.125W, 1%, SMD 0805
R6,R8,R34,R37 = 5.6kΩ, 0.125W, 1%, SMD 0805
R7,R9 = 4.3kΩ, 0.125W, 1%, SMD 0805
R10,R11,R17,R18 = 12Ω, 0.125W, 1%, SMD 0805
R12,R13,R19,R20,R29,R30 = 47Ω, 0.125W, 1%, SMD 0805
R14,R15 = 220kΩ, 1.5W, 1%, 500 V, SMD 2512
R16 = 75Ω, 0.125W, 1%, SMD 0805
R21–R28,R36 = 100kΩ, 0.125W, 1%, SMD 0805
R32 = 39kΩ, 0.125W, 5%, SMD 0805
R35 = 100Ω, 0.125W, 1%, SMD 0805

Capacitors
C1,C2 = 1nF 50V, 5%, SMD 0805, C0G/NP0
C3,C7,C11,C14,C23,C24,C34,C35 = 100nF 50 V, 10%, SMD
0805, X7R
C4,C15,C17,C19,C21 = 10µF 10V, 10%, SMD 0805, X7R
C5 = 100µF 6.3V, 20%, SMD Case A (1206), tantalum
C6,C10 = 330pF 50V, 5%, SMD 0805, C0G/NP0
C8,C9,C12,C13 = 100nF 50V, 10%, SMD 1206, X7R
C16,C18,C20,C22,C28 = 100nF 25V, 10%, SMD 0603, X7R
C25,C26 = 4.7µF 6.3V, 10%, SMD Case R (0805), tantalum
C27 = 10µF 25V, +80/–20%, SMD 1206, Y5V
C29-C32 = 470pF 50V, 5%, SMD 0805, C0G/NP0
C33 = 470nF 16V, 10%, SMD 0805, X7R

Inductor
L1 = ACM4520-231-2P-T, SMD, common mode choke 3A, 2 x
50mΩ, 230Ω @100MHz

Semiconductors
D1,D2,D4 = HSMS-2822-TR1G, SMD SOT-23
D3 = SP0502BAHTG, SMD SOT-23
D5,D6 = LED, green, SMD 0805
D7 = BZT52C2V0-7-F, SMD SOD-123 (zener diode 2 V 0.5W)
D8 = PMEG2010AEH, 20V 1A, SMD SOD-123F
IC1,IC4 = AD8639ARZ, SMD SOIC-8
IC2,IC3 = AMC1100DUB, SMD Gullwing-8 (SOP-8)
IC5 = ADuM6000ARWZ, SMD RW-16 (SOIC_W-16)
IC6 = NCP5501DT50G, SMD DPAK3
IC7 = LM311D, SMD SOIC-8

Miscellaneous
K1–K4 = 0.25’’ Faston plug with 3.3mmm screw terminal
K5 = 14-pin (2x7) pinheader, 0.1’’ pitch
K6,JP1 = 3-pin pinheader, 0.1’’ pitch
K7 = 2-pin pinheader, 0.1’’ pitch
MOD1 = 10-pin (2x5) socket, 0.1’’ pitch
F1 = fuseholder, PCB mount, 32A 600V, 6.3 x 32mm
F1 = 10A, 500VAC/300VDC, antisurge, 6.3 x 32mm
Module no. 140169-91 (ADS1115-eBOB)
Filter PCB no. 140169-2 Figure 2. The PCB layout of the measurement board. The wide copper-free
PCB no. 140409-1 strip visible in the middle under the three large ICs provides galvanic isolation
between the primary and secondary sides.

50 September & October 2015 www.elektormagazine.com


labs project reader’s project

Figure 3. The A/D converter BoB and the filter board are stacked on top of each other and inserted in connector MOD1 on the measurement board.

ments (172, to be precise) are first For DC: measurement board by a piece of 14-lead
made, followed by a series of the same flat cable with matching IDC headers, as
number of current measurements. Both ⎛ N ⎞ shown in the photos.
series are triggered by zero crossings of V = ⎜ ∑ V [ i ]⎟ / N
⎝ i=1 ⎠
the voltage in order to define the phase It is essential to mount the measure-
relationship between the voltage and ment board safely in a properly insu-
current measurements. For this pur- ⎛ N ⎞ lated enclosure in order to prevent
pose, the hardware of the power meter I = ⎜ ∑ I [ i ]⎟ / N accidental contact with high volt-
⎝ i=1 ⎠
includes a comparator (IC7) connected to age (AC line voltage) while making
pin 9 of the Arduino board (I/O pin B1), measurements.
which detects the zero crossings. When
P =V × I
this synchronization signal is missing, You can let the blade connectors protrude
the software automatically switches to from the enclosure at one end, but a safer
DC measurement mode, and it switches option is to connect them to banana jacks
back to AC mode when the signal is again These quantities are displayed on the or suitable AC power connectors. At the
present. LCD in a cyclic loop. The screens for the other end you need an opening for the
various readings are shown in Figure 4. flat cable, and you can fit some jacks or
The software for the power meter (a sockets for the measurement signals from
sketch for the Arduino Uno, which can be Construction K6 and a power connector wired to K7.
downloaded for free from [4]), measures The measurement board PCB (140409- On the Arduino prototyping shield you
and/or calculates the following quantities 1) has a fairly spacious layout (Fig- have to fit two extra connectors to trans-
(see also [5]): ure 2). Nearly all the components are fer the signals to the EEC connector
SMDs, which of course makes assem- already present on the shield. For this
For AC: bly more difficult for relatively inexperi- purpose, connect K2 pin 11 to K4 pin 1
enced builders, but none of the compo- and K2 pin 12 to K4 pin 2, using thin
N nents are extremely small. Mount all of insulated wire or enameled copper wire.
∑ V [i ] × I [i ] the SMDs first, followed by the headers, The measurement board can be powered
i=1
PVA = connectors and fuse holder. Then attach from an AC adapter with an output volt-
N the blade connectors firmly to the board age of 9–12 V DC and a current rating of
with small screws, nuts and split washers. 200 mA or more. The Arduino board must
⎛ N ⎞ The ADS1115 BoB (140169-1) is available be powered from a separate AC adapter.
VRMS = ⎜ ∑ V 2 [ i ]⎟ / N fully assembled from the Elektor Store.
⎝ i=1 ⎠ Calibration
You will have to assemble the associated The software allows the offset and gain
N filter board (PCB 140169-2) yourself. It (or attenuation) of the analog front
⎛ ⎞
IRMS = ⎜ ∑ I 2[ i ]⎟ / N has SMDs on both sides. The filter board end on the measurement board to be
⎝ i=1 ⎠ has two 5-position connectors on the top adjusted to calibrate the voltage and cur-
side for connection to the ADC BoB and rent measurement. The adjustment fac-
two 5-position pin headers on the bot- tors are saved in the internal EEPROM of
PRMS = VRMS × IRMS tom side for attachment to the measure- the Arduino at the end of the calibration
ment PCB. Plug the ADC BoB on top of procedure, so you should only have to do
the filter board, and then plug the filter the calibration once.
PRMS board into the MOD1 connector on the
P - factor = measurement PCB. The Arduino Uno with After a reset the software checks whether
PVA
the prototyping shield is connected to the the relevant memory locations have been

www.elektormagazine.com September & October 2015 51


learn design share

Filter Module
As mentioned in this article, the sensitivity of the meter can be increased considerably
by using filters to drastically reduce the bandwidth ahead of the ADC module. For this
purpose we developed a filter module containing four third-order active filters (one
for each input of the module). They are dimensioned for a cutoff frequency of
1 kHz. That value may appear fairly high, but it was selected to keep the effect
on the phase relationship of 50 Hz or 60 Hz measurement signals and their
first harmonics as small as possible.

We chose a Sallen & Key configuration for the filters (Figure A) with


a third-order Butterworth characteristic, as shown by the frequency
response curve in Figure B. We opted for OPA377 opamps. These
opamps feature rail-to-rail operation and have very good noise
characteristics for types with CMOS inputs. The input bias current is typically
just 0.2 pA, so the filter resistors do not cause any additional offset. The typical input
offset and offset drift versus temperature are just 0.25 µV and 0.32 µV/°C, respectively.

The compact PCB fits precisely beneath the ADS e-BoB. To make this possible,
the SMDs are placed on both sides of the board (Figure C). The board has
two connectors on the top side (socket headers or SIL IC sockets) and two pin
headers on the bottom with thin round pins, so that everything can simply be
plugged together.

With components mounted on both sides of the board, assembly is certainly not easy,
but that is the price for keeping the board so small. Work carefully and use a magnifying
glass, which comes in very handy here.

C2
4
22n 1
R1 R2 R3 IC1
3
21k5 24k3 23k2
C1 C3
OPA377
10n 1n5

C5
4
22n 1
R4 R5 R6 IC2
3
21k5 24k3 23k2
VDD
C4 C6
K3 OPA377 K1 K4 K2
AIN0 10n 1n5 AIN0 VDD VDD
AIN1
AIN2
AIN1
AIN2
AL/RDY
SDA
AL/RDY
SDA
B
C8 SCL SCL
AIN3 AIN3
4
22n 1
R7 R8 R9 IC3
3
21k5 24k3 23k2
C7 C9
OPA377
10n 1n5

VDD
C11
4
22n 1
R10 R11 R12 IC4
3
21k5 24k3 23k2 5 C13 5 C14 5 C15 5 C16
C10 C12 IC1 IC2 IC3 IC4
OPA377 2 100n 2 100n 2 100n 2 100n
10n 1n5

140169 - 2 - 11

A C

Component List Filter Module


Resistors Capacitors Semiconductors
R1,R4,R7,R10 = 21.5kΩ 1%, 0.1 W, C1,C4,C7,C10 = 10nF 50V, 5%, IC1,IC2,IC3,IC4 = OPA377AIDBVT
SMD 0603 C0G/NP0 or X7R, SMD 0603
R2,R5,R8,R11 = 24.3kΩ, 1%, 0.1 W, C2,C5,C8,C11 = 22nF 50V, 5%, Miscellaneous
SMD 0603 C0G/NP0 or X7R, SMD 0603 K1,K2 = 5-pin connector, 0.1’’ pitch
R3,R6,R9,R12 = 23.2kΩ, 1%, 0.1 W, C3,C6,C9,C12 = 1.5nF 50V, 5%, K3,K4 = 5-pin pinheader, 0.1’’ pitch
SMD 0603 C0G/NP0 or X7R, SMD 0603 PCB # 140169-2
C13,C14,C15,C16 = 100nF 50V, 10%, X7R,
SMD 0603

52 September & October 2015 www.elektormagazine.com


labs project reader’s project

written, which means they do not con-


tain the value ‘255’. If they do, the pro-
gram automatically jumps to the calibra-
tion routine; otherwise it goes directly to
measurement mode. You can redo the cal-
ibration at any time by pressing S1 right a
after the supply voltage is switched on.
At each step of the calibration procedure,
you first see a screen that tells you what
you are about to do, and after you press
S1 the screen for the actual calibration
adjustment appears.
b

The first step is to zero the offset of the


voltage measurement (0V input). Leave
terminals K1 and K2 unconnected, and
press buttons S1 and/or S2 on the
Arduino prototyping shield to adjust the
reading on the LCD to 0 V. After a 5-sec- c
ond interval with no button presses, the
software goes to the next step: setting
the gain factor for voltage measurement
(input V). For this adjustment, connect a
known high voltage (50 V or more) to the
K1/K2 terminals together with a reliable
multimeter, and again use S1 and S2 to d
adjust the reading on the LCD to match
the reading on the multimeter.

Here again, a 5-second interval with no


button presses takes you to the next step:
zeroing the current offset (0A input).
e
Start with K1/K2 again disconnected and
adjust the offset with the two buttons to
obtain a zero reading, the same as for
the voltage offset. The final step is setting
the gain factor for current measurement
(input I). For this adjustment, connect a
DC voltage source to K1/K2 and connect f
a load and an ammeter to K3/K4. Then
you can adjust the gain factor for cur-
rent measurement in the same way as
previously described for the voltage.
(140409-I)

Web Links
[1] www.elektormagazine.com/140169 h

[2] www.elektormagazine.com/140035
[3] www.elektormagazine.com/130485
[4] www.elektormagazine.com/140409 Figure 4. The readings appear sequentially on Figure 5. The calibration screens. These are dis-
the display. For AC they are voltage, current, played in the following sequence: offset for voltage
[5] http://openenergymonitor.
effective power, reactive power and power factor. measurement (a & b), gain for voltage measure-
org/emon/buildingblocks/ For DC they are voltage, current and power. ment (c & d), offset for current measurement (e &
ac-power-arduino-maths f), and gain for current measurement (g & h).

www.elektormagazine.com September & October 2015 53

You might also like