LTspice_DC and AC circuits
LTspice_DC and AC circuits
2. Since we are doing DC analysis, chose transient analysis and give stop time = 1 sec. (any time
can be given here). After clicking ok, a code snippet will be there, click it anywhere on the
schematic. (.tran 1 here)
3. Click to run simulation.
Running the Schematic (cntd.)
1. After you run the simulation, a graphical window will open.
Running the Schematic (cntd.)
1. Click the wire before resistor R1. The graph will show input voltage.(30V)
2. Click on wire between R1 and R2. The graph will show voltage at that point.(20V)
3. You cannot click the wire after R2, because the voltage there is 0V.
4. Useful tip: double click the wire to only show the graph of that specific wire.
5. Click R1. Shows the current through the resistor R1. Similarly do it for R2. Same as the tip, if
double click the component it will show graph for that particular component only.
6. To get power dissipated by a component press alt and click the component.
7. Useful tip: If you want to zoom in the graph, left click and drag the mouse on the graph.
Release and you will be zoomed in; in that particular window size. To get back, right click on
graph and click zoom to fit.
8. Useful tip: To change the axis, hover over y axis, a ruler sign will appear right click and a
window will appear, you can change the axis limits here.
9. Useful tip: click on label on graph, a movable cursor will appear, this can be used to get precise
value at any point.
Graph
AC analysis
1. Make the following schematic
AC analysis (cntd.)
1. Adding AC source:
2. Right click the Voltage source Click Advanced in the popup window. Click on SINE. Give DC
offset = 0V, Amplitude = 1V and Freq = 10k Hz. In small signal AC analysis, give AC amplitude =
1V and AC phase = 0. Click OK.
AC Simulation (To get graphs)
1. Go to simulate click Edit simulation cmd.
2. In Transient analysis give stop time = 100usec (1 period). Click ok and place the code snippet.
Then click run button.
Various Graphs
AC Simulation (To get Various values)
1. Tip: to comment a code, right click the code and replace . with ;
2. Go to simulate click Edit simulation cmd.
3. In AC analysis, give the following values. And place the code snippet in you schematic.
AC Simulation (To get Various values)
1. When you click Run. A table will appear.
2. From here you can get various values, But it’s difficult to determine which node is which, so we
use the next step.
3. Use this to label node and the names will change accordingly (Use wire to connect). As
shown in next slide.
Why Transient and AC analysis
1. Transient analysis is useful where parameter such as
voltage or current is plotted against time. If you
want to look at output behaviour we use transient
analysis.