* SPICE netlist
V+VCC +VCC 0 {VCC}
V-VCC 0 -VCC {VCC}
Q9 N016 N017 N018 0 MJE340
R8 N018 -VCC {rvas}
Q10 0 N015 N017 0 MPSA42
R11 N007 0 10k
R12 N006 0 10k
Q13 0 N003 N002 0 MPSA92
Q14 N004 N002 N001 0 MJE350
R13 +VCC N001 {rvas}
C_comp_3 N007 0 4p
V+Vreg 0 -Vreg {Vreg}
Q_curr1 N008 N009 N012 0 MMPQ2222A
Q17 N005 N006 N008 0 MMPQ2222A
Q18 +Vreg N007 N008 0 MMPQ2222A
R_led1 0 N009 6.8k
RE_curr1 N012 -Vreg {rcurr}
D_1 N009 -Vreg LED18
RC1 +VCC N003 {RC}
Q19 N003 +Vreg N005 0 MMPQ2222A
RE_curr2 +Vreg N010 {rcurr}
Q_curr2 N013 N011 N010 0 MMPQ2907A
Q20 N014 N006 N013 0 MMPQ2907A
Q21 N015 -Vreg N014 0 MMPQ2907A
RC2 N015 -VCC {RC}
Q22 -Vreg N007 N013 0 MMPQ2907A
D_2 +Vreg N011 LED18
R_led2 N011 0 6.8k
RECC2 N017 -VCC 1k
RECC1 +VCC N002 1k
V-Vreg +Vreg 0 {Vreg}
R1 N004 0 300
R3 0 N016 300
.fourier 1k 20 v(realim)
.param VCC=70
.param Vreg=12
.param RC=2.4k
.param rvas=33
;.param rcurr=390
.param ton=10m
.param rcurr=560
.op

