* Z:\home\khalils\Downloads\files\data\raw_asc\1bb799d6ba4f_Hardware301.asc
* Generated by LTspice 26.0.1 for Windows.
* buffer\nnegate the effect of 10k\nunity gain
* non-inverting opamp\ngain = 1+ (R5/R2) = 1.5
* high-pass filter\ncut-off freq: 1/2piRC = 282 Hz\nnote: the coupling capacitor removes all DC, \nwe are working with top half of the origional amplitude now
* Emitter output of the phototransistor
* might need to add threshold resistors
;.tran 0.1s
XU2 N004 151mV Vcc 0 Vout LM324 ;pnba In+)In-)V+)V-)OUT
V2 Vcc 0 5
R2 0 N001 10k
XU1 N003 N001 Vcc 0 N002 LM324 ;pnba In+)In-)V+)V-)OUT
R3 0 Vin 10k
XU3 Vin N003 Vcc 0 N003 LM324 ;pnba In+)In-)V+)V-)OUT
R8 151mV Vcc 15k
R1 N004 0 24k
V1 Vin 0 SINE(900m 450m 360) AC 1
R5 N002 N001 5.1k
R7 0 151mV 470
R4 Vcc N004 24k
C1 N004 N002 47n
.lib LM324.ti.lib
.ac dec 100 1 10k
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1712 752
WIRE -528 -240 -528 -336
WIRE -176 -80 -176 -96
WIRE -528 -48 -528 -160
WIRE -368 -48 -528 -48
WIRE -336 -48 -368 -48
WIRE -176 -48 -176 -80
WIRE 352 16 352 -64
WIRE -528 32 -528 -48
WIRE 832 80 800 80
WIRE 960 80 912 80
WIRE 992 80 960 80
WIRE 1088 80 1072 80
WIRE 352 176 352 96
WIRE 416 176 352 176
WIRE 560 176 496 176
WIRE 720 192 720 160
WIRE 240 224 64 224
WIRE 1056 256 1056 240
WIRE 416 272 416 256
WIRE 960 272 960 80
WIRE 992 272 960 272
WIRE 1024 272 992 272
WIRE 144 288 144 272
WIRE 352 288 352 176
WIRE 384 288 352 288
WIRE 1216 288 1088 288
WIRE 1232 288 1216 288
WIRE 64 304 64 224
WIRE 112 304 64 304
WIRE 560 304 560 176
WIRE 560 304 448 304
WIRE 592 304 560 304
WIRE 608 304 592 304
WIRE 720 304 720 272
WIRE 720 304 656 304
WIRE 1024 304 720 304
WIRE 240 320 240 224
WIRE 240 320 176 320
WIRE 384 320 240 320
WIRE -48 336 -80 336
WIRE 112 336 -48 336
SYMBOL OpAmps/opamp2 1056 224 R0
SYMATTR InstName U2
SYMATTR Value LM324
SYMBOL res 928 64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 15k
SYMBOL cap 656 288 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 47n
SYMBOL voltage -528 16 R0
WINDOW 123 24 118 Left 2
SYMATTR InstName V1
SYMATTR Value SINE(900m 450m 360)
SYMATTR Value2 AC 1
SYMBOL voltage -176 -64 R0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL res 512 160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 5.1k
SYMBOL OpAmps/opamp2 144 256 R0
SYMATTR InstName U3
SYMATTR Value LM324
SYMBOL OpAmps/opamp2 416 240 R0
SYMATTR InstName U1
SYMATTR Value LM324
SYMBOL res 1088 64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 470
SYMBOL res -544 -256 R0
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL res 704 288 R0
SYMATTR InstName R1
SYMATTR Value 24k
SYMBOL res 336 0 R0
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL res 704 176 R0
SYMATTR InstName R4
SYMATTR Value 24k
FLAG -528 112 0
FLAG 720 384 0
FLAG -176 32 0
FLAG 416 336 0
FLAG -176 -80 Vcc
FLAG 416 256 Vcc
FLAG 1056 320 0
FLAG 1056 240 Vcc
FLAG 1088 80 0
FLAG 800 80 Vcc
FLAG 352 -64 0
FLAG -528 -336 0
FLAG -368 -48 Vin
FLAG 144 272 Vcc
FLAG 144 352 0
FLAG -48 336 Vin
FLAG 992 272 151mV
FLAG 1216 288 Vout
FLAG 720 160 Vcc
TEXT -488 648 Left 2 !.lib LM324.ti.lib
TEXT -448 680 Left 2 !;.tran 0.1s
TEXT -504 600 Left 2 !.ac dec 100 1 10k
TEXT -8 456 Left 2 ;buffer\nnegate the effect of 10k\nunity gain
TEXT 320 456 Left 2 ;non-inverting opamp\ngain = 1+ (R5/R2) = 1.5
TEXT 600 456 Left 2 ;high-pass filter\ncut-off freq: 1/2piRC = 282 Hz\nnote: the coupling capacitor removes all DC, \nwe are working with top half of the origional amplitude now
TEXT -944 -48 Left 2 ;Emitter output of the phototransistor
TEXT 992 392 Left 2 ;might need to add threshold resistors