Академический Документы
Профессиональный Документы
Культура Документы
------------------------------------------------------------------------------------------------------------------------------------------------
VISION: To create an Excellent Educational Environment for the students, for the development of
professional skills and fasten a strong sense of ethical commitment to the society.
MISSION: The mission of Focus Foundation is to enhance the knowledge of students through Quality
Education and make them competent in their field of study such as Science and Technology, Architecture,
Management and other areas. Focus Foundation is dedicated to provide quality and well-disciplined
education that combines rigorous academic study and the excitement of discovery with the support and
intellectual stimulation of a diverse campus community.
Page1
Sub Name
Department of
Students
: ECE
Semester: III
Page2
List Of Experiments
PSPICE EXPERIMENTS
Expt. No.
1
2
3
Experiment
Introduction To EDA Tools
Introduction To Pspice
PAGE
5
6
12
20
RC Integrator
23
RC Differentiator
26
29
RC Coupled Amplifier
32
17
MATLAB EXPERIMENTS
Expt. No.
1
2
Experiment
Introduction To Matlab
PAGE
35
49
Diode/Transistor Characteristics
58
62
53
Page3
The software tools that engineers used for the rapid design and verification of complex
Electronic Systems is termed as EDA.
Electronics and Communication Dept ,FIST Poomala
Page4
EDA consists of collection of methodologies, algorithms and tools, which assist the
automatic design, verification and testing of Electronic systems.
It embodies a general
description to low level detailed physical implementation for designs ranging from
integrated circuits (including system- on chips )to printed circuited boards (PCBs)and
Electronic System
OBJECTIVES
The primary objective of these experiments is to teach /familiarize the students how to
design and simulate the analog and digital electronics circuit, signals and systems using the
software which are available and used for the modem design methodologies. It also covers very
relevant software tools that an Electronics engineer must know.
1. Solving/plotting mathematical equations using MATLAB
2. Simulation of circuits using PSPICE
3. Implementing Simple digital circuits using VHDL.
Page5
Page6
PSpice computers
Steady state voltages, currents and digital states
sweeping a source , a model parameter,
over a range of values.
Bias point data in addition to what is automatically
computed in any simulation.
Sensitivity of a net or part voltage as a function of
bias point
Small signal DC gain, input & output resistance as a
function of bias point.
Table 2.1 DC Analysis Types
Page7
PSpice computers
Small signal response of the circuit when sweeping one or more sources
over a range of frequencies. Outputs include voltages and currents with
magnitude and phase.
For each frequency specified in the AC analysis:
Propagated noise contribution from an output net from every noise
generator in the circuit.
Note
To run a noise analysis, you must also run an AC sweep analysis.
2.5 Simulation steps
Before the simulation of a circuit, one has to specify the circuit configuration. This can be done
in a variety of ways. One way is to enter the circuit description as a text file in terms of the
elements, connections, the models of the elements and the type of analysis. This file is called the
SPICE input file or source file. An alternative way is use a schematic entry program such as
OrCAD CAPTURE. Capture is a user friendly program that allows you to capture the schematic
of the circuits and to specify the type of simulation. The following summarizes the different steps
involved in simulating a circuit with OrCAD Capture CIS.
Electronics and Communication Dept ,FIST Poomala
Page8
From the File menu, select the Project manager and point to the New and choose Project.
Select the Analog or Mixed Signal Circuit Wizard from the project window.
Use the browse button to select the location for the project files. This will help you to
arrange your project systematically. Click OK
Page9
Page10
The pointer changes to a cross hair .Click the connection point (the very end of the pin on
the parts and drag)
Click OK and place the net alias on any segment of the wire.
The lower left corner of the net alias must touch the wire.
In the value text box, type new value and Click OK.
Assign names to the parts and changes the values of the parts.
Double click the name of the parts to display the Display Properties dialogue box.
In the Name text box, type the new name and Click OK.
Double click the value label of a part to display the Display Properties dialogue box.
In the value text box, type new value and Click OK.
Page11
The Simulation setting dialogue box appears, Under analysis type, select Time
Domain(Transient)
Enter the necessary parameter values like staring time, ending time and maximum step
size.
The Simulation settings dialogue box appears. Under analysis type, select DC Sweep.
For the primary sweep option, enter the necessary parameter values and select the
appropriate check boxes to complete the analysis specifications.
Page12
From the inherit from the list, select none, and then click create.
The Simulation settings dialog box appears. Under analysis type , select Bias point.
AC sweep analysis
AC sweep is a frequency response analysis. PSpice calculate the small signal response of the
circuit to a combination of inputs by transforming it around the bias point and treating it as a
linear circuit.
In capture select simulation profile or Edit Simulation setting from the PSpice menu. If
this is a new simulation, enter the name of the profile and click OK.
The Simulation settings dialogue box appears. Under Analysis type, select AC
sweep/Noise analysis. Click OK to save the simulation profile.
Select RUN under the PSpice to start the simulation. Under Options, select General
settings if it is not already enabled.
In the Start Frequency and End Frequency text boxes, enter the starting and ending
frequencies, respectively, for the sweep. Click OK to save the simulation profile and run.
Page13
THEORY:PN junction diode has the unique ability to permit current flow only in one direction. The
lead connected to the P-region is called anode and that connected to the N-region is called
cathode. The P-type and N-type semiconductors are electrically neutral if considered separately.
During junction formation, majority carriers try to diffuse through the junction. This happens due
to the concentration gradient of holes and electrons existing inside the diode. Because of the
diffusion of majority carriers from P-region from N-region and vice versa, neutrality ends and a
potential barrier is setup at the junction. This barrier potential is 0.6v for silicon and 0.3v for
germanium approximately. The region thus created is devoid of majority carriers .It has a depth of
about 1m and is called depletion region or transition region.
FORWARD BIAS:If the anode of the diode is connected to the positive terminal of a power supply and
cathode to the negative terminal, the setup is called forward biasing. The diode will not conduct
until the supply voltage exceeds its potential barrier. Once the biasing voltage overcomes the
barrier potential, high forward current in the order of mA flows through the diode due to the
movement of holes and electrons across the junction. The applied voltage at which current starts
flowing in forward biased diode is called knee voltage or cut in voltage.
Page14
CIRCUIT DIAGRAM
PROCEDURE:Starting a project:
Click START
Click in ALL PROGRAMS or
PROGRAMS
Select OrCAD Family Release 16.6
edition
Click on FILE > NEW > PROJECT
Write a suitable NAME: EC Lab (for eg:)
Select a suitable location
ADDING COMPONENTS:
Click Place > Select Part > Type D 1N4002 > Place the component.
Click Place > Select Part > Type VDC > Place it.
Click Place > Select Part > Type R >Place the component.
Click place> select Ground > select GND/ CAPSYM.
Double click on ground symbol.
Arrange components, necessary movements and rotations.
Click on place > Select wire; connect components.
SIMULATION:
Page15
Page16
RESULT:
Diode characteristics were plotted.
THEORY:Clipping refers to removing a portion of the input signal that lies above or below a
reference level. Clipping or limiting is a linear wave shaping process by which we can extract
Electronics and Communication Dept ,FIST Poomala
Page17
CIRCUIT DIAGRAM
ROCEDURE:
STARTING A PROJECT:
Click start
Click in all programs or programs
Select OrCAD Family Release 16.6 Edition
Select Capture Lite Edition
Click on File > New > project
Write a suitable name
Select a suitable location
Select Analog or Mixed A/D
Click OK
Choose create a blank project
Page18
ADDING COMPONENTS:
Click place > Select Part > Type D1N4002 > Place the component.
Click place > Select part > Type R > place the component.
Click place > Select part > Type Vsin > place it.
Click place > Select Ground > Select GND/CAPSYM
Double click on ground symbol
Change the name GND to 0
Add probes
Arrange components, necessary movements and rotations.
Click on place > Select wire, connect components.
SIMULATION:
Page19
RESULT:
Positive clipper was studied and its output waveform was obtained.
Page20
PROCEDURE:
STARTING A PROJECT:
Click Start
Click in ALL PROGRAMS or PROGRAMS
Select OrCAD Family Release 16.6 Edition
Select Capture Lite Edition
Click on FILE > NEW > PROJECT
Write a suitable Name
Select a suitable Location
Select Analog or Mixed A/D
Electronics and Communication Dept ,FIST Poomala
Page21
ADDING COMPONENTS:
Click place > Select part > Type D1N4002 > place the component.
Click place > Select part > Type C > place the component (change the value as 1Mf).
Click place > Select part > Type Vsin > place it.
Click on Vsin and change frequency = 1000Hz,
Amplitude =10V,
Voff =0.
SIMULATION:
Page22
RESULT:
0
6 RC INTEGRATOR
Electronics and Communication Dept ,FIST Poomala
Page23
CIRCUIT DIAGRAM
PROCEDURE:
STARTING A PROJECT:
Electronics and Communication Dept ,FIST Poomala
Page24
Click start
Click in all programs or programs
Select Cadence
Select Release 16.6
Select Design entry CIS
Click on File > New > project
Write a suitable name
Select a suitable location
Select Analog or Mixed A/D
Click OK
Choose create a blank project
Click OK.
ADDING COMPONENTS:
Click place part > Select Part > Place the components
Click place > Select part > Type Vsin > place it.
Click place > Select Ground > place it
Arrange components, necessary movements and rotations.
Click on place > Select wire, connect components.
SIMULATION:
Page25
RESULT:
RC integrator was studied and its output waveform was obtained.
Page26
7 RC DIFFERENTIATOR
AIM: To study RC Differentiator and plot its output waveform using PSPICE.
THEORY:
A circuit is called a differentiator if its time constant is very small in comparison with the time
period of the input signal. The voltage drop across R will be very small in comparison with the
drop across C.
The current through the capacitor is Cdv/dt. Hence the output is proportional to the derivative of
the input.
Vo = Resistance x current = RC*dVi/dt
Consider a sinusoidal signal (V*Sinwt) is fed to the input of the differentiator. Its output will be
(VRCwCoswt).
Response to pulse input
A pulse waveform is a kind of voltage that rises to a high voltage level abruptly and remains at
that level for a period of time and falls quickly to zero and remains at that level for another
period of time.
Differentiated output is proportional to the rate of change of input. When input rises to
maximum, differentiated output follows suit because the sudden change of voltage is transferred
to the output by the capacitor. Since the rate of change of voltage is positive, differentiated
output is also positive.
When input remains in maximum voltage for a period of time, the rate of change of voltage is
zero. So output falls to zero. During this time input acts like a dc voltage and capacitor offers
high impedance to it. So the charge in capacitor drains to earth through the resistance.
When input falls to zero, rate of change of input voltage is negative. Then the output also goes to
negative. For perfect differentiation, it should satisfy the following criterion RC <= 0.0016T
where T = 1/f, and f is the frequency of input signal.
Page27
CIRCUIT DIAGRAM
PROCEDURE:
STARTING A PROJECT:
Click start
Click in all programs or programs
Select Cadence
Select Release 16.6
Select Design entry CIS
Click on File > New > project
Write a suitable name
Select a suitable location
Select Analog or Mixed A/D
Click OK
Choose create a blank project
Click OK.
ADDING COMPONENTS:
Click place part > Select Part > Place the components
Click place > Select part > Type Vsin > place it.
Click place > Select Ground > place it
Arrange components, necessary movements and rotations.
Click on place > Select wire, connect components
Page28
SIMULATION:
RESULT:
RC Differentiator was studied and its output waveform was obtained.
Page29
Page30
CIRCUIT DIAGRAM
PROCEDURE:
Click START
Select Cadence
Add library > Draw the circuit > Change the values of components.
Name it as Transient
Change analysis type to Transient >Create a Simulation Profile for the transient analysis
and run PSpice.
Page31
OUTPUT WAVEFORM
RESULT:
Page32
Page33
PROCEDURE:
Click START
Click in ALL PROGRAMS
Select Cadence
Select Release 16.6
Select Design Entry CIS
Click on File > NEW>PROJECT>Write a suitable Name>Select suitable location>Select
analog or Mixed A/D > OK >Create a blank project > Ok.
Add library > Draw the circuit > Change the values of components.
create net list
view net list
Select New Simulation Profile
Name it as AC SWEEP
Change analysis type to AC SWEEP >Create a Simulation Profile for the ac sweep analysis
and run PSpice.
Select Trace > Add axis settings
Place input and output probe
The result of AC sweep simulation is shown in the figure.
Page34
Page35
Transient Analysis
RESULT: Frequency response of RC COUPLED AMPLIFIER was plotted using PSPICE.
1. INTRODUCTION TO MATLAB
Electronics and Communication Dept ,FIST Poomala
Page36
3.1 OBJECTIVES
Writing simple programmes in Matlab for handling arrays and plotting of mathematical
functions.
Writing M files for the plotting of analogue, discrete and noise signals.
Writing M files for analyzing the simple electronics circuits/ Networking using nod and
mesh equations.
Page37
Page38
ans=510.9934
Example 3.2 (Trigonometric Functions)
>>u= cos(10)
u=
-0.8391
>>=sin(10)
v=
-0.5440
Notice that trigonometric Functions in MATLAB use radians, not degrees.
If you want to get it in degrees, type
>>sind(10)
ans=
0.1736
>>u ^2+v^ 2
ans= 1
Page39
Page40
Page41
Page42
Ezplot
Plot
Ezplot
The simplest way to graph a function of one variable is Ezplot, which expects a string, a
symbolic expression, or an anonymous function, representing function to be plotted. For
example, to graph X3 +X2 + 4 on the interval (-4 to 4) using the string form of Ezplot, type
>> Ezplot(x ^3 +x ^2 +4, [-4 4])
>> grid
The plot will appear on the in new window plot
EzPlot
The plot Command works on vectors of numerical data. The syntax is plot (x, y ) where x and y
are vectors for the same length for example
>> x = (0 1 2 3);
>> y = (0 1 10 100);
Electronics and Communication Dept ,FIST Poomala
Page43
Page44
Page45
Multiple Plot
With plot, you can plot multiple curves directly. For example:
>> X= 0:0.01:10;
>> plot(X,exp (-X),X,sin(X))
Note that the vector of X- coordinates must be specified ones for each function being plotted.
3.4.4 Plotting discrete time signals
The command stem is used to plot discrete time signals.
>>t=0: 0.05:1;
>> X= sin(2*P i *t);
>> stem(x)
3.5 2 D , 3D surface and polar plot
Command like plot draws the graphs from numerical data, and the command ezplot graphs the
function specified by string or symbolic inputs. These two commands may be easier to use at
first, but are more limited in the capabilities and less amenable to customisation. Here thus, the
commands that plot data, which are likely to be more useful in the long run.
3.5.1 Two Dimensional Plots
To draw a curve in the x- y plane, but with y not given explicitly as a function of x. There are
two main techniques for plotting such curves:
Parametric plotting and
Parametric Plots
When x and y are both given as functions of some parameter. For example, the circle of radius 1
centred at (0,0) can be expressed in parametric form as
Electronics and Communication Dept ,FIST Poomala
Page46
Parametric plotting is also possible with ezplot. You can obtain almost the same picture as with at
the command
Contour Plots and implicit plots:
A contour plot of a function of a two variables is plot of the level curves of the function, i.e. Sets
of points in the x- y plane where the functions assume a constant value. For example the level
curves of x2 + y2 are circles cantered at the origin, and the levels are the squares the radii of the
circles. Contour plots are produced in MATALAB with mesh grid and Contour.
The command mesh grid produces a grid of points in rectangular region, with a specifies
spacing. This grid is used by contour to produce a contour plot in the specified region.
3.5.2 Three dimensional plot
Curves in Three dimensional space
For plotting curves in three spaces, the basic command is plot 3. It works like plot, expect that it
takes three vectors instead of two one for the X- coordinates 1 for Y coordinates, and the 1 for
the z coordinates. For example we can plot a helix with
>> T= -2:0.01:2;
>>plot 3(cos(3*pi* T), sin(3*pi* T), T)
Electronics and Communication Dept ,FIST Poomala
Page47
Page48
Page49
Page50
iii.
Quadratic Expressions.
SOFTWARE REQUIRED:
MATLAB R2014.
THEORY:
A.) Complex Numbers: A complex number is a number that can be expressed in the
form a + bi, where a and b are real numbers and i is the imaginary unit, that satisfies
the equation i2 = 1. In this expression, a is the real part and b is the imaginary
part of the complex number. Complex numbers extend the concept of the onedimensional number line to the two-dimensional complex plane by using the horizontal
axis for the real part and the vertical axis for the imaginary part. The complex
number a + bi can be identified with the point (a,b) in the complex plane. A complex
number whose real part is zero is said to be purely imaginary, whereas a complex number
whose imaginary part is zero is a real number.
B.) Array Of Numbers And Matrices:
An array refers to a set of numbers that follow a specific pattern. An array is an orderly
arrangement, often in rows, columns or a matrix. Arrays are used in multiplication and
division as it shows a great visual to show how multiplication can be shown as repeated
addition and division can be shown as fair shares. In mathematics, matrix
multiplication is a binary operation that takes a pair of matrices, and produces another
matrix. Numbers such as the real or complex numbers can be multiplied according
to elementary arithmetic.
C.) Quadratic Equations:
In elementary algebra, a quadratic equation is any equation having the form
ax2+bx+c=0
where [x] represents an unknown, and [a, b] and [c] represent known numbers such that a is
not equal to 0. If[a] = 0, then the equation is linear, not quadratic. The numbers a, b, and c are
the coefficients of the equation, and can be called respectively, as the quadratic coefficient,
the linear coefficient and the constant or free term. Because the quadratic equation involves
only
one
unknown,
it
is
called
"univariate".
The
quadratic
equation
only
Page51
PROGRAM:
a.)Find A+B,A-B,A*B,A/B where A=3+7i, B=10-4i ;
z = [3+7i];
y = [15-3i];
a
b
c
d
=
=
=
=
z+y;
z-y;
z*y;
z/y;
Page52
Page53
for i = 1:nRow1
for j = 1:nCol2
for k = 1:nCol1
C(i,j) = C(i,j) + A(i,k)*B(k,j);
end
end
end
C;
File:
= rqe(a,b,c)
+ sqrt(b^2 - 4 * a * c))/(2*a);
- sqrt(b^2 - 4 * a * c))/(2*a);
Script M File:
m= rqe(2, 1, -1);
RESULT:
Page54
Surface/Polar Plots.
SOFTWARE REQUIRED:
MATLAB R2014.
THEORY:
Plotting mathematical Equations
There are Two Basic Plotting Commands
Ezplot
Plot
Ezplot Command:
The simplest way to graph a function of one variable is Ezplot, which expects a string, a
symbolic expression, or an anonymous function, representing function to be plotted.
Plot Command:
The plot command considers the vectors X and Y to be lists of the x and y coordinates of
successive points on a graph, and joins the points with line segments.
2 D, 3D surface and polar plot
Command like plot draws the graphs from numerical data, and the command ezplot graphs the
function specified by string or symbolic inputs. These two commands may be easier to use at
first, but are more limited in the capabilities and less amenable to customization.
Two Dimensional Plots
To draw a curve in the x- y plane, but with y not given explicitly as a function of x. There are
two main techniques for plotting such curves:
Parametric plotting and
Page55
Page56
Parametric Plot
b.) To obtain the contour plot of x2+y2.
[X Y] = meshgrid(-3:0.1:3,-3:0.1:3);
contour(X,Y,X.^2+ Y.^2);
axis square;
grid;
title ('Contour plot of x^ 2 +y ^2');
Page57
Contour Plot
2.) 3D PLOTS:
c.) To obtain the 3D Plot of a helix.
T= -2:0.01:2;
plot3(cos(3*pi* T), sin(3*pi* T), T);
grid;
title ('3D plot using plot 3 command');
Page58
3D plot
3.) SURFACE PLOTS:
d.)To plot the function z=f(x,y).
[X,Y]=meshgrid(-2:0.1:2,-2:0.1:2);
Z=X.^2 +Y.^2;
mesh(X,Y,Z);
Page59
Polar Plot
RESULT:
Page60
4 DIODE/TRANSISTOR CHARACTERISTICS
AIM: To obtain the characteristics of diode/transistor.
i.
Diode
ii.
Transistor
SOFTWARE REQUIRED:
MATLAB R2014.
THEORY:
PN JUNCTION DIODE:
A pn junction is a boundary or interface between two types of semiconductor material, ptype and n-type, inside a single crystal of semiconductor. The "p" (positive) side contains an
excess of holes, while the "n" (negative) side contains an excess of electrons. The p-n junction is
created by doping, by ion implantation, diffusion etc. In a pn junction, without an external
applied voltage, an equilibrium condition is reached in which a potential difference is formed
across the junction. This potential difference is called built-in potential (V). In forward bias, the
p-side is connected with the positive terminal and the n-side is connected with the negative
terminal. With applied bias (Vf) the built-in potential reduces to (V-Vf) hence reducing the width
of the depletion region thereby allowing electrons and holes to diffuse through the junction
resulting in diode current. Under reverse bias, the p-side is connected with the negative terminal
and the n-side is connected with the positive terminal due to which the built-in potential at the
junction increases to (V+Vr), thereby resisting the flow of charge carriers within the junction.
The Shockley diode equation or the diode law, gives the IV (current-voltage) characteristic of
an idealized diode in either forward or reverse bias (applied voltage):
I= Is(eVd / Vt -1)
I is the diode current,
IS is the reverse bias saturation current (or scale current),
VD is the voltage across the diode
VT is the thermal voltage
Page61
Bipolar transistors have five distinct regions of operation, defined by BJT junction biases.
Forward-active
The baseemitter junction is forward biased and the basecollector junction is reverse biased.
It is the normal operational region of transistors employed for amplifications.
Reverse-active
By reversing the biasing conditions of the forward-active region, a bipolar transistor goes
into reverse-active mode and the emitter and collector regions switch roles. Because most
BJTs are designed to maximize current gain in forward-active mode, the F in inverted mode
is several times smaller.
Saturation
With both junctions forward-biased, a BJT is in saturation mode and facilitates high current
conduction from the emitter to the collector (or the other direction in the case of NPN, with
negatively charged carriers flowing from emitter to collector). This mode corresponds to a
logical "on", or a closed switch.
Cut-off
In cut-off, biasing conditions opposite of saturation (both junctions reverse biased) are
present. There is very little current, which corresponds to a logical "off", or an open switch.
PROGRAMS:
a.)
To plot the diode characteristics at room temperature.
k = 1.38e-23;
q = 1.6e-19;
n = 1;
V = 0.45:0.01:.8;
t = 300;
Vt = k*t/ q;
Is1 = 1.0e-12;
I0 = Is1*exp(V/(n*Vt))-Is1;
plot(V,I0,'r*');
axis([0.45,0.8,0,10]);
Electronics and Communication Dept ,FIST Poomala
Page62
Diode Characteristics
b.)
Page63
Page64
SOFTWARE REQUIRED:
MATLAB R2014.
THEORY:
Electrical Network: A combination of various electric elements (Resistor, Inductor, Capacitor,
Voltage source, Current source) connected in any manner what so ever is called an electrical
network. Kirchhoffs laws are basic analytical tools in order to obtain the solutions of currents
and voltages for any electric circuit.
Node- A node in an electric circuit is a point where two or more components are connected
together. This point is usually marked with dark circle or dot. Generally, a point, or a node in an
circuit specifies a certain voltage level with respect to a reference point or node.
Branch- A branch is a conducting path between two nodes in a circuit containing the electric
elements. These elements could be sources, resistances, or other elements.
Loop- A loop is any closed path in an electric circuit i.e., a closed path or loop in a circuit is a
contiguous sequence of branches which starting and end points for tracing the path are, in effect,
the same node and touches no other node more than once.
Mesh- a mesh is a special case of loop that does not have any other loops within it or in its
interior.
Kirchhoffs Current Law (KCL): KCL states that at any node (junction) in a circuit the
algebraic sum of currents entering and leaving a node at any instant of time must be equal to
zero. Here currents entering(+ve sign) and currents leaving (-ve sign) the node must be assigned
opposite algebraic signs .
Kirchhoffs Voltage Law (KVL): It states that in a closed circuit, the algebraic sum of all
source voltages must be equal to the algebraic sum of all the voltage drops. Voltage drop is
encountered when current flows in an element (resistance or load) from the higher-potential
terminal toward the lower potential terminal. Voltage rise is encountered when current flows in
an element (voltage source) from lower potential terminal (or negative terminal of voltage
source) toward the higher potential terminal (or positive terminal of voltage source).
Page65
PROGRAMS:
a.) To find the nodal voltages of the following electrical circuit
Solution:
At node1,
2mA = 1mA + (v1-v2)/2.5 + v1/5
1 = 0.6v1-0.4v2
At node2,
4mA +3mA = 2mA + (v1-v2)/2.5 + v2/5 + (v2-v3)/2.5
5 = -0.4v1 +v2 -0.4v3
At node3,
(v3-v2)/2.5 +v3/2.5+4mA+10mA=0
-0.4v2 +0.8v3= -14
MATLAB CODE:
syms v1 v2 v3;
[v1 v2 v3] = solve('0.6*v1-0.4*v2-1','0.4*v1+v2-0.4*v3=5','0.4*v2+0.8*v3=-14')
OUTPUT
v1 =
0
v2 =
-2.5
Page66
Solution:
Loop1
3.4V=1i1 + 500i1 +1(i1 i2)+13.6
2.5 i1 -1i2 = -10.2
Loop2
500 i2+1(i2 i3) +3.4V-13.6V=0
-1i1+2.5i2 -1i3 = 10.2
Loop3
500 i3+1i3 +6.8V-3.4V + 1(i3- i2) =0
-1i2+2.5i3 = -3.4
MATLAB CODE:
syms i1 i2 i3;
[i1 i2 i3] = solve('2500*i1-1000*i2=-10.2','-1000*i1+2500*i21000*i3=10.2','-1000*i2+2500*i3=3.4')
Page67
OUTPUT
i1 =
-0.00232
i2 =
0.0044
i3 =
0.00312
RESULT:
Page68