summaryrefslogtreecommitdiff
path: root/Electronic_Principles_/Chapter_24_New.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Electronic_Principles_/Chapter_24_New.ipynb')
-rw-r--r--Electronic_Principles_/Chapter_24_New.ipynb89
1 files changed, 0 insertions, 89 deletions
diff --git a/Electronic_Principles_/Chapter_24_New.ipynb b/Electronic_Principles_/Chapter_24_New.ipynb
index 7b020fb6..ab177723 100644
--- a/Electronic_Principles_/Chapter_24_New.ipynb
+++ b/Electronic_Principles_/Chapter_24_New.ipynb
@@ -27,24 +27,18 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.1.py\n",
- "#Vin=15V, Rs=10 Ohm, Vz=9.1V, VBE=0.8V, RL=40 Ohm.\n",
- "#what are the value of Vout, Iin, IL, IC.\n",
"\n",
- "#Variable declaration\n",
"Rs=10 #given source resistance Rs(Ohm)\n",
"RL=40 #given load resistance RL(Ohm)\n",
"Vin=15 #input voltage(V)\n",
"VBE=0.8 #base-emitter voltage drop(V) \n",
"Vz=9.1 #voltage across diode(V)\n",
"\n",
- "#Calculation\n",
"Vout=Vz+VBE #output voltage(V) \n",
"Is=1000*(Vin-Vout)/Rs #input current(mA) \n",
"IL=1000*Vout/RL #load current(mA)\n",
"IC=Is-IL #collector current(mA)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',Vout,'V'\n",
"print 'input current Is = ',Is,'mA'\n",
"print 'load current IL = ',IL,'mA'\n",
@@ -78,11 +72,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.2.py\n",
- "#Vin=15V, Rs=10 Ohm, Vz=6.2V, VBE=0.81V, RL=40 Ohm , R1=750 Ohm, R2=250 Ohm.\n",
- "#what are the value of Vout, Iin, IL, IC.\n",
"\n",
- "#Variable declaration\n",
"Rs=10 #given source resistance Rs(Ohm)\n",
"RL=40 #given load resistance RL(Ohm)\n",
"Vin=15 #input voltage(V)\n",
@@ -91,13 +81,11 @@
"R1=750 #base input resistance(Ohm)\n",
"R2=250 #base input resistance(Ohm)\n",
"\n",
- "#Calculation\n",
"Vout=(Vz+VBE)*(R1+R2)/R1 #output voltage(V) \n",
"Is=1000*(Vin-Vout)/Rs #input current(mA) \n",
"IL=1000*Vout/RL #load current(mA)\n",
"IC=Is-IL #collector current(mA)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',round(Vout,2),'V'\n",
"print 'input current Is = ',round(Is,2),'mA'\n",
"print 'load current IL = ',round(IL,2),'mA'\n",
@@ -131,24 +119,17 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.3.py\n",
- "#What is the approximate efficiency in the preceding example?\n",
- "#How much power does the regulator dissipate?\n",
"\n",
- "#Variable declaration\n",
- "#data from preceding example\n",
"Vout=9.35 #output voltage(V)\n",
"IL=234 #load current(mA)\n",
"Is=565 #input current(mA)\n",
"Vin=15.0 #input voltage(V)\n",
"\n",
- "#Calculation\n",
"Pout=Vout*IL/1000 #output power(W)\n",
"Pin=Vin*Is/1000 #input power(W)\n",
"eff=Pout/Pin #efficiency\n",
"preg=Pin-Pout #power dissipated by regulator(W)\n",
"\n",
- "#Result\n",
"print 'input power Pin = ',Pin,'W'\n",
"print 'Output power Pout = ',round(Pout,2),'W'\n",
"print 'Effifciency = ',round((eff*100),2),'%'\n",
@@ -182,11 +163,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.4.py\n",
- "#Vin=15V, Rs=10 Ohm, Vz=6.8V, RL=40 Ohm , R1=7.5 KOhm, R2=2.5 KOhm.\n",
- "#what are the value of Vout, Iin, IL, IC.\n",
"\n",
- "#Variable declaration\n",
"Rs=10 #given source resistance Rs(Ohm)\n",
"RL=40 #given load resistance RL(Ohm)\n",
"Vin=15 #input voltage(V)\n",
@@ -194,13 +171,11 @@
"R1=7.5*10**3 #base input resistance(Ohm)\n",
"R2=2.5*10**3 #base input resistance(Ohm)\n",
"\n",
- "#Calculation\n",
"Vout=Vz*(R1+R2)/R1 #output voltage(V) \n",
"Is=1000*(Vin-Vout)/Rs #input current(mA) \n",
"IL=1000*Vout/RL #load current(mA)\n",
"IC=Is-IL #collector current(mA)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',round(Vout,2),'V'\n",
"print 'input current Is = ',round(Is,2),'mA'\n",
"print 'load current IL = ',round(IL,2),'mA'\n",
@@ -234,20 +209,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.5.py\n",
- "#Calculate maximum load currents for examples 24-1,2,4.\n",
"\n",
- "#Variable declaration\n",
"Is1=510 #input current in ex. 24-1 (mA)\n",
"Is2=565 #input current in ex. 24-2 (mA)\n",
"Is4=593 #input current in ex. 24-4 (mA)\n",
"\n",
- "#Calculation\n",
"Imax1=Is1 #maximum load current (mA) \n",
"Imax2=Is2 #maximum load current (mA) \n",
"Imax4=Is4 #maximum load current (mA) \n",
"\n",
- "#Result\n",
"print 'maximum load current Imax1 = ',Imax1,'mA'\n",
"print 'maximum load current Imax2 = ',Imax2,'mA'\n",
"print 'maximum load current Imax4 = ',Imax4,'mA'"
@@ -279,20 +249,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.6.py\n",
- "#VNL=9.91V, VFL=9.81V, VHL=9.94V, and VLL=9.79V. What is load regulation & line regulation?\n",
"\n",
- "#Variable declaration\n",
"VNL=9.91 #given VNL(V)\n",
"VFL=9.81 #given VFL(V)\n",
"VHL=9.94 #given VHL(V) \n",
"VLL=9.79 #given VLL(V)\n",
"\n",
- "#Calculation\n",
"LoR=(VNL-VFL)*100/VFL #Load regulation(%)\n",
"LiR=(VHL-VLL)*100/VLL #Line regulation(%)\n",
"\n",
- "#Result\n",
"print 'Load regulation = ',round(LoR,2),'%'\n",
"print 'Line regulation = ',round(LiR,2),'%'"
],
@@ -322,10 +287,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.7.py\n",
- "#Calculate approx. output voltage in figure 24-14, what is the power dissipation in pass transistor?\n",
"\n",
- "#Variable declaration\n",
"RL=40.0 #given load resistance RL(Ohm)\n",
"VBE=0.7 #base-emitter voltage drop(V) \n",
"Vz=6.2 #voltage across diode(V)\n",
@@ -333,12 +295,10 @@
"R2=1.0 #base input resistance(KOhm)\n",
"Vin=15 #input voltage(V)\n",
"\n",
- "#Calculation\n",
"Vout=(Vz+VBE)*(R1+R2)/R1 #output voltage(V)\n",
"IC=Vout/RL #transistor current(A)\n",
"PD=(Vin-Vout)*IC #power dissipation(W)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',Vout,'V'\n",
"print 'transistor current = load current = IC = ',IC*1000,'mA'\n",
"print 'Power dissipation PD = ',PD,'W'"
@@ -377,22 +337,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.3.py\n",
- "#What is the approximate efficiency in the preceding example 24-7?\n",
"\n",
- "#Variable declaration\n",
- "#data from preceding example\n",
"Vout=9.2 #output voltage(V)\n",
"IL=230 #load current(mA)\n",
"Vin=15.0 #input voltage(V)\n",
"\n",
- "#Calculation\n",
"Pout=Vout*IL/1000 #output power(W)\n",
"Pin=Vin*IL/1000 #input power(W)\n",
"eff1=Pout/Pin #efficiency\n",
"eff2=Vout/Vin #efficiency\n",
"\n",
- "#Result\n",
"print 'input power Pin = ',Pin,'W'\n",
"print 'Output power Pout = ',Pout,'W'\n",
"print 'Effifciency 1= ',round((eff1*100),2),'%'\n",
@@ -426,10 +380,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.9.py\n",
- "#What is the approx. output voltage in figure 24-15,Why is a darlington transistor is used?\n",
"\n",
- "#Variable declaration\n",
"RL=4.0 #given load resistance RL(Ohm)\n",
"Vz=5.6 #voltage across diode(V)\n",
"R1=2.7 #base input resistance(KOhm)\n",
@@ -437,12 +388,10 @@
"Vin=15 #input voltage(V)\n",
"B=100 #current gain\n",
"\n",
- "#Calculation\n",
"Vout=Vz*(R1+R2)/R1 #output voltage(V)\n",
"IL=Vout/RL #load current(A)\n",
"IB=IL/B #base current(A)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',round(Vout,2),'V'\n",
"print 'Load current IL = ',round(IL,2),'A'\n",
"print 'base current IB = ',round((IB*1000),2),'mA'"
@@ -474,20 +423,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.10.py\n",
- "#VNL=10.16V, VFL=10.15V, VHL=10.16V, and VLL=10.07V. What is load regulation & line regulation?\n",
"\n",
- "#Variable declaration\n",
"VNL=10.16 #given VNL(V)\n",
"VFL=10.15 #given VFL(V)\n",
"VHL=10.16 #given VHL(V) \n",
"VLL=10.07 #given VLL(V)\n",
"\n",
- "#Calculation\n",
"LoR=(VNL-VFL)*100/VFL #Load regulation(%)\n",
"LiR=(VHL-VLL)*100/VLL #Line regulation(%)\n",
"\n",
- "#Result\n",
"print 'Load regulation = ',round(LoR,3),'%'\n",
"print 'Line regulation = ',round(LiR,2),'%'"
],
@@ -517,11 +461,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.11.py\n",
- "#vin can vary from 17.5 to 22.5V, what is the maximum zener current, min & max regulated output voltages?\n",
- "#If regulated voltage is 12.5V, what is the load resistance where current limiting starts & approx. shorted-load current?\n",
"\n",
- "#Variable declaration\n",
"RL=3.0 #given load resistance RL(Ohm)\n",
"Vz=4.7 #voltage across diode(V)\n",
"R11=1750 #base input resistance with max. potentiometer(Ohm)\n",
@@ -534,7 +474,6 @@
"Vcs=0.7 #voltage across current sensing resistor(V)\n",
"Vo=12.5 #regulated voltage given(V)\n",
"\n",
- "#Calculation\n",
"Iz=(Vin-Vz)/Rs #max. zener current(A)\n",
"Vout1=Vz*(R11+R2)/R11 #min. regulated output voltage(V)\n",
"Vout2=Vz*(R12+R2)/R12 #max. regulated output voltage(V)\n",
@@ -542,7 +481,6 @@
"RL1=Vo/IL #load resistance(Ohm)\n",
"ISL=Vcs/RL #shorted-load current(A)\n",
"\n",
- "#Result\n",
"print 'maximum zener current Iz = ',round((Iz*1000),2),'mA'\n",
"print 'Load current IL = ',IL*1000,'mA'\n",
"print 'load resistance RL = ',RL1,'Ohm'\n",
@@ -576,10 +514,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.12.py\n",
- "#what is load current in figure 24-21? what is the output ripple?\n",
"\n",
- "#Variable declaration\n",
"Vout=12.0 #regulated output voltage(V)\n",
"RL=100.0 #given load resistance RL(Ohm)\n",
"\n",
@@ -587,13 +522,11 @@
"f=120 #frequency(Hz)\n",
"RR_dB=72.0 #ripple rejection(dB)\n",
"\n",
- "#Calculation \n",
"IL=Vout/RL #load current(A)\n",
"VRi=IL/(f*C) #peak to peak input ripple (V)\n",
"RR=10**(RR_dB/20) #ripple rejection\n",
"VRo=VRi/RR #peak to peak output ripple (V)\n",
"\n",
- "#Result\n",
"print 'Load current IL = ',IL*1000,'mA'\n",
"print 'peak to peak input ripple = ',VRi,'V'\n",
"print 'peak to peak output ripple = ',round((VRo*1000),2),'mV'"
@@ -625,19 +558,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.13.py\n",
- "#If R1=2KOhm, R2=22KOhm in figure 24-20, what is the output voltage? If R2 is increased to 46 KOhm. What is the output voltage?\n",
"\n",
- "#Variable declaration\n",
"R1=2.0 #given resistance(KOhm)\n",
"R2=22.0 #given resistance(KOhm)\n",
"R21=46.0 #given resistance increased(KOhm)\n",
"\n",
- "#Calculation\n",
"Vout1=1.25*(R1+R2)/R1 #output voltage(V)\n",
"Vout2=1.25*(R1+R21)/R1 #output voltage with increased R2(V)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout1 = ',Vout1,'V'\n",
"print 'output voltage with increased R2, Vout2 = ',Vout2,'V' "
],
@@ -667,21 +595,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.14.py\n",
- "#The LM7805 can regulate to specifications with input voltage between 7.5 & 20V.\n",
- "#what is the maximum & minimum efficiency? \n",
"\n",
- "#Variable declaration\n",
- "#data from preceding example\n",
"Vout=5.0 #output voltage(V)\n",
"Vin_min=7.5 #min. input voltage(V)\n",
"Vin_max=20.0 #max. input voltage(V)\n",
"\n",
- "#Calculation\n",
"eff_max=Vout/Vin_min #maximum efficiency\n",
"eff_min=Vout/Vin_max #minimum efficiency\n",
"\n",
- "#Result\n",
"print 'Minimum Effifciency = ',eff_min*100,'%'\n",
"print 'Maximum Effifciency = ',round((eff_max*100),2),'%'"
],
@@ -711,19 +632,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.15.py\n",
- "#R1=2.21 KOhm, R2=2.8 KOhm, what is the output voltage, minimum input voltage that can be used with the output voltage?\n",
"\n",
- "#Variable declaration\n",
"R1=2.21 #given resistance(KOhm)\n",
"R2=2.8 #given resistance(KOhm)\n",
"R21=46.0 #given resistance increased(KOhm)\n",
"VREF=2.21 #Reference voltage(V)\n",
"\n",
- "#Calculation\n",
"Vout=VREF*(R1+R2)/R1 #output voltage(V)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',Vout,'V'\n",
"print 'Input voltage should be 2V greater than output voltage So, Vin = 7 V'"
],
@@ -753,18 +669,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 24.15.py\n",
- "#In buck-boost regulator of figure 24-32, If R1=1 KOhm, R2=5.79 KOhm, what is the output voltage? \n",
"\n",
- "#Variable declaration\n",
"R1=1 #given resistance(KOhm)\n",
"R2=5.79 #given resistance(KOhm)\n",
"VREF=2.21 #Reference voltage(V)\n",
"\n",
- "#Calculation\n",
"Vout=VREF*(R1+R2)/R1 #output voltage(V)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',round(Vout,2),'V'"
],
"language": "python",