From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 929/CH2/EX2.10.c/Example2_10_c.sce | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 929/CH2/EX2.10.c/Example2_10_c.sce (limited to '929/CH2/EX2.10.c/Example2_10_c.sce') diff --git a/929/CH2/EX2.10.c/Example2_10_c.sce b/929/CH2/EX2.10.c/Example2_10_c.sce new file mode 100755 index 000000000..e1e978ccb --- /dev/null +++ b/929/CH2/EX2.10.c/Example2_10_c.sce @@ -0,0 +1,39 @@ +//Example 2.10(c) + +clear; + +clc; + +Amin=1; + +Amax=10^3; + +AI=0.5; + +R1=100*10^3;//Tolerance (1%) + +R2=AI*R1;//Tolerance (1%) + +AImin=Amin/AI; + +AImax=Amax/AI; + +//AImin<=AI<=AImax +//AImin=1+((2*R3)/(R4+R1)) -> 1+((2*R3)/(R4+R1))-Amin=0 -> (1-AImin)*R4+2*R3+(1-AImin)*R1=0...(i) and AImax=1+((2*R3)/(R4+0)) ->(1-AImax)*R4+2*R3=0....(ii) +//Solving these two equations will give R3 and R4 + +A=[2 (1-AImin);2 (1-AImax)]; + +B=[(1-AImin)*R1;0]; + +R=linsolve(A,B); + +R3=R(1,1);//Tolerance (1%) + +R4=R(2,1);//Tolerance (1%) + +//2.10(c) + +Rpot1=100*10^3; + +printf("To calibrate the circuit, tie the inputs together and set the Rpot1 pot for the maximum gain (wiper all the way up). Then, while switching the common inputs back and forth between -5V and +5V, adjust the Rpot2 pot for the minimum change at the output."); \ No newline at end of file -- cgit