* SPICE netlist
C1 N004 0 1
MQ1 N001 N005 N007 N007 IRF1310
R1 N007 0 10m
L1 IN N001 10 Rser=10m
R2 N002 N008 1Meg
R3 N008 0 16.9K
D1 N001 N002 MBRS360
R4 N002 N009 0.25
C2 N002 0 2.2 x4 Rser=10m
V1 IN 0 PWL(0 0 0.2m 48)
R5 IN N003 499K
R6 N003 0 90.9K
C3 N010 0 4700p Rser=5.1K
C4 N012 0 0.01
R7 N014 0 28.7K tol=1 pwr=0.1
D4 N009 N013 LXK2-PW14 N=17
C5 N015 0 47n
MQ2 N013 N016 0 0 IRF1310
V2 N011 0 4
R8 N011 N012 124K
XU1 N006 N015 NC_01 N012 N014 N003 N004 IN N007 N005 N016 N008 N009 N002 N010 N006 0 LT3761A ;pnba Vref)PWM)_OPENLED)DIM/SS)Rt)EN/UVLO)INTVcc)Vin)Sense)Gate)PWMout)FB)ISN)ISP)Vc)CTRL)GND
.tran 20m startup

* LTspice schematic (.asc)
Version 4
SHEET 1 1360 640
WIRE -280 -320 -536 -320
WIRE 8 -320 -280 -320
WIRE 152 -320 8 -320
WIRE 344 -320 232 -320
WIRE 392 -320 344 -320
WIRE 488 -320 456 -320
WIRE 552 -320 488 -320
WIRE 680 -320 552 -320
WIRE -536 -304 -536 -320
WIRE -280 -304 -280 -320
WIRE 552 -304 552 -320
WIRE 8 -272 8 -320
WIRE 344 -224 344 -320
WIRE 552 -224 552 -240
WIRE -536 -208 -536 -224
WIRE -280 -208 -280 -224
WIRE -168 -208 -280 -208
WIRE 200 -208 184 -208
WIRE 280 -208 264 -208
WIRE -280 -192 -280 -208
WIRE 680 -160 680 -320
WIRE 680 -160 584 -160
WIRE 296 -144 184 -144
WIRE 488 -144 488 -320
WIRE 680 -144 680 -160
WIRE -280 -96 -280 -112
WIRE -168 -80 -184 -80
WIRE 344 -80 344 -128
WIRE 344 -80 184 -80
WIRE 344 -64 344 -80
WIRE 488 -48 488 -64
WIRE 488 -48 440 -48
WIRE 680 -48 680 -64
WIRE 680 -48 616 -48
WIRE 488 -32 488 -48
WIRE -184 -16 -184 -80
WIRE -168 -16 -184 -16
WIRE 680 32 680 -48
WIRE -264 48 -280 48
WIRE -168 48 -200 48
WIRE 440 48 440 -48
WIRE 440 48 184 48
WIRE 488 64 488 48
WIRE -584 112 -680 112
WIRE -472 112 -504 112
WIRE -168 112 -472 112
WIRE 584 112 584 -160
WIRE 584 112 184 112
WIRE -680 128 -680 112
WIRE -472 128 -472 112
WIRE 680 160 680 96
WIRE -312 176 -328 176
WIRE -168 176 -232 176
WIRE 616 176 616 -48
WIRE 616 176 184 176
WIRE -472 208 -472 192
WIRE -680 224 -680 208
WIRE -248 240 -264 240
WIRE -168 240 -184 240
WIRE 632 240 184 240
WIRE 680 272 680 256
WIRE 8 320 8 304
FLAG 280 -208 0
FLAG 344 16 0
FLAG 488 64 0
FLAG 552 -224 0
FLAG -536 -208 0
FLAG -280 -96 0
FLAG -280 48 0
FLAG -328 176 0
FLAG 8 320 0
FLAG -536 -320 IN
FLAG 680 272 0
FLAG -472 208 0
FLAG -264 240 0
FLAG -680 224 0
SYMBOL cap 200 -192 R270
SYMATTR InstName C1
SYMATTR Value 1
SYMBOL nmos 296 -224 R0
SYMATTR InstName Q1
SYMATTR Value IRF1310
SYMBOL res 328 -80 R0
SYMATTR InstName R1
SYMATTR Value 10m
SYMBOL ind 136 -304 R270
SYMATTR InstName L1
SYMATTR Value 10
SYMATTR SpiceLine Rser=10m
SYMBOL res 472 -160 R0
SYMATTR InstName R2
SYMATTR Value 1Meg
SYMBOL res 472 -48 R0
SYMATTR InstName R3
SYMATTR Value 16.9K
SYMBOL schottky 392 -304 R270
SYMATTR InstName D1
SYMATTR Value MBRS360
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 664 -160 R0
SYMATTR InstName R4
SYMATTR Value 0.25
SYMBOL cap 536 -304 R0
SYMATTR Value2 x4
SYMATTR Value 2.2
SYMATTR InstName C2
SYMATTR SpiceLine Rser=10m
SYMBOL voltage -536 -320 R0
SYMATTR Value PWL(0 0 0.2m 48)
SYMATTR InstName V1
SYMBOL res -296 -320 R0
SYMATTR InstName R5
SYMATTR Value 499K
SYMBOL res -296 -208 R0
SYMATTR InstName R6
SYMATTR Value 90.9K
SYMBOL cap -200 32 R90
SYMATTR InstName C3
SYMATTR Value 4700p
SYMATTR SpiceLine Rser=5.1K
SYMBOL cap -488 128 R0
SYMATTR InstName C4
SYMATTR Value 0.01
SYMBOL res -216 160 R90
SYMATTR InstName R7
SYMATTR Value 28.7K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL LED 664 32 R0
SYMATTR Value LXK2-PW14
SYMATTR Value2 N=17
SYMATTR InstName D4
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL cap -184 224 R90
SYMATTR InstName C5
SYMATTR Value 47n
SYMBOL nmos 632 160 R0
SYMATTR InstName Q2
SYMATTR Value IRF1310
SYMBOL voltage -680 112 R0
SYMATTR InstName V2
SYMATTR Value 4
SYMBOL res -600 96 M90
SYMATTR InstName R8
SYMATTR Value 124K
SYMBOL LT3761A 8 16 R0
SYMATTR InstName U1