summaryrefslogtreecommitdiff
path: root/Fundamental_of_Electronics_Devices/Ch6.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Fundamental_of_Electronics_Devices/Ch6.ipynb')
-rw-r--r--Fundamental_of_Electronics_Devices/Ch6.ipynb91
1 files changed, 0 insertions, 91 deletions
diff --git a/Fundamental_of_Electronics_Devices/Ch6.ipynb b/Fundamental_of_Electronics_Devices/Ch6.ipynb
index e3eea147..179d14a6 100644
--- a/Fundamental_of_Electronics_Devices/Ch6.ipynb
+++ b/Fundamental_of_Electronics_Devices/Ch6.ipynb
@@ -27,17 +27,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.1\n",
- "#find the Base current\n",
"\n",
- "#given data\n",
"Ic=9.95\t\t\t#in mA\n",
"Ie=10 \t\t#in mA\n",
"\n",
- "#Calculation\n",
"Ib=Ie-Ic\t\t#in mA\n",
"\n",
- "#result\n",
"print\"Emitter current is \",Ib,\"mA\""
],
"language": "python",
@@ -65,24 +60,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.2\n",
- "#Find (i)Emitter current (ii)Current amplification factor (iii)Current gain factor \n",
"\n",
- "#given data\n",
"IC=0.98\t\t\t#in mA\n",
"IB=20.0\t\t\t#in uA\n",
"IB=IB*10**-3\t\t#in mA\n",
"\n",
- "#Calculation\n",
- "#part (i)\n",
"IE=IB+IC\t\t#in mA\n",
"\n",
- "#part (ii)\n",
"alpha=IC/IE\t\t#unitless\n",
- "#part (iii)\n",
"Beta=IC/IB\t\t#unitless\n",
"\n",
- "#Result\n",
"print\"Emitter current is\",IE,\"mA\"\n",
"print\"Current amplification factor is \",alpha\n",
"print\"Current gain factor is \",Beta"
@@ -114,22 +101,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.3\n",
- "#Emitter current and Collector current\n",
"\n",
- "#given data\n",
"alfaDC=0.98\t\t\t#unitless\n",
"ICBO=4\t\t\t\t#in uA\n",
"ICBO=ICBO*10**-3\t\t#in mA\n",
"IB=50\t\t\t\t#in uA\n",
"IB=IB*10**-3\t\t\t#in mA\n",
"\n",
- "#calculation\n",
- "#Formula : IC=alfaDC*(IB+IC)+ICBO\n",
"IC=alfaDC*IB/(1-alfaDC)+ICBO/(1-alfaDC)\t#in mA\n",
"IE=IC+IB\t\t\t#in mA\n",
"\n",
- "#Result\n",
"print\"Emitter current is \",IE,\"mA\"\n",
"print\"Collector current is \",IC,\"mA\""
],
@@ -159,21 +140,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.4\n",
- "#Find the collector current\n",
"\n",
- "#given data\n",
"IB=10\t\t\t#in uA\n",
"IB=IB*10**-3\t\t#in mA\n",
"Beta=99\t\t\t#Unitless\n",
"ICO=1\t\t\t#in uA\n",
"ICO=ICO*10**-3\t\t#in mA\n",
"\n",
- "#calculation\n",
- "#Formula : IC=alfa*(IB+IC)+ICO\n",
"IC=Beta*IB+(1+Beta)*ICO\t#in mA\n",
"\n",
- "#Result\n",
"print\"Collector current in mA : \",IC,\"mA\""
],
"language": "python",
@@ -201,24 +176,18 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.5\n",
- "#Find (i) alpha , beta and Ie \n",
- "#(ii)New level of Ib\n",
"\n",
- "#Given\n",
"Ic=5*10**-3 #mA collector current\n",
"Ic_=10*10**-3 #mA collector current\n",
"Ib=50*10**-6 #mA, Base current\n",
"Icbo=1*10**-6 #micro A, Current to base open current\n",
"\n",
- "#Calculation\n",
"beta=(Ic-Icbo)/(Ib+Icbo)\n",
"alpha=(beta/(1+beta))\n",
"Ie=Ib+Ic\n",
"\n",
"Ib=(Ic_-(beta+1)*Icbo)/(beta)\n",
"\n",
- "#Result\n",
"print\"(i) Current gain factor is\",round(beta,0)\n",
"print\" Current amplification factor is\",round(alpha,2)\n",
"print\" Emitter Current is\",Ie*1000,\"mA\"\n",
@@ -252,17 +221,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.6\n",
- "#Find the dynamic input resistance\n",
"\n",
- "#given data\n",
"delVEB=200\t\t\t#in Volts\n",
"delIE=5\t\t\t\t#in mA\n",
"\n",
- "#calculation\n",
"rin=delVEB/delIE\t\t#in ohm\n",
"\n",
- "#Result\n",
"print\"Dynamic input resistance is \",rin,\"mohm\""
],
"language": "python",
@@ -290,21 +254,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.7\n",
- "#Determine Current gain and base current\n",
"\n",
"\n",
- "#given data\n",
"ICBO=12.5 \t\t\t#in uA\n",
"ICBO=ICBO*10**-3 \t\t#in mA\n",
"IE=2 \t\t\t\t#in mA\n",
"IC=1.97 \t\t\t#in mA\n",
"\n",
- "#calculation\n",
"alfa=(IC-ICBO)/IE \t\t#unitless\n",
"IB=IE-IC \t\t\t#in mA\n",
"\n",
- "#result\n",
"print\"Current gain : \",round(alfa,3)\n",
"print\"Base current is \",IB,\"mA\""
],
@@ -334,18 +293,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.8\n",
- "#given data\n",
"RL=4.0 \t\t\t#in Kohm\n",
"VL=3.0\t\t\t#in volt\n",
"alfa=0.96 \t\t#unitless\n",
"IC=VL/RL \t\t#in mA\n",
"\n",
- "#calculation\n",
"IE=IC/alfa \t\t#in mA\n",
"IB=IE-IC \t\t#in mA\n",
"\n",
- "#result\n",
"print\"Base current ia\",round(IB,2),\"mA\""
],
"language": "python",
@@ -373,23 +328,17 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.9\n",
- "#Determine Collector emitter voltage and base current\n",
"\n",
- "#given data\n",
"VCC=10\t\t\t #in volt\n",
"RL=800\t\t\t #in ohm\n",
"VL=0.8\t\t\t #in volt\n",
"alfa=0.96\t\t #unitless\n",
"\n",
- "#calculation\n",
- "#VR=IC*RL\n",
"VCE=VCC-VL \t\t#in Volt\n",
"IC=VL*1000/RL \t\t#in mA\n",
"Beta=alfa/(1-alfa) \t#unitless\n",
"IB=IC/Beta \t\t#in mA\n",
"\n",
- "#Result\n",
"print\"Collector-emitter Voltage is \",VCE,\"V\"\n",
"print\"Base current in uA : \",round(IB*1000,2),\"microA\""
],
@@ -419,19 +368,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.10\n",
- "#Determine Collector Current\n",
"\n",
- "#given data\n",
"alfao=0.98 \t\t#unitless\n",
"ICO=10 \t\t\t#in uA\n",
"ICO=ICO*10**-3 \t\t#in mA\n",
"IB=0.22 \t\t#in mA\n",
"\n",
- "#calculation\n",
"IC=(alfao*IB+ICO)/(1-alfao) \t#in mA\n",
"\n",
- "#result\n",
"print\"Collector current is\",IC,\"mA\""
],
"language": "python",
@@ -459,17 +403,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.11\n",
- "#determine Dynamic input resistance \n",
"\n",
- "#given data\n",
"delVEB=250 \t\t#in mVolts\n",
"delIE=1 \t\t#in mA\n",
"\n",
- "#calculation\n",
"rin=delVEB/delIE \t#in ohm\n",
"\n",
- "#result\n",
"print\"Dynamic input resistance is\",rin,\"ohm\""
],
"language": "python",
@@ -497,17 +436,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.12\n",
- "#Determine Dynamic output resistance\n",
"\n",
- "#given data\n",
"delVCE=10-5 \t\t#in Volts\n",
"delIC=5.8-5\t \t#in mA\n",
"\n",
- "#calculation\n",
"rin=delVCE/delIC \t#in Kohm\n",
"\n",
- "#result\n",
"print\"Dynamic output resistance is \",rin,\"kohm\""
],
"language": "python",
@@ -545,27 +479,19 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.13\n",
- "#Determine operating point\n",
"\n",
- "#given data\n",
"VCC=10 \t\t\t#in volt\n",
"RC=8 \t\t\t#in Kohm\n",
"Beta=40 \t\t#unitless\n",
"IB=15 \t\t\t#in uA\n",
"IB=IB*10**-3 \t\t#in mA\n",
"\n",
- "#calculation\n",
- "# For VCE = 0 Volts\n",
"IC=VCC/RC \t\t#in mA\n",
- "#For IC=0 VCE=VCC=10V :\n",
"IC=Beta*IB \t\t#in mA\n",
"VCE=VCC-IC*RC \t\t#in Volts\n",
"\n",
- "#result\n",
"print\"Operating point Q is (\",VCE,\"V,\",IC,\"mA)\"\n",
"\n",
- "#Plot\n",
"import matplotlib.pyplot as plt\n",
"fig = plt.figure()\n",
"ax = fig.add_subplot(111)\n",
@@ -613,20 +539,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.14\n",
- "#How will the Q point change when load resistance will be change\n",
"\n",
- "#given data \n",
"Vcc=12 \t\t#in Volt collector supply voltage\n",
"Ic=1.2 #A, collector current\n",
"Rl=5 #kohm load resistance\n",
"\n",
- "#calculation\n",
"Vce=Vcc-Ic*Rl #Collector emitter voltage\n",
"Rl1=7.5\n",
"Vce1=Vcc-Ic*Rl1\n",
"\n",
- "#result\n",
"print\"Operating point at load resistance 5 kohm is (\",Vce,\"V,\",Ic,\"mA)\"\n",
"print\"Operating point at load resistance 7.5 kohm is (\",Vce1,\"V,\",Ic,\"mA)\""
],
@@ -656,20 +577,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.15\n",
- "#Given\n",
"Vcc=20 # V, collector voltage\n",
"Rc=3.3*10**3\n",
"\n",
- "#calculation\n",
- "#Appling kirchoff's Voltage Law\n",
"Ic=0 #for cut off point\n",
"Vce=Vcc\n",
"Ic=Vcc/Rc\n",
"print \"Collector to emitter voltage is (Vce)\",Vce,\"V\"\n",
"print \"Collector current at saturation point is (Ic)\",round(Ic*1000,0),\"mA\"\n",
"\n",
- "#Plot\n",
"import matplotlib.pyplot as plt\n",
"fig = plt.figure()\n",
"ax = fig.add_subplot(111)\n",
@@ -719,10 +635,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Exa 6.16\n",
- "#find collector voltage and base voltage\n",
"\n",
- "#given data \n",
"Beta=45 \t\t\t#Unitless\n",
"VBE=0.7 \t\t\t#in Volt\n",
"VCC=0 \t\t\t\t#in Volt\n",
@@ -730,15 +643,11 @@
"RC=1.2*10**3 \t\t\t#in ohm\n",
"VEE=-9 \t\t\t\t#in Volt\n",
"\n",
- "#calculation\n",
- "#Applying Kirchoffs Voltage Law in input loop we have\n",
- "#IB*RB+VBE+VEE=0\n",
"IB=-(VBE+VEE)/RB \t\t#in mA\n",
"IC=Beta*IB \t\t\t#in mA\n",
"VC=VCC-IC*RC \t\t\t#in Volts\n",
"VB=VBE+VEE \t\t\t#in Volts\n",
"\n",
- "#Result\n",
"print\"collector voltage is \",round(VC,1),\"V\"\n",
"print\"Base voltage is \",VB,\"V\""
],