EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

Analog multipliers and watt measurement

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Electronics Design - Analog multipliers and watt measurement

Goto page 1, 2, 3, 4, 5  Next

P E Schoen
Guest

Mon Dec 19, 2011 8:23 am   



Jim Thompson's mention of the MC1495 and MC1496 reminded me of other analog
multipliers I have dealt with, mostly for watt transducers. The first one I
encountered was built with an array of diodes and resistors, with
transformers to provide current and voltage signals, and a direct output to
an analog 1 mA meter. It was included in some of their DB40 series
switchboard wattmeters, and also watt transducers. There were versions for
single phase and also two and 2-1/2 element versions for three phase. I used
the same basic circuit for a newer design that added a power supply and
op-amp output. I don't know exactly how it works, but it has to do with the
logarithmic function of the diodes and the bias provided by the resistor
network. It's been over 20 years since I worked on that design. Here are
schematics.

http://www.pstech-inc.com/dwgs/WATTRANS.pdf
http://www.pstech-inc.com/dwgs/843c241_sch.pdf
http://www.pstech-inc.com/dwgs/843C251_sch.pdf

I was looking for more information on the circuit, which I think was
patented, but I only found newer designs. One that seemed interesting was a
pulse width modulation system.
http://www.freepatentsonline.com/4451784.html

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurement/ade7763/products/product.html

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul

Bruce Varley
Guest

Mon Dec 19, 2011 9:03 am   



"P E Schoen" <paul_at_pstech-inc.com> wrote in message
news:qEBHq.31897$Dr1.16687_at_newsfe08.iad...
Jim Thompson's mention of the MC1495 and MC1496 reminded me of other analog
multipliers I have dealt with, mostly for watt transducers. The first one I
encountered was built with an array of diodes and resistors, with
transformers to provide current and voltage signals, and a direct output to
an analog 1 mA meter. It was included in some of their DB40 series
switchboard wattmeters, and also watt transducers. There were versions for
single phase and also two and 2-1/2 element versions for three phase. I used
the same basic circuit for a newer design that added a power supply and
op-amp output. I don't know exactly how it works, but it has to do with the
logarithmic function of the diodes and the bias provided by the resistor
network. It's been over 20 years since I worked on that design. Here are
schematics.

http://www.pstech-inc.com/dwgs/WATTRANS.pdf
http://www.pstech-inc.com/dwgs/843c241_sch.pdf
http://www.pstech-inc.com/dwgs/843C251_sch.pdf

I was looking for more information on the circuit, which I think was
patented, but I only found newer designs. One that seemed interesting was a
pulse width modulation system.
http://www.freepatentsonline.com/4451784.html

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurement/ade7763/products/product.html

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.


Guest

Mon Dec 19, 2011 9:14 am   



On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <bv_at_NoSpam.com>
wrote:

Quote:
Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurement/ade7763/products/product.html

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

John Larkin
Guest

Mon Dec 19, 2011 4:25 pm   



On Mon, 19 Dec 2011 10:14:54 +0200, upsidedown_at_downunder.com wrote:

Quote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <bv_at_NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurement/ade7763/products/product.html

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

John

Bill Sloman
Guest

Mon Dec 19, 2011 7:17 pm   



On Dec 19, 4:25 pm, John Larkin
<jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
Quote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsided...@downunder.com wrote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <b...@NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurem....

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

It helps if you are picky about the probablity distribution of the
noise you add.

J. Watkinson, The Art of Digital Audio, 2nd ed. (Focal, Stoneham, MA
and Borough Green, Sevenoaks, U.K., 1988) gives a detailed review of
the literature, in his discussion of A/D conversion, amongst a lot of
other useful stuff.

Not enough people have read it.

http://rsi.aip.org/resource/1/rsinak/v70/i12/p4734_s1?bypassSSO=1

--
Bill Sloman, Nijmegen


Guest

Mon Dec 19, 2011 9:03 pm   



On Mon, 19 Dec 2011 09:17:23 -0800 (PST), Bill Sloman
<bill.sloman_at_ieee.org> wrote:

Quote:
On Dec 19, 4:25 pm, John Larkin
jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsided...@downunder.com wrote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <b...@NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurem...

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

It helps if you are picky about the probablity distribution of the
noise you add.

