intro to ltspice for simulation, Cheat Sheet of Physics

Introduction to ltspice, details on how to use it

Typology: Cheat Sheet

2021/2022

Uploaded on 07/13/2023

hassaan-ghazali
hassaan-ghazali 🇵🇰

1 document

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Using LTspice – a Short Intro with Examples
LTspice, also called SwitcherCAD, is a powerful and easy to use schematic capture
program and SPICE engine, which is a general-purpose circuit simulation program for
nonlinear DC, nonlinear transient, and linear AC analysis. LTspice authored by Mike
Engelhardt can be downloaded for free at http://www.linear.com/designtools/software/
On the left side there are 4 downloads
-the program itself, you must run the LTspiceIV.exe program to install the software
-user guide
-getting started
-demo circuits (not useful for this course, download instead the example files posted
on the course’s website or, alternatively open files in File->examples->Educational
directory)
1. Example of a simple DC analysis – file LTspice1.asc
The values of components are:
V1= 5V
V2=10V
R1=10Ω
R2=20Ω
R3= 5Ω
Goal: determine the current flowing through each resistor and voltages of nodes.
Step1.Drawthecircuit.
Go to File ->New schematic to create a new circuit.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download intro to ltspice for simulation and more Cheat Sheet Physics in PDF only on Docsity!

Using LTspice – a Short Intro with Examples

LTspice, also called SwitcherCAD, is a powerful and easy to use schematic capture program and SPICE engine, which is a general-purpose circuit simulation program for nonlinear DC, nonlinear transient, and linear AC analysis. LTspice authored by Mike Engelhardt can be downloaded for free at http://www.linear.com/designtools/software/

On the left side there are 4 downloads -the program itself, you must run the LTspiceIV.exe program to install the software -user guide -getting started -demo circuits (not useful for this course, download instead the example files posted on the course’s website or, alternatively open files in File->examples->Educational directory)

1. Example of a simple DC analysis – file LTspice1.asc

The values of components are: V 1 = 5V V 2 =10V R 1 =10Ω R 2 =20Ω R 3 = 5Ω

Goal: determine the current flowing through each resistor and voltages of nodes.

Step 1. Draw the circuit.

Go to File ->New schematic to create a new circuit.

Select the components from the Schematic Editor Toolbar. In this example, you’ll need

three resistors , two DC voltages (select Component , type voltage and hit ok), a

ground , and wires connecting the components. By default, components are placed vertically, so you may want to rotate two resistors.

Once you are done your circuit should look like this. Note that you can zoom in/out by scrolling.

Step 3 Go to Simulate > OK or hit the icon.

Result will be shown in a pop-up window. --- Operating Point ---

V(n002): 3.57143 voltage V(n001): 10 voltage V(n003): 5 voltage I(R3): 0.714286 device_current I(R2): 0.0714286 device_current I(R1): -0.642857 device_current I(V2): -0.642857 device_current I(V1): -0.0714286 device_current

2. Example of a transient analysis – files LTspice2.asc and

LTspice2-step.asc

Components:

V=0 for t<0 and 10V for t> L=470uH C=5.4nF R=to be determined

Goal: determine the range or resistance that produces oscillations. From the analysis of the resulting differential equationR^2 /(4L^2 )<1/(LC)

Step 1. Draw the circuit. Set the values of the passive elements and set the voltage source to Pulse with Vini=0V and Von=10V. One can also pick a delay of 10 μs.

Check the appearance of the circuit.

Alternative Goal: Run simulations for a list of resistances and overlay the results.

Step 1a.

Change the numerical value of the resistance to {symbol}.

Step 2a.

Edit > Text Then fill out box as seen on the left, i.e. enter .step directive and list of resistors, check SPICE directive bullet.

Run simulation

and place probe onto a wire to plot a voltage or onto a terminal to plot a current flowing into a device.

The result for the current through the circuit is seen on the left.

3. Example of a temperature dependence of a BJT amplifier –

file LTspice3.asc

Goal: Find temperature dependence of collector current

Once circuit is completed, pick temperature to be swept in the DC sweep tab of the Edit Simulation Command, which is found in the Simulate menu.

Run simulation.

In addition one can measure the maximum value of the voltage output as well as the bandwidth by choosing Edit > Text. Then fill out box as seen on the left, i.e. enter .measure directive and the commands seen and check the SPICE directive bullet.

For the results look in the SPICE Error Log file within the View menu.

5. Example for a curve tracer – file LTspice5.asc

Goal: Find the characteristics of a pnp bipolar transistor

Set up two DC sweeps – one for collector voltage, the other for base current

Then Run simulation