summaryrefslogtreecommitdiff
path: root/1316/CH2/EX2.1
diff options
context:
space:
mode:
Diffstat (limited to '1316/CH2/EX2.1')
-rw-r--r--1316/CH2/EX2.1/example2_1.sce29
-rw-r--r--1316/CH2/EX2.1/resultexample2_1.txt7
2 files changed, 36 insertions, 0 deletions
diff --git a/1316/CH2/EX2.1/example2_1.sce b/1316/CH2/EX2.1/example2_1.sce
new file mode 100644
index 000000000..a7f5357e7
--- /dev/null
+++ b/1316/CH2/EX2.1/example2_1.sce
@@ -0,0 +1,29 @@
+//Chapter 2
+//Example 2.1
+//Page 55
+
+clear;
+clc;
+
+Ri = 10;
+TF = 0.020;
+Ro = 5;
+T = 50;
+
+printf("The unloaded output of sensor is simply ")
+//Calculation of Vt
+x = TF*T;
+printf("Vt = %.1f \n",x)
+printf("Since the amplifier has a gain of 10,the output of the amplifier appears to be ")
+//Calculation of Vout
+y = Ri*x;
+printf("Vout = %.0f V \n",y)
+printf("But this is wrong because of loading !\n ")
+//Correct Analysis
+printf("Here we see that there will be a voltage dropped across the \n output resistance of the sensor.The actual amplifier input voltage will be given by ")
+//Calculation of Vin
+a = x*(1-((Ro)/(Ro+Ri)));
+printf("Vin = %.2f V.\n",a)
+printf("Thus the output of amplifier is actually Vout = %.1f V \n",Ri*a)
+
+
diff --git a/1316/CH2/EX2.1/resultexample2_1.txt b/1316/CH2/EX2.1/resultexample2_1.txt
new file mode 100644
index 000000000..a2a032eb1
--- /dev/null
+++ b/1316/CH2/EX2.1/resultexample2_1.txt
@@ -0,0 +1,7 @@
+ The unloaded output of sensor is simply Vt = 1.0
+Since the amplifier has a gain of 10,the output of the amplifier appears to be Vout = 10 V
+But this is wrong because of loading !
+ Here we see that there will be a voltage dropped across the
+ output resistance of the sensor.The actual amplifier input voltage will be given by Vin = 0.67 V.
+Thus the output of amplifier is actually Vout = 6.7 V
+ \ No newline at end of file