J. Watkinson, The Art of Digital Audio, 2nd ed. (Focal, Stoneham, MA
and Borough Green, Sevenoaks, U.K., 1988) gives a detailed review of
the literature, in his discussion of A/D conversion, amongst a lot of
other useful stuff.

Playing with dithering requires quite high oversampling rates.

For example in properly dithered CD chains (44.1 kHz sampling
frequency, 16 bits hence 96 dB theoretical SNR), in the "fade to
noise", an audio test signal to the system can be lowered well below
-96 dB and the tone is still detectable, but only well below the
maximum audio frequency (20 kHz). At 1 kHz, you might be able to
detect the tone perhaps at -105 dB.

In the current channel of a TrueRMS meter it might be sufficient to
sample the signal at say 200 Hz, if we could assume that the current
waveform is sinusoid. Adding dithering noise and sampling at a few kHz
will get some extra bits to the averaged low frequency samples.

However, with typical modern loads, the load current is far from
sinusoid and require a significantly higher effective sampling rate.
This might still require increasing the sample rate once more by a
decade or more.

Thus, the sampling rate might have to be over 20 kHz, first to get rid
of quantization error of the low bit count ADC with ditheration and
downsample down to say 2 kHz and use these samples to multiply the
corresponding voltage samples at 2 kHz to correctly represent the
harmonics of the current measurements.

A very much doubt that a very small controller would handle it.


Guest

Mon Dec 19, 2011 10:02 pm   



On Mon, 19 Dec 2011 22:03:38 +0200, upsidedown_at_downunder.com wrote:

Quote:
However, with typical modern loads, the load current is far from
sinusoid and require a significantly higher effective sampling rate.
This might still require increasing the sample rate once more by a
decade or more.

_If_ it can be assumed that the current waveform is repeated
identically at several cycles and the measurement values needs to be
updated, say once a second, a lower sample rate would do. Sampling
(with a short gate time) at a sampling frequency slightly off the
mains frequency (say 204 Hz/244 Hz for 50/60 Hz), the waveform can
reconstructed quite accurately in 1 s (just as in sampling
oscilloscopes), when the sampling moves around the waveform.

Thus multiplying the current and voltage samples at this low sampling
frequency and averaging the power for a whole second (instead of a
single mains cycle) might be sufficient.

Wondering if this approach would be compatible with dithered
oversampled ADC conversion ?

But if the cycles are not identical and a higher display update rate
is required, this approach does not work.

Phil Hobbs
Guest

Mon Dec 19, 2011 10:45 pm   



On 12/19/2011 04:02 PM, upsidedown_at_downunder.com wrote:
Quote:
On Mon, 19 Dec 2011 22:03:38 +0200, upsidedown_at_downunder.com wrote:

However, with typical modern loads, the load current is far from
sinusoid and require a significantly higher effective sampling rate.
This might still require increasing the sample rate once more by a
decade or more.

_If_ it can be assumed that the current waveform is repeated
identically at several cycles and the measurement values needs to be
updated, say once a second, a lower sample rate would do. Sampling
(with a short gate time) at a sampling frequency slightly off the
mains frequency (say 204 Hz/244 Hz for 50/60 Hz), the waveform can
reconstructed quite accurately in 1 s (just as in sampling
oscilloscopes), when the sampling moves around the waveform.

Thus multiplying the current and voltage samples at this low sampling
frequency and averaging the power for a whole second (instead of a
single mains cycle) might be sufficient.

Wondering if this approach would be compatible with dithered
oversampled ADC conversion ?

But if the cycles are not identical and a higher display update rate
is required, this approach does not work.


Your requirement is too stringent. It's the time averaged power that's
being measured, i.e. one number and not an entire waveform. That
relaxes the requirements a lot, but as has been pointed out, you have to
do the dithering properly.

Cheers

Phil Hobbs

--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510
845-480-2058

hobbs at electrooptical dot net
http://electrooptical.net

John Larkin
Guest

Mon Dec 19, 2011 10:57 pm   



On Mon, 19 Dec 2011 09:17:23 -0800 (PST), Bill Sloman
<bill.sloman_at_ieee.org> wrote:

Quote:
On Dec 19, 4:25 pm, John Larkin
jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsided...@downunder.com wrote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <b...@NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurem...

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

It helps if you are picky about the probablity distribution of the
noise you add.

