* Z:\home\khalils\Downloads\files\data\raw_asc\141451ff2083_metal_detector_5v_proto.asc
* Generated by LTspice 26.0.1 for Windows.
R11 N006 N010 200k
XU2 N005 N006 VOutRxADC opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
K1 Ltx Lrx .001
R10 VOutRxADC N005 200k
R5 0 N011 1.5k
C1 VTxOsc 0 47n
R3 N001 N007 47k
R1 N001 N002 390
R4 VTxOsc N007 47k
R7 N008 VTxOsc 100k
XU1 N008 N010 VOutTxADC opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
Q1 N003 N007 N011 0 2N3904
V1 N001 0 4.7
Q2 N002 N003 VTxOsc 0 2N3906
C2 N004 N009 33n
R9 N006 N009 2.5k
R8 N005 N004 2.5k
R6 VOutTxADC N008 20k
R2 N001 N003 1k
V2 N010 0 1.65
Ltx VTxOsc 0 5m6 Rser=24.5
Lrx N004 N009 6m2 Rser=25.3
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 0 40m 15m 10u
.lib opamp.sub
.meas TRAN txVoltageForADCMax MAX V(VOutTxADC)
.meas TRAN txVoltageForADCMin MIN V(VOutTxADC)
.meas TRAN rxVoltageForADCMax MAX V(VOutRxADC)
.meas TRAN rxVoltageForADCMin MIN V(VOutRxADC)
.meas TRAN VTxOsc_MAX MAX V(VTxOsc)
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1992 776
WIRE 32 -240 -128 -240
WIRE 240 -240 32 -240
WIRE 512 -240 240 -240
WIRE 512 -144 512 -160
WIRE 240 -112 240 -160
WIRE 32 -64 32 -160
WIRE 176 -64 32 -64
WIRE 1216 32 1152 32
WIRE 1296 32 1216 32
WIRE 32 48 32 -64
WIRE 1296 48 1296 32
WIRE 1408 48 1408 -64
WIRE 1408 48 1376 48
WIRE 1424 48 1408 48
WIRE 1488 64 1488 -64
WIRE 1616 64 1488 64
WIRE 1408 80 1376 80
WIRE 1424 80 1408 80
WIRE -128 96 -128 -160
WIRE -32 96 -128 96
WIRE 240 112 240 -16
WIRE 608 112 576 112
WIRE 720 112 688 112
WIRE 1216 112 1216 96
WIRE 1216 112 1152 112
WIRE 1296 112 1296 80
WIRE 1296 112 1216 112
WIRE 1408 112 1408 80
WIRE 240 176 240 112
WIRE 400 176 240 176
WIRE 576 176 576 112
WIRE 576 176 480 176
WIRE 624 176 576 176
WIRE 720 192 720 112
WIRE 720 192 688 192
WIRE 800 192 720 192
WIRE 1408 192 976 192
WIRE 624 208 608 208
WIRE -128 224 -128 96
WIRE -96 224 -128 224
WIRE 240 224 240 176
WIRE 240 224 -16 224
WIRE 32 288 32 144
WIRE 240 288 240 224
WIRE 240 288 128 288
WIRE 608 336 608 208
WIRE 976 336 976 192
WIRE 976 336 608 336
WIRE 128 368 128 352
WIRE 128 368 32 368
WIRE 240 368 128 368
WIRE 240 416 240 368
WIRE 608 432 608 336
SYMBOL cap 112 288 R0
WINDOW 0 40 21 Left 2
WINDOW 3 39 47 Left 2
SYMATTR InstName C1
SYMATTR Value 47n
SYMBOL res 16 -256 R0
SYMATTR InstName R2
SYMATTR Value 1k
SYMBOL res 224 -256 R0
SYMATTR InstName R1
SYMATTR Value 390
SYMBOL res 704 96 R90
WINDOW 0 -9 90 VBottom 2
WINDOW 3 -38 37 VTop 2
SYMATTR InstName R6
SYMATTR Value 20k
SYMBOL cap 1200 32 R0
WINDOW 0 38 14 Left 2
WINDOW 3 36 51 Left 2
SYMATTR InstName C2
SYMATTR Value 33n
SYMBOL OpAmps\\opamp 1456 0 R0
WINDOW 0 -13 28 Left 2
SYMATTR InstName U2
SYMBOL res 1392 32 R90
WINDOW 0 -4 95 VBottom 2
WINDOW 3 -32 35 VTop 2
SYMATTR InstName R8
SYMATTR Value 2.5k
SYMBOL ind2 224 272 R0
WINDOW 0 42 35 Left 2
WINDOW 3 40 78 Left 2
SYMATTR InstName Ltx
SYMATTR Value 5m6
SYMATTR Type ind
SYMATTR SpiceLine Rser=24.5
SYMBOL res 0 208 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 47k
SYMBOL res 496 160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 100k
SYMBOL voltage 608 416 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 1.65
SYMBOL voltage 512 -256 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 4.7
SYMBOL ind2 1136 16 R0
WINDOW 0 -52 27 Left 2
WINDOW 3 -62 73 Left 2
SYMATTR InstName Lrx
SYMATTR Value 6m2
SYMATTR Type ind
SYMATTR SpiceLine Rser=25.3
SYMBOL res 48 384 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R5
SYMATTR Value 1.5k
SYMBOL res -144 -256 R0
SYMATTR InstName R3
SYMATTR Value 47k
SYMBOL pnp 176 -112 R0
SYMATTR InstName Q2
SYMATTR Value 2N3906
SYMBOL res 1504 -80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R10
SYMATTR Value 200k
SYMBOL OpAmps\\opamp 656 128 R0
SYMATTR InstName U1
SYMBOL res 1392 64 R90
WINDOW 0 68 89 VBottom 2
WINDOW 3 39 28 VTop 2
SYMATTR InstName R9
SYMATTR Value 2.5k
SYMBOL npn -32 48 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL res 1392 96 R0
SYMATTR InstName R11
SYMATTR Value 200k
FLAG 512 -144 0
FLAG 240 416 0
FLAG 608 512 0
FLAG 800 192 VOutTxADC
FLAG 240 112 VTxOsc
FLAG 1616 64 VOutRxADC
TEXT -200 584 Left 2 !.tran 0 40m 15m 10u
TEXT -200 608 Left 2 !.lib opamp.sub
TEXT -200 656 Left 2 !.meas TRAN txVoltageForADCMax MAX V(VOutTxADC)
TEXT -200 680 Left 2 !.meas TRAN txVoltageForADCMin MIN V(VOutTxADC)
TEXT -200 704 Left 2 !.meas TRAN rxVoltageForADCMax MAX V(VOutRxADC)
TEXT -200 728 Left 2 !.meas TRAN rxVoltageForADCMin MIN V(VOutRxADC)
TEXT -200 632 Left 2 !K1 Ltx Lrx .001
TEXT -200 760 Left 2 !.meas TRAN VTxOsc_MAX MAX V(VTxOsc)