LTspice is a simulator for analogue circuits with broad DC and AC capabilities, based on SPICE.
Simulation
- To simulate the voltage across an element, we can select a node and drag across the element to the next node.
- To simulate a waveform, see this page.
- For transient circuits and AC circuits, we can simulate with the transient option.
- We can add SPICE directives with
sor alternativelyEdit > SPICE Directive.
Keybinds
F2opens a toggleable element chooser. Supported components are mostly from Analog Devices.F3opens a wire connector tool.F4opens a tool to assign net names.F5opens the cut tool, where elements/components can be deleted.F7opens the move tool, to move components.gwill add a ground terminal. It is necessary to connect it to the circuit for simulation.vwill add a voltage source,ca capacitor,ra resistor,lan inductor.- Right-clicking on an element will open an edit menu.
- Holding
Ctrland right-clicking will open an advanced edit menu.
- Holding
Ctrl+Rwill rotate an element.Ctrl+Ewill flip an element.
Third-party elements
Unfortunately LTspice doesn’t contain a full breadth of components that alternatives (like Multisim) support. We can work around this by following these steps:1
- Find the
.modeldirective for the component on the Internet. The LTwiki may be a good place to start.- For example, this page on the LTwiki has many models that are not otherwise included.
- Copy the
.modeldirective into a.txtfile in the same subdirectory as your simulation files.- Technically speaking, it’s not necessary to put it in the same subdirectory nor in a
.txtfile. This is easiest, though.
- Technically speaking, it’s not necessary to put it in the same subdirectory nor in a
- Then, as a SPICE directive, add
.include filename.txt. - Whenever a component is being used, rename it to the model specified in the directive (i.e., if using an NPN BJT, add a generic NPN to the schematic, then rename the component).
- Run the simulation and check if it works. If it doesn’t, something may have went wrong in the above intermediate steps.
Resources
- The LTwiki is an excellent resource for reference and documentation
Footnotes
-
Derived from this slideshow given by an engineer at Linear Technology. ↩