* Z:\home\khalils\Downloads\files\data\raw_asc\265c72330c93_Optoacoplador.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Optos\4N25.asy)
* Library below included based on ModelFile attribute of instance XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Optos\PC817A.asy)
R4 7V4 N002 220
XU2 N001 N006 N002 N007 PC817 Igain=1m ;pnba A)K)C)E
Q3 N008 N013 0 0 BC547B
XU1 N003 N008 N004 N005 N009 4N25 ;pnba A)K)C)E)B
R8 N003 7V4 120
V1 7V4 0 7.4
Q4 N011 N005 N015 0 BC547B
R13 N009 0 100k
R10 7V4 N004 220
Q2 N010 N007 N014 0 BC547B
RSkib2 N014 0 1.3
Q1 N006 N012 0 0 BC547B
R1 N012 3V3 220
R7 N013 3V3 220
R12 7V4 N011 18
C1 N007 0 1n
R2 N001 7V4 120
V2 3V3 0 PULSE(0 3.3 5 0.01 0.01 10)
RSkib N015 0 1.3
C2 N005 0 1n
R3 N007 0 100k
R6 7V4 N010 18
R9 N005 0 100k
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 0 10 0
.lib 4N25.sub
.lib PC817.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3044 680
WIRE -176 -688 -176 -768
WIRE -16 -688 -16 -768
WIRE -176 -528 -176 -608
WIRE -16 -528 -16 -608
WIRE 496 -144 496 -224
WIRE 2176 -144 2176 -224
WIRE 176 -128 176 -224
WIRE 1856 -128 1856 -224
WIRE 1072 0 1072 -224
WIRE 2752 0 2752 -224
WIRE 176 32 176 -48
WIRE 240 32 176 32
WIRE 496 32 496 -64
WIRE 496 32 432 32
WIRE 1856 32 1856 -48
WIRE 1920 32 1856 32
WIRE 2176 32 2176 -64
WIRE 2176 32 2112 32
WIRE 2176 96 2112 96
WIRE 240 128 176 128
WIRE 496 128 432 128
WIRE 1920 128 1856 128
WIRE 2128 128 2112 128
WIRE 1072 176 1072 80
WIRE 1072 176 1040 176
WIRE 2752 176 2752 80
WIRE 2752 176 2720 176
WIRE 176 192 176 128
WIRE 1856 192 1856 128
WIRE 496 224 496 128
WIRE 608 224 496 224
WIRE 816 224 608 224
WIRE 976 224 816 224
WIRE 2176 224 2176 96
WIRE 2288 224 2176 224
WIRE 2496 224 2288 224
WIRE 2656 224 2496 224
WIRE -64 240 -176 240
WIRE 112 240 16 240
WIRE 1616 240 1504 240
WIRE 1792 240 1696 240
WIRE 1072 272 1040 272
WIRE 2752 272 2720 272
WIRE 608 288 608 224
WIRE 2128 288 2128 128
WIRE 2288 288 2288 224
WIRE 816 304 816 224
WIRE 2496 304 2496 224
WIRE 1072 320 1072 272
WIRE 2752 320 2752 272
WIRE 176 432 176 288
WIRE 608 432 608 368
WIRE 816 432 816 368
WIRE 1072 432 1072 400
WIRE 1856 432 1856 288
WIRE 2128 432 2128 368
WIRE 2288 432 2288 368
WIRE 2496 432 2496 368
WIRE 2752 432 2752 400
IOPIN -176 -768 Out
IOPIN -16 -768 Out
IOPIN 176 -224 In
IOPIN 496 -224 In
IOPIN -176 240 In
IOPIN 1072 -224 In
IOPIN 1856 -224 In
IOPIN 2176 -224 In
IOPIN 1504 240 In
IOPIN 2752 -224 In
RECTANGLE Normal 3040 528 1360 -368
RECTANGLE Normal 1344 528 -336 -368
RECTANGLE Normal 400 -864 -336 -400
SYMBOL res 1056 -16 R0
SYMATTR InstName R6
SYMATTR Value 18
SYMBOL res 2736 304 R0
SYMATTR InstName Skib
SYMATTR Value 1.3
SYMBOL npn 1792 192 R0
SYMATTR InstName Q3
SYMATTR Value BC547B
SYMBOL npn 2656 176 R0
SYMATTR InstName Q4
SYMATTR Value BC547B
SYMBOL npn 976 176 R0
SYMATTR InstName Q2
SYMATTR Value BC547B
SYMBOL res 1712 224 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 220
SYMBOL res 480 -160 R0
SYMATTR InstName R4
SYMATTR Value 220
SYMBOL Optos\\4N25 2016 96 R0
SYMATTR InstName U1
SYMBOL cap 2480 304 R0
SYMATTR InstName C2
SYMATTR Value 1n
SYMBOL res 2112 272 R0
SYMATTR InstName R13
SYMATTR Value 100k
SYMBOL voltage -176 -704 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 7.4
SYMBOL res 1872 -32 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R8
SYMATTR Value 120
SYMBOL res 32 224 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 220
SYMBOL res 192 -32 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R2
SYMATTR Value 120
SYMBOL res 2160 -160 R0
SYMATTR InstName R10
SYMATTR Value 220
SYMBOL Optos\\PC817A 336 80 R0
SYMATTR InstName U2
SYMBOL res 592 272 R0
SYMATTR InstName R3
SYMATTR Value 100k
SYMBOL res 2736 -16 R0
SYMATTR InstName R12
SYMATTR Value 18
SYMBOL res 2272 272 R0
SYMATTR InstName R9
SYMATTR Value 100k
SYMBOL npn 112 192 R0
SYMATTR InstName Q1
SYMATTR Value BC547B
SYMBOL cap 800 304 R0
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL res 1056 304 R0
SYMATTR InstName Skib2
SYMATTR Value 1.3
SYMBOL voltage -16 -704 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(0 3.3 5 0.01 0.01 10)
FLAG 816 432 0
FLAG 608 432 0
FLAG 176 432 0
FLAG -16 -528 0
FLAG -176 -528 0
FLAG -176 -768 7V4
FLAG -16 -768 3V3
FLAG 176 -224 7V4
FLAG 496 -224 7V4
FLAG -176 240 3V3
FLAG 1072 432 0
FLAG 1072 -224 7V4
FLAG 2496 432 0
FLAG 2288 432 0
FLAG 1856 432 0
FLAG 1856 -224 7V4
FLAG 2176 -224 7V4
FLAG 1504 240 3V3
FLAG 2752 432 0
FLAG 2752 -224 7V4
FLAG 2128 432 0
TEXT -152 -464 Left 2 !.tran 0 10 0