EEDesignLabManual v0.9 PDF
EEDesignLabManual v0.9 PDF
IIT-Jammu
The Experiments for the Electrical and Electronics Design Laboratory Practicals were
designed, fabricated and tested in the department of Electrical Engineering by the fol-
lowing team.
Instructor Contact Department
Arun Verma [email protected] Electrical Engineering
Ajay Singh [email protected] Electrical Engineering
Suresh Devasahayam [email protected] Electrical Engineering
3
Contents 4
6.2 Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.2.1 Material Required . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.2.2 Experimental Circuits . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.2.3 Experiments to Perform . . . . . . . . . . . . . . . . . . . . . . . . 49
6.3 Preliminary Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.4 Final Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
• Please leave your lab table clean and tidy when you finish. Put away all instruments
and components in the correct places.
• Students should read the lab handout for the week before entering the lab.
• All labs have a preliminary report which must be completed before coming for the
lab practical. If you have not completed the preliminary report you will not be
allowed to do the lab.
• After the lab practical is completed the student must complete the final report
which must be submitted by the next week - before the next lab.
7
Introduction to the Electrical and Electronics Design Lab 8
0.3.2 Oscilloscope
The oscilloscope is an important test instrument that can be used to display, and also
store, time-dependent voltage signals. You should become familiar with the oscilloscope
controls. When using the oscilloscope for accurate measurement we will regard it as the
combination of an ideal voltage measuring instrument and an input impedance across it.
Here is a short list of the main functions of the oscilloscope:
3. The trigger or initiation of the horizontal sweep – there are many accessory controls
for the trigger
a) Auto Trigger Mode is what you will use a lot. In this mode, the horizontal
sweep re-starts automatically, giving a repeated sweep of time from left-to-
right
b) Single Sweep Mode or single-sweep-capture is very important to capture tran-
sient signals. Using this requires good understanding of the trigger functions
c) Roll Mode is not found in many oscilloscopes. This is convenient for looking
at fairly slow and long-duration phenomena
4. A very big advantage of digital oscilloscope are the data storing and transfer func-
tions; they allow storage of signals in digital form, and then transfer to a computer
for analysis and plotting.
In digital oscilloscopes the sampling rate can be inferred from the samples/screen and
sweep time.
Understand how to make amplitude and time measurements using cursors on the os-
cilloscope.
The signals stored in the oscilloscope can be copied to a USB-pendrive and transferred
to a computer.
Understand the concept of ground in all measurements, and the idea of isolated chan-
nels in the oscilloscopes in our laboratory.
The oscilloscopes in the lab are Tektronix, model number TBS1000 series. The wave-
forms on the screen can be saved and transferred to a USB drive for further analysis.
is less than the current limit. Poor quality power supplies will deviate substantially from
this ideal.
The power supplies in the lab have both adjustable voltage and controllable current
limit.
Connect an adjustable resistance (or use several fixed resistors) and understand how
voltage adjustment works with different current settings. Can you set the power supply
to deliver a constant current regardless of the load? What are the conditions?
0.4.1 Resistors
Resistors are purely conductive elements and range in values from a fraction of an Ohm to
millions of Ohms (M Ω). Resistors are rated for the power that they can safely dissipate,
usually 0.1W, 0.25W, 0.5W, 1W, 5W, 10W, etc. Resistors will sometimes have the value
written on the body or they may be colour coded with 2 or 3 digits of precision followed
by the value of the exponent. For example, 7200 Ohms will be coded as 7-2-2 to indicate
72x102 Ω . The colour coding is as follows: Black=0, Brown=1, Red=2, Orange=3,
Yellow=4, Green=5, Blue=6, Violet=7, Grey=8, White=9. After the colours will be
the tolerance band of 5%=Gold, 10%=Silver. The colours should be read left to right
keeping the tolerance band on the right side.
Specification: Resistors are specified by the resistance value, the tolerance, and the
power that they can safely dissipate. When designing make sure that you take into
account the tolerance as the value of any resistor will be somewhere in the range R ± ∆R
where ∆R is the tolerance. Also, ensure that the maximum power that the resistor will
handle in the circuit is well within the amount specified for the component you are using.
0.4.2 Capacitors
Capacitors are constructed with different dielectric material like clay, ceramic, tantalum,
mica, etc. Capacitors are rated for the voltage they can safely withstand usually, 6.3V,
15V, 25V, 63V, 100V, 450V, etc. Usually, capacitors have their values written on the
body as 2 or 3 digits of precision followed by the value of the exponent and the unit is
picoFarad, pF or 10−12 Farad. The equivalent series resistance (ESR) of a capacitor is
an important parameter, and it should be as small as possible.
0.4.3 Inductors
Inductors come in many forms. Inductors used in power circuit have to carry large
currents and should have small resistance. Such power inductors are quite large compared
to other components. Inductors for other applications can be small and in bead form,
and these have fairly large resistance - they should not be used for power circuits. Power
inductors are often handmade by users, and readymade ones are also available.
0.4.4 Potentiometers
Potentiometers are variable or adjustable resistors. They are similar to rheostats but of
smaller size. There are 3 terminals, the centre terminal is the slider. The resistance,
R, between the end terminals is the fixed value of the potentiometer, and the resistance
between the slider (centre) and the end terminals is xR and (1 − x)R respectively, where
0 ≤ x ≤ 1 is the fractional position of the slider. Potentiometers can be either linear
with the slider moving in a straight line, or they can be rotary with the slider rotating
in a circle.
Specifications: Potentiometers are specified by the resistance across the end termi-
nals, and also by the maximum power they can dissipate. In general, stay well below the
maximum power that the potentiometer can dissipate.
0.4.5 Diodes
Diodes are single P-N junction semiconductor devices. They are used for rectification and
sometimes for voltage regulation. Rectifier diodes are specified by the voltage range of
operation, which is the reverse breakdown voltage - this voltage should not be exceeded.
Zener diodes are a designed to specially work in the breakdown region.
Specifications: Diodes are specified by the maximum reverse voltage that they can
withstand before catastrophically breaking down. . Diodes are also specified by the
maximum current they can carry safely.
0.4.6 Transistors
Transistors come in many varieties, the main types being bipolar junction transistors
(BJTs) and field-effect transistors (FETs) - a subset of FETs are metal-oxide semicon-
ductor field-effect transistors (MOSFETs). All these transistors have 3 terminals. For
more details refer to your classes on transistors.
specifications: Transistors are specified by the maximum voltage that can be applied
across the collector-emitter, or the drain-source. Transistor specification will also include
the maximum power they can dissipate - corollaries of this power specification are the
maximum current that can flow continuously and the maximum current that can flow
during pulsatile operation.
0.4.8 Breadboards
Breadboards (Fig.0.4.1)are used for making temporary circuits. They contain a matrix of
holes with conductive contacts that are interconnected in either the rows or the columns.
ICs, resistors, capacitors, wires, etc., can be placed in the holes to hold the components
and to connect to other components.
0.4.9 Soldering
Soldering is the process of using molten metal to connect metallic connections on com-
ponents. The solder metal is melted and poured over the metallic contact - an alloy of
the solder and the metallic contact is formed when the solder is allowed to cool. This
ensures a very good electrical contact by preventing dust, oxide formation, etc., on the
contact surfaces. The solder also gives a good mechanical adhesion between two contacts
that are connected by the solder. The solder material is one of two broad types:
(a) lead-based solder: This was the most widely used solder material before the 21st
century. The solder material is an alloy of tin and lead (Sn-Pb) which melts at around
180 Celsius.
(b) lead-free solder: With the discovery that lead is a neurotoxin, lead is being removed
from most places where it can be ingested by humans and animals. High quantities of lead
in the human body adversely affects health, although small quantities do not produce
noticeable effects.
2. Why are resistors rated for power and capacitors are rated for voltage?
3. If the power supply voltage is set to 30 volts, and the current limit set to 10mA,
then what will be voltage across a resistor that varies from 0 Ohms to 220 Ohms?
What is the current?
F = BIl
The motion of the coil is angular displacement, so the torque can be calculated as the
product of the force, F , by the radius, r, of the cylindrical coil. If the spring has a spring
constant of k, then the anglular deflection of the needle is:
Fr Blr
θ= = I = K1 I
k k
The measured deflection of the coil is proportional to the current through the gal-
vanometer, with proportionality constant K1 called the galvanometer constant.
Since the coil is made of wire with finite resistance, the coil has a resistance R which
depends on the thickness and length of wire as well as the resistivity of the material of
the wire. The moving coil galvanometer is effectively a pure current measuring device
with a resistance in parallel representing the resistance of the coil to the flow of current.
This resistance results in a voltage drop across the galvanometer.
17
Lab 1: Measuring DC Voltages and Current 18
In this lab we will use a moving coil galvanometer to construct voltmeters and amme-
ters.
Voltmeter: An ideal voltmeter measures the potential difference between two points,
and does not draw any current. A practical voltmeter may be represented by an ideal
voltmeter with its input resistance in parallel - the current through this resistance is the
current drawn by the practical voltmeter.
Ammeter: An ideal ammeter measures the current through it and does not cause any
voltage drop across it. A practical ammeter may be represented by an ideal ammeter
with a series internal resistance which is responsible for the voltage drop in practice.
1.2 Aims
Given a moving coil galvanometer with internal resistance of 2.4 kΩ and full scale deflec-
tion of 50 µA construct the following:
1. (a) DC ammeter with range 0-10 mA, (b) DC ammeter with range 0-1 A.
2. (a) DC voltmeter with range 0-1V, (b) DC voltmeter with range, 0-100V.
1.3 Experiments
1.3.1 Material Required
1. Moving coil galvanometer
2. Power Supply
3. Breadboard, Resistor, wires
1.3.3 DC Ammeter
Since the galvanometer deflection is proportional to the current through the coil, it is
by default an ammeter. In order to increase the range of the ammeter, use a shunt
resistor so that of the total current, I, a fraction pI goes through the galvanometer and
(1 − p)I goes through the shunt resistance. If the internal resistance or self-resistance of
the galvanometer is Rx , then a shunt resistance Rm gives p = (RmR+R m
x)
. Therefore, the
current through the galvanometer is, Io = pI and the actual current is I = Io /p.
Given that the lab galvanometer has a range of 0-0.05mA and internal resistance of
2.4 kΩ design the required ammeters.
1.3.4 DC voltmeter
If the galvanometer’s internal resistance or self-resistance is Ro , then we can connect a
resistor, R1 in series with the galvanometer such that R1 >> Ro , and the current through
Figure 1.3.1: Extending the current range of a galvanometer using a parallel resistance
Connect the voltmeter to the power supply and vary the supply voltage.
(a) For the voltmeter with a range of 1V, vary the voltage from 0 to 1V
(b) For the voltmeter with a range of 100V, vary the voltage from 0 to 30V
In each case tabulate the voltage of the power supply and the reading on the voltmeter.
Take 5 readings in each case.
Figure 1.3.3: Representation of (a) a voltmeter as an ideal voltmeter and parallel resis-
tance and (b) an ammeter as an ideal ammeter and a series resistance.
Fig.1.3.4 shows a general circuit containing a single electrical source and a single load.
The current in the circuit and the voltage across the load have to be measured.
Fig. shows the ammeter inserted in the current path and the voltmeter placed across
the load.
Take measurements and tabulate them as shown below for each case given above.
2.1 Introduction
In the last lab we saw the measurement of DC voltages and current. Such DC measure-
ments are sufficient for electric circuits that contain only resistive (R) elements. When
reactive elements like capacitors (C) and inductors (L) are present AC analysis must be
used. In this lab we will see some AC measurements of circuits with R, L, C.
The relation between voltage and current in inductors and resistors involve integration
and differentiation. Alternating current for power generation, transformer based power
conversion, driving of single phase and polyphase motors use sinusoidally varying values.
The frequency of the sinusoidal signal in all electric power on the grid in India and most
countries in the world is 50Hz. When inductive and capacitive elements are present in
the circuit, the alternating current undergoes “phase shift” which is seen as a lead or lag
in the signal with respect to the reference input signal. We will measure the phase shift
introduced by combinations of inductors, capacitors and resistors.
Capacitors and inductors can both be used to store electrical energy. In combination
with the fact that capacitors and inductors have different phase shifts, the energy stored
by a capacitor and inductor can be exchanged repeatedly between them - this is the
phenomenon of electrical resonance. The presence of a resistor in the circuit will dissipate
the energy and result in dampening of the oscillation. All these characteristics will be
studied in this lab.
2.2 Experiments
2.2.1 Material Required
1. Oscilloscope
2. Function Generator
6. Breadboard, wires
23
Lab 2: Measuring Time Varying and Transient Voltages and Current 24
To observe phase shift by a capacitor and inductor, construct the circuit shown in
Fig.2.2.1. The function generator indicated as Vo (t) is used to generate a sinusoidal
signal of frequency of 10kHz with an amplitude of 5V. Use a capacitor of value C = 2µF .
The inductor will be constructed as described in the following subsection. The resistors
R1 , R2 are used to measure the current through the capacitor and inductor. Use 10Ω
resistors for R1 , R2 ; although smaller resistors will be better, the measurement is easier
with a larger resistance value. Using the oscilloscope to measure the voltage drop across
each resistor we can calculate the current as I1 ∠θ = V1 ∠θ/R1 and I2 ∠θ = V2 ∠θ/R2 .
Note that the voltages and currents are sinusoidal and therefore functions of time - the
phase angles are measured with respect to the excitation or input signal, Vo , which is
taken as the reference having phase zero, i.e., Vo ∠0o .
Since the laboratory oscilloscopes have only 2 channels, you can observe Vo , V1 and then
Vo , V2 . Measure the amplitude of the voltage and calculate the current, for frequency
values of 5kHz, 10kHz and 20kHz.
Parallel Resonance
Constructing an inductor
Use an inductor constructed using a 20mm diameter iron ring and insulated copper wire
of gauge 20AWG. The inductance of each winding of wire is the ratio of the flux, φB ,
to the current I. For a coil of N turns wound on a ring with inner diameter,ri , outer
diameter,ro , and height h, the inductance is:
N 2 µh
N φB ro
L= = ln
I 2π ri
In this lab we will use a ferrite core as shown in Fig.2.2.6 with ro = 14 mm, ri =
6mm, h = 12mm. The relative permeability of iron is µr ≈ 100 and permeability of free
space µo = 4π × 10−7 Henry/m. Use insulated copper wire of gauge 20SWG to wind
about 25 turns on the iron core as shown on the right side of Fig.2.2.6.
Use a ceramic capacitor of value, 2µF and resistors of 10 Ω.
3.1 Introduction
Semiconductor diodes are used widely for rectifying alternating voltages. AC voltages
that are commonly used for power generation and transmission have to be converted into
DC voltages for a lot of applications like electronic circuits, DC motors, etc. Semicon-
ductor diodes are used widely for such AC-DC conversion in low-voltage supplies and
battery chargers that are used in laptops, mobile phones, etc.
In this lab we will study the PN-junction diode as a rectifier and also study its switching
speed characteristics.
3.2 Experiments
3.2.1 Material Required
1. Oscilloscope
2. Function Generator
3. Power Supply
29
Lab 3: Semiconductor Diodes and Diode Circuits 30
By using a small value of Rm we can keep Vm very small, and VD (t) ≈ VP (t). Use
Rm = 1 Ω.
The observed V_D and I_D will look as shown in Fig.3.2.3. Note that when the diode
is forward biased (i.e., the P-side is positive with respect to the N-side), the voltage across
the diode is small and the current is large; when the diode is reverse biased (i.e., the P-side
is negative with respect to the N-side), the current through the diode is small. Measure
the value of voltage and the corresponding value of the current at a few points as shown
in Fig.3.2.3. Plot these points of voltage versus the corresponding current. This is the
voltage-current or V-I characteristic of the diode.
Figure 3.2.4: Diode rectifier with capacitor filter and Zener regulator
V2 (t).
Measure the parameters shown in Fig.3.2.6, initial switching delay = td , rise time = tr ,
fall time =tf , and recovery time= trecovery . What happens to these values if you decrease
the load by using a larger value RL = 100kΩ ?
Voutput = G · Vinput
where G is the gain of the amplifier and in general G > 1.
As we saw in the last lab, a PN junction as in the case of the Base-Emitter is a
unidirectional device that allows current flow when it is forward biased and blocks current
flow when it is reverse biased. This issue is addressed by biasing the Base-Emitter input
so that the input is always positive (and above the forward corner voltage). When a
positive base current flows, in the Base-Emitter circuit, a corresponding current flows in
the Collector-Emitter circuit. The current in the Collector-Emitter circuit is converted
to an output voltage using a resistor as shown in Fig.4.2.1.
There are several features of amplifiers that are important for different applications, for
example, the frequency response is important for analog amplification of audio, video and
radio signals, the switching speed is important for pulsed circuits, the power dissipation
is important for motor control and power supplies, etc.
In this lab we will study only analog amplification and the biasing of transistors for
that purpose.
4.2 Experiments
4.2.1 Material Required
1. Oscilloscope
2. Function Generator
3. Power Supply
35
Lab 4: Bipolar Junction Transistor - Amplifier 36
V1 (t) − VBE
Ib (t) =
Rb
where VBE is the base-emitter voltage drop and in forward bias is determined by the
VI characteristics of the PN junction - at low currents it will be approximately 0.65V for
silicon transistors.
The collector-emitter circuit has a power supply of a fixed voltage Vcc = 20V and a
resistor Rc . The collector current Ic = αIb . The output voltage is:
V2:p-p (t)
G=
V1:p-p (t)
Also, measure Vb (t) to see how the base voltage is in the range of positive bias of the
base-emitter junction.
In Fig.4.2.2 the CE amplifier is shown with V1 (t) = A1 sin(ωt) and a separate bias
voltage Voffset = Ao . This separate offset voltage allows us to use an input voltage V1 (t)
that goes both positive and negative. This circuit is only to illustrate transistor biasing
- this circuit need not be tested in this lab.
Experiment #2
The concept of Fig.4.2.1 and Fig.4.2.2 can now be used to provide an offset or bias voltage
to the base of the transistor derived from the collector supply itself. In the circuit of
Fig.4.2.3 two resistors, Ra1 and Ra2 are connected to the collector supply voltage Vcc
to divide the voltage and obtain the “open-circuit” offset: Voffset = Ra1V+R cc
a2
Ra1 . This
is termed the open-circuit offset because this calculation is true only if no other circuit
elements are connected; in the presence of other circuit elements which provide additional
current paths (the transistor base, the resistance Rb ) the the actual offset will be different.
For any arbitrary transistor, the value of Voffset can be adjusted experimentally by either
adjusting the value of Ra1 and Ra2 or by adjusting the value of Vcc .
Use:
5.1 Introduction
In this lab we will learn several concepts as described below.
F (t) = BI(t)l
where B is the magnetic flux density, I is the current through the coil, and l is the
length of wire in the coil. The magnetic flux density and the wire length are fixed, while
the force and current can be time-varying.
41
Lab 5: DC Motors, PWM control, MOSFETs 42
Using this fact, the average current to the motor can be controlled by rapidly switching
the current ON-and-OFF.
5.2 Experiments
5.2.1 Material Required
1. Power Supply
2. DC motor
3. n-channel MOSFET (IRF540)
4. Disc attached to motor shaft
5. Slotted opto-isolator (MOC7811)
6. Breadboard, Resistor, wires
6.1 Introduction
An Integrated Circuit (IC) chip consists of many (often hundreds) of transistors, resistors
and capacitors forming a circuit. Such ICs are designed to be general purpose and by
using some additional components specific circuits can be constructed.
In lab#4, we studied a single transistor amplifier, and saw that an important aspect of
the amplifier was the necessity to keep the input such that the PN junction was correctly
biased. In IC amplifiers, all the transistors are provided with the necessary bias using
much more sophisticated circuitry than was used in lab#4. In this lab we will study a
general purpose amplifier IC, the Operational Amplifier or OpAmp. The OpAmp is very
close to an ideal general purpose amplifier and has the following properties:
1. Very high input impedance - negligible current flows into the input.
2. Very low output impedance - a large current can by delivered by the ouput.
3. Very high gain - since the purpose is amplification, the OpAmp has an extremely
high gain.
4. A pair of differential inputs - both a positive input (non-inverting input) and
negative input (inverting input) are available in an OpAmp.
5. Ability to handle both positive and negative voltages.
The LM741 or µA741 is one of the oldest and most widely used OpAmp. It is an 8-pin
IC. The pin connections are shown in Fig.6.1.1. The schematic of the OpAmp is drawn
inside the IC, and 8 pins are shown. The pins are labelled - the main functional pins
of the OpAmp are (i) the Inverting Input, (ii) the non-inverting input, (iii) the output.
The power supply pins are shown as +V and -V. These voltages are with respect to the
ground point. The ground is not explicitly connected to the IC, but may be connected
as part of a circuit. The offset pins (pin 1 and 5) may be ignored for the circuits used in
this lab.
Another commonly used OpAmp is the LM358 which contains 2 OpAmps in a single
8-pin IC. The pin connection of the LM358 is shown in Fig.6.1.2. In this lab you will use
only one of the two OpAmps - you can use either one.
45
Lab 6: Operational Amplifiers - Linear Circuits 46
6.2 Experiments
6.2.1 Material Required
1. Oscilloscope
2. Function Generator
3. Power Supply
A.Non-inverting Amplifier
Fig.6.2.1 shows a non-inverting amplifier circuit built with an OpAmp. The input-output
relation is:
Rf
Vo (t) = 1+ V1 (t)
R1
From this equation we see that the minimum gain of this circuit is 1. The maximum
gain can be almost indefinitely large, but is limited by the characteristics of the OpAmp
- in practice the maximum gain is about 10,000 to 100,000.
B. Inverting Amplifier
Fig.6.2.2 shows an inverting amplifier built with an OpAmp. The input-output relation
of this circuit is:
Rf
Vo (t) = − V1 (t)
R1
From this equation we see that the gain can range from 0 to the maximum value. The
maximum value is again limited by OpAmp characteristics and in practice it is above
10,000. We also note that there is a negative sign which means that the output is inverted
compared to the input.
C. Summing Amplifier
Fig.6.2.3 shows a circuit which can add two voltage signals. The input-output relation
is:
Rf
Vo (t) = − (V1 (t) + V2 (t))
R1
Use a sine wave of frequency 1kHz for V1 (t) and a pulse of frequency 2kHz for V2 (t).
D. Differential Amplifier
Fig.6.2.4 shows a circuit which takes the difference between two voltage signals. The
input-output relation is :
R4 R1 + R2 R2
Vo = V1 · − V2
R1 R3 + R4 R1
51
Lab 7: Frequency Filtering: Passive and Active Filters 52
Vo (ω) 1
=p (7.1.1)
V1 (ω) 1 + ω/ωc
Here ωc = 1
R 1 C1 is the cutoff frequency.
Vo (ω) (1 + Rb /Ra )
=p (7.1.2)
V1 (ω) 1 + (ω/ωc )2
As before ωc = 1
R 1 C1 is the cutoff frequency. Note the gain in the numerator.
Vo (ω) 2
=p (7.1.3)
V1 (ω) 1 + (ω/ωc )2 + (ω/ωc )4
As before ωc = 1
R 1 C1 = 1
R 2 C2 is the cutoff frequency.
7.2 Experiments
7.2.1 Material Required
1. Oscilloscope
2. Function Generator
3. Power Supply
4. OpAmps: LM358/324
5. Resistors, Capacitors
6. Breadboard, wires
2. There are radio waves of many different frequencies used for various types of com-
munications. How are filters used to select the required frequency for a particular
device?
8.1 Introduction
Designing electronic circuits is helped by the use of circuit simulators. The most common
and best know is a class of simulators called SPICE - an abbreviation for Simulation
Program with Integrated Circuit Emphasis. SPICE simulation uses well-known circuit
models for BJTs, FETs, as well as ICs for analog circuits including digital elements.
Each component (resistor, capacitor, inductor, transistor, IC, power supply, etc.) is
defined in terms of it connections or nodes. The netlist in a SPICE simulation is list
containing the componenets, their nodes, and the connection between nodes. The netlist
is processed by the computational back-end of the SPICE simulator which solves the
associated differential equations and generates an output file.
Many modern SPICE simulations use a graphical user-interface with graphs of sig-
nal waveforms and frequency plots. In this lab we will use the SPICE simulation freely
distributed by Linear Technology, Inc., called LTspice, which is available for download at:
https://www.analog.com/en/design-center/design-tools-and-calculators/ltspice-simulator.
html
LTspice is easy to use and available for MS-Windows and MacOS; the Windows version
runs very well in Linux using WINE. Therefore, you should be able to run LTspice on
any of the 3 main Laptop & Desktop Operating Systems. LTspice has a large number of
built-in electronic components. You can also specify your own SPICE model and use it
in LTspice.
In this lab we will learn how to simulate a simple OpAmp circuit, and then build the
circuit in the lab and compare the simulated results with the experimental ones.
55
Lab 8: SPICE simulation and relaxation oscillator design 56
k
f=
2RC
where k is a constant approximately equal to unity.
8.2 Experiments
8.2.1 Material Required
1. Computer with LTspice
2. Oscilloscope
3. Power Supply
4. OpAmp: LM741/LM358
Physical realization
Construct the circuit in the lab with the values as above and meaure the frequency on the
lab. Compare the waveforms of the output and at the R-C junction with the simulated
waveforms.
9.1.2 Arduino
Arduino is a microcomputer/ microcontroller development board which contains Analog-
to-digital converters. We will use an Arduino to study ADC and DAC characteristics.
The Arduino has a program loaded to read the continuous time voltage on Analog Input
pin-0, labelled A0, and the ADC will convert the value to an 8-bit number; the 8 bits of
the number are output on the pins labelled Bit-0, Bit-1, Bit-2,....Bit-7.
61
Lab 9: Digitization - Analog-to-Digital converters and Digital-to-Analog converters 62
9.2 Experiments
9.2.1 Arduino ADC
Connect the Arduino as shown in Fig.9.2.1. The Arduino can be connected on a bread-
board with 8 LEDs connected to the digital output pins. A resistor must be connected
between each LED and the Arduino pin to allow the voltage drop required by the LED.
The Arduino is powered from a USB port which supplies 5V. The USB port of any
instrument in the lab can be used for this.
Material Required
1. Function Generator
2. Power Supply
3. Arduino Nano
Experiments to Perform
Connect the adjustable 5V supply (channel-3 of the lab power supply) and when the
value of this voltage is varied, the corresponding binary value is shown on the LEDs.
The entire has 256 values. Get 16 values and using it, draw the ADC’s input-output
relation.
2. What are the different types of ADCs that are available? What type is used in the
Arduino?
3.
10.2 Experiments
Connect the circuit as shown in Fig.10.1.2 and use a single Li-Ion cell as the power supply,
Vbatt .
2. Function Generator
65
Lab 10: Switched Mode Power Supply 66
11.2 Experiments
11.2.1 Material Required
1. Desktop PC or Laptop with KiCAD, pSPICE
3. Power Supply
69