* SPICE netlist
V1 IN 0 36
R2 IN N003 499K
R3 N003 N004 115K
C2 N009 0 10n
C3 N016 N019 6.8n
R4 N017 0 31.6K
C4 N018 0 .05
C5 N012 0 4.7
MQ1 N002 N005 N008 N008 BSH114
R5 N008 0 15m
R6 OUT N010 620m
MQ2 N013 N011 N010 N010 IRF9640
D1 N013 0 LXHL-BW02 N=25
R7 OUT N006 1Meg
R8 N006 0 13.3K
C6 OUT 0 2.2 x4 Rser=10m
L1 N001 N002 22 Rser=20m
D2 N002 OUT PDS5100
R9 N019 0 10K
XU1 OUT N010 N011 0 N014 N007 N006 N016 N007 N007 N018 N017 N015 N007 NC_01 NC_02 MP_03 N008 N005 N012 MP_04 MP_05 IN N003 N004 N001 IN N009 LT3795 ;pnba Isp)Isn)TG)GND)Ismon)CTRL2)FB)Vc)CTRL1)Vref)SS)RT)RAMP)PWM)_ShortLED)_OpenLED))Sense)Gate)INTVcc)))Vin)EN/UVLO)OVLO)IVIN)IVINP)IVINCOMP
C1 N015 0 47n
C7 N014 0 .1
R1 N004 0 12.4K
R11 IN N001 15m
.tran 2m startup

* LTspice schematic (.asc)
Version 4
SHEET 1 1168 1040
WIRE -488 -520 -584 -520
WIRE -168 -520 -488 -520
WIRE -72 -520 -168 -520
WIRE -56 -520 -72 -520
WIRE 72 -520 24 -520
WIRE 216 -520 152 -520
WIRE 296 -520 216 -520
WIRE 424 -520 360 -520
WIRE 536 -520 424 -520
WIRE 584 -520 536 -520
WIRE -584 -504 -584 -520
WIRE -488 -504 -488 -520
WIRE 424 -504 424 -520
WIRE 584 -504 584 -520
WIRE -264 -488 -376 -488
WIRE 216 -488 216 -520
WIRE -264 -472 -264 -488
WIRE -168 -472 -168 -520
WIRE -72 -472 -72 -520
WIRE 24 -472 24 -520
WIRE 584 -424 584 -440
WIRE -584 -408 -584 -424
WIRE -488 -408 -488 -424
WIRE -376 -408 -376 -488
WIRE -376 -408 -488 -408
WIRE -328 -408 -360 -408
WIRE 168 -408 88 -408
WIRE 424 -408 424 -424
WIRE 424 -408 376 -408
WIRE -488 -392 -488 -408
WIRE 424 -392 424 -408
WIRE -328 -312 -344 -312
WIRE 216 -312 216 -392
WIRE 216 -312 88 -312
WIRE -488 -296 -488 -312
WIRE -360 -296 -360 -408
WIRE -360 -296 -488 -296
WIRE 216 -296 216 -312
WIRE 424 -296 424 -312
WIRE -344 -216 -344 -312
WIRE -328 -216 -344 -216
WIRE 104 -216 88 -216
WIRE -488 -200 -488 -216
WIRE 216 -200 216 -216
WIRE -344 -120 -344 -216
WIRE -328 -120 -344 -120
WIRE 376 -120 376 -408
WIRE 376 -120 88 -120
WIRE -344 -24 -344 -120
WIRE -328 -24 -344 -24
WIRE 536 -24 536 -520
WIRE 536 -24 88 -24
WIRE -408 72 -424 72
WIRE -328 72 -344 72
WIRE 536 72 536 56
WIRE 536 72 88 72
WIRE 536 152 536 72
WIRE 488 168 88 168
WIRE 104 264 88 264
WIRE 184 264 168 264
WIRE 536 280 536 248
WIRE -280 344 -280 328
WIRE -200 344 -200 328
WIRE -120 344 -120 328
WIRE -40 344 -40 328
WIRE 40 344 40 328
WIRE 536 360 536 344
WIRE -120 424 -120 408
WIRE -280 440 -280 408
WIRE -200 440 -200 408
WIRE -40 440 -40 424
WIRE 40 440 40 408
WIRE -120 520 -120 504
FLAG -584 -408 0
FLAG -488 -200 0
FLAG -424 72 0
FLAG -120 520 0
FLAG -40 440 0
FLAG 40 440 0
FLAG 184 264 0
FLAG 104 -216 0
FLAG 216 -200 0
FLAG 536 360 0
FLAG 424 -296 0
FLAG 584 -424 0
FLAG 584 -520 OUT
FLAG -584 -520 IN
FLAG -200 440 0
FLAG -280 440 0
SYMBOL voltage -584 -520 R0
SYMATTR Value 36
SYMATTR InstName V1
SYMBOL res -504 -520 R0
SYMATTR InstName R2
SYMATTR Value 499K
SYMBOL res -504 -408 R0
SYMATTR InstName R3
SYMATTR Value 115K
SYMBOL cap -344 56 R90
SYMATTR InstName C2
SYMATTR Value 10n
SYMBOL cap -136 344 R0
SYMATTR InstName C3
SYMATTR Value 6.8n
SYMBOL res -56 328 R0
SYMATTR InstName R4
SYMATTR Value 31.6K
SYMBOL cap 24 344 R0
SYMATTR InstName C4
SYMATTR Value .05
SYMBOL cap 104 280 R270
SYMATTR InstName C5
SYMATTR Value 4.7
SYMBOL nmos 168 -488 R0
SYMATTR InstName Q1
SYMATTR Value BSH114
SYMBOL res 200 -312 R0
SYMATTR InstName R5
SYMATTR Value 15m
SYMBOL res 520 -40 R0
SYMATTR InstName R6
SYMATTR Value 620m
SYMBOL pmos 488 248 M180
SYMATTR InstName Q2
SYMATTR Value IRF9640
SYMBOL LED 520 280 R0
SYMATTR Value2 N=25
SYMATTR InstName D1
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 408 -520 R0
SYMATTR InstName R7
SYMATTR Value 1Meg
SYMBOL res 408 -408 R0
SYMATTR InstName R8
SYMATTR Value 13.3K
SYMBOL cap 568 -504 R0
SYMATTR Value2 x4
SYMATTR Value 2.2
SYMATTR InstName C6
SYMATTR SpiceLine Rser=10m
SYMBOL ind 56 -504 R270
SYMATTR InstName L1
SYMATTR Value 22
SYMATTR SpiceLine Rser=20m
SYMBOL schottky 296 -504 R270
SYMATTR InstName D2
SYMATTR Value PDS5100
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -136 408 R0
SYMATTR InstName R9
SYMATTR Value 10K
SYMBOL PowerProducts\\LT3795 -120 -72 R0
SYMATTR InstName U1
SYMBOL cap -216 344 R0
SYMATTR InstName C1
SYMATTR Value 47n
SYMBOL cap -296 344 R0
SYMATTR InstName C7
SYMATTR Value .1
SYMBOL res -504 -312 R0
SYMATTR InstName R1
SYMATTR Value 12.4K
SYMBOL res -72 -504 R270
SYMATTR InstName R11
SYMATTR Value 15m