It only needs to be uncorrelated to the line frequency and span a
couple of ADC bits. One meter I did, I used a triangle wave from a
schmitt-gate oscillator, which has a pretty flat PD. We sold over 50K
channels of that one.

Another meter, designed for residential metering in India, I used the
uP code itself as a random noise source, just one bit of each opcode,
out a port into an RC lowpass. That worked too.

I don't do meters any more. There's no money in it.

John

John Larkin
Guest

Mon Dec 19, 2011 11:09 pm   



On Mon, 19 Dec 2011 22:03:38 +0200, upsidedown_at_downunder.com wrote:

Quote:
On Mon, 19 Dec 2011 09:17:23 -0800 (PST), Bill Sloman
bill.sloman_at_ieee.org> wrote:

On Dec 19, 4:25 pm, John Larkin
jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsided...@downunder.com wrote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <b...@NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurem...

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

It helps if you are picky about the probablity distribution of the
noise you add.

J. Watkinson, The Art of Digital Audio, 2nd ed. (Focal, Stoneham, MA
and Borough Green, Sevenoaks, U.K., 1988) gives a detailed review of
the literature, in his discussion of A/D conversion, amongst a lot of
other useful stuff.

Playing with dithering requires quite high oversampling rates.


An electric meter isn't trying to reproduce a waveform; it's only
gathering statistics on it. The meter that I sold the most of sampled
the AC line voltage:current pair at about 27 Hz. The dither signal was
a (if I recall) roughly 3 KHz triangle wave.


Quote:

For example in properly dithered CD chains (44.1 kHz sampling
frequency, 16 bits hence 96 dB theoretical SNR), in the "fade to
noise", an audio test signal to the system can be lowered well below
-96 dB and the tone is still detectable, but only well below the
maximum audio frequency (20 kHz). At 1 kHz, you might be able to
detect the tone perhaps at -105 dB.

In the current channel of a TrueRMS meter it might be sufficient to
sample the signal at say 200 Hz, if we could assume that the current
waveform is sinusoid. Adding dithering noise and sampling at a few kHz
will get some extra bits to the averaged low frequency samples.

However, with typical modern loads, the load current is far from
sinusoid and require a significantly higher effective sampling rate.
This might still require increasing the sample rate once more by a
decade or more.

Thus, the sampling rate might have to be over 20 kHz, first to get rid
of quantization error of the low bit count ADC with ditheration and
downsample down to say 2 kHz and use these samples to multiply the
corresponding voltage samples at 2 kHz to correctly represent the
harmonics of the current measurements.

Just simultaneously (or almost simultaneously) sample the voltage and
current, multiply, and average to get power. The rate need not be
high. The precise best rate is sort of fun to find.

If you want RMS current, just for fun, autozero the current samples,
square, filter, square root. Math out the dither voltage, if
necessary.

Quote:

A very much doubt that a very small controller would handle it.


An HC05 is overkill; a small ARM would be gross overkill. I've done a
16-channel meter with an MC6803 (executes a NOP in 2 microseconds) and
a software-driven single-slope ADC. Sold thousands of them.

John

P E Schoen
Guest

Tue Dec 20, 2011 1:37 am   



"John Larkin" wrote in message
news:bllue757ev8175qkd94ek4g2p9nfbe6a78_at_4ax.com...

Quote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsidedown_at_downunder.com wrote:

On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <bv_at_NoSpam.com> wrote:

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a
SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few
mA, so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known
load, 10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC
onboard an 80 cent uP, like an HC05 class part. I've done it with
a 7-bit single-slope ADC, resolved a few watts out of 20,000.

The transducers I mentioned were basically 1% accuracy class, and they only
needed to work for voltage variations of about 20% (100-140V), and current
from about 5% to 125% of nominal (usually 5A). For higher voltages and
currents, PTs and CTs were used. They generally drove analog switchboard
meters, which had 270 degree round dials and about 2% accuracy. Mostly for
visual indications on a panelboard.

The power analyzers were also about 1% or perhaps as accurate as 0.25%, so
an 8 bit or 10 bit ADC would be sufficient if a microcontroller were to be
used. Since such power analyzers sell for $5000 and more, cost is not really
a major factor, so a higher precision 12 bit ADC would be overkill, but the
PIC18F26K80 is only $3, so why not? Even more important may be simultaneous
sampling, but apparently not available on PICs. But external devices could
be used, or else just interpolate between readings. And most analyzers have
multiple ranges of current and voltage.

