- Ltspice Add Library Path
- Ltspice Add Library
- Ltspice Add Library
- Ltspice Add Model Component Library
- Ltspice Add New Library To Proteus 8.6
- Ltspice Mac Add Library
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.
If you have the model as a text file, you can bring it into your LTspice simulation by adding this line anywhere to the schematic:.lib filename.ext where filename.ext is the actual filename of the text (library) file. If that file is in the folder with the schematic, or in LTspice's cmp library folder (being careful to use the right one.
- Since you are trying to add paths to symbols, add the paths in the top textbox: Symbol Search Path. Multiple paths can be separated on new lines, or by semicolons; (which will be converted to new lines after closing the window). If a path does not yet exist (perhaps you made a typo) then LTspice will ask if you want to include them anyway.
- LTspice looks at the model definition, NOT the component to determine how to import the part.MODEL parts: To import a simple third party SPICE model into LTspice using the.MODEL directive, follow these steps: Add a generic component to the schematic that represents the symbol of the SPICE model.
- How to add a model to LTspice (SwitcherCad) This assumes you want to add a new model for a new device similar to one in the existing library. Here are three different methods. Method 1: Modify Libraries This method makes sense if you are working on your own computer, where you can update your own libraries and use them again.
An LTspice Standard Library Replacement
The whole library replacement / addition as one zip file Place in libcmp 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 HEREAD8332 hereAD8099 hereMC34063 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)
Ltspice Add Library Path
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 libsub
File:LM339.asy LM339 component. Place in libsymComparators
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
MOSFET Drivers
VOM1271
File:VOM1271.sub VOM1271 Photovoltaic MOSFET Driver model subcircuit. Place in libsub or in your subdirectory
NMOS
2N7002
File:2N7002.sub 2N7002 subcircuit. Place in libsub
File:2N7002.asy 2N7002 component. Place in libsymnmos
File:2N7002 test.asc Test circuit using the native 2N7002 You may want to use the alternate solver
Datasheet
BS170
IRFB4110pbf
IRFB4110 subcircuit Place in libsub
File:IRFB4110pbf.asy IRFB4110 component. Place in libsymnmos
File:Irfb4110 test.asc Test circuit using the native IRFB4110. You may want to use the alternate solver.
Datasheet
IRLR3110
IRLR3110 subcircuit Place in libsub
File:IRLR3110.asy IRLR3110 component. Place in libsymnmos
File:Irlr3110 test.asc Test circuit using the native IRLR3110. You may want to use the alternate solver.
Datasheet
MGSF2N02ELT1
MGSF2N02ELT1 subcircuit Place in libsub
File:MGSF2N02ELT1.asy MGSF2N02ELT1 component. Place in libsymNMOS
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 libsub
File:TIP142.asy TIP142 symbol. Place in libsymDarlington
File:TIP142-test.asc Test circuit using the native TIP142
DatasheetAdapted from Yahoo LTspice Group Message 28586
Opamps
LM2902 - National Semiconductor
LM324 - National Semiconductor
LM324 subcircuit Place in libsub
File:LM324-national.asy LM324/NS component. Place in libsymOpamps
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 libsub
File:LM6132A-national.asy LM6132A/NS component. Place in libsymOpamps
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 libsub
File:LMH6642.asy LMH6642 symbol. Place in libsymOpamps
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 libsub
File:THS4131.asy THS4131 component. Place in libsymOpamps
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 libsub
File:TL072.asy TL072 component. Place in libsymOpamps
File:Pweoverdrivepreamp2.asc Overdrive Preamp circuit, using native TL072
Datasheet Original files adapted from [2].
PMOS
BS250
Si7489DP
File:Si7489dp.sub Si7489DP subcircuit. Place in libsub
File:Si7489.asy Si7489DP symbol. Place in libsymPMOS
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 libsub
File:SiA431DJ.asy SiA431DJ symbol. Place in libsymPMOS
File:Test-Sia413dj.asc Test circuit using the native SiA431DJ. You may want to use the alternate solver
Datasheet
Ltspice Add Library
PNP Darlington
TIP127
File:TIP127.sub TIP127 subcircuit. Place in libsub
File:TIP127.asy TIP127 symbol. Place in libsymDarlington
File:TIP127-test.asc Test circuit using the native TIP127
Datasheet
Power Factor Corrector
Ltspice Add Library
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
Voltage Regulators
TL431
File:TL431.sub TL431 subcircuit. Place in libsub
File:TL431.asy TL431 component. Place in libsymVoltage 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 VERSIONLtSpiceIV_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 examplesLtSpicePlus, 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 FilesLTCLTSpice 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.
LT Spice supplies default libraries for devices produced by its own company i.e. Linear Technology. However we can add models of other (third party) devices for example the DB3 Diac, MOC3021optocoupler, etc. For including these in an LTspice schematic, one needs to download a Spice model for that particular component, usually available on the manufacturer’s site, and include it in the schematic.
Getting the LTSpiceIV
You can get the LTspiceIV software from the link:
http://www.linear.com/designtools/software/#LTspice
If you have installed LT Spice, it can be found in the folder:
Computer-> C -> Program Files ->LTC -> LTspiceIV
The component libraries will be found in “lib” folder under the LTspiceIV folder. The “lib” folder contains the “cmp” folder, the “sub” folder which holds the .sub or .lib files, and the “sym” folder.
• The “cmp” folder contains standard model data for passive components, diodes, transistors, FET's etc.
• The “sub” folder contains Files are ASCII text with ‘.mod’ ‘.sub’ or ‘.lib’ file extensions. These files are actually sub-circuit files that contain models of different components created for Spice domain.
• The “sym” folder contains the circuit symbols in ‘.asy’ format. These are the files that contain the symbol, which is shown in the schematic, for the added component.
Types of Components in Spice
Before starting with the methods to include new components into a schematic, it is essential to understand that there are two kinds of components that can be added:
• Intrinsic Components that are simple or commonly used components like resistors, diodes, MOSFETs, etc.
• Extrinsic Components representing complex components like OpAmps, Triacs, etc.
To add an intrinsic component, a ‘.model’ file needs to be saved in the LTCLTspiceIVlibsub directory and for an extrinsic component, a ‘.subckt’ file needs to be added.
Ltspice Add Model Component Library
Steps to include new device/ component models into an LT Spice schematic:
METHOD 1:
1) Firstly, one needs to download the required device model having a .lib extension. For example, the URL for downloading the lib file for the Sensitive gate Triac MAC08MT1 is:
http://www.onsemi.com/PowerSolutions/supportDoc.do?type=models&category=826
2) Then, open the downloaded file using Notepad. The model file can be seen.
3) In the Spice schematic where the component needs to be added, place a component having the same configuration (structure/functionality) as the required component. For example, in case of adding Triac MAC08MT1, the TRIAC.asy symbol in the LTCLTspiceIVlibsymMisc folder may be used.
4) After adding the component symbol, press Ctrl key and right click on the symbol and change the ‘Value’ attribute of the component and enter the name that appears in the .subckt (for extrinsic devices) or .model (for intrinsic devices) statement of the opened notepad file of the required component. For example:
.SUBCKT MAC08MT1 MT2 gate MT1 PARAMS:
Note: In case an extrinsic component, like Triac here, is to be added, then, after pressing Ctrl+Right click on the symbol change the prefix attribute to X which means that this is not an intrinsic device like a diode, or transistor, etc.
5) Now a Spice directive has to be added by clicking on the ‘.op’ tab on the right most corner of the toolbar. In the dialog box that opens select Spice Directive and include the file in the schematic by prefixing the filename by '.inc' . For example:
.inc MAC08MT1.lib
This will add the component to the schematic and it may now be simulated.
METHOD 2:
Ltspice Add New Library To Proteus 8.6
1) Once the downloaded file is opened using notepad, one can copy the entire model into the simulation file.
2) For this, open the spice Directive by clicking on ‘.op’. Select the ‘comment’ option and paste the entire text of the model file in the space provided. Using this method one can safely port the schematic file to another system since the entire model of the added component lies in the schematic itself.
Ltspice Mac Add Library
Note: Name of the file in the .inc directive should match the actual filename of the downloaded model, while the Value attribute of the added device should be that specified in the .subckt or .model statement in the downloaded file.
Creating a new symbol while adding a component:
1) To give a new symbol for the component that is being added to the schematic, open the file in notepad.
2) In the file, place the cursor on the .subckt statement (from where you had copied the name for your device i.e. Value), right click on it and click on ‘Create Symbol’. A default symbol will be generated.
3) You may edit the symbol shape according to your requirement and save it.
4) This device symbol will now be available in the component library under the [AutoGenerated] section. If this auto generated symbol is used in your file, you do not need to put a .inc or .lib statement in your schematic.