Calculates the peak-to-peak ripple voltage of a supply capacitor.
rippleOfCapPP(
1000uF,
100Hz,
100mA
)
cap | the size of the capacitor |
freq | charge frequency. For example in case of full wave rectification of mains supply it's 100/120Hz, in half wave 50/60Hz. |
load | load current. Because usually the ripple is small, a constant current load can be assumed even in case of resistive load. |
return value | the peak-to-peak voltage ripple. |