...
If all buck switching supplies are essentially the same, except for the control element, switching transistor and maybe some mfg's data sheets for their buck converter chips are more right than others and so I wonder which engineer has best made the capacitor choice formula.
There are quite a few equations for finding the amount of capacitance and ripple current rating of the buck input capacitor, but the more complicated ones I have seen are attempts to find a "more accurate" answer to a question that is itself very fuzzy (are the load current, input and output voltages always the same?) and for parts with some of the worst tolerances in electronics: capacitors...
For example, the portion of the equation I gave earlier that finds the RMS AC current in the input capacitor - Io * sqrt(D * (1 - D)) - assumes that the current waveform is a rectangular pulse with a height equal to the output current. It ignores the contribution from the peak to peak variation in the inductor current which turns the flat top of the rectangular pulse into a ramp. You can find the contribution from the inductor ripple by using the equation below:
I
AC[rms] = I
OUT * sqrt(D * (1 - D + (r²/12)))
Where r is the peak-to-peak variation in the inductor current (ie - above and below the average, or load, current). A common recommendation is to choose the inductance so that r is 0.4 (ie - +/-20%), as this tends to optimize the size/cost of all the components.
If r is 0.4 then the expression r²/12 gives a value 0.0133. Plugging that into the more complex equation will result in an increase in the AC current seen by the capacitor of a whopping 20mA:
Simplified version: 6 * 0.3756 = 2.25Arms
Complex version: 6 * 0.3786 = 2.27Arms
What if r = 2, which means the inductor current ramps up from 0 to 2I
OUT every cycle (aka "boundary conduction mode)? Well, r²/12 now equals 0.333, so the complex version gives a ripple current of Iout * 0.4471 = 2.67A, or 0.4A more. That's an 18% increase, which seems reasonably significant except it took a quintupling of the peak-to-peak ripple to get there.
Consider this: If a wallwart is rated at 2.5A then exceeding this current output will cause its output to drop and the wallwart will shutdown into a latching off state to prevent damage. This means that the input capacitor must hold up the voltage to prevent this by storing enough power to prevent the wallwart's output voltage droop as the on-time of the duty cycle causes the inductor current to reach its peak current value.
Ut-oh... the underlined sentence implies you expect the capacitor *inside* the wallwart to also act as the buck's input capacitor... that's a bad idea because the buck input capacitor needs to be as close as possible to the buck switch. You basically have to pretend the output capacitor in the wallwart doesn't even exist if there is more than a few inches of separation.