EE-120 Electronic Devices and Circuits
EE-120 Electronic Devices and Circuits
1.1 Objectives
The objectives of this lab are:
• to get familiar with the widely used computer simulation program LTSpice to simulate
electronic circuits
1.2 Background
4.2.2 Introduction
Many different versions of Spice are available, all having the same basic simulation code but
with different user interfaces, device libraries, plotting programs and various bells and whistles.
We are going to use LTSpice. This lab will provide an overview of the basic operations of LTSpice.
The following sections provide instructions for drawing and simulating circuits in LTSpice. You
can refer to these instructions to complete the exercises in this software based lab and in the
remaining hardware based labs requiring simulation results besides the practical ones.
1.2.2 Installation
LTSpice is a free program available from Linear Technology at
http://www.linear.com/company/software.jsp. You can easily download it to your own computer.
For other components, press F2 or the component button (the AND gate symbol) and a menu
comes up. Find your component and double-click. On the left are other sub-menus of parts you
may need, for example op amps. Note that the same voltage and current sources are used for AC,
DC or other types.
In each case, the component appears when you move the mouse. Move it to the desired location
and click. Press ctrl-r to rotate before placing. After placing, you are ready to place another of the
same type. Right-click, press a different key or button or press ESC to exit placing that component
type.
You can connect components by aligning their terminals when you place them on the drawing,
otherwise use the wire function. Press F3 or the wire button (the pencil and blue line). Click at the
first point, click at any intermediate points where you need to make 90o turns, then click at the
second terminal point. Crossed lines are not connected. If you want a junction of wires and not a
crossing, you need to click at the junction (look for the blue square that indicates a junction).
To assign values to components, move the cursor over the component until the pointing finger
appears. Right-click and type in the value. For sources, just put in the DC value if you are doing
DC analysis. For Transient analysis, click Advanced, go to the left side, click Sine (usually) and
enter the amplitude (peak value) and frequency. For AC (frequency response) analysis, go to the
Small Signal AC section and put AC, which assigns the default peak value of 1 V or 1 A to the
source, or a different value in the amplitude block.
In assigning units, you can use p for pico, n for nano, u for micro, k for kilo, m for milli and MEG
for mega. (Be careful: a common mistake is using M for mega, but it will give you milli!) You can
use either conventional American 4.7k for a 4.7k-ohm resistor or the international 4k7. You do not
have to put V for volts, Hz for hertz and so on, but there is no problem if you do.
LTSpice labels components as R1, R2, C1, C2 and so on. You can change them as you like by
right-clicking the label and typing in the new name. To label nodes, press F4 or the “label net”
button (the box with an ‘A’ in it) and type in a name. Place the dot over the wire or node and click.
There are a couple of reasons to do this:
• you can give logical names like “out” and “in” to nodes so it is easier to pick out the ones
• you want to plot from a list
• if a certain node connects to many points in the circuit, you can eliminate a lot of messy
wiring on the drawing by giving all the nodes the same name. For example, call your battery
(+) terminal V+ and then put the same V+ name on all points connecting to that bus.It has
the same effect as connecting them with wires.
If you want to add text comments, press ‘T’. Type in the text, ending each line with ctrl-m, and
place on the drawing. Under Tools / Control Panel / Drafting Options, you can select the font size.
Finally, some miscellaneous commands:
• to delete, press the scissors button on the Toolbar or F5. Move the scissors icon to the
• desired component, wire or other entity and click.
• to move a placed component: press the move key (the hand with spread fingers) or F7. Click
the component and move it to its new location, it is disconnected from any wiring.
• to copy: press the copy button (two sheets of paper) or F6 (use Move to select first.)
• to rotate ctrl-r. If the component is already selected (has not been placed), just press ctrl-r.
If it has been placed, select Move (F7), select the component, ctrl-r, and place again.
1.3 Pre-Lab
1.3.1 Assessment of Datasheet
Read the datasheet of Diode 1N4007 for effective utilization.
1.4 Equipment
• Laptop
1.5 Procedure
1. Open LTspice and start a new schematic.
2. Look at Figure 1.1 to get a basic idea of the different menu icons.
3. Start by adding a resistor, a diode, a voltage source and connect them as per the schematic
shown in Figure 1.2.
4. Place a ground to the negative side of the voltage source to provide a reference point for the
circuit operation and measurements.
5. Set the value of the resistor as 1KOhm, the value of the voltage as 5V.
6. Right click the diode and press the button Pick New Diode. Select the diode 1N4007 if
available in the list. Otherwise, go to the installed directory: LTspiceIV\lib\cmp. Double
click the file “D standard” and write the following line as it is at the bottom of the this file
and save the file.
.MODEL D1n4007 D(Is=7.02767n Rs=0.0341512 N=1.80803 Eg=1.05743 +Xti=5
Vpk=1000 IBV=5e-08 CJO=1e-11 Vj=0.7 M=0.5 FC=0.5 tt=1e-07 +Kf=0 Iave=1)
8. To analyze the circuit, press simulation button. Set the Stop Time as 1s and press OK. Place
the .tran 1s directive at the bottom of the schematic and press the simulation button again.
9. Verify the 5V source voltage and 0.7V drop across the diode by placing the voltage probes
appropriately. Remember the name of the diode voltage plot (its actually the net/wire name)
showing at the top of the simulation graph [like V(n001) or V(n002)]
10. Right click on the simulation graph and click on the Manual Limits. Change the Top, Tick,
and Bottom values to 5.25V, 250mV, and 0V, respectively. Press OK.
11. For another kind of analysis, close the Simulation graph window.
12. To draw the characteristic curve of the diode, go to the Edit Simulation Cmd option in the
Simulate menu. Select DC Sweep window and set the values as indicated in the following
figure.
13. Press OK. Then place the DC sweep directive at the bottom of the schematic. Now run the
simulation.
14. Measure the current through the diode. Notice that the current waveform is plotted against
the sweeping voltage source V1.
15. To plot the diode current against the diode voltage, move the mouse pointer to the horizontal
axis of the graph. The pointer shape would be changed to a ruler (scale). Left clicking of
mouse here will open a Horizontal Axis window. Change the Quantity Plotted value from
V1 to the diode voltage plot name [V(n001) or V(n002) whichever was noticed during the
step 9].
16. Press OK. You will get similar to the following plot of the diode characteristic curve.
17. Simulate the circuit yourself and obtain the similar plot (print and paste at your lab note
book).
18. The V1 swing settings can be changed to set the voltage including the breakdown voltage
of the diode (1000V for 1N4007), but the LTspice does not simulate the breakdown rejoin
of a diode.
1.8 Assessment
CLO CLO Attributes Bloom Performance Indicators
Does his/her part
Teamwork: Work effectively with
CLO1 A1, A2 Listens to other’s ideas
team members Does not argue
Proper wiring of the circuit
Correct use of instruments (signal generator,
GRS Skills: Utilize techniques and skills in
CLO2 C3, P3 oscilloscope)
the laboratory experiments Data recorded in table
Necessary calculation in table performed
Ethics and Safety: Adhere to the
CLO3 P2 As per rubric
instructions of laboratory safety
Written: express points clearly and Report is structured properly
CLO4 effectively through presentation C1 Figures and Graphs annotated
and/or Report. Language is clear
Formulate to solve the engineering
Relate experiment with theoretical concept discussed
problems: formulate and analyses to
CLO5 C2 in class
solve the electrical engineering Describe relevant mathematical equations
Report
problems.
Design and evaluate operational
performance: Use the fundamental Discuss discrepancies between theoretical, simulation
CLO6 principles to design the system or C4 and experimental results
task based on the given Possible sources of discrepancies and ways to improve
specifications
Experiment 2: DIODE CHARACTERISTICS
2.1 Objectives
The objectives of this lab are:
• to connect a diode in a typical circuit
2.2 Background
Diode characteristic curves graph the current flow versus applied voltage. The right side of the
graph shows the diode operating in the forward bias condition. The left portion of the graph
illustrates the reverse bias condition. Voltage and current scales on the characteristic curve vary
by region, ranging from milliamps to Pico amps or milli volts to volts. Forward voltages below the
barrier voltage will not forward bias the diode. In silicon diodes, conduction begins when the
forward voltage reaches between 0.5 and 0.7V. Germanium diodes require a forward voltage of
about 0.3V. Once forward voltage produces conduction, small increases in voltage produce large
current increases. This nearly constant voltage is called the forward voltage drop (VF). Reverse
biased diodes will have very small current flows. The current flow is due to the presence of
minority carriers and is referred to as leakage current. Breakdown voltage is the reverse voltage
that causes large current flow through reverse biased diodes. The current can be large enough to
damage the diode. In general, for calculations, the forward voltage drop of a silicon diode is 0.6V,
and 0.3V for a germanium diode. Forward resistance is the ratio of the increase in voltage drop
divided by the increase in forward current. Since forward resistance, or dynamic forward
resistance, of a diode is very small, a resistor is included in the circuit to prevent damage to the
diode. The highest current value that can pass through the diode without causing damage is referred
to as maximum forward current (IF(max)). Ohmmeters cannot accurately measure the resistance
of a diode junction therefore; diode junctions are tested by checking for continuity only. A forward
biased junction will register a very low resistance indicating continuity. A reverse biased junction,
or damaged diode, will indicate a very high resistance or an overload, indicating a lack of
continuity. Included in this exercise are instructions for testing diodes with the following meters.
2.3 Pre-Lab
2.3.1 Reading of lecture notes about diode characteristics
Read the lecture notes on diode characteristics.
2.4 Equipment
• 2 Diodes 1N4007
• 2 resistors of 1KΩ
• Multimeter
• Oscilloscope
2.5 Procedure
Connect the circuit as shown in Figure 2.1.
2. Your meter reading indicates that the diode is forward bias or Reverse Bias.
3. Reverse the meter probes than your meter reading indicates that diode is Conducting.
Connect the circuit as shown in Figure 2.2 below and adjust VA to negative 10.00 VDC.
Connect the circuit as shown in figure below and adjust VA to positive 10 Vdc.
4. Measure the voltage across R1: VR1 = _________________
5. Measure the voltage across R2: VR2 = _________________
6. Current flow Through D1 or D2? Explain Why?
7. Using Ohm’s law, find the current through R2: IR2= _________________
2.7 Results
Table 2.1: Current profile of the diode against different voltages.
VA (Volts) VR2 ID2 VD2 ID2 = VR2 / R2 VD = VA – VR2
-20
-15
-10
- 5
0
0.25
0.5
0.6
0.7
0.8
0.9
1
1.1
1.2
1.3
1.4
1.5
2
5
7.5
10
Sketch a graph between VD and ID2.
Now verify measured results by completing the last columns of the above table
computationally.
Plot the computed values of the VD and ID2 on the same graph.
2.8 Assessment
CLO CLO Attributes Bloom Performance Indicators
Does his/her part
Teamwork: Work effectively with
CLO1 A1, A2 Listens to other’s ideas
team members Does not argue
Proper wiring of the circuit
Correct use of instruments (signal generator,
GRS Skills: Utilize techniques and skills in
CLO2 C3, P3 oscilloscope)
the laboratory experiments Data recorded in table
Necessary calculation in table performed
Ethics and Safety: Adhere to the
CLO3 P2 As per rubric
instructions of laboratory safety
Written: express points clearly and Report is structured properly
CLO4 effectively through presentation C1 Figures and Graphs annotated
and/or Report. Language is clear
Formulate to solve the engineering
Relate experiment with theoretical concept discussed
problems: formulate and analyses to
CLO5 C2 in class
solve the electrical engineering Describe relevant mathematical equations
Report
problems.
Design and evaluate operational
performance: Use the fundamental Discuss discrepancies between theoretical, simulation
CLO6 principles to design the system or C4 and experimental results
task based on the given Possible sources of discrepancies and ways to improve
specifications