Enginursday: Getting Started with LTspice

Learn the basics of SPICE simulation with Linear Technologies' free LTspice program.

Favorited Favorite 2

When I think back on all the tools that helped me understand electronics, verify homework solutions and even help design products, LTspice is still at the top of my favorites list. LTspice is a free program from Linear Technology, hence the LT prefix in the name. SPICE is actually an acronym standing for Simulation Program with Integrated Circuit Emphasis. While there are many LTspice tutorials out there, SparkFun has been an entry point into electronics for many people. The motivation behind this post is to get LTspice in the hands of new users who wouldn't know to search for it. And hopefully I'll provide some new insight for seasoned veterans of the program. If you have questions, comments, links to other tutorials, example schematics or simulations, head over to the SparkFun LTspice Forum. I'll be dumping all my circuit examples, homework examples and personal projects there and answering your questions in that forum.

A year ago, my first assignment as an engineer for SparkFun Electronics was to redesign the Electret Microphone Breakout Board with the constraints that I could not replace the operational amplifier. This meant I could only change the values of the passive components in the circuit. I used LTspice to simulate the behavior of the new design so I knew I was getting the best performance out of that part. I used the Electret Mic circuit as an example to show how to import third-party models into LTspice.

alt text

LTspice is a great tool --- not only to simulate a design, but for teaching circuits and general concepts. When I need to describe how AC to DC converters work, I use a full wave rectifier circuit slowly pieced together showing the simulated waveform differences between an AC signal, half wave rectification and finally the DC signal after full wave rectification and smoothing. Even if you don't have an oscilloscope, you can still get a pretty good estimate of how your circuit will behave. It's also great for classroom instruction when you don't want 30+ students crowding around an oscilloscope to show that resistors reduce current flow and divide voltages, among many other uses.

About two years ago, I found out LTspice became a popular tool among HAM radio enthusiasts and experimenters. They used LTspice to verify their design of preamplifiers, transceivers and receivers. For the audio enthusiasts out there, did you know you can use a WAV audio file linked to a voltage source to get an idea of how audio might sound out of a filter you've designed? Whatever electronics niche you belong to --- or if you are just starting out learning electronics --- LTspice is a useful, free tool. Follow the link below to get started with LTspice.


Comments 6 comments

  • Byron J. / about 7 years ago * / 2

    The Bob Pease(tm) method for accelerating SPICE simulations:

    Hardware acceleration

    • LightningHawk / about 7 years ago / 1

      Here's another method for speeding up your SPICE sims that doesn't involve the destruction of personal property.

  • Chankster / about 7 years ago / 2

    Tutorial link seems to 404 at the moment.

  • Sembazuru / about 7 years ago * / 1

    A future feature of KiCad (for v5, it is available on the nightly builds if you can handle pre-release software) is integrated NGSpice. (NGSpice is a different flavor of Spice from LTSpice, much like Debian and Gentoo are different flavors of Linux.) Here is a video of an earlier pre-release of the integration. I personally haven't used it so I don't know what if any interface changes have been made since that video and the latest bleeding-edge nightly build.

    From discussions on the kicad.info forum, work flow is basically you have to decide if you are drawing a schematic for NGSpice or for PCB output. One can't be used for the other without heavy editing. It seems this is because the specialty objects used for NGSpice don't translate well to a PCB, combined with the pretty horrific lack of cut and paste between schematics in KiCad. (You usually don't want to simulate an entire complicated circuit board, just the sub circuits.) The cut and paste issues might be tolerable if you use a hierarchical schematic model and import the tested sub circuits as child sheets into your full project, but that is just a guess on my part.

    But the point of my comment is: "I Can Haz Moar Toolz!!!!" ;-)

Related Posts

Recent Posts

Why L-Band?

Tags


All Tags