LTspice24 - importing the A_Bordodynov's lib and examples - Page 1
Forum section: electronics / general

author: iMo
author_rank: Super Contributor
timestamp: February 27, 2024, 09:07:43 am
content: I've tried this and it seems it works (do it at your own risk, do backup your libraries and data before).1. download the AB library, close the LTspice242. go to C:\Users\JohnSmith\AppData\Local\LTspice where you find the "lib" folder3. delete the "lib" folder and replace it with the downloaded "lib" folder4. fire up the LTSpice24, and do update the components with "Tools->Update components" (it returns the original components)5. restart LTspice24 (!), you should see the ZZZ folder with AB's components as well as all original stuff when adding a component..Adding the AB's "Examples": simply copy the examples from AB library into the "examples" folder (the same path as in 2).You have to rename AB's "Educational" to say "EducationalAB" before copying.

author: RoGeorge
author_rank: Super Contributor
timestamp: February 27, 2024, 09:31:51 am
content: I usually copy external libs in the same directory with the .asc file, so everything is self contain. Sometimes I only copy the needed component model + symbol, they are all plain text. This also solves the problem of same component name with more than one model. For local libs, the filename has to be added in the schematic as a SPICE directive:.include somemodel.lib. This also informs what models are not from the default libs, which is good to know.Keeping all the needed files together with the .asc makes it easier to zip the entire project then share it with everything that is needed to run, plus I don't risk to break older projects after an OS reinstall. Otherwise you'll have to keep a list with what extra libs were installed, and from where.I don't mind the duplicated libs or models across many projects, they are very small, usually less than 1MB for entire libs, or less than 1kB for individual models or symbols.

author: andrewsh
author_rank: Newbie
timestamp: March 24, 2024, 02:43:49 pm
content: Hi! Can I know how to find my pole capacitor and zero resistor by AC open-loop. The stability : AC open-loop Bode plot has at least 45 degrees of phase margin at both 1% and 100% of the assigned Maximum Load Current.I don't know how to get C3, C4 and R4.Thank you so much!

author: schmitt trigger
author_rank: Super Contributor
timestamp: March 24, 2024, 03:20:36 pm
content: Subscribing to thread, thanks for posting.

author: Zero999
author_rank: Super Contributor
timestamp: December 26, 2024, 01:14:18 pm
content: If your want to post your .asc files here, or any other forum, then I wouldn't recommend replacing the existing LIB directory.If you want to add new models, not found in the default install, then I suggest putting them in a new folder. Then you know the part you've used isn't included in the default install and can include the symbol and model in a zip file.Posting .asc files here, with no models and symbols, is pointless. I find it very frustrating.I prefer to paste any models into the .asc file, rather than zip, which some people might be hesitant about opening.

author: iMo
author_rank: Super Contributor
timestamp: December 26, 2024, 01:31:28 pm
content: Quote from: Zero999 on December 26, 2024, 01:14:18 pmThere is none LIB directory replaced.Read the guide..

author: Zero999
author_rank: Super Contributor
timestamp: December 26, 2024, 02:03:16 pm
content: Quote from: iMo on December 26, 2024, 01:31:28 pmI did. #3 says "delete the "lib" folder and replace it with the downloaded "lib" folder". If you do that, then the parts in your installation will be replaced with the ones you've just downloaded.

