* SPICE netlist
MQ1 N003 N009 N008 N008 Si4470DY
R1 N010 0 100K
R2 N015 0 20K
C1 N014 0 .01
V1 IN 0 17.5
XU1 IN N001 N010 N007 N015 MP_01 N011 N012 N009 N005 IN N008 N014 N006 N013 N004 0 LTC3783 ;pnba FBN)FBP)Ilim)Vref)Freq))PWMin)PWMout)Gate)INTVcc)Vin)Sense)SS)OV/FB)Ith)Run)GND
L1 IN N003 10 Rpar=2K
C2 N005 0 4.7
R3 N001 IN .3
C3 N013 0 .01
R4 N007 N010 100K
R5 IN N004 1Meg
R6 N008 0 50m
C4 0 N002 5
R7 N002 N006 40.2K
R8 N006 0 1.6K
D1 N002 N001 LXHL-BW02 N=4
D5 N003 N002 MBRS340
.tran 500u startup

* LTspice schematic (.asc)
Version 4
SHEET 1 1104 688
WIRE 344 -344 -344 -344
WIRE -440 -296 -552 -296
WIRE -152 -296 -440 -296
WIRE 136 -296 -152 -296
WIRE 200 -296 136 -296
WIRE 248 -296 200 -296
WIRE 344 -296 344 -344
WIRE 344 -296 328 -296
WIRE 408 -296 344 -296
WIRE 552 -296 472 -296
WIRE -552 -280 -552 -296
WIRE 200 -280 200 -296
WIRE -440 -248 -440 -296
WIRE -552 -184 -552 -200
WIRE 200 -184 200 -200
WIRE 296 -184 200 -184
WIRE 424 -184 360 -184
WIRE 552 -184 552 -296
WIRE 552 -184 424 -184
WIRE 424 -168 424 -184
WIRE 552 -168 552 -184
WIRE -152 -152 -152 -296
WIRE -440 -104 -440 -168
WIRE -312 -104 -440 -104
WIRE 24 -104 8 -104
WIRE 104 -104 88 -104
WIRE 552 -88 552 -104
WIRE 424 -72 424 -88
WIRE 424 -72 120 -72
WIRE 200 -56 200 -184
WIRE 424 -56 424 -72
WIRE -312 -40 -424 -40
WIRE 120 -40 120 -72
WIRE 120 -40 8 -40
WIRE -424 -8 -424 -40
WIRE -344 24 -344 -344
WIRE -312 24 -344 24
WIRE 56 24 8 24
WIRE 152 24 88 24
WIRE 424 40 424 24
WIRE -520 88 -536 88
WIRE -424 88 -424 72
WIRE -424 88 -440 88
WIRE -312 88 -424 88
WIRE 56 88 88 24
WIRE 56 88 8 88
WIRE 88 88 56 24
WIRE 200 88 200 40
WIRE 200 88 88 88
WIRE 200 104 200 88
WIRE -312 152 -328 152
WIRE 24 152 8 152
WIRE 200 200 200 184
WIRE -440 216 -456 216
WIRE -312 216 -376 216
WIRE 136 216 136 -296
WIRE 136 216 8 216
WIRE -392 280 -456 280
WIRE -312 280 -328 280
WIRE 24 280 8 280
WIRE 120 280 104 280
WIRE -152 344 -152 328
FLAG -536 88 0
FLAG 120 280 0
FLAG -152 344 0
FLAG -456 280 0
FLAG -552 -184 0
FLAG 104 -104 0
FLAG -456 216 0
FLAG 200 200 0
FLAG 424 40 0
FLAG 552 -88 0
FLAG -552 -296 IN
SYMBOL NMOS 152 -56 R0
SYMATTR Value Si4470DY
SYMATTR InstName Q1
SYMBOL RES -424 72 R90
SYMATTR InstName R1
SYMATTR Value 100K
SYMBOL res 8 296 R270
SYMATTR InstName R2
SYMATTR Value 20K
SYMBOL cap -328 264 R90
SYMATTR InstName C1
SYMATTR Value .01
SYMBOL VOLTAGE -552 -296 R0
SYMATTR InstName V1
SYMATTR Value 17.5
SYMBOL PowerProducts\\LTC3783 -152 56 R0
SYMATTR InstName U1
SYMBOL ind 184 -296 R0
SYMATTR InstName L1
SYMATTR Value 10
SYMATTR SpiceLine Rpar=2K
SYMBOL cap 24 -88 R270
SYMATTR InstName C2
SYMATTR Value 4.7
SYMBOL res 344 -312 R90
SYMATTR InstName R3
SYMATTR Value .3
SYMBOL cap -376 200 R90
SYMATTR InstName C3
SYMATTR Value .01
SYMBOL res -440 -24 R0
SYMATTR InstName R4
SYMATTR Value 100K
SYMBOL RES -456 -264 R0
SYMATTR InstName R5
SYMATTR Value 1Meg
SYMBOL res 184 88 R0
SYMATTR InstName R6
SYMATTR Value 50m
SYMBOL cap 536 -104 M180
SYMATTR InstName C4
SYMATTR Value 5
SYMBOL res 408 -184 R0
SYMATTR InstName R7
SYMATTR Value 40.2K
SYMBOL res 408 -72 R0
SYMATTR InstName R8
SYMATTR Value 1.6K
SYMBOL LED 472 -280 M270
SYMATTR InstName D1
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMATTR Value2 N=4
SYMBOL schottky 296 -168 R270
SYMATTR InstName D5
SYMATTR Value MBRS340
SYMATTR Description Diode
SYMATTR Type diode