HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
LTSpice Tutorial - EP1 Getting started

FesZ Electronics · Youtube · 56 HN points · 0 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention FesZ Electronics's video "LTSpice Tutorial - EP1 Getting started".
Youtube Summary
This is the first video of a longer series I'm working on so if you like it be sure to check out the rest of the series!
In this video I show how to get the LTspice Circuit Simulator program, create a simple circuit, test it using a transient simulation and finally make some general measurements on it.

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: https://www.patreon.com/feszelectronics

Tutorial series
EP1-Getting started: https://youtu.be/JRcyHuyb1V0
EP2-AC simulation and the Baxandall tone control circuit: https://youtu.be/P_ENvucaZkI
EP3-.param and .step directives: https://youtu.be/ARE5nwiHI0Q
EP4-How to import libraries and component models: https://youtu.be/8V5XabccFaE
Ep5-Stock example simulations to play with: https://youtu.be/MwfeMjcM4zY
Ep6- Basics of FFT analysis and .four statment: https://youtu.be/rVAvW1Jh2AE
EP7- Dependent voltage and current sources
https://youtu.be/Jn8mJG3qeoo
Ep8- Turning a datasheet into a component model
https://youtu.be/0smuo8bMRn4
EP9- Independent voltage and current sources
https://youtu.be/nPZ7vneN3v8
Ep10- .wave statement and audio file processing
https://youtu.be/mdJm-TzrBsA
Ep11 The effect of temperature on your circuit
https://youtu.be/VzxnNrOMcMo
EP12 Modeling a DC brushed motor
https://youtu.be/Wc4XzTrWSpo
Ep13- Worst Case, Monte Carlo and Gaussian statistics circuit analysis
https://youtu.be/NdGqboW2VcY
EP14 - Digital circuits and logic gates https://youtu.be/JttE2NObDPM
EP15- SMPS EMI and electrical noise and filters
https://youtu.be/QEAzcaiBrpY
EP16- Feedback loop simulation
https://youtu.be/X4yaBwaO1gk
Ep17 - Verifying Simulation Models
https://youtu.be/DSDiIkKQaAE
Ep18 - Simulating Capacitors
https://youtu.be/QpWPTolhfEo
Ep 19 - Simulating Inductors
https://youtu.be/65fNDRows90
EP 20 - Noise simulations
https://youtu.be/Dh5XmFXlljI
Ep21 - Models and Libraries
https://youtu.be/GUFMfSlD2AM

Music:
The Builder by Kevin MacLeod http://incompetech.com
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/_the-builder
Music promoted by Audio Library https://youtu.be/nuEQC2TKWDo
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Jun 08, 2022 · 56 points, 28 comments · submitted by Tomte
otter-rock
FesZ is one of the best electronics YouTubers. Most of his videos walk you through a topic from theory, to simulation, to build and test. Everything he does is cheap enough that you can follow along yourself for a few bucks, assuming you have some basic equipment.
cptnapalm
Subscribing due to your comment. Will take a look. Thank you.
OJFord
I haven't come across FesZ before, but from your description I'd add 'Phil's Lab' as a suggestion if that appeals. Fairly new, but similar approach, lots of projects typically completed in a single video, no shying away from theory - quite refreshing having seen every EEVBlog video.
ur-whale
I love LTSpice. Its UI has quirks, but it's really been a joy to use.

One gripe I have with the team that built it: it's typically a tool that would immensely benefit from being Open-Sourced.

It would also benefit the company that owns it.

But, it's yet another case the traditional HW guys mentality, a world where everything is IP, everything is secret by default, even when it doesn't earn you a dime.

nereye
There is an interesting 6-part LTSpice overview/training on YouTube by none other than the creator of LTSpice itself (Mike Engelhardt) and at the very start he mentions why he thinks that the best simulators are written by the concerns that need them (e.g. Linear Technology at the time, Analog Devices now) as opposed to software companies. See https://m.youtube.com/watch?v=6gKThjZIj-s.
ur-whale
> the best simulators are written by the concerns that need them

I agree 100% with that statement.

But that statement is also 100% orthogonal to mine (Analog should OpenSource LTSpice: both they and LTSpice users would benefit immensely from doing that)

But it's a hardware company, this is an argument they are culturally incapable of understanding: the whole OpenSource thing is just alien to their way of thinking.

hulitu
NGspice is open source. IMHO the only improvents in it are new models and some bug fixes. However, the program itself became worse by stripping the help part and by making nutmeg a part of the main program.
tn1
The most popular FOSS spice simulator is NGSpice: http://ngspice.sourceforge.net/

None of these tools have changed much since the 90's - just like the EDA industry in general

Evidlo
Also see Qucs-S, which is a GUI for ngspice and a few other engines.

https://ra3xdh.github.io/

