Difference between revisions of "Components Library and Circuits"

From LTwiki-Wiki for LTspice
(Compilation)
(PMOS)
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
''For all of these components, place the subcircuit and the component in their respective folders, then restart LTspice.  The component will then show up as a menu selection.''
 
''For all of these components, place the subcircuit and the component in their respective folders, then restart LTspice.  The component will then show up as a menu selection.''
  
== Compilation ==
+
== ''An LTspice Standard Library Replacement ==
'''NEW UPDATED VERSION'''
+
 
[http://alternateenergies.com/LTwiki/files/LtSpiceIV_Plus_12_2009.exe LtSpiceIV_Plus_12_2009.exe]<br>
+
[http://ltwiki.org/files/Standard.zip The whole library replacement / addition as one zip file]  Place in \lib\cmp as a replacement, or carefully extract what you need (Suggested) <br>
[http://alternateenergies.com/LTwiki/files/LtSpicePlus_10_08.exe LTspicePlus_10_08.exe]<br>
+
 
Roberto Hugo Rodríguez Zubieta in 2005 created this executable, that provides a large number of extra componentsFirst, backup your existing /lib/cmp directory at a minimum, and you may find it easy to just zip your entire /lib directory down.  This executable will overwrite /Lib/Cmp with many more components that is based a ''dated'' version of the LTspice originals.  The existing files are put into a folder /Lib/Cmp/OriginalThe dated version is not a problemFrom LTspice, under 'Tools', selecting 'Sync Release' will restore all of the new models in the latest libs from LTspice.  (At least every one I could see, using a Diff program.) Plus now you have many more.
+
Browse or Search on what is in this zip file, and extract what you need<br />
 +
[[standard.bjt]]<br />
 +
[[standard.dio]]<br />
 +
[[standard.jft]]<br />
 +
[[standard.mos]]<br />
 +
 
 +
== ''A Large LTspice Folder from  Bordodynov==
 +
<br /> Bordodynov has kindly shared his entire LTspice folder with tons of parts and examples.<br />
 +
[http://ltwiki.org/files/LargeCollection.zip The whole library replacement with additions plus tons of examples as one zip file - about 33 MEG.] <br />
 +
[http://ltwiki.org/files/contaiing_AEI.jpg See Screen Shot of files removed from the collection containing AEI SPICE Models] <br />
 +
<b>These AEI models were removed because of possible copyright violationsHowever, search on the internet for these models.  They are available.<br />
 +
For example AD8331 models are [http://www.analog.com/en/specialty-amplifiers/differential-amplifiers/ad8331/products/product.html#product-designtools  Available HERE] &nbsp; [http://www.analog.com/en/specialty-amplifiers/variable-gain-amplifiers/ad8332/products/product.html#product-designtools AD8332 here] &nbsp;[http://www.analog.com/en/high-speed-op-amps/low-noise-low-distortion-amplifiers/ad8099/products/product.html#product-designtools AD8099 here] &nbsp;[http://www.onsemi.com/PowerSolutions/supportDoc.do?type=models&category=167 MC34063 here]</b><br /><br />
 +
This entire zip file has been expanded so you can view the contents, and it will be available to search engines. <br /> You start by opening folders here: <br /> [[LTspiceIV-library]] (Directory Style - Drill Down)<br />[[LTspiceIV-examples]] (Directory Style - Drill Down)<br />
 +
<br />[[Vendor_List]] (Directory Style - Drill Down)<br />[[Mixed_Part_List]] (Directory Style - Drill Down)
 +
 
 +
== ''A note on portability of these "permanent" LTspice Components:  ==
 +
Many comments are made about the lack of portability of creating these permanent parts in LTspice.  The approach preferred by most is to include the symbols and SPICE models directly in the folder of the schematic you are testingPLEASE NOTE that using this method to create permanent LTspice models does not prevent this portability!  Create your permanent part, or add the parts from the list belowWhen you share this schematic with others, or use it on a computer that does not have this component, just copy the 'asy' file and its associated SPICE reference to the 'asc' file you are providing to the foreign computer.   
  
The rest includes more than 90 files in the format *. sub, to denote that they contain subcircuits of devices or *. lib, for the files that contain families of components. This information is added to the folder /sub and it doesn't overwrite any original data. To the folder /sym is added several subfolders with files corresponding to more than 400 symbols.
+
In this way, you can have the best of both worlds:  You can build up a permanent library of useful parts, immediately accessible when you create a circuit AND you have portability!
 +
''
 +
== CFL Circuit ==
  
In the folder \examples\LtSpicePlus, there are more of 600 clever examples to be run, these are mainly in format *. asc, although there are also some few ones in format *. cir; plus in this collection there are also near 100 symbols in format *. asy.
+
'''13 Watt 120 VAC Compact Fluorescent'''
  
The install is in Spanish!  The product result is in English. If you come across some 'Replace' options, etc, be prepared to Google some Spanish words to make sure you know what you are selecting.  It's a 3.5MEG download.
+
[http://ltwiki.org/files/CFL_as/CFL_as.zip Entire Zip file unzip to its own folder(hierarchical example).]<br>
 +
Files Below - Click to view as text, Right Click and Save As to download individually.<br>
 +
[http://ltwiki.org/files/CFL_as/CFL.asy CFL.asy]<br>
 +
[http://ltwiki.org/files/CFL_as/CFL.lib CFL.lib]<br>
 +
[http://ltwiki.org/files/CFL_as/GE13W120V_CFL.asc GE13W120V_CFL.asc]<br>
 +
[http://ltwiki.org/files/CFL_as/winding.asy winding.asy]<br>
 +
[http://ltwiki.org/files/CFL_as/Xfrmr.lib Xfrmr.lib]<br>
 +
A good study of the CFL, and excellent use of good layout technique and use of LTspice. Thanks a.s.<br><br>
 +
Some explanation:
 +
Before the arc strikes the series resonant circuit is nearly unloaded and, if the arc did not start, would gradually climb in voltage to whatever the open circuit Q of the resonant tank is times the input voltage. This could take quite a few cycles at the resonant frequency. Q will be limited by the loss in the end electrode heater windings and the resonant inductor. This sort of start does not immediately jump to a high voltage.<br>
  
If you don't speak Spanish, try those instructions:
+
The conductivity of the CFL depends on the level of ionization of the gas in the tube, which in turn depends on the power per unit length of arc. As the current increases, heating and ionization builds, leading to a thicker, lower resistance arc. This is why the arc exhibits a negative incremental resistance -- increased current leads to a larger diameter arc.<br>
  
* say "Aceptar" (Accept).
+
However, at some point, the narrow cross section of the CFL tube limits further conductivity modulation, leading to saturation and to the arc voltage increasing rather than decreasing with increasing current (positive resistance). I would guess that this effect occurs only at damaging levels of current, but that is only a guess.<br>
* Point the "Carpeta de Destino" (Destiny Folder) parameter at your LTSpice install-folder, normally it is C:\Program Files\LTC\LTSpice IV, but it will vary (e.g. in a Portuguese version of Windows it will be 'C:\Arquivos de Programas'...).
 
* If it complains about "Los siguinentes ficheros ya existen" (The following files already exist), choose what you consider to be most adequate: Sí/No (Yes/No), "Sí a todo/No a todo" (Yes to replace all/Replace nothing at all) or "Renombrar" (Rename). It's your choice, I'd say "yes" after checking if filesizes are similar (i.e. a library you already have).
 
* The extraction will run, it takes a while (lots of files). If finishes correctly and doesn't give any error, probably all went well, try some examples just to be sure.
 
  
Roberto has Spanish documentation and tutorials using LTspice at [https://sites.google.com/site/precisionaudiotv/Home Precisión, guía para desarrollos con Ltspice.]
+
End effects, cathode fall (larger) and anode fall (smaller) tend to be quasi-fixed voltages that don't depend too much on current in the normal operating range.<br>
  
Someone wants to build an updated version of this?  Contact Roberto: precisionorte -at- gmail.com and he can help get you started.
+
Arc conductivity depends on ionization, which depends on average power input. The simplest model for this is to low pass a behavioral source set up with its output proportional to arc power. Note that this thermal averaging effect is what is responsible the arc appearing as a positive resistance at high frequency (the ions stay hot and conductive for a while even if the current goes to zero).<br>
  
 
== Comparators ==
 
== Comparators ==
Line 32: Line 56:
 
[[File:LM339 test.asc]]  Test circuit using the native LM339.  You may want to use the alternate solver.<br>
 
[[File:LM339 test.asc]]  Test circuit using the native LM339.  You may want to use the alternate solver.<br>
 
[http://www.datasheetcatalog.com/datasheets_pdf/L/M/3/3/LM339.shtml Datasheet]
 
[http://www.datasheetcatalog.com/datasheets_pdf/L/M/3/3/LM339.shtml Datasheet]
 +
 +
== Diodes ==
 +
 +
'''Leaky Schottky Diode BAR43'''
 +
 +
[http://ltwiki.org/files/LeakShottky.zip Leaky Diode Model for LTspice] Right Click and Save As to download<br>
 +
[https://www.fairchildsemi.com/datasheets/BA/BAR43.pdf Datasheet for BAR43]<br>
 +
 +
The model in the zip file is for the BAR43 Schottky Diode, but also shows the use of temperature dependence of reverse leakage, and fairly well follows the datasheet.<br>
 +
 +
'''Soft Recovery Diode'''
 +
 +
[http://ltwiki.org/files/SoftDiode.asc Soft Diode Model for LTspice] Right Click and Save As to download<br>
 +
 +
This model responds both to direct recombination as well as to reverse voltage sweeping out of carriers. I have optimized the model for LTspice,<br>but think it could be even further optimized. However, it is very interesting and useful as is. <br>The ideal soft recovery diode model add on should really only be an extension to the existing built in intrinsic SPICE diode.<br>This model uses eight nodes, which seems to me about three nodes too many.<br>Please see: "A New SPICE Model of Power P-I-N Diode Based on Asymptotic Waveform Evaluation" by Antonio G. M. Strollo.
 +
 +
== MOSFET Drivers ==
 +
 +
'''VOM1271'''
 +
 +
[[File:VOM1271.sub]]  VOM1271  Photovoltaic MOSFET Driver model subcircuit.  Place in \lib\sub or in your subdirectory<br>
  
 
== NMOS ==
 
== NMOS ==
Line 41: Line 86:
 
[[File:2N7002_test.asc]]  Test circuit using the native 2N7002  You may want to use the alternate solver<br>
 
[[File:2N7002_test.asc]]  Test circuit using the native 2N7002  You may want to use the alternate solver<br>
 
[http://www.fairchildsemi.com/ds/2N/2N7000.pdf Datasheet]
 
[http://www.fairchildsemi.com/ds/2N/2N7000.pdf Datasheet]
 +
 +
'''BS170'''
 +
 +
[[BS170]]
  
 
'''IRFB4110pbf'''
 
'''IRFB4110pbf'''
Line 55: Line 104:
 
[[File:Irlr3110 test.asc]]  Test circuit using the native IRLR3110.  You may want to use the alternate solver.<br>
 
[[File:Irlr3110 test.asc]]  Test circuit using the native IRLR3110.  You may want to use the alternate solver.<br>
 
[http://www.irf.com/product-info/datasheets/data/irlr3110zpbf.pdf Datasheet]
 
[http://www.irf.com/product-info/datasheets/data/irlr3110zpbf.pdf Datasheet]
 +
 +
'''MGSF2N02ELT1'''
 +
 +
[http://www.onsemi.com/pub/Collateral/MGSF2N02ELT1.SP2 MGSF2N02ELT1 subcircuit]  Place in \lib\sub <br>
 +
[[File:MGSF2N02ELT1.asy]]  MGSF2N02ELT1 component.  Place in \lib\sym\NMOS <br>
 +
[[File:MGSF2N02ELT1_test.asc]]  Test circuit using the native MGSF2N02ELT1.  You may want to use the alternate solver.<br>
 +
[http://www.onsemi.com/pub/Collateral/MGSF2N02EL-D.PDF Datasheet]
  
 
== NPN Darlington ==
 
== NPN Darlington ==
Line 63: Line 119:
 
[[File:TIP142.asy]]  TIP142 symbol.  Place in \lib\sym\Darlington <br>
 
[[File:TIP142.asy]]  TIP142 symbol.  Place in \lib\sym\Darlington <br>
 
[[File:TIP142-test.asc]]  Test circuit using the native TIP142<br>
 
[[File:TIP142-test.asc]]  Test circuit using the native TIP142<br>
[http://www.fairchildsemi.com/ds/TI/TIP142.pdf Datasheet]&nbsp;&nbsp; [http://tech.groups.yahoo.com/group/LTspice/files/%20Attached%20files%20sorted%20by%20message%20number/msg_28586/ Adapted from Yahoo LTspice Group Message 28586]
+
[http://www.fairchildsemi.com/ds/TI/TIP142T.pdf Datasheet]&nbsp;&nbsp; [http://tech.groups.yahoo.com/group/LTspice/files/%20Attached%20files%20sorted%20by%20message%20number/msg_28586/ Adapted from Yahoo LTspice Group Message 28586]
  
 
== Opamps ==
 
== Opamps ==
 +
 +
'''LM2902 - National Semiconductor'''
 +
 +
[http://ltwiki.org/files/LM2902_AB.ZIP LM2902 NS model plus a great model by Bordodynov - complete with demo circuits]
  
 
'''LM324 - National Semiconductor'''
 
'''LM324 - National Semiconductor'''
  
[http://www.national.com/models/spice/LM/LM324.MOD LM324 subcircuit] Place in \lib\sub <br>
+
[http://ltwiki.org/files/LM324.MOD LM324 subcircuit] Place in \lib\sub <br>
 
[[File:LM324-national.asy]]  LM324/NS component.  Place in \lib\sym\Opamps <br>
 
[[File:LM324-national.asy]]  LM324/NS component.  Place in \lib\sym\Opamps <br>
 
[[File:LM324-national_test.asc‎]]  Test circuit using the native LM324.  You may want to use the alternate solver.<br>
 
[[File:LM324-national_test.asc‎]]  Test circuit using the native LM324.  You may want to use the alternate solver.<br>
[http://www.national.com/ds/LM/LM124.pdf Datasheet]
+
[http://www.ti.com/lit/ds/symlink/lm124-n.pdf Datasheet]
  
 
'''LM6132A - National Semiconductor'''
 
'''LM6132A - National Semiconductor'''
Line 79: Line 139:
 
[[File:LM6132A-national.asy]]  LM6132A/NS component.  Place in \lib\sym\Opamps <br>
 
[[File:LM6132A-national.asy]]  LM6132A/NS component.  Place in \lib\sym\Opamps <br>
 
[[File:LM6132A test.asc]]  Test circuit using the native LM6132A.  You may want to use the alternate solver.<br>
 
[[File:LM6132A test.asc]]  Test circuit using the native LM6132A.  You may want to use the alternate solver.<br>
[http://www.national.com/ds/LM/LM6132.pdf Datasheet]
+
[http://www.ti.com/lit/ds/symlink/lm6132.pdf Datasheet]
  
 
'''LMH6642 - National Semiconductor'''
 
'''LMH6642 - National Semiconductor'''
Line 86: Line 146:
 
[[File:LMH6642.asy]]  LMH6642 symbol.  Place in \lib\sym\Opamps <br>
 
[[File:LMH6642.asy]]  LMH6642 symbol.  Place in \lib\sym\Opamps <br>
 
[[File:LMH6642 test native.asc]]  Test circuit using the native LMH6642.  You may want to use the alternate solver.<br>
 
[[File:LMH6642 test native.asc]]  Test circuit using the native LMH6642.  You may want to use the alternate solver.<br>
[http://www.national.com/ds/LM/LMH6642.pdf Datasheet]
+
[http://www.ti.com/lit/ds/symlink/lmh6642.pdf Datasheet]
  
 
'''THS4131'''
 
'''THS4131'''
  
[http://www.ti.com/litv/zip/sloj149 THS4131 subcircuit] Extract ths4131.txt & place in \lib\sub <br>
+
[http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sloj149&fileType=zip THS4131 subcircuit] Extract ths4131.txt & place in \lib\sub <br>
 
[[File:THS4131.asy]]  THS4131 component.  Place in \lib\sym\Opamps <br>
 
[[File:THS4131.asy]]  THS4131 component.  Place in \lib\sym\Opamps <br>
 
[[File:THS4131 test1.asc]]  THS4131 test circuit, using native THS4131<br>
 
[[File:THS4131 test1.asc]]  THS4131 test circuit, using native THS4131<br>
[http://www.ti.com/lit/gpn/ths4131 Datasheet]  Original files created by Helmut Sennewald at [http://tech.groups.yahoo.com/group/LTspice/].
+
[http://www.ti.com/lit/ds/symlink/ths4131.pdf Datasheet]  Original files created by Helmut Sennewald at [http://tech.groups.yahoo.com/group/LTspice/].
  
 
'''TL072'''
 
'''TL072'''
Line 101: Line 161:
 
[[File:Pweoverdrivepreamp2.asc]]  Overdrive Preamp circuit, using native TL072<br>
 
[[File:Pweoverdrivepreamp2.asc]]  Overdrive Preamp circuit, using native TL072<br>
 
[http://www.datasheetcatalog.com/datasheets_pdf/T/L/0/7/TL072.shtml Datasheet]  Original files adapted from [http://tech.groups.yahoo.com/group/LTspice/].
 
[http://www.datasheetcatalog.com/datasheets_pdf/T/L/0/7/TL072.shtml Datasheet]  Original files adapted from [http://tech.groups.yahoo.com/group/LTspice/].
 +
 +
== PMOS ==
 +
 +
'''BS250'''
 +
 +
[[Bs250]]
 +
 +
'''Si7489DP'''
 +
 +
[[File:si7489dp.sub]]  Si7489DP subcircuit.  Place in \lib\sub <br>
 +
[[File:Si7489.asy]]  Si7489DP symbol.  Place in \lib\sym\PMOS <br>
 +
[[File:test-Si7489.asc]]  Test circuit using the native Si7489DP.  You may want to use the alternate solver<br>
 +
[http://www.vishay.com/docs/73438/si7469dp.pdf Datasheet]
 +
 +
'''SiA431DJ'''
 +
 +
[[File:SiA431DJ.sub]]  SiA431DJ subcircuit.  Place in \lib\sub <br>
 +
[[File:SiA431DJ.asy]]  SiA431DJ symbol.  Place in \lib\sym\PMOS <br>
 +
[[File:Test-Sia413dj.asc]]  Test circuit using the native SiA431DJ.  You may want to use the alternate solver<br>
 +
[http://www.vishay.com/docs/65267/sia431dj.pdf Datasheet]
  
 
== PNP Darlington ==
 
== PNP Darlington ==
Line 110: Line 190:
 
[[File:TIP127-test.asc]]  Test circuit using the native TIP127<br>
 
[[File:TIP127-test.asc]]  Test circuit using the native TIP127<br>
 
[http://www.fairchildsemi.com/ds/TI/TIP127.pdf Datasheet]
 
[http://www.fairchildsemi.com/ds/TI/TIP127.pdf Datasheet]
 +
 +
== Power Factor Corrector ==
 +
 +
'''UC3853'''
 +
 +
[http://ltwiki.org/files/UC3853.cir UC3853 subcircuit Place in folder of circuit file (hierarchical example).]<br>
 +
[[File:UC3853.asy]] UC3853 symbol Place in folder of circuit file.<br>
 +
[[File:UC3853.asc]] UC3853 hierarchical subcircuit Place in folder of circuit file.<br>
 +
[[File:UC3853_Test.asc]] UC3853 test circuit.<br>
 +
[http://ltwiki.org/files/UC3853.zip Above files in one download]<br>
 +
[http://ltwiki.org/files/uc3853.pdf Datasheet]<br>
 +
Great example creating a model from spec sheets (courtesy of analogspiceman)
 +
 +
== Solar Panel Subcircuit ==
 +
[http://ltwiki.org/files/Solar2_Cell.zip 2 cell solar panel complete with test circuit]<br>
 +
 +
<pre>
 +
* PV.cir: simple yet effective PV Array model
 +
.subckt PV A K params: Rp=1 Rs=3m Isc=10 n=50 m=1
 +
* Rp sets voltage slope of curve
 +
* Rs sets curretn slope of curve
 +
* Isc= short circuit current
 +
* n= number of series cells
 +
* m= number of parallel strings
 +
I1 A K {-Isc*m}
 +
D1 A K cell n={n} m={m}
 +
Rp A K {Rp*n/m}
 +
.model cell d Rs={Rs}
 +
+ Is=315n n=1.262 Cjo=50u
 +
+ Tnom=25 Trs1=10m Trs2=0m1
 +
.ends PV
 +
 +
* PVS.cir: PV Array model with a solar input node (1V=1 sun)
 +
.subckt PV3 A K S params: Rp=1 Rs=3m Isc=10 n=50 m=1
 +
* Rp sets voltage slope of curve
 +
* Rs sets curretn slope of curve
 +
* Isc= short circuit current
 +
* n= number of series cells
 +
* m= number of parallel strings
 +
G1 A K 0 S {Isc*m}
 +
D1 A K cell n={n} m={m}
 +
Rp A K {Rp*n/m}
 +
.model cell d Rs={Rs}
 +
+ Is=315n n=1.262 Cjo=50u
 +
+ Tnom=25 Trs1=10m Trs2=0m1
 +
.ends PVS
 +
</pre>
  
 
== Voltage Regulators ==
 
== Voltage Regulators ==
Line 115: Line 242:
 
'''TL431'''
 
'''TL431'''
  
[[File:TL431.sub]]  TL072 subcircuit.  Place in \lib\sub <br>
+
[[File:TL431.sub]]  TL431 subcircuit.  Place in \lib\sub <br>
[[File:TL431.asy]]  TL072 component.  Place in \lib\sym\Voltage Regulators <br>
+
[[File:TL431.asy]]  TL431 component.  Place in \lib\sym\Voltage Regulators <br>
 
[[File:TL431_test.asc]]  Test circuit using the native TL431<br>
 
[[File:TL431_test.asc]]  Test circuit using the native TL431<br>
 
[http://www.fairchildsemi.com/ds/TL%2FTL431.pdf Datasheet]
 
[http://www.fairchildsemi.com/ds/TL%2FTL431.pdf Datasheet]
 +
 +
[http://ltwiki.org/files/TL431A-Test.zip An excellent TL431 model, with comparisons to other models]<br>
 +
[http://www.audio-perfection.com/wp-content/uploads/TL431.zip TL431.zip - an improved model for TL431]<br>[http://www.audio-perfection.com/voltage-regulators/linear-regulators/realistic-spice-model-for-tl431-stability-noise-impedance-and-performance-simulation-of-tl431-shunt-regulator.html#more-701 See a useful discussion here, "Realistic SPICE model for TL431".]<br>
 +
 +
== Compilation ==
 +
'''NEW UPDATED VERSION'''
 +
[http://ltwiki.org/files/LtSpiceIV_Plus_12_2009.exe LtSpiceIV_Plus_12_2009.exe]<br>
 +
[http://ltwiki.org/files/LtSpicePlus_10_08.exe LTspicePlus_10_08.exe]<br>
 +
Roberto Hugo Rodríguez Zubieta in 2005 created this executable, that provides a large number of extra components.  First, backup your existing /lib/cmp directory at a minimum, and you may find it easy to just zip your entire /lib directory down.  This executable will overwrite /Lib/Cmp with many more components that is based a ''dated'' version of the LTspice originals.  The existing files are put into a folder /Lib/Cmp/Original.  The dated version is not a problem.  From LTspice, under 'Tools', selecting 'Sync Release' will restore all of the new models in the latest libs from LTspice.  (At least every one I could see, using a Diff program.)  Plus now you have many more.
 +
 +
The rest includes more than 90 files in the format *. sub, to denote that they contain subcircuits of devices or *. lib, for the files that contain families of components. This information is added to the folder /sub and it doesn't overwrite any original data. To the folder /sym is added several subfolders with files corresponding to more than 400 symbols.
 +
 +
In the folder \examples\LtSpicePlus, there are more of 600 clever examples to be run, these are mainly in format *. asc, although there are also some few ones in format *. cir; plus in this collection there are also near 100 symbols in format *. asy.
 +
 +
The install is in Spanish!  The product result is in English.  If you come across some 'Replace' options, etc, be prepared to Google some Spanish words to make sure you know what you are selecting.  It's a 3.5MEG download.
 +
 +
If you don't speak Spanish, try those instructions:
 +
 +
* say "Aceptar" (Accept).
 +
* Point the "Carpeta de Destino" (Destiny Folder) parameter at your LTSpice install-folder, normally it is C:\Program Files\LTC\LTSpice IV, but it will vary (e.g. in a Portuguese version of Windows it will be 'C:\Arquivos de Programas'...).
 +
* If it complains about "Los siguinentes ficheros ya existen" (The following files already exist), choose what you consider to be most adequate: Sí/No (Yes/No), "Sí a todo/No a todo" (Yes to replace all/Replace nothing at all) or "Renombrar" (Rename). It's your choice, I'd say "yes" after checking if filesizes are similar (i.e. a library you already have).
 +
* The extraction will run, it takes a while (lots of files). If finishes correctly and doesn't give any error, probably all went well, try some examples just to be sure.
 +
 +
Roberto has Spanish documentation and tutorials using LTspice at [https://sites.google.com/site/precisionaudiotv/Home Precisión, guía para desarrollos con Ltspice.]
 +
 +
Someone wants to build an updated version of this?  Contact Roberto: precisionorte -at- gmail.com and he can help get you started.

Latest revision as of 16:38, 6 August 2016

For all of these components, place the subcircuit and the component in their respective folders, then restart LTspice. The component will then show up as a menu selection.

An LTspice Standard Library Replacement

The whole library replacement / addition as one zip file Place in \lib\cmp as a replacement, or carefully extract what you need (Suggested)

Browse or Search on what is in this zip file, and extract what you need
standard.bjt
standard.dio
standard.jft
standard.mos

A Large LTspice Folder from Bordodynov


Bordodynov has kindly shared his entire LTspice folder with tons of parts and examples.
The whole library replacement with additions plus tons of examples as one zip file - about 33 MEG.
See Screen Shot of files removed from the collection containing AEI SPICE Models
These AEI models were removed because of possible copyright violations. However, search on the internet for these models. They are available.
For example AD8331 models are Available HERE   AD8332 here  AD8099 here  MC34063 here


This entire zip file has been expanded so you can view the contents, and it will be available to search engines.
You start by opening folders here:
LTspiceIV-library (Directory Style - Drill Down)
LTspiceIV-examples (Directory Style - Drill Down)

Vendor_List (Directory Style - Drill Down)
Mixed_Part_List (Directory Style - Drill Down)

A note on portability of these "permanent" LTspice Components:

Many comments are made about the lack of portability of creating these permanent parts in LTspice. The approach preferred by most is to include the symbols and SPICE models directly in the folder of the schematic you are testing. PLEASE NOTE that using this method to create permanent LTspice models does not prevent this portability! Create your permanent part, or add the parts from the list below. When you share this schematic with others, or use it on a computer that does not have this component, just copy the 'asy' file and its associated SPICE reference to the 'asc' file you are providing to the foreign computer.

In this way, you can have the best of both worlds: You can build up a permanent library of useful parts, immediately accessible when you create a circuit AND you have portability!

CFL Circuit

13 Watt 120 VAC Compact Fluorescent

Entire Zip file unzip to its own folder(hierarchical example).
Files Below - Click to view as text, Right Click and Save As to download individually.
CFL.asy
CFL.lib
GE13W120V_CFL.asc
winding.asy
Xfrmr.lib
A good study of the CFL, and excellent use of good layout technique and use of LTspice. Thanks a.s.

Some explanation: Before the arc strikes the series resonant circuit is nearly unloaded and, if the arc did not start, would gradually climb in voltage to whatever the open circuit Q of the resonant tank is times the input voltage. This could take quite a few cycles at the resonant frequency. Q will be limited by the loss in the end electrode heater windings and the resonant inductor. This sort of start does not immediately jump to a high voltage.

The conductivity of the CFL depends on the level of ionization of the gas in the tube, which in turn depends on the power per unit length of arc. As the current increases, heating and ionization builds, leading to a thicker, lower resistance arc. This is why the arc exhibits a negative incremental resistance -- increased current leads to a larger diameter arc.

However, at some point, the narrow cross section of the CFL tube limits further conductivity modulation, leading to saturation and to the arc voltage increasing rather than decreasing with increasing current (positive resistance). I would guess that this effect occurs only at damaging levels of current, but that is only a guess.

End effects, cathode fall (larger) and anode fall (smaller) tend to be quasi-fixed voltages that don't depend too much on current in the normal operating range.

Arc conductivity depends on ionization, which depends on average power input. The simplest model for this is to low pass a behavioral source set up with its output proportional to arc power. Note that this thermal averaging effect is what is responsible the arc appearing as a positive resistance at high frequency (the ions stay hot and conductive for a while even if the current goes to zero).

Comparators

LM339

File:LM339.sub LM339 subcircuit. Place in \lib\sub
File:LM339.asy LM339 component. Place in \lib\sym\Comparators
File:LM339 test.asc Test circuit using the native LM339. You may want to use the alternate solver.
Datasheet

Diodes

Leaky Schottky Diode BAR43

Leaky Diode Model for LTspice Right Click and Save As to download
Datasheet for BAR43

The model in the zip file is for the BAR43 Schottky Diode, but also shows the use of temperature dependence of reverse leakage, and fairly well follows the datasheet.

Soft Recovery Diode

Soft Diode Model for LTspice Right Click and Save As to download

This model responds both to direct recombination as well as to reverse voltage sweeping out of carriers. I have optimized the model for LTspice,
but think it could be even further optimized. However, it is very interesting and useful as is.
The ideal soft recovery diode model add on should really only be an extension to the existing built in intrinsic SPICE diode.
This model uses eight nodes, which seems to me about three nodes too many.
Please see: "A New SPICE Model of Power P-I-N Diode Based on Asymptotic Waveform Evaluation" by Antonio G. M. Strollo.

MOSFET Drivers

VOM1271

File:VOM1271.sub VOM1271 Photovoltaic MOSFET Driver model subcircuit. Place in \lib\sub or in your subdirectory

NMOS

2N7002

File:2N7002.sub 2N7002 subcircuit. Place in \lib\sub
File:2N7002.asy 2N7002 component. Place in \lib\sym\nmos
File:2N7002 test.asc Test circuit using the native 2N7002 You may want to use the alternate solver
Datasheet

BS170

BS170

IRFB4110pbf

IRFB4110 subcircuit Place in \lib\sub
File:IRFB4110pbf.asy IRFB4110 component. Place in \lib\sym\nmos
File:Irfb4110 test.asc Test circuit using the native IRFB4110. You may want to use the alternate solver.
Datasheet

IRLR3110

IRLR3110 subcircuit Place in \lib\sub
File:IRLR3110.asy IRLR3110 component. Place in \lib\sym\nmos
File:Irlr3110 test.asc Test circuit using the native IRLR3110. You may want to use the alternate solver.
Datasheet

MGSF2N02ELT1

MGSF2N02ELT1 subcircuit Place in \lib\sub
File:MGSF2N02ELT1.asy MGSF2N02ELT1 component. Place in \lib\sym\NMOS
File:MGSF2N02ELT1 test.asc Test circuit using the native MGSF2N02ELT1. You may want to use the alternate solver.
Datasheet

NPN Darlington

TIP142

File:TIP142.sub TIP142 subcircuit. Place in \lib\sub
File:TIP142.asy TIP142 symbol. Place in \lib\sym\Darlington
File:TIP142-test.asc Test circuit using the native TIP142
Datasheet   Adapted from Yahoo LTspice Group Message 28586

Opamps

LM2902 - National Semiconductor

LM2902 NS model plus a great model by Bordodynov - complete with demo circuits

LM324 - National Semiconductor

LM324 subcircuit Place in \lib\sub
File:LM324-national.asy LM324/NS component. Place in \lib\sym\Opamps
File:LM324-national test.asc Test circuit using the native LM324. You may want to use the alternate solver.
Datasheet

LM6132A - National Semiconductor

File:LM6132A.MOD LM6132A subcircuit. Place in \lib\sub
File:LM6132A-national.asy LM6132A/NS component. Place in \lib\sym\Opamps
File:LM6132A test.asc Test circuit using the native LM6132A. You may want to use the alternate solver.
Datasheet

LMH6642 - National Semiconductor

File:LMH6642.MOD LMH6642 subcircuit. Place in \lib\sub
File:LMH6642.asy LMH6642 symbol. Place in \lib\sym\Opamps
File:LMH6642 test native.asc Test circuit using the native LMH6642. You may want to use the alternate solver.
Datasheet

THS4131

THS4131 subcircuit Extract ths4131.txt & place in \lib\sub
File:THS4131.asy THS4131 component. Place in \lib\sym\Opamps
File:THS4131 test1.asc THS4131 test circuit, using native THS4131
Datasheet Original files created by Helmut Sennewald at [1].

TL072

File:TL072.sub TL072 subcircuit. Place in \lib\sub
File:TL072.asy TL072 component. Place in \lib\sym\Opamps
File:Pweoverdrivepreamp2.asc Overdrive Preamp circuit, using native TL072
Datasheet Original files adapted from [2].

PMOS

BS250

Bs250

Si7489DP

File:Si7489dp.sub Si7489DP subcircuit. Place in \lib\sub
File:Si7489.asy Si7489DP symbol. Place in \lib\sym\PMOS
File:Test-Si7489.asc Test circuit using the native Si7489DP. You may want to use the alternate solver
Datasheet

SiA431DJ

File:SiA431DJ.sub SiA431DJ subcircuit. Place in \lib\sub
File:SiA431DJ.asy SiA431DJ symbol. Place in \lib\sym\PMOS
File:Test-Sia413dj.asc Test circuit using the native SiA431DJ. You may want to use the alternate solver
Datasheet

PNP Darlington

TIP127

File:TIP127.sub TIP127 subcircuit. Place in \lib\sub
File:TIP127.asy TIP127 symbol. Place in \lib\sym\Darlington
File:TIP127-test.asc Test circuit using the native TIP127
Datasheet

Power Factor Corrector

UC3853

UC3853 subcircuit Place in folder of circuit file (hierarchical example).
File:UC3853.asy UC3853 symbol Place in folder of circuit file.
File:UC3853.asc UC3853 hierarchical subcircuit Place in folder of circuit file.
File:UC3853 Test.asc UC3853 test circuit.
Above files in one download
Datasheet
Great example creating a model from spec sheets (courtesy of analogspiceman)

Solar Panel Subcircuit

2 cell solar panel complete with test circuit

* PV.cir: simple yet effective PV Array model 
.subckt PV A K params: Rp=1 Rs=3m Isc=10 n=50 m=1 
* Rp sets voltage slope of curve 
* Rs sets curretn slope of curve 
* Isc= short circuit current 
* n= number of series cells 
* m= number of parallel strings 
I1 A K {-Isc*m} 
D1 A K cell n={n} m={m} 
Rp A K {Rp*n/m} 
.model cell d Rs={Rs} 
+ Is=315n n=1.262 Cjo=50u 
+ Tnom=25 Trs1=10m Trs2=0m1 
.ends PV 

* PVS.cir: PV Array model with a solar input node (1V=1 sun) 
.subckt PV3 A K S params: Rp=1 Rs=3m Isc=10 n=50 m=1 
* Rp sets voltage slope of curve 
* Rs sets curretn slope of curve 
* Isc= short circuit current 
* n= number of series cells 
* m= number of parallel strings 
G1 A K 0 S {Isc*m} 
D1 A K cell n={n} m={m} 
Rp A K {Rp*n/m} 
.model cell d Rs={Rs} 
+ Is=315n n=1.262 Cjo=50u 
+ Tnom=25 Trs1=10m Trs2=0m1 
.ends PVS 

Voltage Regulators

TL431

File:TL431.sub TL431 subcircuit. Place in \lib\sub
File:TL431.asy TL431 component. Place in \lib\sym\Voltage Regulators
File:TL431 test.asc Test circuit using the native TL431
Datasheet

An excellent TL431 model, with comparisons to other models
TL431.zip - an improved model for TL431
See a useful discussion here, "Realistic SPICE model for TL431".

Compilation

NEW UPDATED VERSION LtSpiceIV_Plus_12_2009.exe
LTspicePlus_10_08.exe
Roberto Hugo Rodríguez Zubieta in 2005 created this executable, that provides a large number of extra components. First, backup your existing /lib/cmp directory at a minimum, and you may find it easy to just zip your entire /lib directory down. This executable will overwrite /Lib/Cmp with many more components that is based a dated version of the LTspice originals. The existing files are put into a folder /Lib/Cmp/Original. The dated version is not a problem. From LTspice, under 'Tools', selecting 'Sync Release' will restore all of the new models in the latest libs from LTspice. (At least every one I could see, using a Diff program.) Plus now you have many more.

The rest includes more than 90 files in the format *. sub, to denote that they contain subcircuits of devices or *. lib, for the files that contain families of components. This information is added to the folder /sub and it doesn't overwrite any original data. To the folder /sym is added several subfolders with files corresponding to more than 400 symbols.

In the folder \examples\LtSpicePlus, there are more of 600 clever examples to be run, these are mainly in format *. asc, although there are also some few ones in format *. cir; plus in this collection there are also near 100 symbols in format *. asy.

The install is in Spanish! The product result is in English. If you come across some 'Replace' options, etc, be prepared to Google some Spanish words to make sure you know what you are selecting. It's a 3.5MEG download.

If you don't speak Spanish, try those instructions:

  • say "Aceptar" (Accept).
  • Point the "Carpeta de Destino" (Destiny Folder) parameter at your LTSpice install-folder, normally it is C:\Program Files\LTC\LTSpice IV, but it will vary (e.g. in a Portuguese version of Windows it will be 'C:\Arquivos de Programas'...).
  • If it complains about "Los siguinentes ficheros ya existen" (The following files already exist), choose what you consider to be most adequate: Sí/No (Yes/No), "Sí a todo/No a todo" (Yes to replace all/Replace nothing at all) or "Renombrar" (Rename). It's your choice, I'd say "yes" after checking if filesizes are similar (i.e. a library you already have).
  • The extraction will run, it takes a while (lots of files). If finishes correctly and doesn't give any error, probably all went well, try some examples just to be sure.

Roberto has Spanish documentation and tutorials using LTspice at Precisión, guía para desarrollos con Ltspice.

Someone wants to build an updated version of this? Contact Roberto: precisionorte -at- gmail.com and he can help get you started.