summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary
diff options
context:
space:
mode:
authorCodeByHarshal2025-05-24 17:55:47 +0530
committerCodeByHarshal2025-05-24 17:55:47 +0530
commit1aa3d89b32040cc4ccf65e713349650d075162b8 (patch)
tree0117bd106b866ab47b0b4aa288fe3be6cd19065a /library/SubcircuitLibrary
parent06b6267784d5bcaf787fc22a1f946be5f0c8c81d (diff)
downloadeSim-1aa3d89b32040cc4ccf65e713349650d075162b8.tar.gz
eSim-1aa3d89b32040cc4ccf65e713349650d075162b8.tar.bz2
eSim-1aa3d89b32040cc4ccf65e713349650d075162b8.zip
Add ULN2004 Darlington transistor array subcircuit
Diffstat (limited to 'library/SubcircuitLibrary')
-rw-r--r--library/SubcircuitLibrary/ULN2004/D.lib2
-rw-r--r--library/SubcircuitLibrary/ULN2004/NPN.lib4
-rw-r--r--library/SubcircuitLibrary/ULN2004/ULN2004-cache.lib154
-rw-r--r--library/SubcircuitLibrary/ULN2004/ULN2004.cir20
-rw-r--r--library/SubcircuitLibrary/ULN2004/ULN2004.cir.out23
-rw-r--r--library/SubcircuitLibrary/ULN2004/ULN2004.pro73
-rw-r--r--library/SubcircuitLibrary/ULN2004/ULN2004.sch291
-rw-r--r--library/SubcircuitLibrary/ULN2004/ULN2004.sub17
-rw-r--r--library/SubcircuitLibrary/ULN2004/ULN2004_Previous_Values.xml1
-rw-r--r--library/SubcircuitLibrary/ULN2004/analysis1
-rw-r--r--library/SubcircuitLibrary/ULN2004/file68313A5F.sch57
-rw-r--r--library/SubcircuitLibrary/ULN2004/file68313A60.sch57
-rw-r--r--library/SubcircuitLibrary/ULN2004/file68313A61.sch57
-rw-r--r--library/SubcircuitLibrary/ULN2004/file68313A62.sch57
-rw-r--r--library/SubcircuitLibrary/ULN2004/file68313A63.sch57
-rw-r--r--library/SubcircuitLibrary/ULN2004/file68313A64.sch57
-rw-r--r--library/SubcircuitLibrary/ULN2004/file68313A65.sch57
17 files changed, 985 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/ULN2004/D.lib b/library/SubcircuitLibrary/ULN2004/D.lib
new file mode 100644
index 00000000..f53bf3e0
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/D.lib
@@ -0,0 +1,2 @@
+.model 1N4148 D(is=2.495E-09 rs=4.755E-01 n=1.679E+00 tt=3.030E-09 cjo=1.700E-12 vj=1 m=1.959E-01 bv=1.000E+02 ibv=1.000E-04)
+
diff --git a/library/SubcircuitLibrary/ULN2004/NPN.lib b/library/SubcircuitLibrary/ULN2004/NPN.lib
new file mode 100644
index 00000000..be5f3073
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/NPN.lib
@@ -0,0 +1,4 @@
+.model Q2N2222 NPN( Is=14.34f Xti=3 Eg=1.11 Vaf=74.03 Bf=400 Ne=1.307
++ Ise=14.34f Ikf=0.2847 Xtb=1.5 Br=6.092 Nc=2 Isc=0 Ikr=0 Rc=1 Cjc=7.306p
++ Mjc=0.3416 Vjc=0.75 Fc=0.5 Cje=22.01p Mje=0.377 Vje=0.75 Tr=46.91n Tf=411.1p
++ Itf=0.6 Vtf=1.7 Xtf=3 Rb=10)
diff --git a/library/SubcircuitLibrary/ULN2004/ULN2004-cache.lib b/library/SubcircuitLibrary/ULN2004/ULN2004-cache.lib
new file mode 100644
index 00000000..2f85177a
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/ULN2004-cache.lib
@@ -0,0 +1,154 @@
+EESchema-LIBRARY Version 2.3
+#encoding utf-8
+#
+# PORT
+#
+DEF PORT U 0 40 Y Y 26 F N
+F0 "U" 50 100 30 H V C CNN
+F1 "PORT" 0 0 30 H V C CNN
+F2 "" 0 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+DRAW
+A 325 225 285 -1421 -1278 0 1 0 N 100 50 150 0
+A 376 -275 356 1294 1408 0 1 0 N 150 0 100 -50
+S -100 50 100 -50 0 1 0 N
+X ~ 1 250 0 100 L 30 30 1 1 P
+X ~ 2 250 0 100 L 30 30 2 1 P
+X ~ 3 250 0 100 L 30 30 3 1 P
+X ~ 4 250 0 100 L 30 30 4 1 P
+X ~ 5 250 0 100 L 30 30 5 1 P
+X ~ 6 250 0 100 L 30 30 6 1 P
+X ~ 7 250 0 100 L 30 30 7 1 P
+X ~ 8 250 0 100 L 30 30 8 1 P
+X ~ 9 250 0 100 L 30 30 9 1 P
+X ~ 10 250 0 100 L 30 30 10 1 P
+X ~ 11 250 0 100 L 30 30 11 1 P
+X ~ 12 250 0 100 L 30 30 12 1 P
+X ~ 13 250 0 100 L 30 30 13 1 P
+X ~ 14 250 0 100 L 30 30 14 1 P
+X ~ 15 250 0 100 L 30 30 15 1 P
+X ~ 16 250 0 100 L 30 30 16 1 P
+X ~ 17 250 0 100 L 30 30 17 1 P
+X ~ 18 250 0 100 L 30 30 18 1 P
+X ~ 19 250 0 100 L 30 30 19 1 P
+X ~ 20 250 0 100 L 30 30 20 1 P
+X ~ 21 250 0 100 L 30 30 21 1 P
+X ~ 22 250 0 100 L 30 30 22 1 P
+X ~ 23 250 0 100 L 30 30 23 1 P
+X ~ 24 250 0 100 L 30 30 24 1 P
+X ~ 25 250 0 100 L 30 30 25 1 P
+X ~ 26 250 0 100 L 30 30 26 1 P
+ENDDRAW
+ENDDEF
+#
+# PWR_FLAG
+#
+DEF PWR_FLAG #FLG 0 0 N N 1 F P
+F0 "#FLG" 0 75 50 H I C CNN
+F1 "PWR_FLAG" 0 150 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+DRAW
+X pwr 1 0 0 0 U 50 50 0 0 w
+P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N
+ENDDRAW
+ENDDEF
+#
+# eSim_CP1
+#
+DEF eSim_CP1 C 0 10 N N 1 F N
+F0 "C" 25 100 50 H V L CNN
+F1 "eSim_CP1" 25 -100 50 H V L CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+ALIAS capacitor_polarised
+$FPLIST
+ CP_*
+$ENDFPLIST
+DRAW
+A 0 -150 128 1287 513 0 1 20 N -80 -50 80 -50
+P 2 0 1 20 -80 30 80 30 N
+P 2 0 1 0 -70 90 -30 90 N
+P 2 0 1 0 -50 70 -50 110 N
+X ~ 1 0 150 110 D 50 50 1 1 P
+X ~ 2 0 -150 130 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_Diode
+#
+DEF eSim_Diode D 0 40 N N 1 F N
+F0 "D" 0 100 50 H V C CNN
+F1 "eSim_Diode" 0 -100 50 H V C CNN
+F2 "" 0 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+$FPLIST
+ TO-???*
+ *SingleDiode
+ *_Diode_*
+ *SingleDiode*
+ D_*
+$ENDFPLIST
+DRAW
+T 0 -100 50 60 0 0 0 A Normal 0 C C
+T 0 100 50 60 0 0 0 K Normal 0 C C
+P 2 0 1 6 50 50 50 -50 N
+P 3 0 1 0 -50 50 50 0 -50 -50 F
+X A 1 -150 0 100 R 40 40 1 1 P
+X K 2 150 0 100 L 40 40 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_GND
+#
+DEF eSim_GND #PWR 0 0 Y Y 1 F P
+F0 "#PWR" 0 -250 50 H I C CNN
+F1 "eSim_GND" 0 -150 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+DRAW
+P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
+X GND 1 0 0 0 D 50 50 1 1 W N
+ENDDRAW
+ENDDEF
+#
+# eSim_NPN
+#
+DEF eSim_NPN Q 0 0 Y N 1 F N
+F0 "Q" -100 50 50 H V R CNN
+F1 "eSim_NPN" -50 150 50 H V R CNN
+F2 "" 200 100 29 H V C CNN
+F3 "" 0 0 60 H V C CNN
+ALIAS BC547 Q2N2222
+DRAW
+C 50 0 111 0 1 10 N
+P 2 0 1 0 25 25 100 100 N
+P 3 0 1 0 25 -25 100 -100 100 -100 N
+P 3 0 1 20 25 75 25 -75 25 -75 N
+P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F
+X C 1 100 200 100 D 50 50 1 1 P
+X B 2 -200 0 225 R 50 50 1 1 P
+X E 3 100 -200 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_R
+#
+DEF eSim_R R 0 0 N Y 1 F N
+F0 "R" 50 130 50 H V C CNN
+F1 "eSim_R" 50 -50 50 H V C CNN
+F2 "" 50 -20 30 H V C CNN
+F3 "" 50 50 30 V V C CNN
+ALIAS resistor
+$FPLIST
+ R_*
+ Resistor_*
+$ENDFPLIST
+DRAW
+S 150 10 -50 90 0 1 10 N
+X ~ 1 -100 50 50 R 60 60 1 1 P
+X ~ 2 200 50 50 L 60 60 1 1 P
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/library/SubcircuitLibrary/ULN2004/ULN2004.cir b/library/SubcircuitLibrary/ULN2004/ULN2004.cir
new file mode 100644
index 00000000..4fd8880f
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/ULN2004.cir
@@ -0,0 +1,20 @@
+* C:\FOSSEE\eSim\library\SubcircuitLibrary\ULN2004\ULN2004.cir
+
+* EESchema Netlist Version 1.1 (Spice format) creation date: 05/24/25 08:54:57
+
+* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N
+* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0
+
+* Sheet Name: /
+Q1 /COM Net-_Q1-Pad2_ Net-_Q1-Pad3_ eSim_NPN
+Q2 /COM Net-_Q1-Pad3_ GND eSim_NPN
+R3 Net-_Q1-Pad3_ GND 3k
+R2 Net-_Q1-Pad2_ Net-_Q1-Pad3_ 7.2k
+D2 /COM /COM eSim_Diode
+D3 GND /COM eSim_Diode
+D1 GND Net-_D1-Pad2_ eSim_Diode
+C1 /COM GND 15p
+R1 Net-_D1-Pad2_ Net-_Q1-Pad2_ 10.5k
+U1 Net-_D1-Pad2_ /COM /COM PORT
+
+.end
diff --git a/library/SubcircuitLibrary/ULN2004/ULN2004.cir.out b/library/SubcircuitLibrary/ULN2004/ULN2004.cir.out
new file mode 100644
index 00000000..addfb4e7
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/ULN2004.cir.out
@@ -0,0 +1,23 @@
+* c:\fossee\esim\library\subcircuitlibrary\uln2004\uln2004.cir
+
+.include D.lib
+.include NPN.lib
+q1 /com net-_q1-pad2_ net-_q1-pad3_ Q2N2222
+q2 /com net-_q1-pad3_ gnd Q2N2222
+r3 net-_q1-pad3_ gnd 3k
+r2 net-_q1-pad2_ net-_q1-pad3_ 7.2k
+d2 /com /com 1N4148
+d3 gnd /com 1N4148
+d1 gnd net-_d1-pad2_ 1N4148
+c1 /com gnd 15p
+r1 net-_d1-pad2_ net-_q1-pad2_ 10.5k
+* u1 net-_d1-pad2_ /com /com port
+.tran 0e-00 0e-00 0e-00
+
+* Control Statements
+.control
+run
+print allv > plot_data_v.txt
+print alli > plot_data_i.txt
+.endc
+.end
diff --git a/library/SubcircuitLibrary/ULN2004/ULN2004.pro b/library/SubcircuitLibrary/ULN2004/ULN2004.pro
new file mode 100644
index 00000000..e27a398b
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/ULN2004.pro
@@ -0,0 +1,73 @@
+update=22/05/2015 07:44:53
+version=1
+last_client=kicad
+[general]
+version=1
+RootSch=
+BoardNm=
+[pcbnew]
+version=1
+LastNetListRead=
+UseCmpFile=1
+PadDrill=0.600000000000
+PadDrillOvalY=0.600000000000
+PadSizeH=1.500000000000
+PadSizeV=1.500000000000
+PcbTextSizeV=1.500000000000
+PcbTextSizeH=1.500000000000
+PcbTextThickness=0.300000000000
+ModuleTextSizeV=1.000000000000
+ModuleTextSizeH=1.000000000000
+ModuleTextSizeThickness=0.150000000000
+SolderMaskClearance=0.000000000000
+SolderMaskMinWidth=0.000000000000
+DrawSegmentWidth=0.200000000000
+BoardOutlineThickness=0.100000000000
+ModuleOutlineThickness=0.150000000000
+[cvpcb]
+version=1
+NetIExt=net
+[eeschema]
+version=1
+LibDir=
+[eeschema/libraries]
+LibName1=adc-dac
+LibName2=memory
+LibName3=xilinx
+LibName4=microcontrollers
+LibName5=dsp
+LibName6=microchip
+LibName7=analog_switches
+LibName8=motorola
+LibName9=texas
+LibName10=intel
+LibName11=audio
+LibName12=interface
+LibName13=digital-audio
+LibName14=philips
+LibName15=display
+LibName16=cypress
+LibName17=siliconi
+LibName18=opto
+LibName19=atmel
+LibName20=contrib
+LibName21=power
+LibName22=eSim_Plot
+LibName23=transistors
+LibName24=conn
+LibName25=eSim_User
+LibName26=regul
+LibName27=74xx
+LibName28=cmos4000
+LibName29=eSim_Analog
+LibName30=eSim_Devices
+LibName31=eSim_Digital
+LibName32=eSim_Hybrid
+LibName33=eSim_Miscellaneous
+LibName34=eSim_Power
+LibName35=eSim_Sources
+LibName36=eSim_Subckt
+LibName37=eSim_Nghdl
+LibName38=eSim_Ngveri
+LibName39=eSim_SKY130
+LibName40=eSim_SKY130_Subckts
diff --git a/library/SubcircuitLibrary/ULN2004/ULN2004.sch b/library/SubcircuitLibrary/ULN2004/ULN2004.sch
new file mode 100644
index 00000000..8b998325
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/ULN2004.sch
@@ -0,0 +1,291 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+LIBS:ULN2001-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 1
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L eSim_NPN Q1
+U 1 1 68314AD8
+P 4600 3725
+F 0 "Q1" H 4500 3775 50 0000 R CNN
+F 1 "eSim_NPN" H 4550 3875 50 0000 R CNN
+F 2 "" H 4800 3825 29 0000 C CNN
+F 3 "" H 4600 3725 60 0000 C CNN
+ 1 4600 3725
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q2
+U 1 1 68314AD9
+P 5475 4225
+F 0 "Q2" H 5375 4275 50 0000 R CNN
+F 1 "eSim_NPN" H 5425 4375 50 0000 R CNN
+F 2 "" H 5675 4325 29 0000 C CNN
+F 3 "" H 5475 4225 60 0000 C CNN
+ 1 5475 4225
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R3
+U 1 1 68314ADA
+P 4975 4675
+F 0 "R3" H 5025 4805 50 0000 C CNN
+F 1 "3k" H 5025 4625 50 0000 C CNN
+F 2 "" H 5025 4655 30 0000 C CNN
+F 3 "" V 5025 4725 30 0000 C CNN
+ 1 4975 4675
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R2
+U 1 1 68314ADB
+P 4275 4475
+F 0 "R2" H 4325 4605 50 0000 C CNN
+F 1 "7.2k" H 4325 4425 50 0000 C CNN
+F 2 "" H 4325 4455 30 0000 C CNN
+F 3 "" V 4325 4525 30 0000 C CNN
+ 1 4275 4475
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_Diode D2
+U 1 1 68314ADC
+P 5800 3275
+F 0 "D2" H 5800 3375 50 0000 C CNN
+F 1 "eSim_Diode" H 5800 3175 50 0000 C CNN
+F 2 "" H 5800 3275 60 0000 C CNN
+F 3 "" H 5800 3275 60 0000 C CNN
+ 1 5800 3275
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_Diode D3
+U 1 1 68314ADD
+P 6025 4775
+F 0 "D3" H 6025 4875 50 0000 C CNN
+F 1 "eSim_Diode" H 6025 4675 50 0000 C CNN
+F 2 "" H 6025 4775 60 0000 C CNN
+F 3 "" H 6025 4775 60 0000 C CNN
+ 1 6025 4775
+ 0 -1 -1 0
+$EndComp
+$Comp
+L eSim_Diode D1
+U 1 1 68314ADE
+P 4925 5150
+F 0 "D1" H 4925 5250 50 0000 C CNN
+F 1 "eSim_Diode" H 4925 5050 50 0000 C CNN
+F 2 "" H 4925 5150 60 0000 C CNN
+F 3 "" H 4925 5150 60 0000 C CNN
+ 1 4925 5150
+ -1 0 0 1
+$EndComp
+Wire Wire Line
+ 5275 4225 4700 4225
+Wire Wire Line
+ 4700 3925 4700 4625
+Wire Wire Line
+ 4700 4625 4875 4625
+Connection ~ 4700 4225
+Wire Wire Line
+ 4475 4425 4700 4425
+Connection ~ 4700 4425
+Wire Wire Line
+ 5175 4625 5575 4625
+Wire Wire Line
+ 5575 4425 5575 5475
+Wire Wire Line
+ 5575 5150 5075 5150
+Connection ~ 5575 4625
+Wire Wire Line
+ 5575 5025 6025 5025
+Wire Wire Line
+ 6025 5025 6025 4925
+Connection ~ 5575 5025
+Wire Wire Line
+ 4400 3725 3875 3725
+Wire Wire Line
+ 3875 3725 3875 4425
+Wire Wire Line
+ 3875 4425 4175 4425
+Wire Wire Line
+ 1625 4100 3350 4100
+Connection ~ 3875 4100
+Wire Wire Line
+ 2850 5150 4775 5150
+Wire Wire Line
+ 5575 3275 5575 4025
+Connection ~ 5575 3525
+Wire Wire Line
+ 6025 3525 6025 4625
+Connection ~ 6025 3525
+Wire Wire Line
+ 5575 3275 5650 3275
+Wire Wire Line
+ 5950 3275 6450 3275
+Connection ~ 5575 5150
+Text Label 5575 5300 0 60 ~ 0
+GND
+Text Label 6050 3275 0 60 ~ 0
+COM
+Text Label 6550 3525 0 60 ~ 0
+OUT
+$Comp
+L capacitor_polarised C1
+U 1 1 68314AE2
+P 6450 3825
+F 0 "C1" H 6475 3925 50 0000 L CNN
+F 1 "15p" H 6475 3725 50 0000 L CNN
+F 2 "" H 6450 3825 50 0001 C CNN
+F 3 "" H 6450 3825 50 0001 C CNN
+ 1 6450 3825
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6450 3025 6450 3675
+Connection ~ 6450 3525
+$Comp
+L eSim_GND #PWR01
+U 1 1 68314AE3
+P 5575 5475
+F 0 "#PWR01" H 5575 5225 50 0001 C CNN
+F 1 "eSim_GND" H 5575 5325 50 0000 C CNN
+F 2 "" H 5575 5475 50 0001 C CNN
+F 3 "" H 5575 5475 50 0001 C CNN
+ 1 5575 5475
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_GND #PWR02
+U 1 1 68314AE4
+P 6450 4050
+F 0 "#PWR02" H 6450 3800 50 0001 C CNN
+F 1 "eSim_GND" H 6450 3900 50 0000 C CNN
+F 2 "" H 6450 4050 50 0001 C CNN
+F 3 "" H 6450 4050 50 0001 C CNN
+ 1 6450 4050
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6450 3975 6450 4050
+Connection ~ 6450 3275
+$Comp
+L PWR_FLAG #FLG03
+U 1 1 68314AE8
+P 6225 4000
+F 0 "#FLG03" H 6225 4075 50 0001 C CNN
+F 1 "PWR_FLAG" H 6225 4150 50 0000 C CNN
+F 2 "" H 6225 4000 50 0001 C CNN
+F 3 "" H 6225 4000 50 0001 C CNN
+ 1 6225 4000
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6225 4000 6225 4025
+Wire Wire Line
+ 6225 4025 6450 4025
+Connection ~ 6450 4025
+$Comp
+L resistor R1
+U 1 1 68314AEA
+P 3450 4150
+F 0 "R1" H 3500 4280 50 0000 C CNN
+F 1 "10.5k" H 3500 4100 50 0000 C CNN
+F 2 "" H 3500 4130 30 0000 C CNN
+F 3 "" V 3500 4200 30 0000 C CNN
+ 1 3450 4150
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 3650 4100 3875 4100
+Wire Wire Line
+ 2850 5150 2850 4100
+Connection ~ 2850 4100
+Wire Wire Line
+ 4700 3525 6975 3525
+$Comp
+L PORT U1
+U 1 1 68314E03
+P 1375 4100
+F 0 "U1" H 1425 4200 30 0000 C CNN
+F 1 "PORT" H 1375 4100 30 0000 C CNN
+F 2 "" H 1375 4100 60 0000 C CNN
+F 3 "" H 1375 4100 60 0000 C CNN
+ 1 1375 4100
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 3 1 68314E9A
+P 7225 3525
+F 0 "U1" H 7275 3625 30 0000 C CNN
+F 1 "PORT" H 7225 3525 30 0000 C CNN
+F 2 "" H 7225 3525 60 0000 C CNN
+F 3 "" H 7225 3525 60 0000 C CNN
+ 3 7225 3525
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 2 1 68314EFA
+P 6450 2775
+F 0 "U1" H 6500 2875 30 0000 C CNN
+F 1 "PORT" H 6450 2775 30 0000 C CNN
+F 2 "" H 6450 2775 60 0000 C CNN
+F 3 "" H 6450 2775 60 0000 C CNN
+ 2 6450 2775
+ 0 1 1 0
+$EndComp
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/ULN2004/ULN2004.sub b/library/SubcircuitLibrary/ULN2004/ULN2004.sub
new file mode 100644
index 00000000..fdcf7c02
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/ULN2004.sub
@@ -0,0 +1,17 @@
+* Subcircuit ULN2004
+.subckt ULN2004 net-_d1-pad2_ /com /com
+* c:\fossee\esim\library\subcircuitlibrary\uln2004\uln2004.cir
+.include D.lib
+.include NPN.lib
+q1 /com net-_q1-pad2_ net-_q1-pad3_ Q2N2222
+q2 /com net-_q1-pad3_ gnd Q2N2222
+r3 net-_q1-pad3_ gnd 3k
+r2 net-_q1-pad2_ net-_q1-pad3_ 7.2k
+d2 /com /com 1N4148
+d3 gnd /com 1N4148
+d1 gnd net-_d1-pad2_ 1N4148
+c1 /com gnd 15p
+r1 net-_d1-pad2_ net-_q1-pad2_ 10.5k
+* Control Statements
+
+.ends ULN2004 \ No newline at end of file
diff --git a/library/SubcircuitLibrary/ULN2004/ULN2004_Previous_Values.xml b/library/SubcircuitLibrary/ULN2004/ULN2004_Previous_Values.xml
new file mode 100644
index 00000000..5bf54ced
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/ULN2004_Previous_Values.xml
@@ -0,0 +1 @@
+<KicadtoNgspice><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time" /><field2 name="Step Time" /><field3 name="Stop Time" /><field4 name="Start Combo">sec</field4><field5 name="Step Combo">sec</field5><field6 name="Stop Combo">sec</field6></tran></analysis><source /><model /><devicemodel><q1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q1><q2><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q2><d2><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Diode\D.lib</field></d2><d3><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Diode\D.lib</field></d3><d1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Diode\D.lib</field></d1></devicemodel><subcircuit /></KicadtoNgspice> \ No newline at end of file
diff --git a/library/SubcircuitLibrary/ULN2004/analysis b/library/SubcircuitLibrary/ULN2004/analysis
new file mode 100644
index 00000000..ebd5c0a9
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/analysis
@@ -0,0 +1 @@
+.tran 0e-00 0e-00 0e-00 \ No newline at end of file
diff --git a/library/SubcircuitLibrary/ULN2004/file68313A5F.sch b/library/SubcircuitLibrary/ULN2004/file68313A5F.sch
new file mode 100644
index 00000000..a86c6aac
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/file68313A5F.sch
@@ -0,0 +1,57 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 2 8
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/ULN2004/file68313A60.sch b/library/SubcircuitLibrary/ULN2004/file68313A60.sch
new file mode 100644
index 00000000..a84e0032
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/file68313A60.sch
@@ -0,0 +1,57 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 8
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/ULN2004/file68313A61.sch b/library/SubcircuitLibrary/ULN2004/file68313A61.sch
new file mode 100644
index 00000000..a84e0032
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/file68313A61.sch
@@ -0,0 +1,57 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 8
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/ULN2004/file68313A62.sch b/library/SubcircuitLibrary/ULN2004/file68313A62.sch
new file mode 100644
index 00000000..a84e0032
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/file68313A62.sch
@@ -0,0 +1,57 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 8
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/ULN2004/file68313A63.sch b/library/SubcircuitLibrary/ULN2004/file68313A63.sch
new file mode 100644
index 00000000..a84e0032
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/file68313A63.sch
@@ -0,0 +1,57 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 8
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/ULN2004/file68313A64.sch b/library/SubcircuitLibrary/ULN2004/file68313A64.sch
new file mode 100644
index 00000000..a84e0032
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/file68313A64.sch
@@ -0,0 +1,57 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 8
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/ULN2004/file68313A65.sch b/library/SubcircuitLibrary/ULN2004/file68313A65.sch
new file mode 100644
index 00000000..a84e0032
--- /dev/null
+++ b/library/SubcircuitLibrary/ULN2004/file68313A65.sch
@@ -0,0 +1,57 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:ULN2001_SUB-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 8
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$EndSCHEMATC