IshKebab
Oo that looks nice! Qucs had a surprisingly great GUI - you wouldn't believe it was an EDA tool!
kennywinker
I've been getting by for a while using circuitjs[1] to simulate sections of circuits I'm building. I hope to one day bite the bullet and climb the steep learning curve of LTSpice

[1] https://www.falstad.com/circuit/circuitjs.html

valdiorn
the steep learning curve? It's probably the simplest simulator ever built. You can learn it in like an hour and be effective.
klysm
I wonder how many years it will be before LTSpice isn't the best option out there for free circuit simulation. It really is horrible to use.
zbrozek
It's not beautiful, but it is very productive. I'm quite happy with the tool and am not really seeking an alternative.
heroiccocoa
https://www.falstad.com/circuit/circuitjs.html is great for creating quick and simple intuitive simulations, and visualizing the model
klysm
Yeah I love falstad and use it all the time to sketch things out but I don’t trust it to be accurate
hulitu
I don't find it worse than others. It is a bit different but it does its job well. And the GUI, thank god, remained the same. The buttons are a bit small thought.
otter-rock
Is this about the GUI? It's a thin wrapper over the command line program. Use the keyboard shortcuts.

I don't see a contender on the horizon.

klysm
I don't care about the appearance of the GUI. It just doesn't follow conventions. I understand that those were probably established after it was created, but it's very painful to use after any kind of time off it. The keyboard shortcuts suck.
otter-rock
I don't know of any strong conventions across different circuit simulators. They're all frustrating to learn. At least the keyboard shortcuts are user-configurable.
hulitu
The keyboard shortcuts suck in every Windows program so i would not blame LTSpice for that. It is still ok that it does not have a ribbon and ribbon style shortcuts.
otter-rock
I think it's sort of like how Linux feels unconventional if you're coming from Windows or Mac. It's technically not, but that's a useless fact because it is for you.

Anyone could make an alternate GUI for any spice, but I've never seen it. Unless you count running spice from a PCB tool like kicad, where it's an afterthought.

The hotkeys are at least configurable, btw. And there's an official cheat sheet for the defaults.

https://www.analog.com/en/technical-articles/ltspice-keyboar...

Sanzig
I hear this criticism a lot. Am I the only one who likes the LTSpice GUI?

Yeah, it's clunky at first, looks straight out of 1995, and you have to break out SPICE directives for features that really ought to have UI wrappers by now. But once you're used to using it and memorize the keyboard shortcuts it's a breeze. I can capture a schematic faster in LTSpice than in any other tool.

To put it another way, it's certainly less intuitive than most software, but it's an order of magnitude more intuitive than, say, Vim.

OJFord
> more intuitive than, say, Vim.

I assume you mean to a complete newcomer? Where vim really shines in this context is once you've learnt a little bit, and then so much starts coming for free.

IshKebab
I mean, to be fair you're agreeing that it's old, clunky and incomplete and isn't quite as unintuitive as one of the most unintuitive programs in existence.

I think you're both right. It's pretty bad compared to good GUIs, but it's better than all the competition (the free competition at least)! That's just not saying much.

otter-rock
I also like the interface because it's fast to use the hotkey-mouse combo.

Try putting a ".meas" directive on the schematic and then right-click it. There might be more UI than you think, but it's still not comprehensive.

The best way to make it feel intuitive imo is to try any spice without the GUI.

jay3ss
Back in undergrad, I used LTSpice to simulate and design a single unit of memory, I believe at the nanometer scale. It certainly has its quirks and can be frustrating to use, but I was one of the few people who were actually able to complete the project and get an A. It was actually quite fun.
hbates
I have been using Every Circuit for a while. While you cant really simulate particular components (easily) it does allow you to simulate some trivial waveforms for basic circuits.

[1] https://everycircuit.com/app

Animats
It's extremely useful when used for its intended purpose - designing power supplies using Linear Technology components. Here's a design I did with it.[1] This is a little box for driving antique Teletype machines from a USB port. Those need a current loop running at 60mA constant current, up to 120VDC, driving an electromagnet with a 5H inductance. I wanted to generate that from the USB port's power, which required a moderately exotic switching power supply design.

The LTSpice simulation made it possible to get that right. Especially from a noise control perspective. Switching power supplies generate spikes, and so does turning off that electromagnet with its huge inductance. Those spikes have to be kept out of the USB port or its protection circuitry will shut it down. Spikes need to be suppressed in both the current and voltage dimensions. LTSpice lets you watch the switcher spikes, the electromagnet spikes, and the inrush current. When you add a few surface mount capacitors and ferrite beads in the right places, the spikes can be almost totally suppressed. It just took a few cheap parts. The simulator lets you find values that work.

The SPICE models for Linear Technology components match reality well. That's what LTSpice is really about - a good model library.

[1] https://github.com/John-Nagle/ttyloopdriver/tree/master/circ...

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ [email protected]
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.