Much of this type equipment is not very technologically advanced, and many
designs from the 1980s are still being sold and many more, even from the
1960s and 1970s, are still in use. It is a niche market with only a few
companies competing, and the customer base is fairly small. So there is not
high volume and minimal chance of market flooding by Chinese copies
(although I have seen quite a few power analyzers).

Paul

Ralph Barone
Guest

Tue Dec 20, 2011 1:48 am   



John Larkin <jjlarkin_at_highNOTlandTHIStechnologyPART.com> wrote:
Quote:
On Mon, 19 Dec 2011 09:17:23 -0800 (PST), Bill Sloman
bill.sloman_at_ieee.org> wrote:

On Dec 19, 4:25 pm, John Larkin
jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsided...@downunder.com wrote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <b...@NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurem...

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

It helps if you are picky about the probablity distribution of the
noise you add.

It only needs to be uncorrelated to the line frequency and span a
couple of ADC bits. One meter I did, I used a triangle wave from a
schmitt-gate oscillator, which has a pretty flat PD. We sold over 50K
channels of that one.

Another meter, designed for residential metering in India, I used the
uP code itself as a random noise source, just one bit of each opcode,
out a port into an RC lowpass. That worked too.

I don't do meters any more. There's no money in it.

John

Using the code itself as the source for analog dithering sounds like a
brilliant hack, but I suppose you would have to be careful about WHICH bit
you used, depending on how the opcodes were constructed for that particular
microprocessor.

John Larkin
Guest

Tue Dec 20, 2011 3:05 am   



On Tue, 20 Dec 2011 00:48:02 GMT, Ralph Barone
<address_is_at_invalid.invalid> wrote:

Quote:
John Larkin <jjlarkin_at_highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 09:17:23 -0800 (PST), Bill Sloman
bill.sloman_at_ieee.org> wrote:

On Dec 19, 4:25 pm, John Larkin
jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsided...@downunder.com wrote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <b...@NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurem...

For power line frequencies, probably a PIC with ADCs could perform a
computed watt function, along with true RMS current, voltage, VARS, and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

It helps if you are picky about the probablity distribution of the
noise you add.

It only needs to be uncorrelated to the line frequency and span a
couple of ADC bits. One meter I did, I used a triangle wave from a
schmitt-gate oscillator, which has a pretty flat PD. We sold over 50K
channels of that one.

Another meter, designed for residential metering in India, I used the
uP code itself as a random noise source, just one bit of each opcode,
out a port into an RC lowpass. That worked too.

I don't do meters any more. There's no money in it.

John

Using the code itself as the source for analog dithering sounds like a
brilliant hack, but I suppose you would have to be careful about WHICH bit
you used, depending on how the opcodes were constructed for that particular
microprocessor.

Right. The MSB turned out to have an ugly waveform, so I used the next
one down. I think... it's been a while. It drove a port pin every IRQ,
and that drove an RC lowpass to make the dither. The result was a
really ugly ratty triangle sort of thing. It worked.

A real pseudo-random sequencer would be sensible on an ARM or
something, but the HC05 is a dog for many-bit math.

John

John Larkin
Guest

Tue Dec 20, 2011 3:14 am   



On Mon, 19 Dec 2011 19:37:22 -0500, "P E Schoen" <paul_at_pstech-inc.com>
wrote:

Quote:
"John Larkin" wrote in message
news:bllue757ev8175qkd94ek4g2p9nfbe6a78_at_4ax.com...

On Mon, 19 Dec 2011 10:14:54 +0200, upsidedown_at_downunder.com wrote:

On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <bv_at_NoSpam.com> wrote:

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or a
SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage measurement,
but how about the current measurement in a general purpose instrument?

This may have to handle tens of amps of peak current or just a few
mA, so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known
load, 10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC
onboard an 80 cent uP, like an HC05 class part. I've done it with
a 7-bit single-slope ADC, resolved a few watts out of 20,000.

The transducers I mentioned were basically 1% accuracy class, and they only
needed to work for voltage variations of about 20% (100-140V), and current
from about 5% to 125% of nominal (usually 5A). For higher voltages and
currents, PTs and CTs were used. They generally drove analog switchboard
meters, which had 270 degree round dials and about 2% accuracy. Mostly for
visual indications on a panelboard.

