summaryrefslogtreecommitdiff
path: root/275/CH2/EX2.2.61/Ch2_2_61.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /275/CH2/EX2.2.61/Ch2_2_61.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '275/CH2/EX2.2.61/Ch2_2_61.sce')
-rwxr-xr-x275/CH2/EX2.2.61/Ch2_2_61.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/275/CH2/EX2.2.61/Ch2_2_61.sce b/275/CH2/EX2.2.61/Ch2_2_61.sce
new file mode 100755
index 000000000..16af3a357
--- /dev/null
+++ b/275/CH2/EX2.2.61/Ch2_2_61.sce
@@ -0,0 +1,33 @@
+clc
+disp("Example 2.61")
+printf("\n")
+disp("Design a zener voltage regulator to meet following specification")
+printf("Given\n")
+printf("1 Resistance are in ohms \n 2 Current are in ampere \n 3 voltage sources are in volt\n")
+//DC input voltage
+Vimin=12-3
+Vimax=12+3
+//DC output voltage
+Vo=5
+//Load current
+ILmax=20*10^-3
+ILmin=0
+//zener wattage
+Pzmax=500*10^-3
+Vz=Vo
+//maximum zener current
+Izmax=Pzmax/Vz
+//since Izmin is not given so let us take IZmin=5mA
+Izmin=5*10^-3
+//maximum Resistance
+Rmax=(Vimin-Vo)/(Izmin+ILmax)
+//mini resistance
+Rmin=(Vimax-Vo)/(Izmax+ILmin)
+//Required resistance
+R=(Rmax+Rmin)/2
+//load resistance
+RL=Vo/ILmax
+printf("minimum resistance %d ohm \n",Rmin)
+printf("maximum resistance %d ohm \n",Rmax)
+printf("required resistance %d ohm \n",R)
+printf("load resistance %d ohm \n",RL)