Say I have a buck converter. The output current Iout is constant, but the output voltage Vout has litte ripple. On the other hand, the input voltage Iin is constant, but the input current Iin is pulsating.
I wish to calculate the input power Pin, and output power Pout, of the converter to calculate the efficiency. My idea is as follows:
1) Calculate the rms of input voltage and current.
2) Calculate the rms of output voltage and current.
3) Calculate the Pin = Vin-rms X Iin-rms
4) Calculate the Pout = Vout-rms X Iout-rms
5) Efficiency = Pout/Pin
Do you think my method has any mistake?