summaryrefslogtreecommitdiff
path: root/Electronic_Principles_/Chapter_14_New.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Electronic_Principles_/Chapter_14_New.ipynb')
-rw-r--r--Electronic_Principles_/Chapter_14_New.ipynb82
1 files changed, 0 insertions, 82 deletions
diff --git a/Electronic_Principles_/Chapter_14_New.ipynb b/Electronic_Principles_/Chapter_14_New.ipynb
index 9d13545e..d16f054a 100644
--- a/Electronic_Principles_/Chapter_14_New.ipynb
+++ b/Electronic_Principles_/Chapter_14_New.ipynb
@@ -27,10 +27,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.1.py\n",
- "#A D-MOSFET has VGS_Off=-3V and IDSS = 6mA. What will the ID when VGS equals -1V,-2V, 0V,1V and 2V ?\n",
"\n",
- "#Variable declaration\n",
"VGS_off=-3.0 #Gate-source cutoff voltage(V)\n",
"IDSS=6 #IDSS current(mA) \n",
"VGS1=-1 #VGS voltage(V)\n",
@@ -39,7 +36,6 @@
"VGS4=1\n",
"VGS5=2\n",
"\n",
- "#Calculation\n",
"ID1=IDSS*((1-(VGS1/VGS_off))**2)\n",
"ID2=IDSS*((1-(VGS2/VGS_off))**2)\n",
"ID3=IDSS*((1-(VGS3/VGS_off))**2)\n",
@@ -47,7 +43,6 @@
"ID5=IDSS*((1-(VGS5/VGS_off))**2)\n",
"\n",
"\n",
- "#Result\n",
"print 'Drain current ID1 = ',round(ID1,2),'mA'\n",
"print 'Drain current ID2 = ',round(ID2,2),'mA'\n",
"print 'Drain current ID3 = ',ID3,'mA'\n",
@@ -83,11 +78,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.2.py\n",
- "#The D-MOSFET has VGS(off) =-2V, IDSS=4mA and gm0=2000 uS. \n",
- "#What is the circuit's output voltage?\n",
"\n",
- "#Variable declaration\n",
"VGS_off=-2.0 #Gate-source cutoff voltage(V)\n",
"IDSS=4 #IDSS current(mA) \n",
"gm0=2000*10**-6 #transconductance(S)\n",
@@ -97,13 +88,11 @@
"RL=10.0 #Load resistance(KOhm)\n",
"Vin=20 #input voltage(mV)\n",
"\n",
- "#Calculation\n",
"VDS=VDD-(IDSS*RD) #Drain-source voltage(V)\n",
"rd=RD*RL/(RD+RL) #ac drain resistance(KOhm) \n",
"Av=gm0*rd*1000 #voltage gain\n",
"Vout=Vin*Av #output voltage (mV)\n",
"\n",
- "#Result\n",
"print 'Output voltage Vout = ',round(Vout,2),'mV'"
],
"language": "python",
@@ -131,10 +120,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.3.py\n",
- "#What is the output voltage in figure 14-14a?\n",
"\n",
- "#Variable declaration\n",
"VGS_on=4.5 #Gate-source voltage(V)\n",
"ID_on=75 #ID current(mA) \n",
"RDS=6 #Ohmic resistance(Ohm)\n",
@@ -142,14 +128,10 @@
"RD=1.0 #Drain resistance(KOhm)\n",
"RL=10.0 #Load resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"ID_sat=VDD/RD #drain saturation current(mA)\n",
- "#VGS is high,\n",
"Vout1=VDD*(RDS/(RDS+(RD*1000)))#output voltage when VGS is high(V)\n",
- "#VGS is low, \n",
"Vout2=VDD #output voltage when VGS is low(V) \n",
"\n",
- "#Result\n",
"print 'output voltage when VGS is high = ',round(Vout1,2),'V'\n",
"print 'output voltage when VGS is low = ',Vout2,'V'"
],
@@ -179,18 +161,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.4.py\n",
- "#What is the LED current ib figure 14-15?\n",
"\n",
- "#Variable declaration\n",
"ID=20 #ID current as per previous example(mA) \n",
"Vled=2 #Led drop(V)\n",
"RD=1.0 #Drain resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"ID=(VDD-Vled)/RD #drain current considering LED drop\n",
"\n",
- "#Result\n",
"print 'drain current considering LED drop ID = ',ID,'mA'"
],
"language": "python",
@@ -218,17 +195,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.5.py\n",
- "#What does the circuit of figure 14-16a do if a coil current of 30 mA or more closes the relay contacts? \n",
"\n",
- "#Variable declaration\n",
"Rrc=500.0 #Resistance of relay(V)\n",
"VDD=24 #drain supply voltage(V)\n",
"\n",
- "#Calculation\n",
"ID_sat=VDD/Rrc #drain saturation current(A)\n",
"\n",
- "#Result\n",
"print 'Drain saturaion current ID(sat) = ',ID_sat*1000,'mA'"
],
"language": "python",
@@ -256,19 +228,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.6.py\n",
- "#What is the output voltage in figure 14-20a when the input is low & high?\n",
"\n",
- "#Variable declaration\n",
"VDD=20.0 #drain supply voltage (V)\n",
"RD=10*10**3 #drain resistance(Ohm)\n",
"RDS=50.0 #Ohmic resistance(Ohm)\n",
"\n",
- "#Calculation\n",
"Vout1=VDD #Output voltage when i/p is low (V)\n",
"Vout2=VDD*RDS/(RDS+RD) #Output voltage when i/p is high (V)\n",
"\n",
- "#Result\n",
"print 'Output voltage when input is low Vout1 = ',Vout1,'V'\n",
"print 'Output voltage when input is high Vout2 = ',round((Vout2*1000),2),'mV'"
],
@@ -298,19 +265,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.7.py\n",
- "#What is the output voltage in figure 14-20b?\n",
"\n",
- "#Variable declaration\n",
"VDD=10.0 #drain supply voltage (V)\n",
"RD=2*10**3 #drain resistance(Ohm)\n",
"RDS=500.0 #Ohmic resistance(Ohm)\n",
"\n",
- "#Calculation\n",
"Vout1=VDD #Output voltage when i/p is low (V)\n",
"Vout2=VDD*RDS/(RDS+RD) #Output voltage when i/p is high (V)\n",
"\n",
- "#Result\n",
"print 'Output voltage when input is low Vout1 = ',Vout1,'V'\n",
"print 'Output voltage when input is high Vout2 = ',Vout2,'V'"
],
@@ -340,13 +302,10 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.8.py\n",
- "#The MOSFET of figure 14-22a have RDS(ON)=100 Ohm, RDS(off)=1 MOhm. What does output waveform look like?\n",
"\n",
"import matplotlib.pyplot as plt\n",
"%pylab inline\n",
"\n",
- "#calculation & plotting\n",
"print 'Input signal switches from 0 to 15 V at pt. A & 15 to 0 V at pt. B'\n",
"x=[1,2,3,4,5,6,7,8,9,10]\n",
"y=[0,0,0,15,15,15,15,0,0,0]\n",
@@ -408,21 +367,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.9.py\n",
- "#What is the current through the motor winding of figure 14-28?\n",
"\n",
- "#Variable declaration\n",
"VDD=30.0 #drain supply voltage (V)\n",
"RD=30 #drain resistance(Ohm)\n",
"RDS=1.95 #Ohmic resistance(Ohm)\n",
"ID_on=2 #ID for MOSFET on (A)\n",
"\n",
- "#Calculation\n",
"ID_sat=VDD/RD #drain saturation current(A)\n",
- "#ID_sat<ID(On) so, considering RDS,\n",
"ID=VDD/(RDS+RD) #drain current(A)\n",
"\n",
- "#Result\n",
"print 'current through motor winding is ID = ',round(ID,2),'A'"
],
"language": "python",
@@ -450,22 +403,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.10.py\n",
- "#If photodiode is off, gate voltage rises to 10 V.\n",
- "#what is ac current through lamp?\n",
"\n",
- "#Variable declaration\n",
"VDD=30.0 #drain supply voltage (V)\n",
"RD=10 #drain resistance(Ohm)\n",
"RDS=1.07 #Ohmic resistance(Ohm)\n",
"ID_on=5 #ID for MOSFET on (A)\n",
"\n",
- "#Calculation\n",
"ID_sat=VDD/RD #drain saturation current(A)\n",
- "#ID_sat<ID(On) so, considering RDS,\n",
"ID=VDD/(RDS+RD) #drain current(A)\n",
"\n",
- "#Result\n",
"print 'current through lamp is ID = ',round(ID,2),'A'"
],
"language": "python",
@@ -493,20 +439,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.11.py\n",
- "#The circuit of figure 14-30 automatically filled swimming pool.\n",
- "#Find current through water valve of if power FET has RDS(on)=0.5 Ohm\n",
"\n",
- "#Variable declaration\n",
"VDD=10.0 #drain supply voltage (V)\n",
"RD=10 #drain resistance(Ohm)\n",
"RDS=0.5 #Ohmic resistance(Ohm)\n",
"ID_on=5 #ID for MOSFET on (A)\n",
"\n",
- "#Calculation\n",
"ID=VDD/(RDS+RD) #drain current(A)\n",
"\n",
- "#Result\n",
"print 'current through water valve is ID = ',round(ID,2),'A'"
],
"language": "python",
@@ -534,10 +474,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.12.py\n",
- "#What is the RC time constant & lamp power at full brightness?\n",
"\n",
- "#Variable declaration\n",
"VDD=30.0 #drain supply voltage (V)\n",
"RD=10 #drain resistance(Ohm)\n",
"RDS=1.07 #Ohmic resistance(Ohm)\n",
@@ -545,13 +482,11 @@
"R2=1*10**6 #Resistance2 at gate (Ohm)\n",
"C=10*10**-6 #Capacitance at gate(F)\n",
"\n",
- "#Calculation\n",
"RTH=R1*R2/(R1+R2) #Thevenin resistance(Ohm)\n",
"RC=RTH*C #RC Time constant(s)\n",
"ID=VDD/(RDS+RD) #drain current through lamp(A)\n",
"P=(ID**2)*RD #Lamp Power(W)\n",
"\n",
- "#Result\n",
"print 'RC Time constant = ',round(RC,2),'s'\n",
"print 'current through lamp is ID = ',round(ID,2),'A'\n",
"print 'Lamp power P = ',round(P,2),'W'"
@@ -583,22 +518,17 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.13.py\n",
- "#find constant k value and ID at VGSvalues of 3 V & 4.5V \n",
"\n",
- "#Variable declaration\n",
"ID_on=0.6 #ID for MOSFET on (A)\n",
"VGS_on=4.5 #VGS for MOSFET on(V)\n",
"VGS_th=2.1 #VGS threshold(V)\n",
"VGS1=3 #Gate-source voltage1(V)\n",
"VGS2=4.5 #Gate-source voltage2(V)\n",
"\n",
- "#Calculation\n",
"k=ID_on/(VGS_on-VGS_th)**2 #constant(A/V2)\n",
"ID1=1000*k*(VGS1-VGS_th)**2 #ID for VGS=3 (mA)\n",
"ID2=1000*k*(VGS2-VGS_th)**2 #ID for VGS=4.5 (mA)\n",
"\n",
- "#Result\n",
"print 'ID1 (for VGS = 3V) = ',round(ID1,2),'mA'\n",
"print 'ID2 (for VGS = 4.5V) = ',ID2,'mA'"
],
@@ -628,19 +558,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.14.py\n",
- "#E-MOSFET has ID(on) = 3mA and VDS(on) = 10V. \n",
- "#If VDD=25V,find RD that allows MOSFET to operate at specified Q point.\n",
"\n",
- "#Variable declaration\n",
"ID_on=3 #ID (On) (mA)\n",
"VDS_on=10 #VDS(On) (V) \n",
"VDD=25 #Drain supply voltage (V)\n",
"\n",
- "#Calculation\n",
"RD=(VDD-VDS_on)/ID_on #Drain resistance(KOhm)\n",
"\n",
- "#Result\n",
"print 'Drain resistance RD = ',RD,'KOhm'"
],
"language": "python",
@@ -668,11 +592,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 14.15.py\n",
- "#Find VGS,ID,gm and Vout. \n",
- "# k=104*10-3 A/V2 ,ID(On)=600mA, VGS(th)=2.1V\n",
"\n",
- "#Variable declaration\n",
"ID_on=600 #ID (On) (mA)\n",
"VGS_th=2.1 #VGS(threshold) (V) \n",
"VDD=12 #Drain supply voltage (V)\n",
@@ -683,7 +603,6 @@
"RD=68.0 #Drain resistance(Ohm)\n",
"RL=1.0*10**3 #Load resistance(Ohm)\n",
"\n",
- "#Calculation\n",
"VGS=VDD*R2/(R1+R2) #Gate-source voltage(V)\n",
"ID=1000*k*(VGS1-VGS_th)**2 #Drain current (mA)\n",
"gm=2*k*(VGS-VGS_th) #transconductance (S)\n",
@@ -691,7 +610,6 @@
"Av=gm*rd #voltage gain\n",
"Vout=Vin*Av #Output voltage (V)\n",
"\n",
- "#Result\n",
"print 'Gate-source voltage VGS = ',round(VGS,2),'V'\n",
"print 'transconductance gm = ',round((gm*1000),2),'mS'\n",
"print 'Ac drain resistance rd = ',round(rd,2),'Ohm'\n",