* Z:\home\khalils\Downloads\files\data\raw_asc\0637c3d87d8f_res_sensor_transistor_const_cur.asc
* Generated by LTspice 26.0.1 for Windows.
A1 V_Rsensor 0 0 0 0 0 Vout 0 VARISTOR
R4 0 N002 {mc(10k,tol_1)}
V1 N001 0 5 Rser=25m
Q1 V_Iset N003 Vset 0 BC847C
R_Iset Iset N001 {mc(200,tol_1)}
R2 N001 V_Iset {mc(20k,tol_1)}
Q3 Vout N002 Iset 0 BC857C
V_Rsensor V_Rsensor 0 1
R1 N001 N003 {mc(33k,tol_1)}
Q2 N001 V_Iset N002 0 BC847C
XD1 0 N003 szmmsz4684 ;pnba +)-
C1 N003 0 10n
R_Vset Vset 0 {mc(27k,tol_1)}
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.dc V_Rsensor 1 3 .1
.INCLUDE SZMMSZ4684T1G.LIB
.param tol_1=0.01
.step param run 1 10 1
.temp -10 0 10 20 30 40 50
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1064 680
WIRE 64 -128 -224 -128
WIRE 176 -128 64 -128
WIRE 240 -128 176 -128
WIRE 256 -128 240 -128
WIRE 352 -128 336 -128
WIRE 368 -128 352 -128
WIRE 576 -128 464 -128
WIRE 608 -128 576 -128
WIRE 176 -48 176 -128
WIRE 64 -32 64 -128
WIRE 240 -32 240 -128
WIRE 272 -32 240 -32
WIRE 416 -32 416 -64
WIRE 416 -32 368 -32
WIRE 416 16 416 -32
WIRE -224 48 -224 -128
WIRE 176 48 176 32
WIRE 256 48 176 48
WIRE 320 48 320 32
WIRE 320 48 256 48
WIRE 608 48 608 -128
WIRE 688 64 624 64
WIRE 176 80 176 48
WIRE 656 96 624 96
WIRE 64 112 64 48
WIRE 64 112 -32 112
WIRE 656 112 656 96
WIRE 64 128 64 112
WIRE 112 128 64 128
WIRE 912 128 912 96
WIRE -32 160 -32 112
WIRE 64 192 64 128
WIRE 176 192 176 176
WIRE 176 208 176 192
WIRE 912 224 912 208
WIRE -224 304 -224 128
WIRE -32 304 -32 224
WIRE -32 304 -224 304
WIRE 64 304 64 256
WIRE 64 304 -32 304
WIRE 176 304 176 288
WIRE 176 304 64 304
WIRE 416 304 416 96
WIRE 416 304 176 304
WIRE 608 304 608 112
WIRE 608 304 416 304
WIRE -224 336 -224 304
SYMBOL res 432 112 R180
WINDOW 0 36 76 Left 2
WINDOW 3 -117 9 Left 2
SYMATTR InstName R4
SYMATTR Value {mc(10k,tol_1)}
SYMBOL res 48 -48 R0
WINDOW 3 -10 -19 VRight 2
SYMATTR Value {mc(33k,tol_1)}
SYMATTR InstName R1
SYMBOL npn 272 32 R270
SYMATTR InstName Q2
SYMATTR Value BC847C
SYMBOL res 160 -64 R0
WINDOW 3 -17 -26 VRight 2
SYMATTR Value {mc(20k,tol_1)}
SYMATTR InstName R2
SYMBOL zener 80 256 R180
WINDOW 0 24 64 Left 2
WINDOW 3 -9 -27 VRight 2
SYMATTR InstName D1
SYMATTR Value szmmsz4684
SYMATTR Prefix X
SYMBOL res 352 -144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 -55 89 VTop 2
SYMATTR InstName R_Iset
SYMATTR Value {mc(200,tol_1)}
SYMBOL voltage -224 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 122 Left 2
SYMATTR SpiceLine Rser=25m
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL npn 112 80 R0
SYMATTR InstName Q1
SYMATTR Value BC847C
SYMBOL res 160 192 R0
SYMATTR InstName R_Vset
SYMATTR Value {mc(27k,tol_1)}
SYMBOL cap -48 160 R0
SYMATTR InstName C1
SYMATTR Value 10n
SYMBOL pnp 464 -64 M270
SYMATTR InstName Q3
SYMATTR Value BC857C
SYMBOL voltage 912 112 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V_Rsensor
SYMATTR Value 1
SYMBOL SpecialFunctions\\varistor 592 16 M0
SYMATTR InstName A1
FLAG -224 336 0
FLAG 256 48 V_Iset
FLAG 352 -128 Iset
FLAG 576 -128 Vout
FLAG 176 192 Vset
FLAG 912 224 0
FLAG 656 112 0
FLAG 688 64 V_Rsensor
FLAG 912 96 V_Rsensor
TEXT -168 392 Left 2 !.dc V_Rsensor 1 3 .1
TEXT -168 480 Left 2 !.INCLUDE SZMMSZ4684T1G.LIB
TEXT 200 400 Left 2 !.param tol_1=0.01
TEXT -176 424 Left 2 !.step param run 1 10 1
TEXT -168 448 Left 2 !.temp -10 0 10 20 30 40 50