0
\$\begingroup\$

I designed an inverter with a maximum input voltage of 20 volts.

I want to make a specification of the efficiency of the inverter that I made using the formula efficiency = (output power / input power) * 100%.

  • The problem is I don't know how to calculate the output power of my inverter. Is the output power obtained from the load voltage * the load current connected to the inverter?

  • Is the input power obtained from the input DC voltage * the input DC current?

\$\endgroup\$
4
  • \$\begingroup\$ Do you know how to calculate power the of an AC signal connected to a load? \$\endgroup\$
    – Andy aka
    Commented Sep 27, 2020 at 13:06
  • \$\begingroup\$ I don't know about that. how to calculate it? @Andy aka \$\endgroup\$ Commented Sep 27, 2020 at 13:14
  • \$\begingroup\$ For DC systems it's simply DC voltage multiplied by average (DC) current. For AC systems you need to do instantaneous multiplication and then averaging to get watts. \$\endgroup\$
    – Andy aka
    Commented Sep 27, 2020 at 15:21
  • \$\begingroup\$ It's not clear -at least to me- whether you have a working prototype or simulation and whish to measure achieved efficiency or instead you are going to estimate it analytically \$\endgroup\$
    – carloc
    Commented Sep 27, 2020 at 17:15

2 Answers 2

1
\$\begingroup\$

tl, dr: For a bench setup get true RMS power meters for both the DC and AC side, and measure over a variety of load conditions. Option: use a 4-channel scope with math capability. Besides waveform math and RMS, these typically also do FFT so you can see harmonics.

For an in-built metering consider the sensing and computation required to do it correctly, considering how noisy your inverter can be.

Consider including testing with reactive loads like motors and IT gear as these influence power factor.


What you state is true: efficiency = output power/input power. So you think that you could measure amps and volts of each, multiply them together to get power and divide to get efficiency. That will give something, but it won't be as accurate as it could be.

To your questions:

Is the output power obtained from the load voltage * the load current connected to the inverter?

Kind of. But we're talking about an AC output, so we have an additional concern: power factor.

The trouble for AC is when power factor isn't unity. This means that on the AC side I and V are not in phase with each other, so some of the power is reactive and not doing any useful work. You see this when the output is driving a reactive load, like a motor. Your measurements need to correct for that.

Is the input power obtained from the input DC voltage * the input DC current?

Yes, for DC is this basically true. On the DC side you can compute based on averages. But you still need to consider that the DC side can have harmonics, and thus needs some signal processing to get robust RMS measurements. That's what a 'true RMS' meter does, we'll discuss that below.

Fortunately, you can sample I and V together at the same time then multiply the samples together sample-by-sample to obtain instantaneous power. Accumulate these over time to compute energy consumed, then divide by time (number of samples) to obtain power.

Digging deeper, we can express our power calculation as a set of I and V samples in a data set 'bucket', as follows:

  • \$ P_{avgAC} = \frac{\sum_{i=0}^{n-1}({V_i}\times{I_i})}{n}\$
  • \$ P_{avgDC} = \frac{\sum_{i=0}^{n-1}{V_i}\times\sum_{i=0}^{n-1}{I_i}}{n}\$

Where \$V_i\$ is a voltage sample, \$I_i\$ is a current sample, and \$n\$ is the total samples in the 'bucket'. This gives us average power over the set of samples.

Working this way, on the AC side any I vs. V lead/lag will cancel out, leaving just real average power. We do DC by just summing I and V values then doing just one multiply and divide at the end to get average.

But to get closer to the real power values, we need to do a bit more work: true RMS. To calculate true RMS we take the bucket of \$I\$ and \$V\$ samples, compute their squares, sum, divide by the number of samples, then finally take the square root of that.

That is, for true RMS power of a sample set \$P\$ of \$n\$ samples:

  • \$ P_{RMS} = \sqrt{\frac{\sum_{i=0}^{n-1}{P_i}^2}{n}}\$

This is similar to computing the AC average, except that it requires two multiplies per point instead of one (first P = I x V, then P x P), followed by a square root at the end. We also do the same for DC to get its RMS value as well. This will be the most accurate.


Sampling Discussion

How big of a bucket do we need? It should contain enough samples to cover at least one AC cycle, preferably a bit more than one. To make things easier the bucket size can be a power of 2, such as 2048 for example. Then the final divide is a shift.

What sample rate? Depends on the harmonics. To get a decent measurement with an inverter, especially a PWM type, we might have to sample at tens to hundreds of kHz because of all the noise the PWM activity causes. If you use 2048 points per 60 Hz cycle you get 122800 Hz sample rate. That would cover harmonics up to 61KHz. Too much for your micro? You'll need to band-limit your sensor inputs then, but you may lose accuracy.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ For the DC input, the special case does work out that V_avg * I_avg = P. \$\endgroup\$ Commented Jul 24 at 21:12
  • \$\begingroup\$ Yep. fixed, then added more about RMS which also requires sample-by-sample calc and sum. \$\endgroup\$ Commented Jul 24 at 21:59
0
\$\begingroup\$

The simple answer is yes to both questions. However you must calculate the power using a sufficient number of instantaneous values of the output voltage and current and integrating the results. That is necessary to avoid errors due to phase difference between voltage and current and harmonic content. The calculated efficiency will only be valid for the load condition used. If the inverter has forced cooling, you must be sure to include the power required as part of the input power.

\$\endgroup\$
3
  • \$\begingroup\$ what does "sufficient number of instantaneous values of the output voltage and current and integrating the results" mean? \$\endgroup\$ Commented Sep 27, 2020 at 13:17
  • 1
    \$\begingroup\$ @NurAqmarina if you have to ask that, how did you manage to “design” an inverter? Or did you just choose one based on size? \$\endgroup\$
    – Solar Mike
    Commented Sep 27, 2020 at 13:44
  • 1
    \$\begingroup\$ The sample rate must be high enough to accurately represent the waveform and harmonics encountered. Someone else my have a better answer than that, Integrating the results means integrating the instantaneous values of power over one cycle of the output waveform. \$\endgroup\$
    – user80875
    Commented Sep 27, 2020 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.