* LTspice schematic (.asc)
Version 4
SHEET 1 3744 1792
WIRE 1760 -880 1760 -896
WIRE 1760 -880 1648 -880
WIRE 1872 -880 1760 -880
WIRE 1872 -864 1872 -880
WIRE 1648 -832 1648 -880
WIRE 432 -816 432 -880
WIRE 1872 -768 1872 -784
WIRE 1648 -720 1648 -752
WIRE 1808 -720 1648 -720
WIRE 432 -688 432 -736
WIRE 1360 -688 432 -688
WIRE 1648 -672 1648 -720
WIRE 432 -624 432 -688
WIRE 1360 -624 1360 -688
WIRE 1584 -624 1360 -624
WIRE 576 -576 576 -624
WIRE 576 -576 496 -576
WIRE 704 -576 576 -576
WIRE 1872 -576 1872 -672
WIRE 1648 -544 1648 -576
WIRE 1872 -384 1872 -496
WIRE 432 -352 432 -528
WIRE 704 -352 704 -576
WIRE 368 -304 -160 -304
WIRE 848 -304 768 -304
WIRE 432 -224 432 -256
WIRE 576 -224 432 -224
WIRE 704 -224 704 -256
WIRE 704 -224 576 -224
WIRE 1152 -160 1152 -192
WIRE 1152 -160 1056 -160
WIRE 1056 -128 1056 -160
WIRE 1152 -128 1152 -160
WIRE 224 -112 224 -144
WIRE 224 -112 64 -112
WIRE 416 -112 416 -160
WIRE 224 -80 224 -112
WIRE 64 -64 64 -112
WIRE 576 -32 576 -224
WIRE 416 16 416 -32
WIRE 512 16 416 16
WIRE -160 48 -160 -304
WIRE -160 48 -240 48
WIRE 848 48 848 -304
WIRE 1056 48 1056 -64
WIRE 1056 48 848 48
WIRE 1152 48 1152 -48
WIRE 1152 48 1056 48
WIRE 224 64 224 0
WIRE 64 112 64 0
WIRE 160 112 64 112
WIRE 416 112 416 16
WIRE -240 128 -240 48
WIRE 64 144 64 112
WIRE 576 144 576 64
WIRE -240 240 -240 208
WIRE 64 240 64 224
WIRE 416 240 416 176
WIRE 576 240 576 224
WIRE 576 240 416 240
WIRE 576 272 576 240
WIRE 224 304 224 160
WIRE 224 304 96 304
WIRE 352 304 224 304
WIRE -1600 320 -1648 320
WIRE -1216 320 -1216 288
WIRE -1648 336 -1648 320
WIRE -1600 368 -1600 320
WIRE 96 368 96 304
WIRE 352 368 352 304
WIRE -160 416 -160 48
WIRE 32 416 -160 416
WIRE 848 416 848 48
WIRE 848 416 416 416
WIRE -1216 464 -1216 400
WIRE -1152 464 -1216 464
WIRE 1872 464 1872 384
WIRE -1152 480 -1152 464
WIRE 96 512 96 464
WIRE -1824 528 -1872 528
WIRE 1648 544 1648 512
WIRE -1824 560 -1824 528
WIRE 272 560 160 560
WIRE 352 560 352 464
WIRE 352 560 272 560
WIRE -1600 576 -1600 448
WIRE -1600 576 -1648 576
WIRE -1216 592 -1216 464
WIRE 1584 592 1360 592
WIRE 272 608 272 560
WIRE 1872 672 1872 544
WIRE 96 688 96 608
WIRE 1360 688 1360 592
WIRE 1360 688 96 688
WIRE -1216 704 -1216 672
WIRE 1648 720 1648 640
WIRE 1808 720 1648 720
WIRE -1824 736 -1824 640
WIRE 96 736 96 688
WIRE 1648 768 1648 720
WIRE 1872 784 1872 768
WIRE 96 880 96 816
WIRE 1648 880 1648 848
WIRE 1760 880 1648 880
WIRE 1872 880 1872 864
WIRE 1872 880 1760 880
WIRE 1760 896 1760 880
FLAG -1152 480 0
FLAG -1216 288 +VCC
FLAG -1216 704 -VCC
FLAG -240 240 0
FLAG 1648 -544 0
FLAG 1648 512 0
FLAG -1872 528 +Vreg
FLAG -1648 576 -Vreg
FLAG 576 -624 +Vreg
FLAG 576 272 -Vreg
FLAG 224 -144 +Vreg
FLAG 272 608 -Vreg
FLAG 64 240 0
FLAG 416 -160 0
FLAG -1824 736 0
FLAG -1648 336 0
FLAG 432 -880 +VCC
FLAG 96 880 -VCC
FLAG 1760 -896 +VCC
FLAG 1760 896 -VCC
FLAG 1152 -192 0
FLAG 1872 -384 0
FLAG 1872 384 0
SYMBOL voltage -1216 304 R0
SYMATTR InstName V+VCC
SYMATTR Value {VCC}
SYMBOL voltage -1216 576 R0
SYMATTR InstName V-VCC
SYMATTR Value {VCC}
SYMBOL npn 1808 672 R0
SYMATTR InstName Q9
SYMATTR Value MJE340
SYMBOL res 1856 768 R0
SYMATTR InstName R8
SYMATTR Value {rvas}
SYMBOL npn 1584 544 R0
SYMATTR InstName Q10
SYMATTR Value MPSA42
SYMBOL res 1168 -32 R180
SYMATTR InstName R11
SYMATTR Value 10k
SYMBOL res -256 112 R0
SYMATTR InstName R12
SYMATTR Value 10k
SYMBOL pnp 1584 -576 M180
SYMATTR InstName Q13
SYMATTR Value MPSA92
SYMBOL pnp 1808 -672 M180
SYMATTR InstName Q14
SYMATTR Value MJE350
SYMBOL res 1856 -880 R0
SYMATTR InstName R13
SYMATTR Value {rvas}
SYMBOL cap 1072 -64 R180
SYMATTR InstName C_comp_3
SYMATTR Value 4p
SYMBOL voltage -1600 352 R0
SYMATTR InstName V+Vreg
SYMATTR Value {Vreg}
SYMBOL npn 512 -32 R0
SYMATTR InstName Q_curr1
SYMATTR Value MMPQ2222A
SYMBOL npn 368 -352 R0
SYMATTR InstName Q17
SYMATTR Value MMPQ2222A
SYMBOL npn 768 -352 M0
SYMATTR InstName Q18
SYMATTR Value MMPQ2222A
SYMBOL res 400 -128 R0
SYMATTR InstName R_led1
SYMATTR Value 6.8k
SYMBOL res 560 128 R0
SYMATTR InstName RE_curr1
SYMATTR Value {rcurr}
SYMBOL LED 400 112 R0
SYMATTR InstName D_1
SYMATTR Value LED18
SYMBOL res 416 -832 R0
SYMATTR InstName RC1
SYMATTR Value {RC}
SYMBOL npn 496 -624 M0
SYMATTR InstName Q19
SYMATTR Value MMPQ2222A
SYMBOL res 208 -96 R0
SYMATTR InstName RE_curr2
SYMATTR Value {rcurr}
SYMBOL pnp 160 160 M180
SYMATTR InstName Q_curr2
SYMATTR Value MMPQ2907A
SYMBOL pnp 32 464 M180
SYMATTR InstName Q20
SYMATTR Value MMPQ2907A
SYMBOL pnp 160 608 R180
SYMATTR InstName Q21
SYMATTR Value MMPQ2907A
SYMBOL res 80 720 R0
SYMATTR InstName RC2
SYMATTR Value {RC}
SYMBOL pnp 416 464 R180
SYMATTR InstName Q22
SYMATTR Value MMPQ2907A
SYMBOL LED 48 -64 R0
SYMATTR InstName D_2
SYMATTR Value LED18
SYMBOL res 48 128 R0
SYMATTR InstName R_led2
SYMATTR Value 6.8k
SYMBOL res 1632 752 R0
SYMATTR InstName RECC2
SYMATTR Value 1k
SYMBOL res 1632 -848 R0
SYMATTR InstName RECC1
SYMATTR Value 1k
SYMBOL voltage -1824 544 R0
SYMATTR InstName V-Vreg
SYMATTR Value {Vreg}
SYMBOL res 1856 -592 R0
SYMATTR InstName R1
SYMATTR Value 300
SYMBOL res 1856 448 R0
SYMATTR InstName R3
SYMATTR Value 300