summaryrefslogtreecommitdiff
path: root/1217/CH4
diff options
context:
space:
mode:
Diffstat (limited to '1217/CH4')
-rwxr-xr-x1217/CH4/EX4.10/Exa4_10.sce24
-rwxr-xr-x1217/CH4/EX4.12/Exa4_12.sce24
-rwxr-xr-x1217/CH4/EX4.13/Exa4_13.sce26
-rwxr-xr-x1217/CH4/EX4.15/Exa4_15.sce19
-rwxr-xr-x1217/CH4/EX4.16/Exa4_16.sce13
-rwxr-xr-x1217/CH4/EX4.2/Exa4_2.sce12
-rwxr-xr-x1217/CH4/EX4.22/Exa4_22.sce17
-rwxr-xr-x1217/CH4/EX4.25/Exa4_25.sce15
-rwxr-xr-x1217/CH4/EX4.3/Exa4_3.sce16
-rwxr-xr-x1217/CH4/EX4.4/Exa4_4.sce15
-rwxr-xr-x1217/CH4/EX4.5/Exa4_5.sce9
-rwxr-xr-x1217/CH4/EX4.7/Exa4_7.sce20
-rwxr-xr-x1217/CH4/EX4.8/Exa4_8.sce11
-rwxr-xr-x1217/CH4/EX4.9/Exa4_9.sce11
14 files changed, 232 insertions, 0 deletions
diff --git a/1217/CH4/EX4.10/Exa4_10.sce b/1217/CH4/EX4.10/Exa4_10.sce
new file mode 100755
index 000000000..bd385826d
--- /dev/null
+++ b/1217/CH4/EX4.10/Exa4_10.sce
@@ -0,0 +1,24 @@
+//Exa 4.10
+clc;
+clear;
+close;
+// given data
+VA=3;//in mVolt
+VB=5;//in mVolt
+R1=10;//in Kohm
+R2=10;//in Kohm
+R3=45;//in Kohm
+R4=8;//in Kohm
+R5=3;//in Kohm
+RF=45;//in Kohm
+disp("Considering Voltage Voa is at higher potential than Vob. Concept of virtual short yields");
+disp("Vx=VA and Vy=VB");
+I=(VA-VB)/R5;//in mA
+VoA=VA+I*R4;//in mVolts
+VoB=VB-I*R4;//in mVolts
+disp(VoA,"Output of op-amp A1 in mVolt is");
+disp(VoB,"Output of op-amp A2 in mVolt is");
+Vo1=(1+RF/R1)*(R3/(R3+R2))*VoB;
+Vo2=-(RF/R1)*VoA;
+Vo=Vo1+Vo2;//in mVolt
+disp(Vo,"Combined output of the circuit in mVolt is : "); \ No newline at end of file
diff --git a/1217/CH4/EX4.12/Exa4_12.sce b/1217/CH4/EX4.12/Exa4_12.sce
new file mode 100755
index 000000000..45ae99c97
--- /dev/null
+++ b/1217/CH4/EX4.12/Exa4_12.sce
@@ -0,0 +1,24 @@
+//Exa 4.12
+clc;
+clear;
+close;
+// given data
+RF=10;//in Kohm
+R1=10;//in Kohm
+R2=R1;//in Kohm
+R3=R1;//in Kohm
+R5max=50;//in Kohm
+ADmin=5;//unitless
+ADmax=200;//unitless
+//Formula : ADmin=1+2*R4/R5max
+R4=(ADmin-1)*(R5max/2);//in Kohm
+//Formula : ADmax=1+2*R4/R5min
+R5min=(2*R4)/(ADmax-1);//in Kohm
+disp("Thus design values of resistors in Kohm are :");
+disp(R1,"R1");
+disp(R2,"R2");
+disp(R3,"R3");
+disp(R4,"R4");
+disp(RF,"RF");
+disp(R5min,"R5min");
+disp(R5max,"R5max"); \ No newline at end of file
diff --git a/1217/CH4/EX4.13/Exa4_13.sce b/1217/CH4/EX4.13/Exa4_13.sce
new file mode 100755
index 000000000..377a87772
--- /dev/null
+++ b/1217/CH4/EX4.13/Exa4_13.sce
@@ -0,0 +1,26 @@
+//Exa 4.13
+clc;
+clear;
+close;
+// given data
+Vdc=10;//in Volt
+R1=10;//in Kohm
+R2=10;//in Kohm
+R3=100;//in Kohm
+RF=100;//in Kohm
+// Part(i) Balance Bridge : RA=RB=RC=RT=150ohm and VAB=0
+RA=150;//in ohm
+RB=150;//in ohm
+RC=150;//in ohm
+RT=150;//in ohm
+VAB=0;//in Volt
+Vo=(-RF/R1)*VAB;
+// Part(ii) Unbalance Bridge : RT=200ohm
+RT=200;//in ohm
+VA=(RA/(RA+RT))*Vdc;
+VB=(RB/(RB+RC))*Vdc;
+VAB=VA-VB;//in Volt
+Vo=(-RF/R1)*VAB;
+disp(0,"Balance bridge have output voltage Vo in volt is :");
+disp(Vo,"Unbalance bridge have output voltage Vo in volt is :");
+
diff --git a/1217/CH4/EX4.15/Exa4_15.sce b/1217/CH4/EX4.15/Exa4_15.sce
new file mode 100755
index 000000000..ca2f063ee
--- /dev/null
+++ b/1217/CH4/EX4.15/Exa4_15.sce
@@ -0,0 +1,19 @@
+//Exa 4.15
+clc;
+clear;
+close;
+// given data
+Gain=10;//Unitless
+fb=10;//in KHz
+//Assuming fa=fb/10
+fa=fb/10;//in KHz
+// Formula : fa=1/(2*pi*RF*CF)
+RFCF=1/(2*%pi*fa);
+//Assuming R1=1Kohm
+R1=1;//in Kohm
+RF=10*R1;//in Kohm
+CF=RFCF/RF;//in uF
+Rcomp=(R1*RF)/(R1+RF);// in Kohm
+disp(RF,"Value of RF in Kohm is : ");
+disp(CF,"Value of CF in uF is : ");
+disp(Rcomp*1000,"Value of Rcomp in ohm is : "); \ No newline at end of file
diff --git a/1217/CH4/EX4.16/Exa4_16.sce b/1217/CH4/EX4.16/Exa4_16.sce
new file mode 100755
index 000000000..35aa41327
--- /dev/null
+++ b/1217/CH4/EX4.16/Exa4_16.sce
@@ -0,0 +1,13 @@
+//Exa 4.16
+clc;
+clear;
+close;
+disp("Using superposition theorem, we have output for the fiven two inputs integrator adder as");
+disp("Vo=-integrate(V1/R1CF+V2/R2CF,0,t)");
+disp("Comparing above expression with the specified output given, we have");
+disp("1/R1CF=3 & 1/R2CF=2")
+CF=10;//in uF
+R1=1/(3*CF*10^-6);//in KOhm
+R2=1/(2*CF*10^-6);//in KOhm
+disp(R1/1000,"Value of R1 in Kohm is : ");
+disp(R2/1000,"Value of R2 in Kohm is : "); \ No newline at end of file
diff --git a/1217/CH4/EX4.2/Exa4_2.sce b/1217/CH4/EX4.2/Exa4_2.sce
new file mode 100755
index 000000000..81a78b728
--- /dev/null
+++ b/1217/CH4/EX4.2/Exa4_2.sce
@@ -0,0 +1,12 @@
+//Exa 4.2
+clc;
+clear;
+close;
+// given data
+disp("As the input impedence of an op-amp circuit is very high & no current will enter the op-amp, hence node voltages at (a) & (b) will be at same potential, let Va=Vb=V");
+disp("writing KCL at node (b) we have (6-V)/30+(8-V)/40+(0-V)/30=0");
+V=48/11;//in volts
+disp(V,"Voltage V in Volt is ; ");
+disp("writing KCL at node (a) we have (3-V)/10+(4-V)/20=(V-Vo)/40");
+Vo=-(20-7*V);//in Volts
+disp(Vo,"Output Voltage of the circuit Vo in Volt is ; "); \ No newline at end of file
diff --git a/1217/CH4/EX4.22/Exa4_22.sce b/1217/CH4/EX4.22/Exa4_22.sce
new file mode 100755
index 000000000..4cbf89169
--- /dev/null
+++ b/1217/CH4/EX4.22/Exa4_22.sce
@@ -0,0 +1,17 @@
+//Exa 4.22
+clc;
+clear;
+close;
+// given data
+fa=1.5;//in KHz
+fmax=1.5;//in KHz
+C1=0.1;//in uF
+RF=1/(2*%pi*fa*C1);//in Kohm
+fb=10*fa;//in Khz
+R1=1/(2*%pi*fb*C1);//in Kohm
+CF=(R1*C1)/RF;//in uF
+Rcomp=RF;//in Kohm
+disp(RF,"Value of resistance RF in Kohm is : ")
+disp(R1*1000,"Value of resistance R1 in ohm is : ")
+disp(CF,"Value of Capacitance CF in uF is : ")
+disp(Rcomp,"Value of resistance Rcomp in Kohm is : ") \ No newline at end of file
diff --git a/1217/CH4/EX4.25/Exa4_25.sce b/1217/CH4/EX4.25/Exa4_25.sce
new file mode 100755
index 000000000..d1adc06fe
--- /dev/null
+++ b/1217/CH4/EX4.25/Exa4_25.sce
@@ -0,0 +1,15 @@
+//Exa 4.25
+clc;
+clear;
+close;
+// given data
+C1=0.1;//in uF
+f=100;//in Hz
+T=1/f;//in sec
+// Given also R1C1=0.2*T;
+R1=(0.2*T)/(C1*10^-6);//in ohm
+RF=0.05/(C1*10^-6);//in ohm
+CF=(R1*C1)/RF;//in uF
+disp(R1/1000,"Value of resistance R1 in ohm is : ")
+disp(RF/1000,"Value of resistance RF in Kohm is : ")
+disp(CF,"Value of Capacitance CF in uF is : ")
diff --git a/1217/CH4/EX4.3/Exa4_3.sce b/1217/CH4/EX4.3/Exa4_3.sce
new file mode 100755
index 000000000..a578fb8a1
--- /dev/null
+++ b/1217/CH4/EX4.3/Exa4_3.sce
@@ -0,0 +1,16 @@
+//Exa 4.3
+clc;
+clear;
+close;
+// given data
+disp("The output expression consist of two parts, one when V1 acting alone i.e. due to non inverting amplifier, thus constant A becomes the gain for non inverting configuration and second when V2 acting alone i.e. due to inverting amplifier, thus constant B becomes the gain for inverting configuration ");
+// case (i) when V1 acting alone V2=0;
+disp("case (i) when V1 acting alone V2=0 and the output is given as");
+disp("Vo1=(1+100/10)*Va");
+disp("Va=99*V1/(11+99)");
+disp("Vo1=(110/10)*(99/110)*V1=9.9V1");
+disp("Thus the gain A=Vo1/V1=9.9");
+// case (ii) when V2 acting alone V1=0;
+disp("case (ii) when V2 acting alone V1=0 and the output is given as");
+disp("Vo2=(-100/10)*V2");
+disp("Thus the gain B=Vo2/V2=-10"); \ No newline at end of file
diff --git a/1217/CH4/EX4.4/Exa4_4.sce b/1217/CH4/EX4.4/Exa4_4.sce
new file mode 100755
index 000000000..22c73c485
--- /dev/null
+++ b/1217/CH4/EX4.4/Exa4_4.sce
@@ -0,0 +1,15 @@
+//Exa 4.4
+clc;
+clear;
+close;
+disp("The output can be obtained using superposition theorem, as");
+disp("Vo=Voa+Vob");
+// case (i) when Vb=0;
+disp("case (i) when Vb=0 the given circuit becomes an inverting amplifier to provide an output as");
+disp("Voa=-100Kohm*Va/R1=-2*Va ");
+disp("It gives R1=50 Kohm");
+// case (ii) when Va=0;
+disp("case (ii) when Va=0 the given circuit becomes an non-inverting amplifier to provide an output as");
+disp("Vob=(1+100Kohm/R1)*V1 where V1=R3*Vb/(R2+R3)");
+disp("Vob=(1+100Kohm/R1)*V1*(R3*Vb/(R2+R3))=Vb ")
+disp("Putting R1=R2=50 Kohm, we get R3=25 Kohm"); \ No newline at end of file
diff --git a/1217/CH4/EX4.5/Exa4_5.sce b/1217/CH4/EX4.5/Exa4_5.sce
new file mode 100755
index 000000000..778599059
--- /dev/null
+++ b/1217/CH4/EX4.5/Exa4_5.sce
@@ -0,0 +1,9 @@
+//Exa 4.5
+clc;
+clear;
+close;
+disp("The given circuit is basically an inverting amplifier with node A at virtual ground. Writing KCL at node A yields ");
+disp("I1+I2=If");
+disp("-2/10Kohm+3/20Kohm=-Vo/100Kohm");
+Vo=-(-20+15);//in Volts
+disp(Vo,"Output voltage in Volt is : ") \ No newline at end of file
diff --git a/1217/CH4/EX4.7/Exa4_7.sce b/1217/CH4/EX4.7/Exa4_7.sce
new file mode 100755
index 000000000..330171778
--- /dev/null
+++ b/1217/CH4/EX4.7/Exa4_7.sce
@@ -0,0 +1,20 @@
+//Exa 4.7
+clc;
+clear;
+close;
+disp("The voltage at node X will be equal to the xvoltage across resistor R5, hence ");
+disp("Vx=(Vo*R5)/(R5+R6)");
+disp("Vx=Vo/8");
+Vz=1;//in Volt
+disp("writing KCL at node Y yields ");
+disp("(Vy-Vx)/R2+(Vy-Vz)/R3=0 or (Vy-Vx)/2+(Vy-1)/4=0");
+disp("Vy=(2*Vx+1)/3");
+disp("writing KCL at node X yields ");
+disp("(1-Vx)/R1+(Vy-Vx)/R2=0 or (1-Vx)/2+(Vy-Vx)/2=0 ");
+disp("Vy-2*Vx+1=0");
+disp("Now substituting for Vy from above equation, we get")
+disp("(2*Vx-1)/3-2*Vx+1=0");
+Vx=2/4;//in Volt
+disp(Vx,"The value of Vx in volt is :")
+Vo=8*Vx;//in Volt
+disp(Vo,"The output voltage of the circuit in volt is : ") \ No newline at end of file
diff --git a/1217/CH4/EX4.8/Exa4_8.sce b/1217/CH4/EX4.8/Exa4_8.sce
new file mode 100755
index 000000000..6405e3f65
--- /dev/null
+++ b/1217/CH4/EX4.8/Exa4_8.sce
@@ -0,0 +1,11 @@
+//Exa 4.9
+clc;
+clear;
+close;
+// given data
+R1=10;//in Kohm
+R4=8;//in Kohm
+R5=3;//in Kohm
+RF=45;//in Kohm
+AD=(1+2*R4/R5)*(RF/R1);
+disp(AD,"Gain for the instrumention amplifier is : ") \ No newline at end of file
diff --git a/1217/CH4/EX4.9/Exa4_9.sce b/1217/CH4/EX4.9/Exa4_9.sce
new file mode 100755
index 000000000..6405e3f65
--- /dev/null
+++ b/1217/CH4/EX4.9/Exa4_9.sce
@@ -0,0 +1,11 @@
+//Exa 4.9
+clc;
+clear;
+close;
+// given data
+R1=10;//in Kohm
+R4=8;//in Kohm
+R5=3;//in Kohm
+RF=45;//in Kohm
+AD=(1+2*R4/R5)*(RF/R1);
+disp(AD,"Gain for the instrumention amplifier is : ") \ No newline at end of file