Re: Questions on interfacing to current sense transformer



On Fri, 26 Jun 2009 19:19:58 -0700 (PDT), David Jacobowitz
<david.jacobowitz@xxxxxxxxx> wrote:

Hey group,

I'm thinking of building a homemade power meter. I'm planning on using
an Arduino with ethernet "shield" to allow me to read the power
measurements over the internet. I see simple power meters, like the
ubiquitous Kill-A-Watt, use a calibrated shunt resistor to measure
current, but for isolation, I thought I'd use a current sense
transformer instead. For voltage, I'll use a simple step down voltage
transformer.

I would like to be able to calculate phase difference, real/imaginary
power, etc, so I don't want to rectify to DC; I want to sample the AC
signals and do so frequently enough to be able to estimate the above
parameters.

I think I have most of this figured out the ADs on the Arduino are
only 10b, so this won't be super accurate, but I think it'll work.

The only thing I'm unsure about is how to bias the voltage transformer
and current transformer outputs so that they're suitable for the ADC.
For example, assume I've selected a burden resistor for the current
transformer so that the secondary voltage is 2.5Vp-p at rated input
current, but the ADC wants to see 0-5V.

How do I add the necessary 2.5V?

As a followup to that, how to I determine the zero crossing time(s)
once I've done this biasing?

I've thought that I would determine the time of peak-to-peak time of
the waveforms in software. Something like:

int t = 0;
int curr_sample;
int prev_sample;
int prev_prev_sample;

while (1) {
prev_prev_sample = prev_sample;
prev_sample = curr_sample;
curr_sample = read_adc();
if (curr_sample < prev_sample) && (prev_pre_sample < prev_sample) {
peak_value = prev_sample;
peak_value_time = t-1;
}
t++;


but I'm afraid that with noise, this will only get me close to the
peak. (I can filter, in hardware or software, I suppose)

Anyway, tips are appreciated. This is my first electronics project in
a looooong time.

-- dave j

Bias the low side of both the voltage and current sense transformers
to +2.5 volts DC to keep the ADC happy.

Your software should sample the voltage and current as close to
simultaneously as possible... within 10 usec is OK. Sample fairly
often, but it's not really important. I've done good meters that
sampled as slowly as 27 times a second. Nyquist is not an issue here.

Process the samples as follows:

Average blocks of, say, 1024 samples, and subtract the average from
each sample. That removes the 2.5 volt offsets.

Square and average the volt and amp samples independently (block
average or lowpass filter) and then square root. That gives you true
RMS volts and amps. Multiply them to get KVAs.

Multiply and average (block or lowpass filter) the product of the
voltage and current sample pairs. The result is true power.

You can integrate power to KWH. You can also compute power factor as
true power over KVAs, but you lose the lead/lag sign.

Something like that.

Add some random noise to the analog current signal, a few LSBs maybe,
to smear out the ADC quantization error and extend the low-end
resolution.

John

.



Relevant Pages

  • Re: 813 power amplifier - design safety advice/tips?
    ... likely be inadequate to produce 400W of power. ... So the transformer will NOT be capable of supplying 1600* 0.305 equals ... 2)Depending on the transformer voltage available say 1300 V the max ...
    (rec.radio.amateur.homebrew)
  • Re: Switching power supplies question.
    ... The high voltage might be full wave ... The step down transformer is usually an E-E core or ETD ... If the 6.3VDC output was most of the power it would make sense ... switching action of the rectified 115 or 230 volt AC input? ...
    (rec.radio.amateur.homebrew)
  • Re: Resonant Transformer
    ... > a regulated output D C voltage. ... No exposition on transformer regulation could be called complete ... the ferroresonant transformer is a power ... supply voltage (primary winding current) have little effect on the ...
    (sci.electronics.design)
  • Re: Questions on interfacing to current sense transformer
    ... I see simple power meters, ... transformer instead. ... For voltage, I'll use a simple step down voltage ... It's a good idea to R-C lowpass filter both the voltage and current ...
    (sci.electronics.design)
  • Re: A/C electrical problem
    ... thermostat, E2, which indicates a problem with the 24 v. power to it. ... UPS chirped you probably had a dip in voltage. ... transformer powering the thermostat is lowered, the secondary voltage, ...
    (alt.home.repair)

Loading