LTspice Tutorial
1) You can download LTspice from the link provided below.
https://www.analog.com/en/resources/design-tools-and-calculators/ltspice-simulator.html
2) Useful tutorial videos are given below.
• https://youtube.com/playlist?list=PLfY3qVM-3buHw-
y2vPbp3AVNnOv3gZ7oP&si=vnv8pEEZAdnDkFQ_
• https://youtube.com/playlist?list=PL_0dECoOq8ZNObhpJv37knIZNyXepDezU&si=w-
p_PIalgPQ1zuAt
• https://youtube.com/playlist?list=PLT84nve2j1g_wgGcm0Bv3K4RSl2Jdjsey&si=vGIriJXPaBIOl
Z2H
3) You will see the following screen when you open the program.
• Ctrl+N -> New Schematic or left-click file, then left-click the new schematic.
4) The schematic window looks like the one given below.
• This is the toolbar where you can add components
5) Shortcuts:
• W -> Draw wire
• G -> Ground
• V -> Voltage Source
• R -> Resistor
• C -> Capacitor
• L -> Inductor
• D -> Diode
• N -> Label Net
• A -> Configure Spice Analysis
• Ctrl + R -> Run Simulation
• P -> Component Palette
• T -> Spice comment
• . -> Spice directive
6) Component Window: You can add any component available in the library.
7) Configure Spice Analysis:
• DC operating point:
• DC sweep example:
• “.” means that is the spice directive. If you have more than one simulation directive, you should
use one of these as a directive, and others as a comment. For instance;
o DC op analysis is the spice directive. (The blue one (DC sweep) is the comment)
o Right-click on the dc sweep, and click OK. (.op became as a comment)
8) Spice output log: Ctrl + L
A spice output log must be added to the homework report.
9) Transient analysis: You can run the .tran analysis if necessary. Just entering the stop time will be
enough for now.
Examples
1) You can right-click to enter the value of the components. (1 and 2 are the names of the nodes
which you added with Label Net)
DC operating point results:
2) LTspice uses a default diode model with a forward voltage of 0.7 V.
When you run the simulation;
Left-click on the OUT node will give the V(OUT)
Left-click on the component will give the I(component)
3) Definition of the diode model: Double-right-click on the diode name “D”, and write a name (in
this example: Mydiode).
Then, define a diode model as given below. This will result in zero forward voltage of the diode.
Zener diode:
4) Dependent sources;
o Voltage Controlled Voltage Source (VCVS):
Right-click on the “E” to enter the value of the coefficient of the dependent source.
VX=0.5 V, Vout=10*VX
o Voltage Controlled Current Source (VCCS):
VX=0.5 V, IG1=0.5*10 A, then, Vout=IG1*R1=5*100 V
o Current Controlled Voltage Source (CCVS):
I(V2)=I(R2)=0.1 A, V(H1)=Vout=0.1*10=1 V
o Current Controlled Current Source (CCCS):
I(V2)=I(R2)=0.1 A, I(F1)=0.1*10=1A, then Vout=I(F1)*R3=1*10=10 V
5)
v1 R + R3 R3 i v1 z11 z12 i1
[v ] = [ 1 ] [ 1 ]==[v ] = [z z22 ] [i2 ]
2 R3 R 2 + R 3 i2 2 21
v1
z11 = |
i1 i
=15
2=0
v2
z21 = |
i1 i
=10
2=0
v1
z12 = |
i2 i
=10
1=0
v2
z22 = |
i2 i
=25
1=0