summaryrefslogtreecommitdiff
path: root/Working_Examples/3885/CH2
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/3885/CH2')
-rwxr-xr-xWorking_Examples/3885/CH2/EX2.1/Ex2_1.sci23
-rwxr-xr-xWorking_Examples/3885/CH2/EX2.2/Ex2_2.sci24
-rwxr-xr-xWorking_Examples/3885/CH2/EX2.3/Ex2_3.sci31
3 files changed, 78 insertions, 0 deletions
diff --git a/Working_Examples/3885/CH2/EX2.1/Ex2_1.sci b/Working_Examples/3885/CH2/EX2.1/Ex2_1.sci
new file mode 100755
index 0000000..2488eeb
--- /dev/null
+++ b/Working_Examples/3885/CH2/EX2.1/Ex2_1.sci
@@ -0,0 +1,23 @@
+//control systems by Nagoor Kani A
+//Edition 3
+//Year of publication 2015
+//Scilab version 6.0.0
+//operating systems windows 10
+// Example 2.1
+clc;
+clear;
+n=300;// number of turns
+li=0.01//linearity =1%
+v=30//voltage=30V
+kp=v/n
+disp(kp,'Potentiometer constant in (volts/turn)')
+nmid=n/2
+vmid=kp*nmid
+disp(vmid,'Voltage at mid point is;')
+disp('Range of voltage at mid point with 1% linearity is 14.7volts to 15.3 volts')//vmid(+-)0.3
+//assuming potentiometer is perfectly linear so the resistance at midpoint setting from reference is 50kiloohm
+//load resistance of 500Kiloohm is connected in parallel with potentiometer
+req=(500*50)/(500+50)
+v0=(v*req)/(50+req)//using voltage divison rule
+disp(v0,'Voltage at midpoint with load resistance 500Kiloohm (in volts)')
+
diff --git a/Working_Examples/3885/CH2/EX2.2/Ex2_2.sci b/Working_Examples/3885/CH2/EX2.2/Ex2_2.sci
new file mode 100755
index 0000000..2f5f5c8
--- /dev/null
+++ b/Working_Examples/3885/CH2/EX2.2/Ex2_2.sci
@@ -0,0 +1,24 @@
+//control systems by Nagoor Kani A
+//Edition 3
+//Year of publication 2015
+//Scilab version 6.0.0
+//operating systems windows 10
+// Example 2.2
+clc;
+clear;
+n1=20//no of teeth in first gear
+n2=10//no of teeth in second gear
+diratio=n1/n2
+disp(diratio,'the ratio of diameters is')
+theta1=40//gear1 is rotated by an angle of 40 degree
+theta2=(n1/n2)*theta1
+disp(theta2,'displace ment of gear2 in (degrees)')
+as1=30//angular speed of gear1 is 30 rad/sec
+as2=(n1/n2)*as1
+disp(as2,' angular speed of gear2 in(rad/sec)')
+aa2=4//angular accleration of gear 2 is 4 rad/sec^2
+aa1=(n2/n1)*aa2
+disp(aa1,'angular accleration of gear 1 in (rad/sec^2)')
+t1=5//torque on gear1 5N-m
+t2=(n2/n1)*t1
+disp(t2,'torque on gear2 in (N-m)')
diff --git a/Working_Examples/3885/CH2/EX2.3/Ex2_3.sci b/Working_Examples/3885/CH2/EX2.3/Ex2_3.sci
new file mode 100755
index 0000000..a61eea7
--- /dev/null
+++ b/Working_Examples/3885/CH2/EX2.3/Ex2_3.sci
@@ -0,0 +1,31 @@
+//control systems by Nagoor Kani A
+//Edition 3
+//Year of publication 2015
+//Scilab version 6.0.0
+//operating systems windows 10
+// Example 2.3
+clc;
+clear;
+n1=200//no of teeth in gear1
+n2=50//no of teeth in gear2
+n3=100//no of teeth in gear3
+n4=50//no of teeth in gear4
+n5=40//no of teeth in gear5
+n6=20//no of teeth in gear6
+n7=150//no of teeth in gear7
+//if gear 1 rotates in clockwise then all odd no gears rotate in clockwisw and even no gear rotate in anticlockwise
+ad1=2//angular displacement in gear 1 is 2rad
+ad4=(n1/n4)*ad1
+disp(ad4,'angular displacement in gear 4 in rad (anticlockwise)')
+ad7=(n1/n7)*ad1
+disp(ad7,'angular displacement in gear 7 in rad (clockwise)')
+av6=20//angular velocity of gear 6 is 20 rad/sec
+av1=(n6/n1)*av6
+disp(av1,'angular velocity of gear 1 in rad/sec; (clockwise)')
+av3=(n6/n3)*av6
+disp(av3,'angular velocity of gear 3 in rad/sec; (clockwise)')
+t1=10//torque on gear 1 is 10 N-m
+t3=(n3/n1)*t1
+disp(t3,'torque in gear 3 in N-m')
+t7=(n7/n1)*t1
+disp(t7,'torque in gear 7 in N-m')