summaryrefslogtreecommitdiff
path: root/Electronic_Principles_/Chapter_6_New.ipynb
diff options
context:
space:
mode:
authordebashisdeb2014-06-20 15:42:42 +0530
committerdebashisdeb2014-06-20 15:42:42 +0530
commit83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (patch)
treef54eab21dd3d725d64a495fcd47c00d37abed004 /Electronic_Principles_/Chapter_6_New.ipynb
parenta78126bbe4443e9526a64df9d8245c4af8843044 (diff)
downloadPython-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.gz
Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.bz2
Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.zip
removing problem statements
Diffstat (limited to 'Electronic_Principles_/Chapter_6_New.ipynb')
-rw-r--r--Electronic_Principles_/Chapter_6_New.ipynb62
1 files changed, 0 insertions, 62 deletions
diff --git a/Electronic_Principles_/Chapter_6_New.ipynb b/Electronic_Principles_/Chapter_6_New.ipynb
index 6cc29f0f..990f6ef8 100644
--- a/Electronic_Principles_/Chapter_6_New.ipynb
+++ b/Electronic_Principles_/Chapter_6_New.ipynb
@@ -27,17 +27,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.1.py\n",
- "#A transistor has a collector current of 10 mA and a base current of 40 uA. find current gain. \n",
"\n",
- "#Variable declaration\n",
"Ic=10 #collector current(mA)\n",
"Ib=40.0/1000.0 #base current (mA)\n",
"\n",
- "#Calculation\n",
"Bdc=Ic/Ib #Current gain\n",
"\n",
- "#Result\n",
"print 'Current gain Bdc =',Bdc"
],
"language": "python",
@@ -65,17 +60,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.2.py\n",
- "#A transistor has a currrent gain of 175 and a base current of 0.1 mA. find collector current. \n",
"\n",
- "#Variable declaration\n",
"Bdc=175 #current gain\n",
"Ib=0.1 #base current (mA)\n",
"\n",
- "#Calculation\n",
"Ic=Bdc*Ib #Current gain\n",
"\n",
- "#Result\n",
"print 'Collector current Ic =',Ic,'mA'"
],
"language": "python",
@@ -103,17 +93,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.3.py\n",
- "#A transistor has a collector current of 2 mA. If the currrent gain of 135. find base current. \n",
"\n",
- "#Variable declaration\n",
"Bdc=135.0 #current gain\n",
"Ic=2.0 #collector current (mA)\n",
"\n",
- "#Calculation\n",
"Ib=(Ic/Bdc)*1000 #Current gain\n",
"\n",
- "#Result\n",
"print 'Base current Ib =',round(Ib,2),'uA'"
],
"language": "python",
@@ -141,21 +126,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.4.py\n",
- "#Use the second approx. to calculate the base current in figure 6-8b. \n",
- "#Find voltage across the base resistor & collector current if Bdc=200. \n",
"\n",
- "#Variable declaration\n",
"Vbb=2 #base source voltage(V)\n",
"Rb=100 #base resistor (KOhm)\n",
"Bdc=200 #current gain\n",
"Vbe=0.7 #base-emitter voltage drop(V)\n",
"\n",
- "#Calculation\n",
"Ib=((Vbb-Vbe)/Rb)*1000 #base current(uA)\n",
"Ic=Bdc*Ib/1000 #Collector current(mA)\n",
"\n",
- "#Result\n",
"print 'Base current Ib =',Ib,'uA'\n",
"print 'Collector current Ic =',Ic,'mA'"
],
@@ -185,10 +164,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.5.py\n",
- "#The transistor of Figure 6-11a has Bdc=300. Calculate IB,IC,VCE & PD\n",
"\n",
- "#Variable declaration\n",
"VBB=10 #Base voltage (V)\n",
"RC=2 #Collector resistance(KOhm)\n",
"VCC=10 #collector voltage(V)\n",
@@ -196,13 +172,11 @@
"RB=1 #base resistance (MOhm)\n",
"VBE=0.7 #base-emitter voltage drop(V) \n",
"\n",
- "#Calculation\n",
"IB=((VBB-VBE)/RB) #base current(uA)\n",
"IC=Bdc*IB/1000 #Collector current(mA)\n",
"VCE=VCC-(IC*RC) #Collector-emitter voltage(V)\n",
"PD=VCE*IC #Collector power dissipation(W)\n",
"\n",
- "#Result\n",
"print 'Base current IB =',IB,'uA'\n",
"print 'Collector current IC =',IC,'mA'\n",
"print 'Collector-emitter voltage VCE =',VCE,'V'\n",
@@ -236,10 +210,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.6.py\n",
- "#Calculate current gain of the 2N4424 shown in figure 6-12.\n",
"\n",
- "#Variable declaration\n",
"VBB=10 #Base voltage (V)\n",
"RC=470 #Collector resistance(Ohm)\n",
"VCC=10 #collector voltage(V)\n",
@@ -248,13 +219,11 @@
"RB=330 #base resistance (KOhm)\n",
"VBE=0.7 #base-emitter voltage drop \n",
"\n",
- "#Calculation\n",
"IB=((VBB-VBE)/RB)*1000 #base current(uA)\n",
"V=VCC-VCE #voltage across Rc\n",
"IC=(V/RC)*1000 #Collector current(mA)\n",
"Bdc=int((IC/IB)*1000) #Collector-emitter voltage\n",
"\n",
- "#Result\n",
"print 'Base current IB =',round(IB,2),'uA'\n",
"print 'voltage across Rc VRc = ',round(V,2),'V'\n",
"print 'Collector current IC =',round(IC,2),'mA'\n",
@@ -288,10 +257,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.7.py\n",
- "#What is the collector-emitter voltage in figure 6-14? Use the ideal transistor.\n",
"\n",
- "#Variable declaration\n",
"VBB=15 #Base voltage (V)\n",
"RC=3.6 #Collector resistance(KOhm)\n",
"VCC=15 #collector voltage(V)\n",
@@ -299,13 +265,11 @@
"RB=470 #base resistance (KOhm)\n",
"VBE=0 #base-emitter voltage drop(V) \n",
"\n",
- "#Calculation\n",
"IB=((VBB-VBE)/float(RB))*1000 #base current(uA)\n",
"IC=Bdc*IB/1000 #Collector current(mA)\n",
"VCE=VCC-(IC*RC) #Collector-emitter voltage(V)\n",
"IE=IC+(IB/1000) #emitter current(mA)\n",
"\n",
- "#Result\n",
"print 'Base current IB =',round(IB,2),'uA'\n",
"print 'Collector current IC =',round(IC,2),'mA'\n",
"print 'Collector-emitter voltage VCE = ',round(VCE,2),'V'\n",
@@ -339,10 +303,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.8.py\n",
- "#What is the collector-emitter voltage in figure 6-14? Use the second approximation.\n",
"\n",
- "#Variable declaration\n",
"VBB=15 #Base voltage (V)\n",
"RC=3.6 #Collector resistance(KOhm)\n",
"VCC=15 #collector voltage(V)\n",
@@ -350,12 +311,10 @@
"RB=470 #base resistance (KOhm)\n",
"VBE=0.7 #base-emitter voltage drop(V) \n",
"\n",
- "#Calculation\n",
"IB=((VBB-VBE)/float(RB))*1000 #base current(uA)\n",
"IC=Bdc*IB/1000 #Collector current(mA)\n",
"VCE=VCC-(IC*RC) #Collector-emitter voltage(V)\n",
"\n",
- "#Result\n",
"print 'Base current IB =',round(IB,2),'uA'\n",
"print 'Collector current IC =',round(IC,2),'mA'\n",
"print 'Collector-emitter voltage VCE = ',round(VCE,2),'V'"
@@ -387,10 +346,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.9.py\n",
- "#suppose you measure a VBE 1V. What is the collector-emitter voltage in figure 6-14?\n",
"\n",
- "#Variable declaration\n",
"VBB=15 #Base voltage (V)\n",
"RC=3.6 #Collector resistance(KOhm)\n",
"VCC=15 #collector voltage(V)\n",
@@ -398,12 +354,10 @@
"RB=470 #base resistance (KOhm)\n",
"VBE=1 #base-emitter voltage drop(V) \n",
"\n",
- "#Calculation\n",
"IB=((VBB-VBE)/float(RB))*1000 #base current(uA)\n",
"IC=Bdc*IB/1000 #Collector current(mA)\n",
"VCE=VCC-(IC*RC) #Collector-emitter voltage(V)\n",
"\n",
- "#Result\n",
"print 'Base current IB =',round(IB,2),'uA'\n",
"print 'Collector current IC =',round(IC,2),'mA'\n",
"print 'Collector-emitter voltage VCE = ',round(VCE,2),'V'"
@@ -435,10 +389,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.10.py\n",
- "#What is the collector-emitter voltage in preceding examples if base supply voltage is 5V?\n",
"\n",
- "#Variable declaration\n",
"VBB=5 #Base voltage (V)\n",
"RC=3.6 #Collector resistance(KOhm)\n",
"VCC=15 #collector voltage(V)\n",
@@ -448,7 +399,6 @@
"VBE2=0.7 #base-emitter voltage drop2(V)\n",
"VBE3=1 #base-emitter voltage drop3(V)\n",
"\n",
- "#Calculation\n",
"IB1=((VBB-VBE1)/float(RB))*1000 #base current1(uA)\n",
"IC1=Bdc*IB1/1000 #Collector current1(mA)\n",
"VCE1=VCC-(IC1*RC) #Collector-emitter voltage1(V)\n",
@@ -461,7 +411,6 @@
"IC3=Bdc*IB3/1000 #Collector current3(mA)\n",
"VCE3=VCC-(IC3*RC) #Collector-emitter voltage3(V)\n",
"\n",
- "#Result\n",
"print 'Base current IB1 =',round(IB1,2),'uA'\n",
"print 'Collector current IC1 =',round(IC1,2),'mA'\n",
"print 'Collector-emitter voltage VCE1 = ',round(VCE1,2),'V'\n",
@@ -507,19 +456,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.11.py\n",
- "#A 2N3904 has VCE = 10V and Ic = 20mA. find power dissipation. \n",
- "#How safe is this level of power dissipation if the ambient temperature is 25 deg C?\n",
"\n",
- "#Variable declaration\n",
"VCE=10 #Collector-emitter voltage(V)\n",
"IC=20 #Collector current(mA)\n",
"T=25 #Ambient temperature(deg C)\n",
" \n",
- "#Calculation\n",
"PD = VCE*IC #Power dissipation(mW)\n",
"\n",
- "#Result\n",
"print 'Power dissipation PD = ',PD,'mW'\n",
"print 'for 25 deg C, power rating is 625 mW So, transistor is well within power rating.'"
],
@@ -549,21 +492,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 6.12.py\n",
- "#How safe is the level of power dissipation if the ambient temeprature is 100 deg C in example 6-11?\n",
"\n",
- "#Variable declaration\n",
"T1=100 #Ambient temperature(deg C)\n",
"T2=25 #Reference temperature(deg C)\n",
"mf=5 #Multiply factor(mW/deg C) \n",
"Pr=625 #power rating(mW)\n",
"\n",
- "#Calculation\n",
"Td=T1-T2 #Temperature difference(deg C)\n",
"Pd=mf*Td #Difference in power(mW)\n",
"PDmax=Pr-Pd #Maximum power dissipation(mW)\n",
"\n",
- "#Result\n",
"print 'Maximum Power dissipation PDmax = ',PDmax,'mW'\n",
"print 'for 25 deg C, power rating is 625 mW So, transistor is yet within power rating.'"
],