* Z:\tmp\asc_dec_bjh7r6w2\094879f4dfa4_Lighthouse_Sensor_Alan_Yates_Twitter_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
R12 N003 N008 1k
R14 N001 N003 33R
R23 N009 0 100k
Q1 N017 N018 N007 0 2N3904
R2 N016 N018 8k2
Q2 N007 N017 N010 0 2N3906
V1 N011 N026 3.3
C6 N008 0 1n
C5 N013 N012 100n
R18 N015 N014 56k
R21 N024 N023 1k2
R6 N019 N026 6k8
I1 N006 N018 PULSE(100u 120u 1u 10n 10n 272n 543n 5)
XU2 N024 N009 N001 0 N022 LTC6702 ;pnba In+)In-)V+)GND)OUT
C11 N004 0 100n
R28 N001 N004 33R
R5 N007 N026 560R
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
* Library below included based on ModelFile attribute of instance XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Comparators\LTC6702.asy)
.lib LTC3.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2772 700
WIRE 880 -112 48 -112
WIRE 1648 -112 880 -112
WIRE 2368 -112 1648 -112
WIRE 880 -80 880 -112
WIRE 1648 -80 1648 -112
WIRE -352 32 -544 32
WIRE 752 32 608 32
WIRE 880 32 880 0
WIRE 880 32 752 32
WIRE 976 32 880 32
WIRE 1120 32 976 32
WIRE 1648 32 1648 0
WIRE 1648 32 1456 32
WIRE 1760 32 1648 32
WIRE 1888 32 1760 32
WIRE 1952 32 1888 32
WIRE 2368 32 2368 -112
WIRE 2368 32 2208 32
WIRE 2432 32 2368 32
WIRE -544 64 -544 32
WIRE -352 64 -352 32
WIRE 112 64 112 32
WIRE 752 64 752 32
WIRE 1120 64 1120 32
WIRE 1952 64 1952 32
WIRE 2208 64 2208 32
WIRE 1760 112 1760 32
WIRE 976 144 976 32
WIRE -544 160 -544 128
WIRE 1952 160 1952 128
WIRE -352 176 -352 144
WIRE -160 176 -352 176
WIRE 352 176 -96 176
WIRE 1120 176 1120 144
WIRE 1264 176 1120 176
WIRE 2208 176 2208 144
WIRE 2208 176 2112 176
WIRE 2304 176 2208 176
WIRE -352 208 -352 176
WIRE -352 208 -416 208
WIRE -288 208 -352 208
WIRE 1120 208 1120 176
WIRE 1264 208 1264 176
WIRE 1888 208 1888 32
WIRE 2112 208 2112 176
WIRE 2208 208 2208 176
WIRE 240 224 240 32
WIRE -640 240 -640 -112
WIRE -416 240 -416 208
WIRE -352 240 -352 208
WIRE -288 240 -288 208
WIRE 608 240 608 32
WIRE 752 256 752 144
WIRE 848 256 752 256
WIRE 976 256 976 224
WIRE 976 256 912 256
WIRE 1056 256 976 256
WIRE 1456 256 1456 32
WIRE 1648 256 1616 256
WIRE 1760 256 1760 192
WIRE 1760 256 1728 256
WIRE 1824 256 1760 256
WIRE -32 272 -32 32
WIRE 112 272 112 144
WIRE 176 272 112 272
WIRE 976 288 976 256
WIRE 752 304 752 256
WIRE 1264 304 1264 272
WIRE 1616 320 1616 256
WIRE 1760 320 1760 256
WIRE 2112 320 2112 272
WIRE 2128 320 2112 320
WIRE 2208 320 2208 288
WIRE 112 336 112 272
WIRE 2368 336 2368 32
WIRE -416 352 -416 320
WIRE -352 352 -352 304
WIRE -352 352 -416 352
WIRE -288 352 -288 320
WIRE -288 352 -352 352
WIRE 240 352 240 320
WIRE 352 352 352 176
WIRE 352 352 240 352
WIRE 432 352 352 352
WIRE 608 352 608 320
WIRE 608 352 496 352
WIRE 688 352 608 352
WIRE 1120 368 1120 304
WIRE 1296 368 1120 368
WIRE 1456 368 1360 368
WIRE 1552 368 1456 368
WIRE 2304 368 2304 176
WIRE 2336 368 2304 368
WIRE -352 384 -352 352
WIRE -32 384 -32 352
WIRE -32 384 -352 384
WIRE 48 384 -32 384
WIRE 608 384 608 352
WIRE 2480 384 2416 384
WIRE 2512 384 2480 384
WIRE 1888 400 1888 304
WIRE 1968 400 1888 400
WIRE 2304 400 2048 400
WIRE 2336 400 2304 400
WIRE -32 416 -32 384
WIRE 112 464 112 432
WIRE 176 464 112 464
WIRE 240 464 240 352
WIRE 240 464 176 464
WIRE 752 464 752 400
WIRE 752 464 704 464
WIRE 800 464 752 464
WIRE 2368 464 2368 432
WIRE 176 496 176 464
WIRE 704 496 704 464
WIRE 1120 496 1120 368
WIRE 1888 496 1888 400
WIRE 2304 544 2304 400
WIRE 2352 544 2304 544
WIRE 2480 544 2480 384
WIRE 2480 544 2432 544
WIRE -640 608 -640 320
WIRE -32 608 -32 496
WIRE -32 608 -640 608
WIRE 176 608 176 576
WIRE 176 608 -32 608
WIRE 608 608 608 464
WIRE 608 608 176 608
WIRE 976 608 976 368
WIRE 1616 608 1616 416
WIRE 1760 608 1760 384
WIRE 1888 608 1888 576
SYMBOL res 1104 48 R0
SYMATTR InstName R12
SYMATTR Value 1k
SYMBOL res 864 -96 R0
SYMATTR InstName R14
SYMATTR Value 33R
SYMBOL res 2192 192 R0
SYMATTR InstName R23
SYMATTR Value 100k
SYMBOL npn 48 336 R0
WINDOW 0 74 32 Left 2
WINDOW 3 73 68 Left 2
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL res -48 256 R0
SYMATTR InstName R2
SYMATTR Value 8k2
SYMBOL pnp 176 320 M180
SYMATTR InstName Q2
SYMATTR Value 2N3906
SYMBOL voltage -640 224 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 3.3
SYMBOL cap 1248 208 R0
SYMATTR InstName C6
SYMATTR Value 1n
SYMBOL cap 912 240 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C5
SYMATTR Value 100n
SYMBOL res 1744 240 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R18
SYMATTR Value 56k
SYMBOL res 2064 384 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R21
SYMATTR Value 1k2
SYMBOL res 592 368 R0
SYMATTR InstName R6
SYMATTR Value 6k8
SYMBOL current -416 240 R0
WINDOW 3 -95 175 Left 2
WINDOW 123 -52 30 Left 2
WINDOW 39 0 0 Left 2
WINDOW 0 -52 2 Left 2
SYMATTR Value PULSE(100u 120u 1u 10n 10n 272n 543n 5)
SYMATTR InstName I1
SYMBOL Comparators\\LTC6702 2368 384 R0
SYMATTR InstName U2
SYMBOL cap 1936 64 R0
SYMATTR InstName C11
SYMATTR Value 100n
SYMBOL res 1632 -96 R0
SYMATTR InstName R28
SYMATTR Value 33R
SYMBOL res 160 480 R0
SYMATTR InstName R5
SYMATTR Value 560R
FLAG -544 160 0
FLAG 1264 304 0
FLAG 1952 160 0
FLAG 2368 464 0
FLAG 2208 320 0
FLAG 2112 320 0