LTspice tutorial - EP4 How to import libraries and component models
HTML-код
- Опубликовано: 15 окт 2024
- #16 In this tutorial video I look at the various ways in which simulation libraries and component models can be imported to the LTspice simulator, one of which is using the .inc spice directive.
A good source of libraries as sugested by a viewer: bordodynov.ltwi...
If you liked this video be sure to check out my other videos and you can also subscribe to be up to date with all the new ones!
If you want to support the creation of more and better videos you can at: / feszelectronics
Tutorial series
EP1-Getting started: • LTSpice Tutorial - EP1...
EP2-AC simulation and the Baxandall tone control circuit: • LTspice tutorial - EP2...
EP3-.param and .step directives: • LTspice tutorial - EP3...
EP4-How to import libraries and component models: • LTspice tutorial - EP4...
Ep5-Stock example simulations to play with: • LTspice tutorial - Ep5...
Ep6- Basics of FFT analysis and .four statment: • LTspice tutorial - Ep6...
EP7- Dependent voltage and current sources
• LTspice tutorial - Ep7...
Ep8- Turning a datasheet into a component model
• LTspice tutorial - Ep8...
EP9- Independent voltage and current sources
• LTspice tutorial - Ep9...
Ep10- .wave statement and audio file processing
• LTspice tutorial - Ep1...
Ep11 The effect of temperature on your circuit
• LTspice tutorial - The...
EP12 Modeling a DC brushed motor
• LTSpice Tutorial - Mod...
Ep13- Worst Case, Monte Carlo and Gaussian statistics circuit analysis
• LTspice tutorial - Wor...
EP14 - Digital circuits and logic gates • LTspice tutorial - Dig...
EP15- SMPS EMI and electrical noise and filters
• LTspice tutorial - SMP...
EP16- Feedback loop simulation
• LTspice tutorial - Fee...
Ep17 - Verifying Simulation Models
• LTspice tutorial - Sim...
Ep18 - Simulating Capacitors
• LTspice tutorial - Sim...
Ep 19 - Simulating Inductors
• LTspice tutorial - Sim...
EP 20 - Noise simulations
• LTspice tutorial - Noi...
Ep21 - Models and Libraries
• LTspice Tutorial - Cre...
Music:
The Builder by Kevin MacLeod incompetech.com
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/_the-bu...
Music promoted by Audio Library • The Builder - Kevin Ma...
These tutorials are so precise and straight to the point. Thanks a lot!!
Thanks so much. I have often wondered how to import libaries. After you showed your diode example, I immediately thought about what about special unique components. I thought the tutorial was going to be incomplete. Then you went right to those unique components. Now I feel like I can handle all types. Awesome detailed explanations.
I'm happy you found this helpful! Let me know if you run into any problems.
God where were these tutorials when I was in school. At least they're helping me now in industry! Great stuff.
"No, we don't open it with notepad" I loled :)
Great video! Thank you!
You are really fast, you must have clocked many, many hours in LTSpice.
What a magnificent and pure stream of knowledge have I drank from. Thank you
The first guy after a 3/4hr search on google who could answer me such an easy question. Damned. Thanks!
I'm happy this video helped you!
Finally a GOOD an precise guide of how to add a component.... Ages looking something like this.... thanks thanks THANKS
@ 7:20 "Yes, I am fully aware of what I'm doing." No kidding, you really are. I'm totally impressed!
Hi FesZ. Excellent tutorial. Focused and without missing steps.
I'm happy you liked it! Thank you for watching!
Just got to thank you for your hard work and sharing of skills.
Thank you so much for making this video! Way more clear then the messy LT Video.
I'm happy you enjoyed it! Thank you!
Thanks for all you do for the LTSpice community!!! Your videos are spot on. RF Man
Helpful for generations to come... Precise pace and straight to the point... Thank you very much....
Thank you soo much. I was going through the playlist, another terrific turtorial
I'm happy you enjoyed it! Thank You!
I can't thank you enough for making these amazing videos, you da best😭😭😭
Thankyou, very useful. Thank goodness for the pause button, it all goes a bit quick for me!
I am playing with circuit sim for the first time, thank you so much for your videos, I am busy adding a 1n5711 diode to my library :)
Good luck with adding the component! Let me know if you run into any issues. Depending on the type on model you have - if its a .subckt type you might be interested in a way to re-use the existing symbols: ruclips.net/video/X2uUJPyXHHk/видео.html
Perfect tutorials! Many many thanks for sharing.
Your videos are great man. Very Clear, Not much, Not more😗
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 One of the best tutorial videos I have ever seen. Thank you very much🙏.
this was the best tutorial on how to import spice models
Great job! This tutorial was very helpful . I wait next tutorials.
You have no idea how much you helped me!
Very good tutorial! Thank you so much!
Thanks a Lot!! I was looking for this from a very long time.
Excellent video straight and to the point and at a great pace. 10/10
I'm happy you enjoyed it! Thank you!
Great material. If you type and talk 2 times faster, it will be even easier to understand details. 😊
This video could have easily been done in 3 minutes😊
Thank you, man. Saver of the day for me.
GREAT video. Succinct. Complete. Accurate. Thanks for posting.
Concise, complete and to the point !! Thx !!
To the point and helpful. Did cover the bad scenarios too. Thank you
Thank you very much for this excellent tutorial. You covered quite a few interesting cases, that before watching this, I would have no idea how to do it. I will be going through it in detail and trying to copy cat all that you have done here.
I am happy this video helped you. If you run into any problems just let me know, maybe I can help
@@FesZElectronics Thank you very much for your offer. Good to know that help is available.
Thank you very much. Great video.
Best tutorials to the point . Thanks a lot
Best tutorial I found :) thanks! Coincidentally I just wanted to add a 4051 :))
Amazingly helpful, thank you so much for offering multiple options!!
Thank You. Very helpful.
this is incredibly helpful, thank you so much
Amazing! This video solves many of my problems, you are the best!
Happy I could help!
This what I am searching for, Thanks
Very concise and to the point!
Very helpful, thank you
Really nice man, thank you!
Excelent Tutorial and video series on LTSPICE.
I tried the third method to permanently add a component in the standard library and followed your steps, but it doesn't worked: When I put pick a new diode, the model that I want to select (1N4007) doesn't show any idea why this happens?
Question like these aren't answered by either the original creator nor, any commenters. It's frustrating.
@@darrellhambley7245 Thanks for anwer, I finally managed to solve it months ago, the problem: I was copying the files in the wrong folder, because there is two folders with the same name, one in My documents folder, and another one in the standard instalation folder in C partition, dont remeber now, but I think the good one is My documents one.
After looking at several "how to" videos, I find that most of the creators of these videos don't know that the new version 17, LTspiceXVII does not let you change the lib folders in the program file. You have to create your own folders under the Documents folder.
LTspice automatically created folders under Documents at my home computer by not on my work computer (downloaded at different times; my home version was 2017). So, when the instructor in these videos says, "go to you lib file" and you find there is no lib file, it is simply frustrating.
This guy here does show the folder that he made with the .lib files but, ar around minute 3:00 in the video you have to pause every second to see his keystrokes because he goes so dang fast.
Just Wow! Thank you so much for sharing your knowledge with us. Great video. Truly, thank you!
I'm happy you enjoyed it! Are you interested more in a particular field of electronics or just LTspice in general? maybe I have some more stuff you might like
@@FesZElectronics thanks for the reply! I am honestly just curious of how this tool is used. You really impressed me with the advanced step based simulations to allow you to really get an understanding of how things may work on the bench. My emphasis is in RF and it would be really fun to figure out how to use this tool in that capacity.
Hello Shawn! To be honest I haven't worked with RF that much, I mean I did build a radio or 2 at some point, but this hasn't been my major topic of focus. But I'm curious what sort of common problems do you run into working on RF circuitry? maybe there is a good way LTspice could help to handle such issues
FYI ... To set up the current pulse, LTSpice wanted 5 parameters set. So I set Tfall[s] to 1 as well.
Very, very helpful, thank you!😎
Brother, this is a very clear way of adding a model into spice library. Could you also add how to model thermistor, MOVs in our design which doesn't have a spice model?
the best tutorial out there
Do you know if it is possible to show the ".measure" results defined inside a schematic (which is used in the main project file as a symbol) in the error log
As described in your video I added a new model file in \Documents\LTspiceXVII\lib\cmp\standard.bjt. On starting LTspice it started behaving strangely. Anytime I right clicked to select a particular transistor it opens the window 'Select Bipolar Transistor Database' and this window keeps coming even after I click 'Cancel' or 'Open'. At times I had to abandon LTspice as it would go in a loop. The only way I could get back to its original state was by replacing the standard.bjt file from the Program directory.
I had added a new model into the standard.dio, and it behaved the same way.
My question is can one edit the cmp files in the Documents\LTspice\lib\cmp folder. I am using the 2016 version of LTspiceXVII.
very nice video. I would like to use the Analog Devices AD202kn isolation amp and I cannot find it in Ltspice or at Analog Devices which seems odd since they own Ltspice I think?
Next is to locate the Analog Devices ad202kn library at a 3rd party location and place it in Ltspice and hope it will correctly simulate the ad202kn? Thank you for the great information. 😊
4:22 , you got me rolling. Hahahahaha.
By the way. Very helpful video. Loved your content.
thank you so much sir😍😍😍
Thank you very much, very clear and simple explaination.
Great tutorial videos. Could you please make a video to simulate the 8/20 transient test?
That's great, thanks. Are there common compatibility issues that PSpice models have that LTSpice does not work with?
|I don't really know of any compatibility issues. Usually I have no problems when importing models but The most common problem that does occurs is that the model does not converge (usually with op-amps); then I just add ".options cshunt=1e-14"; this adds an extra 0.1 pF to every circuit node, and then all works.
Thank you!
THANK YOU SO MUCH
ADI has changed LTspice to use user component files for R, C, L, Diode, and others in the main folder. They no longer merge new data into the built-in component files. Any data you put in those files will be overwritten and lost.
amazing tutorial
Great tutoria! But what if I can't find any spice model of the component i need? Can i make one looking at the datasheet?
Depending on the component and how detailed the datasheet is, it is possible to make your own model. Do you have any component in mind, or is this just a general topic you are interested in?
@@FesZElectronics thank you for asking, I'm using the IC MN3207 for a guitar effect but can't find the SPICE model
Hey, Idk if you're still checking the comments here but I have a question. I converted a .IBS file into a .LIB to use in LTspice. The conversion worked, and I tried to follow the last method you showed me, however the file I have has multiple little sub-components, and I can't generate a single component. If you could help in any way, that'd be much appreciated! Great video btw :D
May I ask how you made the conversion (.ibs to .lib)? (just don't send links since youtube usually deletes those comments)
Usually an ibis file for a more complex IC will be split into multiple bits - like a single ended line (of various driver types); a differential line (again various driver types) etc. I think this is what you are getting - maybe just select the necessary subcomponent and used that. An ibis model does not simulate the IC as a whole, but rather the interface - the pins; but you still need to provide stimulus.
wonderful!
Great job bro! Very helpful tutorials.
Glad you like them! Thank you!
thanks for the great job . i need to do some work with the 5SNA 3000K452300 IGBT from ABB , but can't find the spice model. what can i do ?another idea is to use the flecs model which is available , is it possible?
Thank you very much for the clear and simple information! You really know your stuff man, instasubbed.
Providing the very same schematic and settings it says when i run the simulation that needs 5 parameters instead of 4.
Which other is really mandatory ?
Looks like you set only 4.
I think this is a change later implemented in LTspice; just add 0 or some value on any of the next parameters, and the error should go away.
Very good explanation! I'll share in my channel ;)
Hello Hugo! Thanks for the support!
I couldn't see the 1N4004 model after I clicked "pick new diode". I updated 1N4004 .model statement in the standard library for diode, and reopened LTspice.
How would you import something like a Diodes Inc. BAS70DW-04 or BAS70BRW, which is a Schottky array? Just draw the diodes as in the data sheet? The Spice model for these says "quad, one node of four". So the values in their Spice model are simply for one?
I found the model for the DW-04 diode, and yes, its for 1 single diode; in general there is no point in making a model for all 4 in the same package if there is no specific interconnection parasitic being modeled. It is quite common to find components as separate models even if they are in a package together with something else...
@@FesZElectronics I get it now, okay thank you. I had wanted to model several DW-04's coming off an antenna as a RF energy harvesting circuit with anodes/cathodes facing specific ways, so I guess I'll just lay that part out myself.
Thanks! This is very useful!
Love you so much!
Very useful!
Thanks
I appreciate your help!!!
Thanks man... 👍👍👍
FesZ I imported a TIP122 and TIP127 models to LTspice just like you did, and I had to use "prefix = X" to make it work. Do you know why? It this what I have to do every time I add a custom component like this one to LTspice? I think normal transistors would have worked fine with just adding ".inc COMPONENT_NAME.lib", right?
Hello! I did cover this in a more recent video. You need to add "X" if the component is a subcircuit and not a basic component ( ruclips.net/video/X2uUJPyXHHk/видео.html ). The same applies not just for transistors but any component really - you can have very complex models built for even capacitors or other passives.
@@FesZElectronics you are awesome! Bro thanks a lot for all the effort you put on every single video. Love your content! You sways help me lmao 😂
Excellent..!
What if i want to include a shift register? Which component can I use for it?
How to navigate to the webpage at 8.22 for the model search? it seems like that page is no longer available 🧐
There is a problem and that is that i can not make the file to be .lib. Although it end in .lib format ltspice does not recognize it that way . I have instaalled lt spice in D hard drive nad i do not know why this is happening. Also when i write in the cmp of a diode and i insert the new model when i reopen lt spice it can nOT BE FOUND . I suppose it has sth to do with rights
i have same problem/ have you this problem or all right?
Thank you
thanks for the great tutorial video. but man, how to import the component if just found the ibis model ? (the component is SN74LVC1GX04 with SOT 6 pin)
Hello! Well the IBIS model usually does not contain the functional model of a component but rather how the pins behave, what their impedace is and so on. On the other hand, for this particula component, you do have the spice model available on the TexasInstruments page under the design and development page of this IC: www.ti.com/product/SN74LVC1GX04/toolssoftware
@@FesZElectronics wow thanks for the reply ! i was downloaded the design IC : www.ti.com/product/SN74LVC1GX04/toolssoftware and do like ur tutorial video but i need the model of Component LVC1GX04_DBV 6-pin SOT. I can't found the spice model of Component LVC1GX04_DBV 6-pin SOT and only found in ibis model. how to fix it man ? thanks
awsome. thanks a lot
awesome explanation, but i am not getting library file for HSMS-2820 diode
I'm not sure I understand the issue. Did you have trouble finding a model for that diode, or was the issue with importing it into LTspice?
around 7.17 you were able to save the file as NE5532.lib and it prompted you about the extension but when I try to save the file as NE5532.lib, it gets saved as NE5532.lib.txt, and there is no way for me to change it in the properties settings as well, I'm not sure if it is a windows 11 thing. T_T
I usually find it easy to change extensions of files using total commander. Not sure how things are on Win11, I still use 10.
One more problem bro,IC which I am using has 8 pins but pspice model has 6 pins.What I need to do
May I ask for the particular IC name and model source? Depending on what the functions of the 2 missing pins are there may be a problem or not - if the pins are unused or just copies of existing pins (for example 2 ground pins) than its no issue;
@@FesZElectronics UCC28019 ,missing pins are VCC and Vins
one more thing I tried in TINA also but there also 6 pins are there
I guess that most likely the model does not take into account the function of these pins - it will not cover the IC current consumption and the Vins voltage thresholds are again not covered. Usually when making a model, you cover features that the component has, you don't build the entire component, so the main features, that are commonly used are modeled, and anything else, not..
Really great video, It would be helpful to me if you could show how users can share their 'Auto Generated' symbols with each other easily.
I'm not sure there is a dedicated platform for this... I mean you could use any sharing website or platform, its just that I don't know of any place dedicated for LTspice.
@@FesZElectronics thanks for the reply. What I mean was when I get a sub file, and then in my simulation I create an 'Auto Generated' symbol. Then it works great for me and everything runs. The problem occurs when I pass off the simulation to my friend via USB drive he opens the simulation and then needs to also go through the process of creating an 'Auto Generated' part and wiring it up before he can run the simulation.
Hello Daniel! I think the problem you are getting is that the symbol you generated also has the path to the model embedded. If you open the symbol (place it in the schematic and right click -> open symbol) and then in the symbol under the Edit menu -> Attributes -> Edit attributes you get on the bottom a field called "ModelFile" - this basically tells the symbol where to get the model from; you can either put the model in the same place on your friends computer, or delete the content of this line completely and then whatever is written in the "value" field of the symbol the simulator will look for that particular model. Then the model can be linked via ".include" statement or directly thrown into the simulation as a spice directive.
Let me know if this works out!
I get the following error when I try to run the simulation " i1: requires a minimum of 5 parameters. only 4 specified", I see you have specified 4 parameters as well, i1,i2,Tdelay and T rise. I mean you didn't populate Tdelay with '0' but that is implied.
What is the 5th parameter that is supposedly missing? The following is my spice netlist
I1 0 N001 PULSE(0 5 0 1)
D1 N001 0 D1n4004rl
.model D D
.lib C:\Users\vigne\OneDrive\Documents\LTspiceXVII\lib\cmp\standard.dio
.MODEL D1n4004rl d
+IS=5.31656e-08 RS=0.0392384 N=2 EG=0.6
+XTI=0.05 BV=400 IBV=5e-08 CJO=1e-11
+VJ=0.7 M=0.5 FC=0.5 TT=1e-09
+KF=0 AF=1
.tran 1
.backanno
.end
Hi,
I need help adding .35 um CMOS from analogicdesign.com/students/netlists-models/ I can see three files, that I can only make work using the spice directive but it is giving me an error. I don't understand why there are three files _ff, _ss, _tt and then there is a model_card. Any advice?
Hi, Well the model seems to be in the "model_card" file and the other 3 contain only a couple parameters and a directive to include the "model_card". But all 3 (ff, ss, tt) have the same 2 parameters, so only one should be used.
Thanks!
Can you add a texas instruments switching regulator spice model
For example LMR34215-Q1. I tried importing it but while running I'm getting errors in .lib file.could you please show me how to successfully run a third-party spice model in LTspice
Awesome bro
what if we want to create a new category like resistor is r and capacitor is c and so on?
Does it work if I have a .lib file? becuase it doesnt have a .model decription it contains a .subckt
The file extension does not matter, as long as the internal syntax is ok. Even a .lib file will contain a .subckt so it should work.
Thank you bro
firstly, that's was good. i try to import mosfet model (irf3205), but i cant please could u help me ?
Can you please tell me how to add finfet library and symbol in ltspice
bravo!
omg thank you a lot!