So what are the numbers of power supplys that make them so important ?
80% is the lowest number you should buy as far as efficiency is concerned.
Buying 85% (gold) or better is better.
I wrote this to fiddle around with inputs and outputs of the variables which
determine that % number. If you know 4 of the 5 important numbers the
fifth is easy to reverse determine. And you can get a SIXTH one as well.
The importance becomes vivid if you plug in these numbers
55 Volts in, 12 volts out, 2 amps out, 80% eff. These were the numbers
an idiot of YouTube used to describe why high voltage SMPS regulators
are garbage out of china. SMPS (switch mode power supply).
As you run the program remember this 1.5 Watts is about the most
a standalone SMPS out of china can do without burning up.
PRINT "Calculate power efficiency" PRINT "The formula % = (watts out) / (watts in) * 100"
TOP:
PRINT "1. Calculate Input amps" PRINT "2. Calculate Output amps" PRINT "3. Calculate efficiency"
CIA:
ow = ov * oa * 100
x = ow / ef
ia = x / iv
PRINT "Input amps to expect "; ia
COA:
iw = iv * ia
x = ef * iw
oa = x / (ov * 100)
PRINT "Output amps to expect "; oa
CE:
ef = ((ov * oa) / (iv * ia)) * 100
PRINT "Efficency "; ef;
"%"
RWCW:
PRINT "Regulator will consume watts ";
(iv
* ia
) - (ov
* oa
)
The code was never meant to be elegant. It was just a bang out.
K.I.S.S. I am not changing the program. It works.
This will also show why SMPS are better than Linear supply.