Electronic Circuits For Biological Engineering Laboratory: BE154L/A43/4Q1920
Electronic Circuits For Biological Engineering Laboratory: BE154L/A43/4Q1920
ACTIVITY NO. 1
LT SPICE TUTORIAL
who are interested in creating circuits and analyzing them using LTspice. The tutorial is divided in 2
sections which discusses basic installation of LTspice and basic circuit creation of DC, AC, and Transient
circuits using tools available in LT spice.
c. To create a new schematic; click on the paper with an arrow icon on the top left the
program. The circuit would be automatically be named as draft 1. Figure 4 depicts the
icon while Figure 5 shows the display after clicking the icon.
i. Screenshots
d. To place
components; the icons present in the ribbon is used for the placing components such as
resistors etc. Hotkeys are also present in the program which provides quick and easy
ways to place components. Figure 6 shows the ribbon
i. Screenshot
e. To create a resistor either click on the resistor icon or press r. Figure 7 depicts the
creation of the resistor. To create a voltage source, click on the component icon which is
found in the ribbon. A pop-up would appear which shows the numerous tools present in
LTspice. Scroll to the right and click the voltage and place voltage in the schematic.
Figure 8 depicts the pop-up window while Figure 9 shows the voltage placed in
schematic which are in the next page.
i. Screenshots
g. To input the values for the voltage and resistors, right click on the component and a pop-
up window would open where the input values will be placed which is shown in Figure
12.
i. Screenshot
h. For this tutorial, you can try the input 10V for the voltage source, 10Ω for R1, 20Ω for
R2 as depicted in Figure 13. You can also add text to the components by clicking on Aa
symbol found in the ribbon
i. Screenshot
i. To simulate the circuit created, click on the running man and pop-up would appear
wherein you input the amount of time the circuit would be simulated and the simulate
command. Figure 14 depicts the pop-up and for this tutorial the stop time would be 1
second and the default simulate command would be used while Figure 15 shows the
display after confirming the pop-up. The simulation display shows a time scale up to 1
second since the input was 1 second in the pop-up.
i. Screenshots
j. To measure the voltages across the voltage source and the first resistor, click on the wire
to measure the voltage. The measured voltage would shown on the time scale however it
is only specific up to one decimal place only. To measure the voltage in the middle of the
two resistors, click the wire in the middle of the two resistors. Again, the measured values
would be shown in the time scale. Figure 16 depicts the measurements of voltages
wherein the green line shows the voltage across the voltage source and the first resistor
while the blue line shows the voltage across the voltage divider. To have a better view of
the values you can on the name of measured to see a more specific measurement as
depicted in Figure 16.
i. Screenshots
k. To measure the current flowing through either R1 or R2, click on the component and the
current will appear on the time scale at the right. Figure 17 show the voltage and current
passing through R1. One can enhance the graph by right clicking the values in the
timescale and setting parameter of values.
i. Screenshot
l. To change the color of the line, right click on the name, ex. V(n002) and change the color
to your desired color as depicted in Figure 18.
i. Screenshot
m.We can create an output by clicking on the A button in the ribbon. For this tutorial, the
color of the output was changed to pink just as an example. Figure 19 depicts the creation
of the output. You need to re-simulate the circuit so that the output voltage would be
shown in the timescale.
i. Screenshot
n. We can create algebraic expression in the color changing menu so that the timescale
would show a simplified version of the values that we want. In this instance the value of
the output voltage is 6.667V however since there is a *2 at the V(output), the Voltage
shown in the graph was doubled. Figure 20 displays the doubled voltage output.
o. For other functions, one can press either Ctrl while clicking a component to measure the
power dissipated by the component. One can hold alt while clicking two components to
determine the voltage etc. There are many hotkeys present in LTspice that can be used to
ease simulation
p. Lastly, one can edit the simulation command by clicking on the simulate button found in
the upper left of program either to add start up times and such to one’s liking. One can
zoom in the graph by holding left click
i. Screenshots
Figure 22 Zooming in
B. Simulation Series Part One, Two, and Three – AC and Transient Circuits
a. One can save the schematic by clicking the File button located in the upper left and
pressing save which would open a pop-up window for saving. Figure 23 shows the saving
pop-up
i. Screenshot
b. We can create a simple resistor-capacitor circuit by using the instruction found on the
first part of this tutorial which is depicted in Figure 24.
c. To create an AC circuit, when you input the voltage click advance and add an AC
amplitude ex.1 as depicted in Figure 24.
i. Screenshot
created by following the instructions found in the first part of the tutorial. We are now
ready to simulate an AC circuit.
Figure 26 AC Circuit
e. Click the running man icon to run the simulation. It opens a pop-up where you can edit
the simulation. Click AC analysis and for this example the type of sweep that would be
used is Decade, the number of points per decade is 41, the start frequency 10Hz and the
stop frequency would be 100kHz as seen in Figure 27 while Figure 28 shows the display
after clicking ok.
i. Screenshots
f. Measure the Voltage output and a graph would be shown in the top as shown in Figure
27. Edit the voltage source to SINE with amplitude of 1 and a frequency of 1kHz as again
shown Figure 29.
i. Screenshot
g. Edit the Transient in the Simulation Command window by right clicking .ac dec text. It
would open a pop-up window of the Simulation Command window. Input 10m for the
Stop time and click ok as seen in Figure 30 then measure Vout and Vin which shows a
transient simulation as seen in Figure 31.
i. Screenshots
h. We can multiply Vout by 10 so that it leveled with Vin by right clicking Vout and adding
*10 to the algebraic expression as seen Figure 32
i. Screenshot