author: iMo
author_rank: Super Contributor
timestamp: December 26, 2024, 02:16:24 pm
content: Yep, but the point 4 says the LTspice will install all its original libs back (the original LTspice's libs) over the new AB lib.So you will find there the new AB lib and all original LTspice libs in the point 5.The "original" means the libs which LTspice will download in the point 4 (it downloads and installs complete libs setup properly again, as it does in the original vanilla install, with new component updates as well, if any).Look into the directories there and you will see the simple "copy paste" of the new AB lib into the existing original lib structures would not be an easy exercise.The user stuff is stored inC:\users\<username>\Documents\LTspiceafaik..PS: the new LTspice's component "updates" will not mess up the added AB lib..

author: iMo
author_rank: Super Contributor
timestamp: January 05, 2025, 11:30:09 am
content: Here is my above text with some minor edits to be more explicit after some discussions:Quote

author: mikerj
author_rank: Super Contributor
timestamp: January 05, 2025, 01:34:16 pm
content: Quote from: RoGeorge on February 27, 2024, 09:31:51 amThis can get very messy when you end up with multiple versions of the same spice model. I only do this if I need to share it with other people, or if comparing different versions of spice models.

author: RoGeorge
author_rank: Super Contributor
timestamp: January 05, 2025, 02:17:52 pm
content: Who cares what model was used in some other project, or if that model is unique or not? The risk to not have that model at all some years later (deleted because of LTspice upgrades), or the risk of a silently upgraded model such that the "improved" one will now give different results in former saved projects would be a nightmare to maintain across the years.Disk space is cheap, and the backup does deduplication anyway.What matters is to have self-contained projects, and reproducible results when returning to a project from years ago.

author: mikerj
author_rank: Super Contributor
timestamp: January 06, 2025, 12:10:29 pm
content: Quote from: RoGeorge on January 05, 2025, 02:17:52 pmAnyone concerned about repeatability would care. When start a new design using a part you have dozens of copies Spice models for, which one do you choose? Or do you download yet another copy?

author: mc172
author_rank: Frequent Contributor
timestamp: January 06, 2025, 01:36:32 pm
content: Subscribing, thanks!

author: RoGeorge
author_rank: Super Contributor
timestamp: January 06, 2025, 01:41:45 pm
content: Quote from: mikerj on January 06, 2025, 12:10:29 pmIt depends, but I sense the questions are rhetorical, so won't go into details. I have a local repository from where I usually checkout the models into new projects. I prefer to keep a local model copy with the project. Also it happens sometimes to modify existing models, or to build my own models, and so on.Each uses own way of organizing files. To me, the most important is for project to be self-contained, and to be able to open them later.I prefer the models to stay together with the project, because I have projects that sometimes span over many years.For example, some SPICE project I have are in PSpice, from when LTspice was not yet a thing. I might still have a few SPICE projects that are even older, from the era of PDP-11, when there was no GUI, no IBM-PC, no Windows and no Internet. The schematic was typed as a network of nodes, and the simulation results were plotted with 'x' and 'o' letters on tractor-feed continuous paper, on a printer that was hammering the letter like a typewriter, fun times.

author: Zero999
author_rank: Super Contributor
timestamp: January 06, 2025, 06:47:13 pm
content: Models vary from supplier to supplier. Some are more accurate/honest than others. This is also true with user made models. There are also models optimised to accurately simulate certain device characteristics: noise, distortion, phase margin/stability, transient response etc.If you want to keep using the same model for a certain project, then either put the .sub/.mod in the same directory or paste it into the schematic, by using the SPICE Directive (.) command, as I've done in the example below.Attached is an example showing the difference between an ideal amplifier and NS' and TI's LM358 model. I don't believe for a minute TI's LM358 has a greater phase shift/crossover distortion and lower GBWP than NS'. TI's model is just more accurate than NS'. The fact it's a much larger file size, shows they've gone to more effort.

author: iMo
author_rank: Super Contributor
timestamp: January 06, 2025, 07:02:15 pm
content: The AB's lib is interesting mostly because of the megatons of various models people (like me) have never ever seen or thought about (and have no idea how to model it in Spice) as well as there is zillion of examples people may study for years.Sure, people with deep expertise may consider AB's lib as a bloated "something" they do not need, and they would prefer the specific part models they consider appropriate and up to date..PS: afaik AB is present at the LTspice's groups.io, so he advises people from time to time on his lib. There at groups.io you may find also a repository of many various models people contributing there, btw.https://groups.io/g/LTspice

author: iMo
author_rank: Super Contributor
timestamp: May 10, 2025, 11:43:48 am
content: Warning: be careful with upgrading to the latest LTspice (24.1.8 from May 6th).They introduced stronger checking with libraries syntax (good move basically) - but they scan complete lib files for errors regardless a particular model you may only need, and for example the Bordodynov libraries shoot tons of errors.Errors I see are mostly related to TABLE syntax and typos of any kind.The simulation will not proceed, while indicating all the errors found in the log file window.

author: Zero999
author_rank: Super Contributor
timestamp: May 11, 2025, 11:42:09 am
content: Interestingly, I've noticed the more recent versions don't support Unicode characters for labels. Only ASCII works. The circuit I posted above, won't simulate with ½Vs. Change ½ to 1/2 and it'll be fine.