The power analyzers were also about 1% or perhaps as accurate as 0.25%, so
an 8 bit or 10 bit ADC would be sufficient if a microcontroller were to be
used. Since such power analyzers sell for $5000 and more, cost is not really
a major factor, so a higher precision 12 bit ADC would be overkill, but the
PIC18F26K80 is only $3, so why not? Even more important may be simultaneous
sampling, but apparently not available on PICs. But external devices could
be used, or else just interpolate between readings. And most analyzers have
multiple ranges of current and voltage.

Most uPs can sample successive analog inputs a few microseconds apart,
good enough for 60 Hz power. Plus, you can always add RC lowpasses in
the amp paths - you should anyhow - and skew them the right amount to
correct for the ADC mux delay.

More important is that most uPs have cruddy ADCs, specifically have a
bit of crosstalk from one digitized channel to the next. That can mess
up low-power measurements. You can digitize a dummy grounded or
otherwise DC channel between the CT inputs, to discharge things.

A mechanical disk meter is an amazing gadget, not easy to match with
electronics. A 20 KW disk meter will accurately register just a few
watts. That can be done with a 12-bit or even 8-bit uP ADC, but it's
not easy.

John

Bruce Varley
Guest

Tue Dec 20, 2011 10:34 am   



"John Larkin" <jjlarkin_at_highNOTlandTHIStechnologyPART.com> wrote in message
news:n3rve7db20fbpk6i2he1fmpc8vis6lrfea_at_4ax.com...
Quote:
On Tue, 20 Dec 2011 00:48:02 GMT, Ralph Barone
address_is_at_invalid.invalid> wrote:

John Larkin <jjlarkin_at_highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 09:17:23 -0800 (PST), Bill Sloman
bill.sloman_at_ieee.org> wrote:

On Dec 19, 4:25 pm, John Larkin
jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
On Mon, 19 Dec 2011 10:14:54 +0200, upsided...@downunder.com wrote:
On Mon, 19 Dec 2011 16:03:57 +0800, "Bruce Varley" <b...@NoSpam.com
wrote:

Analog Devices has an IC that computes watts, VARS, and other
quantities for
power analysis:
http://www.analog.com/en/analog-to-digital-converters/energy-measurem...

For power line frequencies, probably a PIC with ADCs could perform
a
computed watt function, along with true RMS current, voltage, VARS,
and even
frequency and phase angle or power factor.

Paul \

Indeed, a 12F675 provides 4 10-bit ADC channels, and enough flash to
accommodate all these calcs, you can bit bang to a serial output or
a SPI
input DAC. All in 8 pin DIP.

The 10 bit resolution might be sufficient for the voltage
measurement,
but how about the current measurement in a general purpose
instrument?

This may have to handle tens of amps of peak current or just a few
mA,
so apparently some range selection would be needed.

For an instrument that is going to monitor a more or less known load,
10 bits might even be sufficient.

If you add a little noise to the current signal before you digitize
it, you can do a utility-grade meter with an 8-bit mux'd ADC onboard
an 80 cent uP, like an HC05 class part. I've done it with a 7-bit
single-slope ADC, resolved a few watts out of 20,000.

It helps if you are picky about the probablity distribution of the
noise you add.

It only needs to be uncorrelated to the line frequency and span a
couple of ADC bits. One meter I did, I used a triangle wave from a
schmitt-gate oscillator, which has a pretty flat PD. We sold over 50K
channels of that one.

Another meter, designed for residential metering in India, I used the
uP code itself as a random noise source, just one bit of each opcode,
out a port into an RC lowpass. That worked too.

I don't do meters any more. There's no money in it.

John

Using the code itself as the source for analog dithering sounds like a
brilliant hack, but I suppose you would have to be careful about WHICH bit
you used, depending on how the opcodes were constructed for that
particular
microprocessor.

Right. The MSB turned out to have an ugly waveform, so I used the next
one down. I think... it's been a while. It drove a port pin every IRQ,
and that drove an RC lowpass to make the dither. The result was a
really ugly ratty triangle sort of thing. It worked.

A real pseudo-random sequencer would be sensible on an ARM or
something, but the HC05 is a dog for many-bit math.

John

A PRBS can be just a shift reg plus an XNOR gate. Easy peasy.

Goto page 1, 2, 3, 4, 5  Next

elektroda.net NewsGroups Forum Index - Electronics Design - Analog multipliers and watt measurement

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony