Thanks for the reply man.
What's causing this current ripple when the PWM is turned low?
So I've calculated everything up and came up with the following.
Vin – 12vdc
Vout – 3.1vdc
Iout– 350mA
Led driver – LT3517
Led – Cree Xlamp XM-L Color (White Die)
IC frequency – 500kHz
Pwm frequecy - 500kHz
Inductor selection:
Dbuck = Vled / Vin
3.1/ 12 = .2583
Tsw = 1/Frequency
1/500,000 = .000002
ΔI = Percentage of current ripple x Iout
.30 x .350 = .105
L(µH) = Dbuck • Tsw(µs) • (Vin – Vled) / ΔI
.2583 x .000002 x 8.9 / .105 = L(µH) = 0.000043788
Inductor = 43.7uH
There isn't a calculation for the output capacitor in the document for the IC, so I sourced a document from a google search and found a Texas Instrument document on buck converter design and it says to use the following to calculate the output capacitor. Also read in that same document that 25mV is a good set point for output voltage ripple as the following equation require you to put in a value for the
desired output voltage ripple.
Capacitor selection:
Cout(min) = ΔIL / 8 x Fsw x Δvout
.105 / 8 x 500,000 x .025 = .00000105
Capacitor Out = 1.05uF
Voltage probed after mosfet and before LED = Green(n003)
Voltage probed after led before inductor = Teal(n004)
PWM voltage = Red(n012)
Current through LED = Blue(D2)
Current through inductor = Purple(Inductor)
Schematic of the circuit