diff options
Diffstat (limited to '569/CH6')
33 files changed, 352 insertions, 0 deletions
diff --git a/569/CH6/EX6.1/6_1.sci b/569/CH6/EX6.1/6_1.sci new file mode 100755 index 000000000..cfcd27216 --- /dev/null +++ b/569/CH6/EX6.1/6_1.sci @@ -0,0 +1,6 @@ +// calculating feedback resistance
+clc;
+A=100;
+R1=1*10^3;
+Rf=-A*R1;
+disp(Rf,'feedback resistance (ohm)=');
diff --git a/569/CH6/EX6.10/6_10.sci b/569/CH6/EX6.10/6_10.sci new file mode 100755 index 000000000..ea5f4bd22 --- /dev/null +++ b/569/CH6/EX6.10/6_10.sci @@ -0,0 +1,12 @@ +// Calculating Difference mode gain and output voltage
+clc;
+V2=5*10^-3;
+V1=3*10^-3;
+Vo=300*10^-3;
+Vd=V2-V1;
+Ad=Vo/Vd;
+disp(Ad,'difference mode gain=')
+V2=155*10^-3;
+V1=153*10^-3;
+Vo=Ad*(V2-V1);
+disp(Vo,'output voltage (V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.11/6_11.sci b/569/CH6/EX6.11/6_11.sci new file mode 100755 index 000000000..756eac7ce --- /dev/null +++ b/569/CH6/EX6.11/6_11.sci @@ -0,0 +1,12 @@ +// Calculating Difference mode, Common mode gain and CMRR
+clc;
+Vo=3;
+Vd=30*10^-3;
+Ad=Vo/Vd;
+disp(Ad,'difference mode gain=')
+Vo=5*10^-3;
+Vc=500*10^-3;
+Ac=Vo/Vc;
+disp(Ac,'Common mode gain=')
+CMRR=Ad/Ac;
+disp(CMRR,'Common mode rejection ratio=')
\ No newline at end of file diff --git a/569/CH6/EX6.12/6_12.sci b/569/CH6/EX6.12/6_12.sci new file mode 100755 index 000000000..3debcba52 --- /dev/null +++ b/569/CH6/EX6.12/6_12.sci @@ -0,0 +1,15 @@ +// Calculating Signal to noise ratio and CMRR
+clc;
+V2=30*10^-3;
+V1=-30*10^-3;
+Vd=V2-V1;
+Ad=150;
+Vos=Ad*Vd;
+Ac=0.04;
+Vc=600*10^-3;
+Von=Ac*Vc;
+SNR=Vos/Von;
+CMRR=Ad/Ac;
+disp(SNR,'Signal to Noise Ratio=')
+
+disp(CMRR,'CMRR=')
\ No newline at end of file diff --git a/569/CH6/EX6.13/6_13.sci b/569/CH6/EX6.13/6_13.sci new file mode 100755 index 000000000..e6bf5529f --- /dev/null +++ b/569/CH6/EX6.13/6_13.sci @@ -0,0 +1,11 @@ +// Calculating sensitivity and output voltage
+clc;
+Ci=10*10^-12;
+Vi=10;
+Eo=8.85*10^-12;
+A=200*10^-6;
+K=-Ci*Vi/(Eo*A);
+disp(K,'sensitivity (V/mm)=')
+d=1*10^-6;
+Vo=K*d;
+disp(Vo,'output voltage (V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.14/6_14.sci b/569/CH6/EX6.14/6_14.sci new file mode 100755 index 000000000..e03fff9b7 --- /dev/null +++ b/569/CH6/EX6.14/6_14.sci @@ -0,0 +1,11 @@ +// calculating minimum, maximum time constants and value of frequencies
+clc;
+MXtc= 10^10*1000*10^-12;
+disp(MXtc,'Maximum time constant (s)');
+MNtc= 10^8*10*10^-12;
+disp(MNtc,'Minimum time constant (s)');
+AR=0.95;
+fmin=(AR)/[2*%pi*MXtc*(1-AR^2)^0.5];
+disp(fmin,'minimum frequency (Hz)')
+fmax=(AR)/[2*%pi*MNtc*(1-AR^2)^0.5];
+disp(fmax,'Maximum frequency (Hz)')
\ No newline at end of file diff --git a/569/CH6/EX6.15/6_15.sci b/569/CH6/EX6.15/6_15.sci new file mode 100755 index 000000000..e3cd73c7b --- /dev/null +++ b/569/CH6/EX6.15/6_15.sci @@ -0,0 +1,10 @@ +// calculating time constant and value of capacitance
+clc;
+g=0.501;
+f=50;
+w=2*%pi*f;
+tc=(1-g^2)^0.5/(w*g);
+disp(tc,'time constant (s)')
+R=10000;
+C=(tc/R)*10^6;
+disp(C,'capacitance (micro-F)')
\ No newline at end of file diff --git a/569/CH6/EX6.16/6_16.sci b/569/CH6/EX6.16/6_16.sci new file mode 100755 index 000000000..4a3e47f27 --- /dev/null +++ b/569/CH6/EX6.16/6_16.sci @@ -0,0 +1,12 @@ +// calcuating the passband gain and upper & lower cut off frequencies
+clc;
+R1=10*10^3;
+R2=1*10^6;
+A=R2/(R1+R2);
+disp(A,'gain=')
+C2=(0.01)*10^-6;
+C1=100*10^-12;
+fcl=1/(2*%pi*C2*R2);
+disp(fcl,'lower cut off frequency (Hz)')
+fcu=1/(2*%pi*R1*C1);
+disp(fcu,'upper cut off frequency (Hz)')
\ No newline at end of file diff --git a/569/CH6/EX6.17/6_17.sci b/569/CH6/EX6.17/6_17.sci new file mode 100755 index 000000000..16ef47236 --- /dev/null +++ b/569/CH6/EX6.17/6_17.sci @@ -0,0 +1,6 @@ +// calcuating the value of C
+clc;
+R=1*10^6;
+fo=10*10^3;
+C=1/(2*%pi*fo*R);
+disp(C,'the value of C (F)')
diff --git a/569/CH6/EX6.19/6_19.sci b/569/CH6/EX6.19/6_19.sci new file mode 100755 index 000000000..6a4d37ef8 --- /dev/null +++ b/569/CH6/EX6.19/6_19.sci @@ -0,0 +1,17 @@ +// calculate the output voltage and sensitivity
+clc;
+Rt=100;
+K=1;
+Rb=K*Rt;
+ei=10;
+disp('When K=1')
+eo=[(K*Rt/Rb)/(1+(K*Rt/Rb))]*ei;
+disp(eo,'output voltage (V)= ')
+Se=(ei*Rb)/[(Rb+K*Rt)^2];
+disp(Se,'sensitivity (V/ohm)= ')
+K=0.95;
+disp('When K=0.95')
+eo=[(K*Rt/Rb)/(1+(K*Rt/Rb))]*ei;
+disp(eo,'output voltage (V)= ')
+Se=(ei*Rb)/[(Rb+K*Rt)^2];
+disp(Se,'sensitivity (V/ohm)= ')
\ No newline at end of file diff --git a/569/CH6/EX6.2/6_2.sci b/569/CH6/EX6.2/6_2.sci new file mode 100755 index 000000000..95ae59884 --- /dev/null +++ b/569/CH6/EX6.2/6_2.sci @@ -0,0 +1,7 @@ +// calculating the closed loop gain
+clc;
+Rf=10;
+R1=1;
+Avol=200000;
+A=-(Rf/R1)*(1/[1+(1/Avol)*((R1+Rf)/R1)]);
+disp(A,'closed loop gain=')
\ No newline at end of file diff --git a/569/CH6/EX6.20/6_20.sci b/569/CH6/EX6.20/6_20.sci new file mode 100755 index 000000000..112124310 --- /dev/null +++ b/569/CH6/EX6.20/6_20.sci @@ -0,0 +1,19 @@ +// calculate the output voltage for different values of K
+clc;
+ei=100;
+K=0.25;
+disp('When K=0.25')
+eo=[(K/6)/(1+(K/6))]*ei;
+disp(eo,'output voltage (V)= ')
+K=0.5;
+disp('When K=0.5')
+eo=[(K/6)/(1+(K/6))]*ei;
+disp(eo,'output voltage (V)= ')
+K=0.6;
+disp('When K=0.6')
+eo=[(K/6)/(1+(K/6))]*ei;
+disp(eo,'output voltage (V)= ')
+K=0.8;
+disp('When K=0.8')
+eo=[(K/6)/(1+(K/6))]*ei;
+disp(eo,'output voltage (V)= ')
\ No newline at end of file diff --git a/569/CH6/EX6.21/6_21.sci b/569/CH6/EX6.21/6_21.sci new file mode 100755 index 000000000..faa0e7cac --- /dev/null +++ b/569/CH6/EX6.21/6_21.sci @@ -0,0 +1,10 @@ +// calculating the resistance and output voltage
+clc;
+R2=119;
+R3=119.7;
+R1=120.4;
+R4=R2*R3/R1;
+R4=121.2;
+ei=12;
+eo=[(R1*R4-R2*R3)/((R1+R3)*(R2+R4))]*ei;
+disp(eo, 'output voltage (V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.22/6_22.sci b/569/CH6/EX6.22/6_22.sci new file mode 100755 index 000000000..96d449ebb --- /dev/null +++ b/569/CH6/EX6.22/6_22.sci @@ -0,0 +1,12 @@ +// Calculating the bridge output
+clc;
+ei=6;
+R=10000;
+disp('if dR=0.05R')
+dR=0.05*R;
+eo=[(dR/R)/(4+2*(dR/R))]*ei;
+disp(eo,'output voltage (V)')
+disp('if dR=-0.05R')
+dR=-0.05*R;
+eo=[(dR/R)/(4+2*(dR/R))]*ei;
+disp(eo,'output voltage (V)')
\ No newline at end of file diff --git a/569/CH6/EX6.23/6_23.sci b/569/CH6/EX6.23/6_23.sci new file mode 100755 index 000000000..da5ba7350 --- /dev/null +++ b/569/CH6/EX6.23/6_23.sci @@ -0,0 +1,12 @@ +// Calculating the resistance of unknown resistance
+clc;
+R2=800;
+R3=800;
+R4=800;
+Rm=100;
+R=800;
+ei=4;
+im=0.8*10^-6;
+dR=(im*R^2)*(4*(1+Rm/R))/ei;
+R1=R+dR;
+disp(R1,'Resistance of unknown resistor (ohm)=')
diff --git a/569/CH6/EX6.24/6_24.sci b/569/CH6/EX6.24/6_24.sci new file mode 100755 index 000000000..854225992 --- /dev/null +++ b/569/CH6/EX6.24/6_24.sci @@ -0,0 +1,13 @@ +// calculating the current
+clc;
+R2=1000;
+R3=1000;
+R1=1010;
+R4=1000;
+ei=100;
+eo=[(R1*R4-R2*R3)/((R1+R3)*(R2+R4))]*ei;
+disp(eo, 'open circuit voltage (V)=')
+Ro=[R1*R4/(R1+R4)]+[R2*R3/(R2+R3)];
+Rm=4000;
+im=eo/(Ro+Rm);
+disp(im,'current (A)=')
diff --git a/569/CH6/EX6.25/6_25.sci b/569/CH6/EX6.25/6_25.sci new file mode 100755 index 000000000..eb02c0612 --- /dev/null +++ b/569/CH6/EX6.25/6_25.sci @@ -0,0 +1,12 @@ +// Calculating maximum permissible current through strain gauge, supply voltage
+// and Power dissipation in series resistance
+clc;
+R=100;
+P=250*10^-3;
+i=(P/R)^0.5;
+disp(i,'maximum permissible current (A)=')
+ei=2*i*R;
+disp(ei,'maximum supply voltage (V)=')
+Rs=100;
+Ps=10^2/Rs;
+disp(Ps,'Power dissipation in series resistance (W)')
diff --git a/569/CH6/EX6.26/6_26.sci b/569/CH6/EX6.26/6_26.sci new file mode 100755 index 000000000..e85dbfd38 --- /dev/null +++ b/569/CH6/EX6.26/6_26.sci @@ -0,0 +1,10 @@ +// Calculating the maximum voltage sensitivity of the bridge
+clc;
+P=(0.1/0.2)*10^-3;
+R=1000;
+eim=2*(P*R)^0.5;
+dth=0.1;
+dR=(4.5/100)*dth*R;
+eom=(dR/(4*R))*eim;
+Sem=eom/dth;
+disp(Sem,'maximum voltage sensitivity of the bridge (V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.27/6_27.sci b/569/CH6/EX6.27/6_27.sci new file mode 100755 index 000000000..9ef8af82f --- /dev/null +++ b/569/CH6/EX6.27/6_27.sci @@ -0,0 +1,10 @@ +// Calculating the resolution of the instrument, quantization error and decesion levels
+clc;
+Reso=10*10^-3/10;
+disp (Reso,'resolution of the instrument=')
+n=10;
+Q=10/2^n;
+Eq=Q/(2*3^0.5);
+disp (Eq,'quantization error=')
+D=(2^n)-1;
+disp (D,'decesion levels=')
\ No newline at end of file diff --git a/569/CH6/EX6.28/6_28.sci b/569/CH6/EX6.28/6_28.sci new file mode 100755 index 000000000..25bc2b9a4 --- /dev/null +++ b/569/CH6/EX6.28/6_28.sci @@ -0,0 +1,8 @@ +// Calculating the weight of MSB and LSB
+clc;
+Ra=10;
+b=5;
+Wmsb=Ra/2;
+disp(Wmsb,'weight of MSB (V)=')
+Wlsb=Ra/2^b;
+disp(Wlsb,'weight of LSB (V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.29/6_29.sci b/569/CH6/EX6.29/6_29.sci new file mode 100755 index 000000000..520a4cf69 --- /dev/null +++ b/569/CH6/EX6.29/6_29.sci @@ -0,0 +1,9 @@ +// Calculating reference voltage and percentage change
+clc;
+E=10;
+ER=E*256/255;
+disp(ER,'Reference voltage (V)=')
+n=8;
+CVlsb=(2^-n)*ER;
+PC=CVlsb*100/E;
+disp(PC,'Percentage change =')
\ No newline at end of file diff --git a/569/CH6/EX6.3/6_3.sci b/569/CH6/EX6.3/6_3.sci new file mode 100755 index 000000000..f231b0bb0 --- /dev/null +++ b/569/CH6/EX6.3/6_3.sci @@ -0,0 +1,6 @@ +// calculating the maximum output voltage
+clc;
+Sa=10;
+disp(Sa, 'saturation voltage=')
+Vom=Sa;
+disp(Vom,'maximum output voltage')
\ No newline at end of file diff --git a/569/CH6/EX6.30/6_30.sci b/569/CH6/EX6.30/6_30.sci new file mode 100755 index 000000000..57c6321d8 --- /dev/null +++ b/569/CH6/EX6.30/6_30.sci @@ -0,0 +1,18 @@ +// Calculating the number of bits, Value of LSB, Quantization error,minimum sampling rate Aperature time and dynamic range
+clc;
+n=14;
+disp(n,'number of bits =')
+E=10;
+Q=10;
+LSB=E/2^n;
+disp(LSB,'Value of LSB (V) =')
+Eq=Q/(2*(3^0.5));
+disp(Eq,'Quantization error (V) =')
+fh=1000;
+fs=5*fh;
+disp(fs,'minimum sampling rate (Hz) =')
+a=1/16384;
+ta=1/(2*%pi*fh)*a;
+disp(ta,'Aperature time (s) =')
+Dr=6*n;
+disp(Dr,'dynamic range (db) =')
diff --git a/569/CH6/EX6.31/6_31.sci b/569/CH6/EX6.31/6_31.sci new file mode 100755 index 000000000..e5b69f53c --- /dev/null +++ b/569/CH6/EX6.31/6_31.sci @@ -0,0 +1,9 @@ +// Calculating the value of resistance and smallest output current
+clc;
+ER=10;
+n=6;
+Imax=10*10^-3;
+R=ER*((2^n)-1)/[(2^(n-2))*Imax];
+disp(R,'resistance (ohm)=')
+LSB=ER/[(2^(n-1))*R];
+disp(LSB,'smallest output current (A)')
diff --git a/569/CH6/EX6.32/6_32.sci b/569/CH6/EX6.32/6_32.sci new file mode 100755 index 000000000..4a43319bd --- /dev/null +++ b/569/CH6/EX6.32/6_32.sci @@ -0,0 +1,8 @@ +// Calculating the output voltage
+clc;
+n=6;
+R=10000;
+Io= (10/10*10^3)*{1*1+1*0.5+1*0.25+0*0.125+1*0.0625}*10^-6;
+Rf=5000;
+Eo=-Io*Rf;
+disp(Eo,'Output voltage (V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.33/6_33.sci b/569/CH6/EX6.33/6_33.sci new file mode 100755 index 000000000..0b5525794 --- /dev/null +++ b/569/CH6/EX6.33/6_33.sci @@ -0,0 +1,15 @@ +// Calculate the output of successive approximation A/D
+clc;
+disp('Set d3=1')
+Output=5/2^1;
+disp('since 3.217>2.5 so d3=1')
+disp('Set d2=1')
+Output=(5/2^1)+(5/2^2);
+disp('since 3.217< 3.75 so d2=0')
+disp('Set d1=1')
+Output=(5/2^1)+(5/2^3);
+disp('since 3.217>3.125 so d1=1')
+disp('Set d0=1')
+Output=(5/2^1)+(5/2^3)+(5/2^4);
+disp('since 3.217<3.4375 so d0=0')
+disp('Output of successive approximation A/D = 1010')
\ No newline at end of file diff --git a/569/CH6/EX6.34/6_34.sci b/569/CH6/EX6.34/6_34.sci new file mode 100755 index 000000000..d09585e99 --- /dev/null +++ b/569/CH6/EX6.34/6_34.sci @@ -0,0 +1,11 @@ +//to calculate o/p dc voltage
+
+clc;
+t=400;
+T=t/4;
+C=1*10^-6;
+v=20;
+i=C*100*v/(T);
+R=1*10^3;
+e_o=i*R;
+disp(e_o,'output voltage(V)');
\ No newline at end of file diff --git a/569/CH6/EX6.4/6_4.sci b/569/CH6/EX6.4/6_4.sci new file mode 100755 index 000000000..b4287d194 --- /dev/null +++ b/569/CH6/EX6.4/6_4.sci @@ -0,0 +1,7 @@ +// calculating output voltage due to offset voltage
+clc;
+Vos=5*10^-3;
+Rf=10;
+R1=1;
+Vo=-Vos*(1+Rf/R1);
+disp(Vo,'output voltage due to offset voltage (V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.5/6_5.sci b/569/CH6/EX6.5/6_5.sci new file mode 100755 index 000000000..d5609cb8b --- /dev/null +++ b/569/CH6/EX6.5/6_5.sci @@ -0,0 +1,7 @@ +// calculating Amplification factor
+clc;
+
+Rf=10;
+R1=1;
+A=Rf/R1;
+disp(A,'Amplification Factor=')
\ No newline at end of file diff --git a/569/CH6/EX6.6/6_6.sci b/569/CH6/EX6.6/6_6.sci new file mode 100755 index 000000000..d57f9d72b --- /dev/null +++ b/569/CH6/EX6.6/6_6.sci @@ -0,0 +1,9 @@ +// calculating output voltage due to offset voltage
+clc;
+V1=1;
+V2=-2;
+Rf=500;
+R1=250;
+R2=100;
+Vo=-{[(Rf/R1)*V1]+[(Rf/R2)*V2]};
+disp(Vo,'output voltage(V)=')
\ No newline at end of file diff --git a/569/CH6/EX6.7/6_7.sci b/569/CH6/EX6.7/6_7.sci new file mode 100755 index 000000000..246def922 --- /dev/null +++ b/569/CH6/EX6.7/6_7.sci @@ -0,0 +1,11 @@ +// calculating gain and feedback resistance
+clc;
+
+Rf=100*10^3;
+R1=1*10^3;
+A=Rf/R1;
+disp(A,'Gain=')
+disp('If multiplier is 10')
+A=10;
+Rf=A*R1;
+disp(Rf, 'feedback resistance (Ohm)=')
\ No newline at end of file diff --git a/569/CH6/EX6.8/6_8.sci b/569/CH6/EX6.8/6_8.sci new file mode 100755 index 000000000..1c523dae0 --- /dev/null +++ b/569/CH6/EX6.8/6_8.sci @@ -0,0 +1,10 @@ +// Calculating the values of resistances
+clc;
+g=10;
+Rf=10;
+R1=Rf/g;
+disp(R1,'resistance R1(Kilo-ohms)=')
+R2=Rf/(0.5*g);
+disp(R2,'resistance R1(Kilo-ohms)=')
+R3=Rf/(0.333*g);
+disp(R3,'resistance R1(Kilo-ohms)=')
diff --git a/569/CH6/EX6.9/6_9.sci b/569/CH6/EX6.9/6_9.sci new file mode 100755 index 000000000..7af0949ea --- /dev/null +++ b/569/CH6/EX6.9/6_9.sci @@ -0,0 +1,7 @@ +// Calculating the value of resistance and capacitance
+clc;
+Voramp=-10;
+disp('if voltage source is 10V then RC= 1 ms and if C=1 micro-F')
+C=1;
+R=1*10^-3*10^6;
+disp(R,'value of resistance (ohm)= ')
|