summaryrefslogtreecommitdiff
path: root/Electronic_Principles
diff options
context:
space:
mode:
authorJovina Dsouza2014-07-07 16:34:28 +0530
committerJovina Dsouza2014-07-07 16:34:28 +0530
commitfffcc90da91b66ee607066d410b57f34024bd1de (patch)
tree7b8011d61013305e0bf7794a275706abd1fdb0d3 /Electronic_Principles
parent299711403e92ffa94a643fbd960c6f879639302c (diff)
downloadPython-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.gz
Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.bz2
Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.zip
adding book
Diffstat (limited to 'Electronic_Principles')
-rwxr-xr-xElectronic_Principles/Chapter_10_New.ipynb440
-rwxr-xr-xElectronic_Principles/Chapter_11_New.ipynb523
-rwxr-xr-xElectronic_Principles/Chapter_12_New.ipynb593
-rwxr-xr-xElectronic_Principles/Chapter_13_New.ipynb784
-rwxr-xr-xElectronic_Principles/Chapter_14_New.ipynb648
-rwxr-xr-xElectronic_Principles/Chapter_15_New.ipynb383
-rwxr-xr-xElectronic_Principles/Chapter_16_New.ipynb933
-rwxr-xr-xElectronic_Principles/Chapter_17_New.ipynb614
-rwxr-xr-xElectronic_Principles/Chapter_18_New.ipynb568
-rwxr-xr-xElectronic_Principles/Chapter_19_New.ipynb502
-rwxr-xr-xElectronic_Principles/Chapter_1_New.ipynb256
-rwxr-xr-xElectronic_Principles/Chapter_20_New.ipynb424
-rwxr-xr-xElectronic_Principles/Chapter_21_New.ipynb620
-rwxr-xr-xElectronic_Principles/Chapter_22_New.ipynb369
-rwxr-xr-xElectronic_Principles/Chapter_23_New.ipynb618
-rwxr-xr-xElectronic_Principles/Chapter_24_New.ipynb706
-rwxr-xr-xElectronic_Principles/Chapter_2_New.ipynb160
-rwxr-xr-xElectronic_Principles/Chapter_3_New.ipynb334
-rwxr-xr-xElectronic_Principles/Chapter_4_New.ipynb515
-rwxr-xr-xElectronic_Principles/Chapter_5_New.ipynb446
-rwxr-xr-xElectronic_Principles/Chapter_6_New.ipynb534
-rwxr-xr-xElectronic_Principles/Chapter_7_New.ipynb427
-rwxr-xr-xElectronic_Principles/Chapter_8_New.ipynb300
-rwxr-xr-xElectronic_Principles/Chapter_9_New.ipynb266
-rwxr-xr-xElectronic_Principles/README.txt10
-rwxr-xr-xElectronic_Principles/screenshots/nitya-1.pngbin0 -> 50704 bytes
-rwxr-xr-xElectronic_Principles/screenshots/nitya-2.pngbin0 -> 68798 bytes
-rwxr-xr-xElectronic_Principles/screenshots/nitya-3.pngbin0 -> 51270 bytes
28 files changed, 11973 insertions, 0 deletions
diff --git a/Electronic_Principles/Chapter_10_New.ipynb b/Electronic_Principles/Chapter_10_New.ipynb
new file mode 100755
index 00000000..c36aae9c
--- /dev/null
+++ b/Electronic_Principles/Chapter_10_New.ipynb
@@ -0,0 +1,440 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 10 VOLTAGE AMPLIFIERS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-1, Page 322"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "re=22.7 #Ac resistance as per example 9-5(Ohm)\n",
+ "RC=3.6 #Collector Resistance(KOhm)\n",
+ "RL=10 #Load Resistance(KOhm)\n",
+ "Vin=2 #Input voltage(mV)\n",
+ "\n",
+ "rc=RC*RL/(RC+RL) #AC collector resistance(Ohm)\n",
+ "Av=(rc/re)*1000 #Voltage gain\n",
+ "Vout=Av*Vin #Output voltage(mV)\n",
+ "\n",
+ "print 'Voltage gain Av = ',round(Av,2)\n",
+ "print 'Output voltage Vout = ',round(Vout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage gain Av = 116.61\n",
+ "Output voltage Vout = 233.22 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-2, Page 323"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RC=3.6 #Collector Resistance(KOhm)\n",
+ "RL=2.2 #Load Resistance(KOhm)\n",
+ "Vin=5 #Input voltage(mV)\n",
+ "VEE=9 #collector voltage(V)\n",
+ "RE=10 #Emitter resistance(KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "\n",
+ "rc=RC*RL/(RC+RL) #AC collector resistance(Ohm)\n",
+ "IE=(VEE-VBE)/RE #emitter current(mA)\n",
+ "re=25/IE #AC resistance(Ohm)\n",
+ "Av=(rc/re)*1000 #Voltage gain\n",
+ "Vout=Av*Vin #Output voltage(mV)\n",
+ "\n",
+ "print 'Emitter current IE = ',IE,'mA'\n",
+ "print 'Voltage gain Av = ',round(Av,2)\n",
+ "print 'Output voltage Vout = ',round(Vout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 0.83 mA\n",
+ "Voltage gain Av = 45.34\n",
+ "Output voltage Vout = 226.68 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-3, Page 325"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "re=22.7 #Ac resistance as per example 9-5(Ohm)\n",
+ "B=300 #current gain\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "Rs=0.6 #internal resistance of source(KOhm)\n",
+ "Av=117 #Voltage gain as per example 10-1\n",
+ "Vs=2 #ac voltage supply(mV)\n",
+ "\n",
+ "Zin_base=B*re/1000 #input impedance of base(KOhm)\n",
+ "Zin_stage=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage(KOhm)\n",
+ "Vin=(Zin_stage/(Rs+Zin_stage))*Vs #input voltage(mV)\n",
+ "Vout=Av*Vin #output voltage(mV)\n",
+ "\n",
+ "print 'input impedance of stage Zin(stage) = ',round(Zin_stage,2),'KOhm'\n",
+ "print 'Output volatge Vout = ',round(Vout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input impedance of stage Zin(stage) = 1.43 KOhm\n",
+ "Output volatge Vout = 164.69 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-4, Page 325"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "re=22.7 #Ac resistance as per example 9-5(Ohm)\n",
+ "B=50 #current gain\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "Rs=0.6 #internal resistance of source(KOhm)\n",
+ "Av=117 #Voltage gain as per example 10-1\n",
+ "Vs=2 #ac voltage supply(mV)\n",
+ "\n",
+ "Zin_base=B*re/1000 #input impedance of base(KOhm)\n",
+ "Zin_stage=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage(KOhm)\n",
+ "Vin=(Zin_stage/(Rs+Zin_stage))*Vs #input voltage(mV)\n",
+ "Vout=Av*Vin #output voltage(mV)\n",
+ "\n",
+ "print 'input impedance of stage Zin(stage) = ',round(Zin_stage,2),'KOhm'\n",
+ "print 'Output volatge Vout = ',round(Vout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input impedance of stage Zin(stage) = 0.7 KOhm\n",
+ "Output volatge Vout = 125.71 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-5, Page 327"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "re=22.7 #Ac resistance as per example 9-5(Ohm)\n",
+ "B=100 #current gain\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "Rs=0.6 #internal resistance of source(KOhm)\n",
+ "RC=3.6 #colletcor resistance (KOhm)\n",
+ "Vs=1 #ac voltage supply(mV)\n",
+ "RL=10 #Load resistance(KOhm)\n",
+ "\n",
+ "Zin_base=B*re/1000 #input impedance of base(KOhm)\n",
+ "Zin_stage1=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage1(KOhm)\n",
+ "Vin=(Zin_stage1/(Rs+Zin_stage1))*Vs #input voltage(mV)\n",
+ "Zin_stage2=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage2(KOhm)\n",
+ "rc1=(RC*Zin_stage2)/(RC+Zin_stage2) #AC collector resistance of stage1(KOhm)\n",
+ "Av1=rc1/re #Voltage gain of stage 1\n",
+ "vc=Av1*Vin #AC collector voltage of stage 1(V)\n",
+ "rc2=(RC*RL)/(RC+RL) #AC collector resistance of stage2(KOhm)\n",
+ "Av2=rc2/re #Voltage gain of stage 2\n",
+ "Vout=Av2*vc #output voltage(mV)\n",
+ "Av=Av1*Av2 #Overall voltage gain\n",
+ "Voutf=Av*Vin #AC output voltage across RL(V)\n",
+ "\n",
+ "print 'AC collector voltage of first stage vc = ',round(vc*1000,2),'mV'\n",
+ "print 'AC output voltage across load resistor Vout = ',round(Voutf*1000,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "AC collector voltage of first stage vc = 21.67 mV\n",
+ "AC output voltage across load resistor Vout = 2.53 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-6, Page 331"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "re=0.18 #Emitter resistance (KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "Rs=0.6 #internal resistance of source(KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "Vs=50 #ac voltage supply(mV)\n",
+ "RL=10 #Load resistance(KOhm)\n",
+ "B=200 #current gain \n",
+ "\n",
+ "Zin_base=B*re #input impedance of base(KOhm)\n",
+ "Zin_stage=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage(KOhm)\n",
+ "Vin=(Zin_stage/(Rs+Zin_stage))*Vs #input voltage(mV)\n",
+ "rc=(RC*RL)/(RC+RL) #AC collector resistance of stage(KOhm)\n",
+ "Av=rc/re #Voltage gain of stage\n",
+ "Vout=Av*Vin #output voltage(mV)\n",
+ "\n",
+ "print 'input impedance of stage Zin(stage) = ',round(Zin_stage,2),'KOhm'\n",
+ "print 'Output volatge Vout = ',round(Vout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input impedance of stage Zin(stage) = 1.72 KOhm\n",
+ "Output volatge Vout = 544.91 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-7, Page 332"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "re=0.18 #Emitter resistance (KOhm)\n",
+ "re1=0.0227 #Ac resistance as per example 9-5(KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "Rs=0.6 #internal resistance of source(KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "Vs=50 #ac voltage supply(mV)\n",
+ "RL=10 #Load resistance(KOhm)\n",
+ "B=200 #current gain \n",
+ "\n",
+ "Zin_base=B*(re+re1) #input impedance of base(KOhm)\n",
+ "Zin_stage=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage(KOhm)\n",
+ "Vin=(Zin_stage/(Rs+Zin_stage))*Vs #input voltage(mV)\n",
+ "rc=(RC*RL)/(RC+RL) #AC collector resistance of stage(KOhm)\n",
+ "Av=rc/(re+re1) #Voltage gain of stage\n",
+ "Vout=Av*Vin #output voltage(mV)\n",
+ "\n",
+ "print 'input impedance of stage Zin(stage) = ',round(Zin_stage,2),'KOhm'\n",
+ "print 'Output volatge Vout = ',round(Vout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input impedance of stage Zin(stage) = 1.73 KOhm\n",
+ "Output volatge Vout = 484.55 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-8, Page 333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "re=0.18 #emitter reistance(Ohm)\n",
+ "B=200 #current gain\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "Rs=0.6 #internal resistance of source(KOhm)\n",
+ "RC=3.6 #colletcor resistance (KOhm)\n",
+ "Vs=1 #ac voltage supply(mV)\n",
+ "RL=10 #Load resistance(KOhm)\n",
+ "\n",
+ "Zin_base=B*re #input impedance of base(KOhm)\n",
+ "Zin_stage1=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage1(KOhm)\n",
+ "Vin=(Zin_stage1/(Rs+Zin_stage1))*Vs #input voltage(mV)\n",
+ "Zin_stage2=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage2(KOhm)\n",
+ "rc1=(RC*Zin_stage2)/(RC+Zin_stage2) #AC collector resistance of stage1(KOhm)\n",
+ "Av1=rc1/re #Voltage gain of stage 1\n",
+ "vc=Av1*Vin #AC collector voltage of stage 1(V)\n",
+ "rc2=(RC*RL)/(RC+RL) #AC collector resistance of stage2(KOhm)\n",
+ "Av2=rc2/re #Voltage gain of stage 2\n",
+ "Vout=Av2*vc #output voltage(mV)\n",
+ "Av=Av1*Av2 #Overall voltage gain\n",
+ "Voutf=Av*Vin #AC output voltage across RL(V)\n",
+ "\n",
+ "print 'AC collector voltage of first stage vc = ',round(vc,2),'mV'\n",
+ "print 'AC output voltage across load resistor Vout = ',round(Voutf,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "AC collector voltage of first stage vc = 4.79 mV\n",
+ "AC output voltage across load resistor Vout = 70.39 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10-9, Page 335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RV_min=0 #minimum variable resistance (KOhm)\n",
+ "RV_max=10 #maximum variable resistance (KOhm)\n",
+ "re=0.1 #Emitter resistance (KOhm)\n",
+ "\n",
+ "rf_min=RV_min+1 #minimum feedback resistance(KOhm)\n",
+ "rf_max=RV_max+1 #maximum feedback resistance(KOhm)\n",
+ "Av_min=rf_min/re #minimum voltage gain\n",
+ "Av_max=rf_max/re #maximum voltage gain\n",
+ "\n",
+ "print 'minimum voltage gain Av(min)= ',Av_min\n",
+ "print 'minimum voltage gain Av(max)= ',Av_max"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "minimum voltage gain Av(min)= 10.0\n",
+ "minimum voltage gain Av(max)= 110.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_11_New.ipynb b/Electronic_Principles/Chapter_11_New.ipynb
new file mode 100755
index 00000000..9065b138
--- /dev/null
+++ b/Electronic_Principles/Chapter_11_New.ipynb
@@ -0,0 +1,523 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 11 CC AND CB AMPLIFIERS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-1, Page 348"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RE=4.3 #Emitter resistance(KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=10 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=10 #Load Resistance(KOhm)\n",
+ "VG=1 #Input voltage(mV)\n",
+ "RG=0.6 #internal resistance of source(KOhm)\n",
+ "B=200 #current gain \n",
+ "\n",
+ "VBB=VCC/2 #Base voltage(V)\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "re1=(25/IE) #AC resistance(Ohm)\n",
+ "re=RE*RL/(RE+RL) #external ac resistance(KOhm)\n",
+ "Zin_base=(re+(re1/1000))*B #input impedance of base(KOhm)\n",
+ "Zin_stage=((R1**-1)+(Zin_base**-1)+(R2**-1))**-1 #input impedance of stage(KOhm)\n",
+ "\n",
+ "print 'input impedance of stage Zin(base) = ',round(Zin_base,2),'KOhm'\n",
+ "print 'input impedance of stage Zin(stage) = ',round(Zin_stage,2),'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input impedance of stage Zin(base) = 606.4 KOhm\n",
+ "input impedance of stage Zin(stage) = 4.96 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-2, Page 349"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "re=3.03 #Emitter resistance(KOhm)\n",
+ "VG=1 #Input voltage(mV)\n",
+ "RG=0.6 #internal resistance of source(KOhm)\n",
+ "B=200 #current gain \n",
+ "Zin=5 #input impedance(KOhm)\n",
+ "\n",
+ "Vin=(Zin/(Zin+RG))*VG #input voltage(V)\n",
+ "\n",
+ "print 'Input voltage Vin = ',round(Vin,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Input voltage Vin = 0.89 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-3, Page 350"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #collector voltage(V)\n",
+ "RE=2.2 #Emitter resistance(KOhm)\n",
+ "R1=4.7 #Base resistance1 (KOhm)\n",
+ "R2=4.7 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=6.8 #Load Resistance(KOhm)\n",
+ "VG=1 #Input voltage(mV)\n",
+ "RG=0.6 #internal resistance of source(KOhm)\n",
+ "B=150 #current gain \n",
+ "\n",
+ "VBB=VCC/2.0 #Base voltage(V)\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "re1=(25/IE) #AC resistance(Ohm)\n",
+ "re=RE*RL/(RE+RL) #external ac resistance(KOhm)\n",
+ "Zin_base=(re+(re1/1000))*B #input impedance of base(KOhm)\n",
+ "Zin_stage=((R1**-1)+(R2**-1))**-1 #input impedance of stage(KOhm)\n",
+ "Av=re/(re+(re1/1000)) #Voltage gain of stage\n",
+ "Vin=(Zin_stage/(Zin_stage+RG))*VG #input voltage(V)\n",
+ "Vout=Av*Vin #output voltage(V)\n",
+ "\n",
+ "\n",
+ "print 'input impedance of stage Zin(base) = ',round(Zin_base,2),'KOhm'\n",
+ "print 'input impedance of stage Zin(stage) = ',Zin_stage,'KOhm'\n",
+ "print 'voltage gain of emitter follower Av = ',round(Av,3)\n",
+ "print 'Output volatge Vout = ',round(Vout,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input impedance of stage Zin(base) = 250.55 KOhm\n",
+ "input impedance of stage Zin(stage) = 2.35 KOhm\n",
+ "voltage gain of emitter follower Av = 0.995\n",
+ "Output volatge Vout = 0.79 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-4, Page 353"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RG=600 #internal resistance of source(KOhm)\n",
+ "B=300 #current gain \n",
+ "\n",
+ "Zout=RG/B #Output impedance(KOhm)\n",
+ "\n",
+ "print 'Output impedance Zout = ',Zout,'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output impedance Zout = 2 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-5, Page 353"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=30 #collector voltage(V)\n",
+ "RE=0.1 #Emitter resistance(KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=10 #Base resistance2 (KOhm)\n",
+ "RL=0.1 #Load Resistance(KOhm)\n",
+ "VG=1 #Input voltage(mV)\n",
+ "RG=0.6 #internal resistance of source(KOhm)\n",
+ "B=300 #current gain \n",
+ "\n",
+ "VBQ=VCC/2.0 #Base voltage(V)\n",
+ "VEQ=VBQ #Emitter voltage(V), ignore VBE\n",
+ "IEQ=VEQ/RE #Emitter current(mA)\n",
+ "re=(25/IEQ) #AC resistance(Ohm)\n",
+ "Zb=((RG**-1)+(R1**-1)+(R2**-1))**-1 #impedance looking back from base(KOhm)\n",
+ "Z=Zb*1000/B #impedance after current gain (Ohm) \n",
+ "Ze=Z+re #impedance looking back into emitter(Ohm)\n",
+ "Zout=(((RE*1000)**-1)+(Ze**-1))**-1 #Output impedance(Ohm)\n",
+ "\n",
+ "print 'Output impedance is Zout = ',round(Zout,2),'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output impedance is Zout = 1.91 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-6, Page 355"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RE=0.68 #Emitter resistance(KOhm)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "re=0.18 #Emitter resistance (KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "RG=0.6 #internal resistance of source(KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=0.27 #Load resistance(KOhm)\n",
+ "B=100 #current gain \n",
+ "\n",
+ "VBB=(R1*R2/(R1+R2)) #Base voltage(V)\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "re=(25/IE) #AC resistance(Ohm)\n",
+ "Zin=B*RL #input impedance (KOhm)\n",
+ "rc=((RC**-1)+(Zin**-1))**-1 #ac collector resistance(KOhm)\n",
+ "Av=rc/(re/1000) #voltage gain of stage\n",
+ "\n",
+ "print 'voltage gain of CE stage Av = ',round(Av,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain of CE stage Av = 206.15\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-7, Page 355"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RE=0.68 #Emitter resistance(KOhm)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "re=0.18 #Emitter resistance (KOhm)\n",
+ "R1=10.0 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "RG=0.6 #internal resistance of source(KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=0.27 #Load resistance(KOhm)\n",
+ "B=100 #current gain \n",
+ "\n",
+ "VBB=10*(R2/(R1+R2)) #Base voltage(V)\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "re=(25/IE) #AC resistance(Ohm)\n",
+ "rc=((RC**-1)+(RL**-1))**-1 #ac collector resistance(KOhm)\n",
+ "Av=rc/(re/1000) #voltage gain of stage\n",
+ "\n",
+ "print 'voltage gain of CE stage Av = ',round(Av,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain of CE stage Av = 16.3\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-8, Page 358"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #collector voltage(V)\n",
+ "RE=0.06 #Emitter resistance(KOhm)\n",
+ "R1=10.0 #Base resistance1 (KOhm)\n",
+ "R2=20.0 #Base resistance2 (KOhm)\n",
+ "RG=0.6 #internal resistance of source(KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=0.03 #Load resistance(KOhm)\n",
+ "B1=100 #current gain of Q1\n",
+ "B2=100 #current gain of Q2\n",
+ "\n",
+ "B=B1*B2 #Overall current gain\n",
+ "VBB=15*(R2/(R1+R2)) #Base voltage(V)\n",
+ "VE=VBB-(2*VBE) #Emitter voltage(V)\n",
+ "IE2=VE/RE #Emitter current(mA)\n",
+ "IB2=IE2/B2 #Base current of Q2(mA)\n",
+ "IE1=IB2 #emiter current of Q1(mA)\n",
+ "IB1=IE1*1000/B1 #base current of Q1(uA)\n",
+ "re=((RE**-1)+(RL**-1))**-1 #ac emitter resistance(KOhm)\n",
+ "Zin_base=B*re #input impedance of Q1(KOhm)\n",
+ "\n",
+ "print 'Overall current gain B = ',B\n",
+ "print 'base current of Q1 IB1 = ',round(IB1,2),'uA'\n",
+ "print 'input impedance at base of Q1 Zin(base) = ',Zin_base,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Overall current gain B = 10000\n",
+ "base current of Q1 IB1 = 14.33 uA\n",
+ "input impedance at base of Q1 Zin(base) = 200.0 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-9, Page 361"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=20 #input voltage (V)\n",
+ "RL=15 #Load resistance(Ohm)\n",
+ "Vz=10 #voltage across zener(V)\n",
+ "B=100 #current gain\n",
+ "Rs=680.0 #series resistor(Ohm)\n",
+ "\n",
+ "Vout=Vz-0.7 #Output voltage approx.(V)\n",
+ "Iout=Vout/RL #Load current(A)\n",
+ "IB=Iout*1000/B #base current(mA)\n",
+ "Is=(Vin-Vz)*1000/Rs #current through series resistor(mA)\n",
+ "Iz=Is-IB #zener current(mA)\n",
+ "\n",
+ "print 'output voltage Vout = ',Vout,'V'\n",
+ "print 'Zener current Iz = ',round(Iz,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage Vout = 9.3 V\n",
+ "Zener current Iz = 8.51 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-10, Page 362"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=30 #input voltage (V)\n",
+ "RL=100 #Load resistance(Ohm)\n",
+ "Vz=6.2 #voltage across zener(V)\n",
+ "B=100 #current gain\n",
+ "Rs=680.0 #series resistor(Ohm)\n",
+ "R1=1 #Resistor (KOhm)\n",
+ "R2=2 #Resistor (KOhm)\n",
+ "\n",
+ "Vout=(Vz+0.7)*(R1+R2)/R1 #Output voltage approx.(V)\n",
+ "I1=(Vz+0.7)/R1 #Load current(A)\n",
+ "Vout=I1*(R1+R2) #Output voltage(V)\n",
+ "\n",
+ "print 'output voltage Vout = ',Vout,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage Vout = 20.7 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 74
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11-11, Page 365"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VG=2 #AC input voltage (mV)\n",
+ "Vs=10 #supply volatge(V)\n",
+ "RL=10 #Load resistance(KOhm)\n",
+ "RG=50.0 #source resistor(Ohm)\n",
+ "R1=10 #Resistor (KOhm)\n",
+ "R2=2.2 #Resistor (KOhm)\n",
+ "RC=3.6 #collector resistor (KOhm)\n",
+ "RE=2.2 #emitter resistance(KOhm)\n",
+ "\n",
+ "VB=Vs*R2/(R1+R2) #Base voltage(V)\n",
+ "IE=(VB-0.7)*1000/RE #emitter current(uA)\n",
+ "re=(25/IE)*1000 #ac resistance(Ohm)\n",
+ "Zin=1000*((RE**-1)+((re/1000)**-1))**-1 #input impedance(KOhm)\n",
+ "Zout=RC #Output impedance(KOhm)\n",
+ "rc=((RC**-1)+(RL**-1))**-1 #collector resistance(KOhm)\n",
+ "Av=rc*1000/re #voltage gain\n",
+ "Vin=(Zin/(Zin+RG))*VG #input voltage(V)\n",
+ "Vout=Av*Vin #output voltage(mV)\n",
+ "\n",
+ "print 'output voltage Vout = ',round(Vout,2),'mVpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage Vout = 52.43 mVpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_12_New.ipynb b/Electronic_Principles/Chapter_12_New.ipynb
new file mode 100755
index 00000000..9f88647a
--- /dev/null
+++ b/Electronic_Principles/Chapter_12_New.ipynb
@@ -0,0 +1,593 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 12 POWER AMPLIFIERS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-1, Page 384"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "VCC=30 #collector voltage(V)\n",
+ "RE=20 #Emitter resistance(Ohm)\n",
+ "R1=490.0 #Base resistance1 (Ohm)\n",
+ "R2=68.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=180 #Load Resistance(Ohm)\n",
+ "RC=120 #Collector resistance(Ohm)\n",
+ "\n",
+ "VB=VCC*(R2/(R1+R2)) #Base voltage(V)\n",
+ "VE=math.ceil(VB-VBE) #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(A)\n",
+ "ICQ=IE #collector current (A)\n",
+ "VC=VCC-(ICQ*RC) #collector voltage(V)\n",
+ "VCEQ=VC-VE #collector-emitter voltage (V) \n",
+ "rc=RC*RL/(RC+RL) #ac collector resistance(Ohm)\n",
+ "\n",
+ "print 'Collector current ICQ = ',ICQ*1000,'mA'\n",
+ "print 'collector-emitter voltage VCEQ = ',VCEQ,'V'\n",
+ "print 'ac collector resistance rc = ',rc,'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector current ICQ = 150.0 mA\n",
+ "collector-emitter voltage VCEQ = 9.0 V\n",
+ "ac collector resistance rc = 72 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-2, Page 385"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "\n",
+ "VCC=30 #collector voltage(V)\n",
+ "RE=20 #Emitter resistance(Ohm)\n",
+ "R1=490.0 #Base resistance1 (Ohm)\n",
+ "R2=68.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=180 #Load Resistance(Ohm)\n",
+ "RC=120 #Collector resistance(Ohm)\n",
+ "\n",
+ "ICQ=150 #collector current (mA)\n",
+ "VCEQ=9 #collector-emitter voltage (V) \n",
+ "rc=72.0 #ac collector resistance(Ohm)\n",
+ "\n",
+ "ic_sat=ICQ+(VCEQ/rc)*1000 #ic(sarturation) (mA)\n",
+ "VCE_cut=VCEQ+((ICQ*rc)/1000) #VCE(cut-off) (V)\n",
+ "MP1=ICQ*RC\n",
+ "MP2=VCEQ\n",
+ "MPP=2*(min(MP1,MP2)) #maximum peak-to-peak voltage (V)\n",
+ "\n",
+ "print 'ic(sarturation) = ',ic_sat,'mA'\n",
+ "print 'VCE(cut-off) = ',VCE_cut,'V'\n",
+ "print 'maximum peak-to-peak voltage MPP = ',MPP,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ic(sarturation) = 275.0 mA\n",
+ "VCE(cut-off) = 19.8 V\n",
+ "maximum peak-to-peak voltage MPP = 18 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-3, Page 387"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "VCC=30 #collector voltage(V)\n",
+ "RE=20 #Emitter resistance(Ohm)\n",
+ "R1=490.0 #Base resistance1 (Ohm)\n",
+ "R2=68.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=180.0 #Load Resistance(Ohm)\n",
+ "RC=120 #Collector resistance(Ohm)\n",
+ "vin=200 #input voltage(mV)\n",
+ "zin=100 #input impedance of base(Ohm)\n",
+ "MPP=18 #peak-to-peak voltage (V)\n",
+ "\n",
+ "Zin_stage=((zin**-1)+(R1**-1)+(R2**-1))**-1 #input impedance of stage(KOhm)\n",
+ "Pin=vin**2/(Zin_stage*8)/1000 #ac input power (mW)\n",
+ "Pout=1000*MPP**2/(RL*8) #ac output power (mW)\n",
+ "Ap=Pout/Pin #power gain\n",
+ "\n",
+ "print 'Power gain Ap = ',math.ceil(Ap)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power gain Ap = 1683.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-4, Page 388"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "VCC=30 #collector voltage(V)\n",
+ "RE=20 #Emitter resistance(Ohm)\n",
+ "R1=490.0 #Base resistance1 (Ohm)\n",
+ "R2=68.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=180 #Load Resistance(Ohm)\n",
+ "RC=120 #Collector resistance(Ohm)\n",
+ "\n",
+ "VB=VCC*(R2/(R1+R2)) #Base voltage(V)\n",
+ "VE=math.ceil(VB-VBE) #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(A)\n",
+ "ICQ=IE #collector current (A)\n",
+ "VC=VCC-(ICQ*RC) #collector voltage(V)\n",
+ "VCEQ=VC-VE #collector-emitter voltage (V) \n",
+ "PDQ=VCEQ*ICQ #power dissipation(W)\n",
+ "I_bias=VCC/(R1+R2) #bias current(mA)\n",
+ "Idc=I_bias+ICQ #dc current(mA)\n",
+ "Pdc=VCC*Idc #dc input power to stage(W)\n",
+ "Pout=0.225 #Output power as per example 12-3 (W)\n",
+ "n=(Pout/Pdc)*100 #efficiency of stage\n",
+ "\n",
+ "print 'Power dissipation PDQ = ',PDQ,'W'\n",
+ "print 'efficiency of stage n = ',round(n,2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power dissipation PDQ = 1.35 W\n",
+ "efficiency of stage n = 3.68 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-6, Page 391"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12 #collector voltage(V)\n",
+ "RE=16 #Emitter resistance(Ohm)\n",
+ "R1=50.0 #Base resistance1 (Ohm)\n",
+ "R2=100.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=16 #Load Resistance(Ohm)\n",
+ "\n",
+ "VB=VCC*(R2/(R1+R2)) #Base voltage(V)\n",
+ "VE=(VB-VBE) #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(A)\n",
+ "ICQ=IE #collector current (A)\n",
+ "VCEQ=VCC-VE #collector-emitter voltage (V) \n",
+ "re=RE*RL/(RE+RL) #ac emitter resistance(Ohm)\n",
+ "\n",
+ "print 'Collector current ICQ = ',ICQ*1000,'mA'\n",
+ "print 'collector-emitter voltage VCEQ = ',VCEQ,'V'\n",
+ "print 'ac collector resistance re = ',re,'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector current ICQ = 456.25 mA\n",
+ "collector-emitter voltage VCEQ = 4.7 V\n",
+ "ac collector resistance re = 8 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 89
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-7, Page 393"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12 #collector voltage(V)\n",
+ "RE=16 #Emitter resistance(Ohm)\n",
+ "R1=50.0 #Base resistance1 (Ohm)\n",
+ "R2=100.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=16 #Load Resistance(Ohm)\n",
+ "\n",
+ "ICQ=456 #collector current (mA)\n",
+ "VCEQ=4.7 #collector-emitter voltage (V) \n",
+ "re=8.0 #ac emitter resistance(Ohm)\n",
+ "\n",
+ "ic_sat=(1000*(VCEQ/re))+ICQ #ic(sarturation) (mA)\n",
+ "VCE_cut=VCEQ+(ICQ*re)/1000 #VCE(cut-off) (V)\n",
+ "MP1=ICQ*re/1000\n",
+ "MP2=VCEQ\n",
+ "MPP=2*(min(MP1,MP2)) #maximum peak-to-peak voltage (V)\n",
+ "\n",
+ "print 'ic(sarturation) = ',ic_sat/1000,'A'\n",
+ "print 'VCE(cut-off) = ',VCE_cut,'V'\n",
+ "print 'maximum peak-to-peak voltage MPP = ',MPP,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ic(sarturation) = 1.0435 A\n",
+ "VCE(cut-off) = 8.348 V\n",
+ "maximum peak-to-peak voltage MPP = 7.296 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-8, Page 397"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=20 #collector voltage(V)\n",
+ "R1=100.0 #Base resistance1 (Ohm)\n",
+ "R2=100.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=8.0 #Load Resistance(Ohm)\n",
+ "\n",
+ "MPP=VCC #maximum peak-to-peak voltage (V)\n",
+ "PD_max=MPP**2/(40*RL) #Maximum power dissipation(W)\n",
+ "Pout_max=MPP**2/(8*RL) #Maximum output power(W)\n",
+ "\n",
+ "print 'Maximum power dissipation PD_max = ',PD_max,'W'\n",
+ "print 'Maximum output power Pout_max = ',Pout_max,'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum power dissipation PD_max = 1.25 W\n",
+ "Maximum output power Pout_max = 6.25 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 58
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-9, Page 398"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "VCC=20 #collector voltage(V)\n",
+ "R1=100.0 #Base resistance1 (Ohm)\n",
+ "R2=100.0 #Base resistance2 (Ohm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=8.0 #Load Resistance(Ohm)\n",
+ "Ra=15 #adjustable resistor(Ohm)\n",
+ "\n",
+ "VCEQ=VCC/2 #collector-emitter voltage (V) \n",
+ "I_bias=VCC/(R1+R2+Ra) #bias current(mA)\n",
+ "Ic_sat=VCEQ/RL #ic(sarturation) (mA)\n",
+ "Iav=Ic_sat/math.pi #average current (A)\n",
+ "Idc=I_bias+Iav #dc current(mA)\n",
+ "Pdc=VCC*Idc #dc input power to stage(W)\n",
+ "Pout=6.25 #Output power as per example 12-8 (W)\n",
+ "n=(Pout/Pdc)*100 #efficiency of stage\n",
+ "\n",
+ "\n",
+ "print 'efficiency of stage n = ',round(n,2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "efficiency of stage n = 63.66 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-10, Page 400"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=20 #collector voltage(V)\n",
+ "R1=3.9 #Base resistance1 (KOhm)\n",
+ "R2=3.9 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=10.0 #Load Resistance(Ohm)\n",
+ "\n",
+ "VCEQ=VCC/2 #collector-emitter voltage (V) \n",
+ "I_bias=(VCC-(2*VBE))/(R1+R2) #bias current(mA)\n",
+ "Ic_sat=VCEQ/RL #ic(sarturation) (mA)\n",
+ "Iav=Ic_sat/math.pi #average current (A)\n",
+ "Idc=(I_bias/1000)+Iav #dc current(mA)\n",
+ "Pdc=VCC*Idc #dc input power to stage(W)\n",
+ "Pout=VCC**2/(8*RL) #Output power (W)\n",
+ "n=(Pout/Pdc)*100 #efficiency of stage\n",
+ "\n",
+ "print 'efficiency of stage n = ',round(n,2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "efficiency of stage n = 77.96 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-11, Page 405"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "L=2*10**-6 #inductance (H)\n",
+ "C=470*10**-12 #capacitance(F)\n",
+ "\n",
+ "fr=((2*math.pi)*((L*C)**0.5))**-1\n",
+ "\n",
+ "print 'Resonant frequency fr = ',round((fr*10**-6),2),'MHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resonant frequency fr = 5.19 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-12, Page 410"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "fr=5.19*10**6 #frequency as per previous example(Hz)\n",
+ "L=2*10**-6 #inductance (H)\n",
+ "C=470*10**-12 #capacitance(F)\n",
+ "QL=100 #quality factor of coil\n",
+ "RL=1 #Load resistance(KOhm)\n",
+ "\n",
+ "XL=2*math.pi*fr*L #inductive impedance(Ohm)\n",
+ "Rp=QL*XL/1000 #Eq. parallel resistance of coil(KOhm)\n",
+ "rc=1000*Rp*RL/(Rp+RL) #ac collector resistance(Ohm)\n",
+ "Q=rc/XL #Q of overall circuit\n",
+ "BW=(fr/Q/1000) #band width of amplifier(KHz)\n",
+ "\n",
+ "print 'band width of amplifier BW = ',round(BW,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "band width of amplifier BW = 390.39 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-13, Page 411"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "VCC=15 #collector voltage(V)\n",
+ "rc=867.0 #ac collector resistance as per preceding example (Ohm)\n",
+ "\n",
+ "MPP=2*VCC #Maximum peak-to-peak voltage(V)\n",
+ "PD=1000*MPP**2/(40*rc) #worst-case power dissipation(mW)\n",
+ "\n",
+ "print 'Worst-case power dissipation PD = ',math.ceil(PD),'mW'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Worst-case power dissipation PD = 26.0 mW\n"
+ ]
+ }
+ ],
+ "prompt_number": 91
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12-14, Page 414"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "PD=625 #maximum power rating at 25 deg C(mW)\n",
+ "D=5 #Derating factor(mW/deg C)\n",
+ "TA=50 #ambient temperature(deg C)\n",
+ "\n",
+ "DP=D*(TA-25) #difference in power(mW) \n",
+ "PD_max=PD-DP #maximum power rating(mW)\n",
+ "\n",
+ "print 'Maximum power rating PD_max = ',PD_max,'mW'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum power rating PD_max = 500 mW\n"
+ ]
+ }
+ ],
+ "prompt_number": 94
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_13_New.ipynb b/Electronic_Principles/Chapter_13_New.ipynb
new file mode 100755
index 00000000..2b92ce1a
--- /dev/null
+++ b/Electronic_Principles/Chapter_13_New.ipynb
@@ -0,0 +1,784 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 13 JFETs"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-1, Page 428"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VG=20 #Gate voltage(V)\n",
+ "IG=1*10**-9 #Gate current(A) \n",
+ "\n",
+ "Rin=VG/IG #input resistance(Ohm)\n",
+ "\n",
+ "print 'input resistance of JFET Rin = ',Rin/10**6,'MOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input resistance of JFET Rin = 20000.0 MOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-2, Page 430"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vp=6 #Pinch off voltage(V)\n",
+ "IDSS=100*10**-3 #current drain to source with shorted gate(A)\n",
+ "\n",
+ "RDS=Vp/IDSS #Ohmic resistance(Ohm)\n",
+ "VGS_off=-Vp #gate-source cutoff voltage(V)\n",
+ "\n",
+ "print 'Ohmic resistance RDS = ',RDS,'Ohm'\n",
+ "print 'Gate-source cutoff VGS(off) = ',VGS_off,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ohmic resistance RDS = 60.0 Ohm\n",
+ "Gate-source cutoff VGS(off) = -6 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-3, Page 431"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VGS_off=-4 #gate-source cutoff voltage(V)\n",
+ "IDSS=5 #current drain to source with shorted gate(mA)\n",
+ "\n",
+ "VGS=VGS_off/2 #gate voltage(V)\n",
+ "ID=IDSS/4.0 #drain current(mA)\n",
+ "\n",
+ "print 'Gate voltage VGS = ',VGS,'V'\n",
+ "print 'Drain current ID = ',ID,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Gate voltage VGS = -2 V\n",
+ "Drain current ID = 1.25 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-4, Page 432"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VGS_off=-8 #gate-source cutoff voltage(V)\n",
+ "IDSS=16 #current drain to source with shorted gate(mA)\n",
+ "\n",
+ "VGS=VGS_off/2 #gate voltage(V)\n",
+ "ID=IDSS/4.0 #drain current(mA)\n",
+ "\n",
+ "print 'Gate voltage VGS = ',VGS,'V'\n",
+ "print 'Drain current ID = ',ID,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Gate voltage VGS = -4 V\n",
+ "Drain current ID = 4.0 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-5, Page 433"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vp=4 #pinchoff voltage(V)\n",
+ "Vin=-10 #input voltage(V)\n",
+ "RD=10.0 #drain resistor(KOhm)\n",
+ "IDSS=10.0 #IDSS (mA)\n",
+ "VDD=10.0 #Drain supply voltage(V)\n",
+ "\n",
+ "VGS_off=-Vp #VGS cutoff voltage(V)\n",
+ "VD=-Vin #drain voltage(V)\n",
+ "ID_sat=VD/RD #saturation drain current(mA)\n",
+ "RDS=Vp/IDSS #Ohmic resistance(Ohm)\n",
+ "VD=VDD*RDS/(RDS+RD) #drain votage(V)\n",
+ "\n",
+ "print 'Drain voltage VD = ',round(VD,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain voltage VD = 0.38 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-6, Page 436"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vp=4 #pinchoff voltage(V)\n",
+ "RD=2.0 #drain resistor(KOhm)\n",
+ "RS=400 #source resistance(Ohm)\n",
+ "IDSS=10.0 #IDSS (mA)\n",
+ "VDD=30.0 #Drain supply voltage(V)\n",
+ "\n",
+ "RDS=1000*Vp/IDSS #Ohmic resistance(Ohm)\n",
+ "ID=IDSS/4.0 #drain current(mA)\n",
+ "VD=VDD-(ID*RD) #drain votage(V)\n",
+ "\n",
+ "print 'Ohmic resistance RDS = ',RDS,'Ohm'\n",
+ "print 'drain voltage VD = ',VD,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ohmic resistance RDS = 400.0 Ohm\n",
+ "drain voltage VD = 25.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-7, Page 437"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "IDSS=20 #IDSS (mA)\n",
+ "RS=270 #Source resistance (Ohm)\n",
+ "\n",
+ "VGS=-IDSS*RS #gate-source voltage(V)\n",
+ "VGSQ_min=-0.8 #Q point minimum gate-source voltage(V)\n",
+ "VGSQ_max=-2.1 #Q point maximum gate-source voltage(V)\n",
+ "IDQ_min=2.8 #Q point minimum drain current(V)\n",
+ "IDQ_max=8.0 #Q point maximum drain current(V)\n",
+ "VGS_off_min=2 #VGS(off) minimum(V)\n",
+ "VGS_off_max=6 #VGS(off) maximum(V)\n",
+ "ID_min=8.0 #ID minimum(mA)\n",
+ "ID_max=20.0 #ID maximum(mA)\n",
+ "Rs_min=1000*VGS_off_min/ID_min #Minimum value for Rs(Ohm)\n",
+ "Rs_max=1000*VGS_off_max/ID_max #Maximum value for Rs(Ohm)\n",
+ "\n",
+ "print 'Maximum value for Rs =',Rs_max,'Ohm'\n",
+ "print 'Minimum value for Rs =',Rs_min,'Ohm'\n",
+ "print 'Choose approximately mid point between these two.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum value for Rs = 300.0 Ohm\n",
+ "Minimum value for Rs = 250.0 Ohm\n",
+ "Choose approximately mid point between these two.\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-8, Page 440"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VS=10 #source voltage (V)\n",
+ "RS=2.0 #source resistance(KOhm)\n",
+ "VDD=30 #Drain supply voltage (V)\n",
+ "RD=1.0 #Drain resistance(KOhm)\n",
+ "\n",
+ "ID=VS/Rs #Drain current(mA)\n",
+ "VD=VDD-(ID*RD) #Drain voltage(V)\n",
+ "VDS=VD-VS #Drain to source voltage (V)\n",
+ "ID_sat=VDD/(RD+RS) #ID(dc-saturation) (mA)\n",
+ "VDS_cut=VDD #VDS(cutoff) (V)\n",
+ "\n",
+ "print 'ID (saturation) = ',ID_sat,'mA'\n",
+ "print 'VDS (cutoff) = ',VDS_cut,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ID (saturation) = 10.0 mA\n",
+ "VDS (cutoff) = 30 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-9, Page 441"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "IDSS=20 #IDSS (mA)\n",
+ "RS=270 #Source resistance (Ohm)\n",
+ "VDD=30 #Drain supply voltage (V)\n",
+ "RD=1.0 #Drain resistance(KOhm)\n",
+ "R1=1*10**6 #Gate resistor1(Ohm) \n",
+ "R2=2*10**6 #Gate resistor2(Ohm) \n",
+ "\n",
+ "VG=-VDD*R1/(R1+R2) #gate-source voltage(V)\n",
+ "ID=VG/RS #current for second point(mA)\n",
+ "\n",
+ "VGSQ_min=-0.4 #Q point minimum gate-source voltage(V)\n",
+ "VGSQ_max=-2.4 #Q point maximum gate-source voltage(V)\n",
+ "IDQ_min=5.2 #Q point minimum drain current(V)\n",
+ "IDQ_max=6.3 #Q point maximum drain current(V)\n",
+ "\n",
+ "print 'Maximum value for VGS =',VGSQ_max,'V'\n",
+ "print 'Minimum value for VGS =',VGSQ_min,'V'\n",
+ "print 'Maximum value for ID =',IDQ_max,'mA'\n",
+ "print 'Minimum value for ID =',IDQ_min,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum value for VGS = -2.4 V\n",
+ "Minimum value for VGS = -0.4 V\n",
+ "Maximum value for ID = 6.3 mA\n",
+ "Minimum value for ID = 5.2 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 93
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-10, Page 443"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RS=3.0 #Source resistance (KOhm)\n",
+ "VDD=15 #Drain supply voltage (V)\n",
+ "RD=1.0 #Drain resistance(KOhm)\n",
+ "\n",
+ "ID=VDD/RS #drain current(mA)\n",
+ "VD=VDD-(ID*RD) #drain voltage(V)\n",
+ "\n",
+ "print 'Drain current ID = ',ID,'mA'\n",
+ "print 'Drain voltage VD = ',VD,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain current ID = 5.0 mA\n",
+ "Drain voltage VD = 10.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-11, Page 444"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RS=2.0 #Source resistance (KOhm)\n",
+ "VDD=10 #Drain supply voltage (V)\n",
+ "RD=1.0 #Drain resistance(KOhm)\n",
+ "VBE=0.7 #BJT transistor drop(V)\n",
+ "\n",
+ "ID=((VDD/2)-VBE)/RS #drain current(mA)\n",
+ "VD=VDD-(ID*RD) #drain voltage(V)\n",
+ "\n",
+ "print 'Drain current ID = ',ID,'mA'\n",
+ "print 'Drain voltage VD = ',VD,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain current ID = 2.15 mA\n",
+ "Drain voltage VD = 7.85 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-12, Page 447"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "IDSS=5.0 #IDSS current (mA)\n",
+ "gm0=5000.0 #transconductance at VGS=0(uS)\n",
+ "VGS=-1.0 #VGS (V)\n",
+ "VGS_off=1000*-2*IDSS/gm0 #VGS (off) (V)\n",
+ "gm=gm0*(1-(VGS/VGS_off)) #gm at VGS=-1V\n",
+ "\n",
+ "print 'VGS (Off) = ',VGS_off,'V'\n",
+ "print 'gm = ',gm,'uS'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "VGS (Off) = -2.0 V\n",
+ "gm = 2500.0 uS\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-13, Page 449"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RD=3.6 #drain resistance(KOhm)\n",
+ "RL=10 #Load resistance(KOhm)\n",
+ "gm=5000 #transconductance (uS)\n",
+ "Vin=1 #input(mVpp)\n",
+ "\n",
+ "rd=RD*RL/(RD+RL) #ac drain resistance(KOhm)\n",
+ "Av=gm*rd/1000 #voltage gain\n",
+ "Vout=Av*Vin #Output voltage(V)\n",
+ "\n",
+ "print 'ac drain resistance rd = ',round(rd,2),'KOhm'\n",
+ "print 'voltage gain Av = ',round(Av,2)\n",
+ "print 'output voltage Vout = ',round(Vout,2),'mVpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ac drain resistance rd = 2.65 KOhm\n",
+ "voltage gain Av = 13.24\n",
+ "output voltage Vout = 13.24 mVpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-14, Page 450"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RS=1.0 #source resistance(KOhm)\n",
+ "RL=1.0 #Load resistance(KOhm)\n",
+ "gm=2500.0*10**-6 #transconductance (S)\n",
+ "Vin=1 #input(mVpp)\n",
+ "\n",
+ "rs=1000*RS*RL/(RS+RL) #ac source resistance(Ohm)\n",
+ "Av=gm*rs/(1+(gm*rs)) #voltage gain\n",
+ "Vout=Av*Vin #Output voltage(V)\n",
+ "\n",
+ "print 'ac source resistance rs = ',round(rs,2),'Ohm'\n",
+ "print 'voltage gain Av = ',round(Av,2)\n",
+ "print 'output voltage Vout = ',round(Vout,2),'mVpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ac source resistance rs = 500.0 Ohm\n",
+ "voltage gain Av = 0.56\n",
+ "output voltage Vout = 0.56 mVpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ " Example 13-15, Page 450"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Ra=780 #Adjustaed resistance(Ohm)\n",
+ "RS1=220 #source resistance(Ohm)\n",
+ "VDD=30 #Drain supply voltage(V)\n",
+ "RL=3 #Load resistance(KOhm)\n",
+ "gm=2000.0*10**-6 #transconductance (S)\n",
+ "\n",
+ "RS=(RS1+Ra)/1000 #total source resistance(KOhm)\n",
+ "rs=1000*RS*RL/(RS+RL) #ac source resistance(Ohm)\n",
+ "Av=gm*rs/(1+(gm*rs)) #voltage gain\n",
+ "\n",
+ "print 'Ac source resistance rs = ',rs,'Ohm'\n",
+ "print 'voltage gain Av = ',Av"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ac source resistance rs = 750 Ohm\n",
+ "voltage gain Av = 0.6\n"
+ ]
+ }
+ ],
+ "prompt_number": 74
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-16, Page 451"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RS=2.2 #source resistance(Ohm)\n",
+ "VDD=30 #Drain supply voltage(V)\n",
+ "RL=3.3 #Load resistance(KOhm)\n",
+ "gm=3500.0*10**-6 #transconductance (S)\n",
+ "R1=2*10**-6 #Base resistor 1(Ohm)\n",
+ "R2=1*10**-6 #Base resistor 2(Ohm) \n",
+ "\n",
+ "VD=VDD*(R2/(R1+R2)) #drain voltage(V)\n",
+ "ID=VD/RS #drain current(mA)\n",
+ "rs=1000*RS*RL/(RS+RL) #ac source resistance(Ohm)\n",
+ "Av=gm*rs/(1+(gm*rs)) #voltage gain\n",
+ "\n",
+ "print 'Ac source resistance rs = ',rs/1000,'KOhm'\n",
+ "print 'voltage gain Av = ',round(Av,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ac source resistance rs = 1.32 KOhm\n",
+ "voltage gain Av = 0.82\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-17, Page 454"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RD=10.0 #Drain resistance(KOhm)\n",
+ "R1=0.2 #resistance(KOhm)\n",
+ "IDSS=10.0 #IDSS current(mA)\n",
+ "VGS_off=-2 #VGS(off) (V)\n",
+ "gm=3500.0*10**-6 #transconductance (S)\n",
+ "Vin=10.0 #input voltage (mVpp)\n",
+ "\n",
+ "RDS=-VGS_off/IDSS #Ohmic resistance(Ohm)\n",
+ "Vout_on=Vin*RDS/(RD+R1) #Output voltage when JFET is on(V)\n",
+ "Vout_off=Vin #Output voltage when JFET is off(V)\n",
+ "ratio=Vout_off/Vout_on #on-off ratio\n",
+ "\n",
+ "print 'output voltage Vout = ',round(Vout_on,2),'mVpp'\n",
+ "print 'on-off ratio = ',ratio"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage Vout = 0.2 mVpp\n",
+ "on-off ratio = 51.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-18, Page 455"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RD=10.0 #Drain resistance(KOhm)\n",
+ "R1=0.2 #resistance(KOhm)\n",
+ "R2=10*10**6 #resistance(Ohm)\n",
+ "IDSS=10.0 #IDSS current(mA)\n",
+ "VGS_off=-2 #VGS(off) (V)\n",
+ "gm=3500.0*10**-6 #transconductance (S)\n",
+ "Vin=10.0 #input voltage (mVpp)\n",
+ "\n",
+ "Vout_on=Vin*(RD/(RD+R1)) #Output voltage when JFET is on(V)\n",
+ "Vout_off=Vin*(RD/R2) #Output voltage when JFET is off(V)\n",
+ "ratio=Vout_on/Vout_off/1000 #on-off ratio\n",
+ "\n",
+ "print 'output voltage Vout when on = ',round(Vout_on,2),'mVpp'\n",
+ "print 'output voltage Vout when off = ',Vout_off*10**6,'uVpp'\n",
+ "print 'on-off ratio = ',round(ratio,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage Vout when on = 9.8 mVpp\n",
+ "output voltage Vout when off = 10.0 uVpp\n",
+ "on-off ratio = 980.39\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13-19, Page 455"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "fout=20 #frequency(KHz)\n",
+ "RDS=50.0 #Ohmic resistance(Ohm)\n",
+ "RL=10*10**3 #Load resistance(Ohm)\n",
+ "Vin=100 #input voltage (mV)\n",
+ "\n",
+ "Vpeak=Vin*RL/(RL+RDS) #peak voltage(V)\n",
+ "\n",
+ "print 'Outout Vpeak = ',round(Vpeak,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Outout Vpeak = 99.5 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_14_New.ipynb b/Electronic_Principles/Chapter_14_New.ipynb
new file mode 100755
index 00000000..d16f054a
--- /dev/null
+++ b/Electronic_Principles/Chapter_14_New.ipynb
@@ -0,0 +1,648 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 14 MOSFETs"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-1, Page 481"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VGS_off=-3.0 #Gate-source cutoff voltage(V)\n",
+ "IDSS=6 #IDSS current(mA) \n",
+ "VGS1=-1 #VGS voltage(V)\n",
+ "VGS2=-2\n",
+ "VGS3=0\n",
+ "VGS4=1\n",
+ "VGS5=2\n",
+ "\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",
+ "ID4=IDSS*((1-(VGS4/VGS_off))**2)\n",
+ "ID5=IDSS*((1-(VGS5/VGS_off))**2)\n",
+ "\n",
+ "\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",
+ "print 'Drain current ID4 = ',round(ID4,2),'mA'\n",
+ "print 'Drain current ID5 = ',round(ID5,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain current ID1 = 2.67 mA\n",
+ "Drain current ID2 = 0.67 mA\n",
+ "Drain current ID3 = 6.0 mA\n",
+ "Drain current ID4 = 10.67 mA\n",
+ "Drain current ID5 = 16.67 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-2, Page 482"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VGS_off=-2.0 #Gate-source cutoff voltage(V)\n",
+ "IDSS=4 #IDSS current(mA) \n",
+ "gm0=2000*10**-6 #transconductance(S)\n",
+ "VGS=0 #VGS voltage(V)\n",
+ "VDD=15 #Drain supply voltage(V)\n",
+ "RD=2.0 #Drain resistance(KOhm)\n",
+ "RL=10.0 #Load resistance(KOhm)\n",
+ "Vin=20 #input voltage(mV)\n",
+ "\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",
+ "print 'Output voltage Vout = ',round(Vout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 66.67 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-3, Page 490"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VGS_on=4.5 #Gate-source voltage(V)\n",
+ "ID_on=75 #ID current(mA) \n",
+ "RDS=6 #Ohmic resistance(Ohm)\n",
+ "VDD=20 #Drain supply voltage(V)\n",
+ "RD=1.0 #Drain resistance(KOhm)\n",
+ "RL=10.0 #Load resistance(KOhm)\n",
+ "\n",
+ "ID_sat=VDD/RD #drain saturation current(mA)\n",
+ "Vout1=VDD*(RDS/(RDS+(RD*1000)))#output voltage when VGS is high(V)\n",
+ "Vout2=VDD #output voltage when VGS is low(V) \n",
+ "\n",
+ "print 'output voltage when VGS is high = ',round(Vout1,2),'V'\n",
+ "print 'output voltage when VGS is low = ',Vout2,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage when VGS is high = 0.12 V\n",
+ "output voltage when VGS is low = 20 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-4, Page 492"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "ID=(VDD-Vled)/RD #drain current considering LED drop\n",
+ "\n",
+ "print 'drain current considering LED drop ID = ',ID,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "drain current considering LED drop ID = 18.0 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-5, Page 492"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rrc=500.0 #Resistance of relay(V)\n",
+ "VDD=24 #drain supply voltage(V)\n",
+ "\n",
+ "ID_sat=VDD/Rrc #drain saturation current(A)\n",
+ "\n",
+ "print 'Drain saturaion current ID(sat) = ',ID_sat*1000,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain saturaion current ID(sat) = 48.0 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-6, Page 496"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "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",
+ "print 'Output voltage when input is low Vout1 = ',Vout1,'V'\n",
+ "print 'Output voltage when input is high Vout2 = ',round((Vout2*1000),2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage when input is low Vout1 = 20.0 V\n",
+ "Output voltage when input is high Vout2 = 99.5 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-7, Page 496"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "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",
+ "print 'Output voltage when input is low Vout1 = ',Vout1,'V'\n",
+ "print 'Output voltage when input is high Vout2 = ',Vout2,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage when input is low Vout1 = 10.0 V\n",
+ "Output voltage when input is high Vout2 = 2.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-8, Page 498"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import matplotlib.pyplot as plt\n",
+ "%pylab inline\n",
+ "\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",
+ "print 'approximate plotting shown in figure'\n",
+ "plt.plot(x,y)\n",
+ "plt.show()\n",
+ "print 'output signal shown on second plot'\n",
+ "z=[15,15,15,0,0,0,0,15,15,15]\n",
+ "plt.plot(x,z,'r')\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Populating the interactive namespace from numpy and matplotlib\n",
+ "Input signal switches from 0 to 15 V at pt. A & 15 to 0 V at pt. B\n",
+ "approximate plotting shown in figure\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "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\nrkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x60fcb70>"
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output signal shown on second plot\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "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\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x9285470>"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-9, Page 502"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "ID_sat=VDD/RD #drain saturation current(A)\n",
+ "ID=VDD/(RDS+RD) #drain current(A)\n",
+ "\n",
+ "print 'current through motor winding is ID = ',round(ID,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current through motor winding is ID = 0.94 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-10, Page 503"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "ID_sat=VDD/RD #drain saturation current(A)\n",
+ "ID=VDD/(RDS+RD) #drain current(A)\n",
+ "\n",
+ "print 'current through lamp is ID = ',round(ID,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current through lamp is ID = 2.71 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-11, Page 503"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "ID=VDD/(RDS+RD) #drain current(A)\n",
+ "\n",
+ "print 'current through water valve is ID = ',round(ID,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current through water valve is ID = 0.95 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-12, Page 504"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VDD=30.0 #drain supply voltage (V)\n",
+ "RD=10 #drain resistance(Ohm)\n",
+ "RDS=1.07 #Ohmic resistance(Ohm)\n",
+ "R1=2*10**6 #Resistance1 at gate (Ohm)\n",
+ "R2=1*10**6 #Resistance2 at gate (Ohm)\n",
+ "C=10*10**-6 #Capacitance at gate(F)\n",
+ "\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",
+ "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'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RC Time constant = 6.67 s\n",
+ "current through lamp is ID = 2.71 A\n",
+ "Lamp power P = 73.44 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-13, Page 506"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "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",
+ "print 'ID1 (for VGS = 3V) = ',round(ID1,2),'mA'\n",
+ "print 'ID2 (for VGS = 4.5V) = ',ID2,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ID1 (for VGS = 3V) = 84.37 mA\n",
+ "ID2 (for VGS = 4.5V) = 600.0 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14-14, Page 507"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "ID_on=3 #ID (On) (mA)\n",
+ "VDS_on=10 #VDS(On) (V) \n",
+ "VDD=25 #Drain supply voltage (V)\n",
+ "\n",
+ "RD=(VDD-VDS_on)/ID_on #Drain resistance(KOhm)\n",
+ "\n",
+ "print 'Drain resistance RD = ',RD,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain resistance RD = 5 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 59
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ " Example 14-15, Page 508"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "ID_on=600 #ID (On) (mA)\n",
+ "VGS_th=2.1 #VGS(threshold) (V) \n",
+ "VDD=12 #Drain supply voltage (V)\n",
+ "k=104*10**-3 #constant(A/V2)\n",
+ "R1=1.0*10**6 #Resistance1 at gate (Ohm)\n",
+ "R2=350.0*10**3 #Resistance2 at gate (Ohm)\n",
+ "Vin=100.0*10**-3 #input voltage (V)\n",
+ "RD=68.0 #Drain resistance(Ohm)\n",
+ "RL=1.0*10**3 #Load resistance(Ohm)\n",
+ "\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",
+ "rd=RD*RL/(RD+RL) #ac drain resistance(Ohm) \n",
+ "Av=gm*rd #voltage gain\n",
+ "Vout=Vin*Av #Output voltage (V)\n",
+ "\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",
+ "print 'voltage gain Av = ',round(Av,2)\n",
+ "print 'Output voltage Vout = ',round(Vout,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Gate-source voltage VGS = 3.11 V\n",
+ "transconductance gm = 210.31 mS\n",
+ "Ac drain resistance rd = 63.67 Ohm\n",
+ "voltage gain Av = 13.39\n",
+ "Output voltage Vout = 1.34 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_15_New.ipynb b/Electronic_Principles/Chapter_15_New.ipynb
new file mode 100755
index 00000000..b47db517
--- /dev/null
+++ b/Electronic_Principles/Chapter_15_New.ipynb
@@ -0,0 +1,383 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 15 Thyristors"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-1, Page 521"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VB=10 #breakover voltage(V)\n",
+ "Vin=15 #input voltage(V)\n",
+ "R=100.0 #resistance (Ohm)\n",
+ "\n",
+ "I1=1000*Vin/R #diode current ideally(mA)\n",
+ "I2=1000*(Vin-0.7)/R #diode current with second approx.(mA)\n",
+ "I3=1000*(Vin-0.9)/R #diode current more accurately(mA)\n",
+ "\n",
+ "print 'Diode current ideally ID1 = ',I1,'mA'\n",
+ "print 'Diode current with second approx. ID2 = ',I2,'mA'\n",
+ "print 'Diode current more accurately ID3 = ',I3,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diode current ideally ID1 = 150.0 mA\n",
+ "Diode current with second approx. ID2 = 143.0 mA\n",
+ "Diode current more accurately ID3 = 141.0 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-2, Page 525"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Ih=4*10**-3 #holding current(mA)\n",
+ "R=100.0 #resistance (Ohm)\n",
+ "Vs=15 #input voltage (V)\n",
+ "\n",
+ "Vin=0.7+(Ih*R) #new input voltage(V)\n",
+ "\n",
+ "print 'New input voltage Vin = ',Vin,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "New input voltage Vin = 1.1 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-3, Page 525"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R=2.0*10**3 #resistance (Ohm)\n",
+ "C=0.02*10**-6 #capacitance (F)\n",
+ "VB=10 #breakdown voltage(V)\n",
+ "\n",
+ "RC=R*C #Time constant(s)\n",
+ "T=0.2*RC #period (s)\n",
+ "f=T**-1 #frequency(Hz) \n",
+ "\n",
+ "print 'time constant RC = ',RC*10**6,'us'\n",
+ "print 'Period T = ',T*10**6,'us'\n",
+ "print 'Frequency = ',f/1000,'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "time constant RC = 40.0 us\n",
+ "Period T = 8.0 us\n",
+ "Frequency = 125.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-4, Page 531"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "It=7*10**-3 #trigger current(mA)\n",
+ "R1=100.0 #resistance (Ohm)\n",
+ "R2=1*10**3 #resistance (Ohm)\n",
+ "Vt=0.75 #trigger voltage (V)\n",
+ "Ih=6*10**-3 #holding current(mA)\n",
+ "\n",
+ "Vin=Vt+(It*R2) #minimum input voltage(V)\n",
+ "VCC=0.7+(Ih*R1) #supply voltage for turning of SCR(V)\n",
+ "\n",
+ "print 'Minimum input voltage Vin = ',Vin,'V'\n",
+ "print 'supply voltage for turning of SCR VCC = ',VCC,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum input voltage Vin = 7.75 V\n",
+ "supply voltage for turning of SCR VCC = 1.3 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-5, Page 532"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "IGT=200*10**-6 #trigger current(mA)\n",
+ "VGT=1 #trigger voltage(V) \n",
+ "R1=900.0 #resistance (Ohm)\n",
+ "R2=100.0 #resistance (Ohm)\n",
+ "C=0.2*10**-6 #capacitance (F)\n",
+ "Vt=0.75 #trigger voltage (V)\n",
+ "Ih=6*10**-3 #holding current(mA)\n",
+ "R=1*10**3 #Resistance (Ohm) \n",
+ "\n",
+ "RTH=R1*R2/(R1+R2) #Thevenin resistance (Ohm)\n",
+ "Vin=VGT+(IGT*RTH) #input voltage needed to trigger(V)\n",
+ "Vp=10*Vin #Output voltage at SCR firing point(V)\n",
+ "RC=C*(R/2) #time constant (s)\n",
+ "T=RC*0.2 #period (s)\n",
+ "f=1/T #frequency (Hz)\n",
+ "\n",
+ "print 'peak output voltage Vpeak = ',Vp,'V'\n",
+ "print 'time constant RC = ',RC*10**6,'us'\n",
+ "print 'Period T = ',T*10**6,'us'\n",
+ "print 'Frequency = ',f/1000,'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "peak output voltage Vpeak = 10.18 V\n",
+ "time constant RC = 100.0 us\n",
+ "Period T = 20.0 us\n",
+ "Frequency = 50.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-6, Page 536"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vz=5.6 #breakdown voltage(V)\n",
+ "VGT1=0.75 #trigger voltage (V) \n",
+ "VGT2=1.5 #worst case maximum trigger voltage(V) \n",
+ "Vz2=6.16 #break down voltage with 10% tolerance (V)\n",
+ "\n",
+ "VCC1=Vz+VGT1 #supply voltage(V) \n",
+ "VCC2=VGT2+Vz2 #Over voltage (V)\n",
+ "\n",
+ "print 'supply voltage VCC1 = ',VCC1,'V'\n",
+ "print 'supply over voltage VCC2 = ',VCC2,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "supply voltage VCC1 = 6.35 V\n",
+ "supply over voltage VCC2 = 7.66 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-7, Page 539"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "C=0.1*10**-6 #capacitance (F)\n",
+ "f=60 #frequency (Hz)\n",
+ "R=26*10**3 #resistance(KOhm)\n",
+ "Vm=120 #input ac voltage(V)\n",
+ "\n",
+ "XC=(2*math.pi*f*C)**-1 #capacitive reactance(Ohm)\n",
+ "ZT=((R**2)+(XC**2))**0.5 #impedance (Ohm)\n",
+ "thetaz=math.atan2(-XC,R)*180/math.pi #angle (deg)\n",
+ "IC=Vm/ZT #Current through C(A)\n",
+ "VC=IC*XC #voltage across C(V)\n",
+ "thetac=180+thetaz #conduction angle(deg)\n",
+ "\n",
+ "print 'Capacitor reactance XC = ',round((XC/1000),2),'KOhm'\n",
+ "print 'impedance ZT = ',round((ZT/1000),2),'KOhm'\n",
+ "print 'firing angle = ',round(thetaz,2),'deg'\n",
+ "print 'Current through C, IC = ',round((IC*1000),2),'mA'\n",
+ "print 'voltage across C, VC = ',round(VC,2),'V'\n",
+ "print 'conduction angle = ',round(thetac,2),'deg'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitor reactance XC = 26.53 KOhm\n",
+ "impedance ZT = 37.14 KOhm\n",
+ "firing angle = -45.57 deg\n",
+ "Current through C, IC = 3.23 mA\n",
+ "voltage across C, VC = 85.7 V\n",
+ "conduction angle = 134.43 deg\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-8, Page 546"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "C=1*10**-6 #capacitance (F)\n",
+ "R1=22.0 #resistance (Ohm)\n",
+ "R2=82*10**3 #resistance(KOhm)\n",
+ "Vs=75 #input voltage(V)\n",
+ "\n",
+ "I=Vs/R1 #current through 22Ohm resistor (A)\n",
+ "\n",
+ "print 'current through 22Ohm resistor I = ',round(I,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current through 22Ohm resistor I = 3.41 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15-9, Page 547"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vdb=32.0 #diac break down voltage (V)\n",
+ "VTT=1 #triac trigger voltage(V)\n",
+ "\n",
+ "Vin=VTT+Vdb #input voltage for triggering triac\n",
+ "\n",
+ "print 'input voltage for triggering triac vin = ',Vin,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input voltage for triggering triac vin = 33.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_16_New.ipynb b/Electronic_Principles/Chapter_16_New.ipynb
new file mode 100755
index 00000000..847a3379
--- /dev/null
+++ b/Electronic_Principles/Chapter_16_New.ipynb
@@ -0,0 +1,933 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 16 Frequency Effets"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-1, Page 567"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Avm=200 #mid band voltage gain\n",
+ "f1=20 #cutoff frequency1 (Hz)\n",
+ "f2=20*10**3 #cutoff frequency2 (Hz)\n",
+ "fi1=5 #input frequency1(Hz)\n",
+ "fi2=200*10**3 #input frequency2(Hz)\n",
+ "\n",
+ "Av=0.707*Avm #voltage gain at either frequency\n",
+ "Av1=Avm/(1+(f1/fi1)**2)**0.5 #voltage gain for 5Hz\n",
+ "Av2=Avm/(1+(fi2/f2)**2)**0.5 #voltage gain for 200KHz\n",
+ "\n",
+ "print 'voltage gain for 200KHz = ',round(Av1,2)\n",
+ "print 'voltage gain for 5Hz = ',round(Av2,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain for 200KHz = 48.51\n",
+ "voltage gain for 5Hz = 19.9\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-2, Page 568"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Avm=100000 #mid band voltage gain\n",
+ "f2=10 #cutoff frequency (Hz)\n",
+ "\n",
+ "Av=0.707*Avm #voltage gain at cutoff frequency\n",
+ "\n",
+ "print 'voltage gain for 10Hz = ',Av"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain for 10Hz = 70700.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-3, Page 569"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Avm=100000 #mid band voltage gain\n",
+ "fc=10.0 #cutoff frequency (Hz)\n",
+ "fi1=100.0 #input frequency1(Hz)\n",
+ "fi2=1*10**3 #input frequency2(Hz)\n",
+ "fi3=10*10**3 #input frequency3(Hz)\n",
+ "fi4=100*10**3 #input frequency4(Hz)\n",
+ "fi5=1*10**6 #input frequency5(Hz)\n",
+ "\n",
+ "Av1=Avm/(1+(fi1/fc)**2)**0.5 #voltage gain for 100Hz\n",
+ "Av2=Avm/(1+(fi2/fc)**2)**0.5 #voltage gain for 1KHz\n",
+ "Av3=Avm/(1+(fi3/fc)**2)**0.5 #voltage gain for 10KHz\n",
+ "Av4=Avm/(1+(fi4/fc)**2)**0.5 #voltage gain for 100KHz\n",
+ "Av5=Avm/(1+(fi5/fc)**2)**0.5 #voltage gain for 1MHz\n",
+ "\n",
+ "print 'voltage gain for 100Hz = ',math.ceil(Av1)\n",
+ "print 'voltage gain for 1KHz = ',math.ceil(Av2)\n",
+ "print 'voltage gain for 10KHz = ',math.ceil(Av3)\n",
+ "print 'voltage gain for 100KHz = ',math.ceil(Av4)\n",
+ "print 'voltage gain for 1MHz = ',math.ceil(Av5)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain for 100Hz = 9951.0\n",
+ "voltage gain for 1KHz = 1000.0\n",
+ "voltage gain for 10KHz = 100.0\n",
+ "voltage gain for 100KHz = 10.0\n",
+ "voltage gain for 1MHz = 1.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-4, Page 571"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Ap1=1 #power gain1\n",
+ "Ap2=2 #power gain2\n",
+ "Ap3=4 #power gain3\n",
+ "Ap4=8 #power gain4\n",
+ "\n",
+ "Ap_db1=10*math.log10(Ap1) #decibel power gain(dB)\n",
+ "Ap_db2=10*math.log10(Ap2) #decibel power gain(dB)\n",
+ "Ap_db3=10*math.log10(Ap3) #decibel power gain(dB)\n",
+ "Ap_db4=10*math.log10(Ap4) #decibel power gain(dB)\n",
+ "\n",
+ "print 'decibel power gain Ap1(dB) = ',Ap_db1,'dB'\n",
+ "print 'decibel power gain Ap2(dB) = ',round(Ap_db2,2),'dB'\n",
+ "print 'decibel power gain Ap3(dB) = ',round(Ap_db3,2),'dB'\n",
+ "print 'decibel power gain Ap4(dB) = ',round(Ap_db4,2),'dB'\n",
+ "print 'Each time Ap increase by factor 2, decibel power gain increases by 3 dB'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "decibel power gain Ap1(dB) = 0.0 dB\n",
+ "decibel power gain Ap2(dB) = 3.01 dB\n",
+ "decibel power gain Ap3(dB) = 6.02 dB\n",
+ "decibel power gain Ap4(dB) = 9.03 dB\n",
+ "Each time Ap increase by factor 2, decibel power gain increases by 3 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-5, Page 571"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Ap1=1 #power gain1\n",
+ "Ap2=0.5 #power gain2\n",
+ "Ap3=0.25 #power gain3\n",
+ "Ap4=0.125 #power gain4\n",
+ "\n",
+ "Ap_db1=10*math.log10(Ap1) #decibel power gain(dB)\n",
+ "Ap_db2=10*math.log10(Ap2) #decibel power gain(dB)\n",
+ "Ap_db3=10*math.log10(Ap3) #decibel power gain(dB)\n",
+ "Ap_db4=10*math.log10(Ap4) #decibel power gain(dB)\n",
+ "\n",
+ "print 'decibel power gain Ap1(dB) = ',Ap_db1,'dB'\n",
+ "print 'decibel power gain Ap2(dB) = ',round(Ap_db2,2),'dB'\n",
+ "print 'decibel power gain Ap3(dB) = ',round(Ap_db3,2),'dB'\n",
+ "print 'decibel power gain Ap4(dB) = ',round(Ap_db4,2),'dB'\n",
+ "print 'Each time Ap decreases by factor 2, decibel power gain decreases by 3 dB'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "decibel power gain Ap1(dB) = 0.0 dB\n",
+ "decibel power gain Ap2(dB) = -3.01 dB\n",
+ "decibel power gain Ap3(dB) = -6.02 dB\n",
+ "decibel power gain Ap4(dB) = -9.03 dB\n",
+ "Each time Ap decreases by factor 2, decibel power gain decreases by 3 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-6, Page 572"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Ap1=1 #power gain1\n",
+ "Ap2=10 #power gain2\n",
+ "Ap3=100 #power gain3\n",
+ "Ap4=1000 #power gain4\n",
+ "\n",
+ "Ap_db1=10*math.log10(Ap1) #decibel power gain(dB)\n",
+ "Ap_db2=10*math.log10(Ap2) #decibel power gain(dB)\n",
+ "Ap_db3=10*math.log10(Ap3) #decibel power gain(dB)\n",
+ "Ap_db4=10*math.log10(Ap4) #decibel power gain(dB)\n",
+ "\n",
+ "print 'decibel power gain Ap1(dB) = ',Ap_db1,'dB'\n",
+ "print 'decibel power gain Ap2(dB) = ',Ap_db2,'dB'\n",
+ "print 'decibel power gain Ap3(dB) = ',Ap_db3,'dB'\n",
+ "print 'decibel power gain Ap4(dB) = ',Ap_db4,'dB'\n",
+ "print 'Each time Ap increases by factor 10, decibel power gain increases by 10 dB'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "decibel power gain Ap1(dB) = 0.0 dB\n",
+ "decibel power gain Ap2(dB) = 10.0 dB\n",
+ "decibel power gain Ap3(dB) = 20.0 dB\n",
+ "decibel power gain Ap4(dB) = 30.0 dB\n",
+ "Each time Ap increases by factor 10, decibel power gain increases by 10 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-7, Page 572"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Ap1=1 #power gain1\n",
+ "Ap2=0.1 #power gain2\n",
+ "Ap3=0.01 #power gain3\n",
+ "Ap4=0.001 #power gain4\n",
+ "\n",
+ "Ap_db1=10*math.log10(Ap1) #decibel power gain(dB)\n",
+ "Ap_db2=10*math.log10(Ap2) #decibel power gain(dB)\n",
+ "Ap_db3=10*math.log10(Ap3) #decibel power gain(dB)\n",
+ "Ap_db4=10*math.log10(Ap4) #decibel power gain(dB)\n",
+ "\n",
+ "print 'decibel power gain Ap1(dB) = ',Ap_db1,'dB'\n",
+ "print 'decibel power gain Ap2(dB) = ',Ap_db2,'dB'\n",
+ "print 'decibel power gain Ap3(dB) = ',Ap_db3,'dB'\n",
+ "print 'decibel power gain Ap4(dB) = ',Ap_db4,'dB'\n",
+ "print 'Each time Ap decreases by factor 10, decibel power gain decreases by 10 dB'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "decibel power gain Ap1(dB) = 0.0 dB\n",
+ "decibel power gain Ap2(dB) = -10.0 dB\n",
+ "decibel power gain Ap3(dB) = -20.0 dB\n",
+ "decibel power gain Ap4(dB) = -30.0 dB\n",
+ "Each time Ap decreases by factor 10, decibel power gain decreases by 10 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-8, Page 575"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Av1=100 #voltage gain1\n",
+ "Av2=200 #voltage gain2\n",
+ "\n",
+ "Av=Av1*Av2 #total voltage gain\n",
+ "Av_db=20*math.log10(Av) #decibel total voltage gain(dB)\n",
+ "Av_db1=20*math.log10(Av1) #decibel voltage gain(dB)\n",
+ "Av_db2=20*math.log10(Av2) #decibel voltage gain(dB)\n",
+ "Avt_db=Av_db1+Av_db2 #decibel total voltage gain(dB)\n",
+ "\n",
+ "print 'decibel total voltage gain Av(dB) = ',round(Av_db,2),'dB'\n",
+ "print 'decibel voltage gain Av1(dB) = ',Av_db1,'dB'\n",
+ "print 'decibel voltage gain Av2(dB) = ',round(Av_db2,2),'dB'\n",
+ "print 'so, again, decibel total voltage gain by addition of both: Avt(dB) = ',round(Avt_db,2),'dB'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "decibel total voltage gain Av(dB) = 86.02 dB\n",
+ "decibel voltage gain Av1(dB) = 40.0 dB\n",
+ "decibel voltage gain Av2(dB) = 46.02 dB\n",
+ "so, again, decibel total voltage gain by addition of both: Avt(dB) = 86.02 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-9, Page 577"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Av_db1=23 #voltage gain1(dB)\n",
+ "Av_db2=36 #voltage gain2(dB)\n",
+ "Av_db3=31 #voltage gain3(dB)\n",
+ "\n",
+ "Avt_db=Av_db1+Av_db2+Av_db3 #decibel total voltage gain(dB)\n",
+ "Ap=10**(Avt_db/10) #power gain by taking antilog\n",
+ "Avt=10**(Avt_db/20.0) #total voltage gain by taking antilog\n",
+ "\n",
+ "print 'decibel total voltage gain Avt(dB) = ',Avt_db,'dB'\n",
+ "print 'power gain Ap = ',Ap\n",
+ "print 'total voltage gain Avt = ',math.ceil(Avt)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "decibel total voltage gain Avt(dB) = 90 dB\n",
+ "power gain Ap = 1000000000\n",
+ "total voltage gain Avt = 31623.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-10, Page 577"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Av_db1=23 #voltage gain1(dB)\n",
+ "Av_db2=36 #voltage gain2(dB)\n",
+ "Av_db3=31 #voltage gain3(dB)\n",
+ "\n",
+ "Av1=10**(Av_db1/20.0) #voltage gain of stage 1 by taking antilog\n",
+ "Av2=10**(Av_db2/20.0) #voltage gain of stage 2 by taking antilog\n",
+ "Av3=10**(Av_db3/20.0) #voltage gain of stage 3 by taking antilog\n",
+ "\n",
+ "print 'voltage gain of stage 1 : Av1 = ',round(Av1,2)\n",
+ "print 'voltage gain of stage 1 : Av2 = ',round(Av2,2)\n",
+ "print 'voltage gain of stage 1 : Av3 = ',round(Av3,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain of stage 1 : Av1 = 14.13\n",
+ "voltage gain of stage 1 : Av2 = 63.1\n",
+ "voltage gain of stage 1 : Av3 = 35.48\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-11, Page 579"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Ap_dbm=24 #power gain(dBm)\n",
+ "\n",
+ "P=10**(Ap_dbm/10.0) #Output power(mW)\n",
+ "\n",
+ "print 'Output power P = ',round(P,2),'mW'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output power P = 251.19 mW\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-12, Page 580"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "Av_dbV=-34 #voltage gain(dBV)\n",
+ "\n",
+ "V=10**(Av_dbV/20.0) #Output voltage(V)\n",
+ "\n",
+ "print 'Output voltage V = ',math.ceil(V*1000),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage V = 20.0 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-13, Page 583"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Avm=100000 #mid band voltage gain\n",
+ "f2=10 #cutoff frequency (Hz)\n",
+ "\n",
+ "Av_db=20*math.log10(Avm) #decibel total voltage gain(dB)\n",
+ "\n",
+ "print 'voltage gain for 10Hz = ',Av_db1,'dB'\n",
+ "print 'At 1MHz, due to roll off factor of 20 dB, voltage gain reduce to 0 dB'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain for 10Hz = 20.0 dB\n",
+ "At 1MHz, due to roll off factor of 20 dB, voltage gain reduce to 0 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-14, Page 588"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R=5*10**3 #resistance(Ohm)\n",
+ "C=100*10**-12 #Capacitance (F)\n",
+ "\n",
+ "f2=(2*math.pi*R*C)**-1 #cutoff frequency (Hz)\n",
+ "\n",
+ "print 'cutoff frequency f2 = ',round((f2/1000),2),'KHz'\n",
+ "print 'After f2, response rolls off at rate of 20 dB/decade'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "cutoff frequency f2 = 318.31 KHz\n",
+ "After f2, response rolls off at rate of 20 dB/decade\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-15, Page 589"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R=2*10**3 #resistance(Ohm)\n",
+ "C=500*10**-12 #Capacitance (F)\n",
+ "\n",
+ "f2=(2*math.pi*R*C)**-1 #cutoff frequency (Hz)\n",
+ "\n",
+ "print 'cutoff frequency f2 = ',round((f2/1000),2),'KHz'\n",
+ "print 'After f2, response rolls off at rate of 20 dB/decade up to funity of 15.9 MHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "cutoff frequency f2 = 159.15 KHz\n",
+ "After f2, response rolls off at rate of 20 dB/decade up to funity of 15.9 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-17, Page 592"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R=5.3*10**3 #resistance(Ohm)\n",
+ "C=30*10**-12 #Capacitance (F)\n",
+ "Av=100000 #voltage gain\n",
+ "\n",
+ "Cout_M=C #input Miller Capacitance (F)\n",
+ "Cin_M=Av*C #input Miller Capacitance (F)\n",
+ "f2=(2*math.pi*R*Cin_M)**-1 #cutoff frequency (Hz)\n",
+ "\n",
+ "print 'cutoff frequency f2 = ',round(f2,3),'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "cutoff frequency f2 = 10.01 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-18, Page 595"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "TR=1*10**-6 #rise time(s)\n",
+ "\n",
+ "f2=0.35/TR #cutoff frequency (Hz)\n",
+ "\n",
+ "print 'cutoff frequency f2 = ',f2/1000,'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "cutoff frequency f2 = 350.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-19, Page 597"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "re=22.7 #from past dc calculation (example:9-5)(Ohm)\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1 #Emitter resistance (KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "RL=10 #Load resistance2 (KOhm)\n",
+ "B=150 #current gain\n",
+ "RG=0.6 #source resistance(KOhm)\n",
+ "C1=0.47*10**-6 #input capacitance(F)\n",
+ "C3=2.2*10**-6 #output capacitance(F)\n",
+ "C2=10*10**-6 #emitter capacitance(F)\n",
+ "\n",
+ "Rinb=B*re/1000 #Rin(base) (KOhm)\n",
+ "Ri=RG+((R1**-1)+(Rinb**-1)+(R2**-1))**-1 #thevenin resistance facing i/p capacitor\n",
+ "f1i=((2*math.pi*Ri*C1)**-1)/1000 #input cutoff frequency (Hz)\n",
+ "Ro=RC+RL #thevenin resistance facing o/p capacitor\n",
+ "f1o=((2*math.pi*Ro*C3)**-1)/1000 #output cutoff frequency (Hz)\n",
+ "Zout=(((RE**-1)+((re/1000)**-1))**-1)+((((R1**-1)+(R2**-1)+(RG**-1))**-1)/B) #thevenin resistance facing emitter-bypass capacitor\n",
+ "f1z=((2*math.pi*Zout*C2)**-1)/1000 #cutoff frequency for bypass circuit (Hz)\n",
+ "\n",
+ "\n",
+ "print 'input cutoff frequency f1 = ',round(f1i,2),'Hz'\n",
+ "print 'output cutoff frequency f1 = ',round(f1o,2),'Hz'\n",
+ "print 'cutoff frequency for bypass circuit f1 = ',round(f1z,2),'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input cutoff frequency f1 = 190.36 Hz\n",
+ "output cutoff frequency f1 = 5.32 Hz\n",
+ "cutoff frequency for bypass circuit f1 = 631.63 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-20, Page 602"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math # This will import math module\n",
+ "\n",
+ "re=22.7 #from past dc calculation (example:9-5)(Ohm)\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1 #Emitter resistance (KOhm)\n",
+ "R11=10 #Base resistance1 (KOhm)\n",
+ "R12=2.2 #Base resistance2 (KOhm)\n",
+ "RL=10 #Load resistance2 (KOhm)\n",
+ "B=150 #current gain\n",
+ "RG=0.6 #source resistance(KOhm)\n",
+ "fT=300*10**6 #current gain bandwidth product(Hz)\n",
+ "CC1=2.1*10**-12 #Cc' capacitance(F)\n",
+ "Cs=10*10**-12 #stray capacitance(F)\n",
+ "\n",
+ "\n",
+ "Rinb=B*re/1000 #Rin(base) (KOhm)\n",
+ "Ce1=((2*math.pi*re*fT)**-1) #capacitance Ce'(F)\n",
+ "rc=RC*RL/(RC+RL) #collector resistance(KOhm) \n",
+ "rg=((R11**-1)+(RG**-1)+(R12**-1))**-1 #source resistance (Ohm)\n",
+ "Av=math.ceil(1000*rc/re) #voltage gain\n",
+ "Cin_M=CC1*(Av+1) #input Miller capacitance(F)\n",
+ "C1=Ce1+Cin_M #base bypass capacitance(F)\n",
+ "R1=int(1000*rg*Rinb/(rg+Rinb)) #resistance facing this capacitance(Ohm) \n",
+ "f2=((2*math.pi*R1*C1)**-1) #base bypass circuit cutoff frequency (Hz)\n",
+ "Cout_M=CC1*((Av+1)/Av) #output Miller capacitance(F)\n",
+ "C2=Cout_M+Cs #output bypass capacitance(F)\n",
+ "R2=1000*RC*RL/(RC+RL) #resistance facing this capacitance(Ohm)\n",
+ "f21=((2*math.pi*R2*C2)**-1) #collector bypass circuit cutoff frequency (Hz)\n",
+ "\n",
+ "print 'base bypass circuit cutoff frequency f2 = ',round((f2/10**6),2),'MHz'\n",
+ "print 'collector bypass circuit cutoff frequency f21 = ',round((f21/10**6),2),'MHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "base bypass circuit cutoff frequency f2 = 1.48 MHz\n",
+ "collector bypass circuit cutoff frequency f21 = 4.96 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-21, Page 605"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "re=22.7 #from past dc calculation (example:9-5)(Ohm)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "R1=2*10**6 #Base resistance1 (Ohm)\n",
+ "R2=1*10**6 #Base resistance2 (Ohm)\n",
+ "RD=150 #drain resistance(Ohm) \n",
+ "RL=1*10**3 #Load resistance2 (Ohm)\n",
+ "RG=0.6*10**3 #source resistance(Ohm)\n",
+ "Cin=0.1*10**-6 #Cin capacitance(F)\n",
+ "Cout=10*10**-6 #Cout capacitance(F)\n",
+ "\n",
+ "\n",
+ "Rthi=RG+((R1**-1)+(R2**-1))**-1 #Thevenin resistance facing input coupling capacitor resistance (Ohm)\n",
+ "f1=((2*math.pi*Rthi*Cin)**-1) #base bypass circuit cutoff frequency (Hz)\n",
+ "Rtho=RD+RL #Thevenin resistance facing output coupling capacitor resistance (Ohm)\n",
+ "f2=((2*math.pi*Rtho*Cout)**-1) #base bypass circuit cutoff frequency (Hz)\n",
+ "\n",
+ "print 'base bypass circuit cutoff frequency f1 = ',round(f1,2),'Hz'\n",
+ "print 'collector bypass circuit cutoff frequency f2 = ',round(f2,2),'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "base bypass circuit cutoff frequency f1 = 2.39 Hz\n",
+ "collector bypass circuit cutoff frequency f2 = 13.84 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16-22, Page 606"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "Ciss=60 #Capacitance Ciss (pF)\n",
+ "Coss=25 #Capacitance Coss (pF)\n",
+ "Crss=5 #Capacitance Crss (pF)\n",
+ "gm=93*10**-3 #gm (S)\n",
+ "R1=2*10**6 #resiatance 1(Ohm)\n",
+ "R2=1*10**6 #resiatance 2(Ohm)\n",
+ "RG=600 #resiatance(Ohm)\n",
+ "RD=150 #resiatance(Ohm)\n",
+ "RL=1*10**3 #load resiatance(Ohm)\n",
+ "\n",
+ "Cgd=Crss #Internal Capacitance Cgd (pF)\n",
+ "Cgs=Ciss-Crss #Internal Capacitance Cgs (pF)\n",
+ "Cds=Coss-Crss #Internal Capacitance Cds (pF)\n",
+ "rd=((RD**-1)+(RL**-1))**-1 #rd (Ohm)\n",
+ "Av=gm*rd #voltage gain\n",
+ "Cin_M=Cgd*(Av+1) #Cin(M) (pF)\n",
+ "C=Cgs+Cin_M #gate bypass capacitance (pF)\n",
+ "R=((R1**-1)+(R2**-1)+(RG**-1))**-1 #resistance (Ohm)\n",
+ "f2=((2*math.pi*R*C*10**-12)**-1) #gate bypass cutoff frequency (Hz)\n",
+ "Cout_M=Cgd*((Av+1)/Av) #Cout(M) (pF)\n",
+ "C1=Cds+Cout_M #drain bypass capacitance(pF)\n",
+ "f21=((2*math.pi*rd*C1*10**-12)**-1) #drain bypass cutoff frequency (Hz)\n",
+ "\n",
+ "print 'Gate bypass cutoff frequency = ',round(f2*10**-6,2),'MHz'\n",
+ "print 'Drain bypass cutoff frequency = ',round(f21*10**-6,2),'MHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Gate bypass cutoff frequency = 2.2 MHz\n",
+ "Drain bypass cutoff frequency = 48.02 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_17_New.ipynb b/Electronic_Principles/Chapter_17_New.ipynb
new file mode 100755
index 00000000..a6647813
--- /dev/null
+++ b/Electronic_Principles/Chapter_17_New.ipynb
@@ -0,0 +1,614 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 17 DIFFERENTIAL AMPLIFIERS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-1, Page 625"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #supply voltage(V)\n",
+ "RE=7.5 #Emitter resistance(KOhm)\n",
+ "\n",
+ "IT=VCC/RE #tail current (mA)\n",
+ "IE=IT/2 #emitter current (mA)\n",
+ "\n",
+ "print 'tail current = ',IT,'mA'\n",
+ "print 'emitter current = ',IE,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "tail current = 2.0 mA\n",
+ "emitter current = 1.0 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 94
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-2, Page 626"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #supply voltage(V)\n",
+ "RE=7.5 #Emitter resistance(KOhm)\n",
+ "VBE=0.7 #base-emitter voltage(V)\n",
+ "RC=5 #collector resistance(KOhm)\n",
+ "\n",
+ "IT=(VCC-VBE)/RE #tail current (mA)\n",
+ "IE=IT/2 #emitter current (mA)\n",
+ "VC=VCC-(IE*RC) #collector quiescent voltage(V) \n",
+ "\n",
+ "print 'tail current = ',round(IT,2),'mA'\n",
+ "print 'emitter current = ',round(IE,2),'mA'\n",
+ "print 'collector quiescent voltage VC = ',round(VC,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "tail current = 1.91 mA\n",
+ "emitter current = 0.95 mA\n",
+ "collector quiescent voltage VC = 10.23 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-3, Page 626"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12.0 #supply voltage(V)\n",
+ "RE=5.0 #Emitter resistance(KOhm)\n",
+ "RC=3.0 #collector resistance(KOhm)\n",
+ "\n",
+ "IT=VCC/RE #tail current (mA)\n",
+ "IE=IT/2 #emitter current (mA)\n",
+ "VC=VCC-(IE*RC) #collector quiescent voltage(V) \n",
+ "IT1=(VCC-VBE)/RE #tail current (mA)\n",
+ "IE1=IT1/2 #emitter current (mA)\n",
+ "VC1=VCC-(IE1*RC) #collector quiescent voltage(V) \n",
+ "\n",
+ "print 'tail current = ',IT,'mA'\n",
+ "print 'emitter current = ',IE,'mA'\n",
+ "print 'collector quiescent voltage VC = ',VC,'V'\n",
+ "print 'with second approximation,'\n",
+ "print 'tail current = ',IT1,'mA'\n",
+ "print 'emitter current = ',IE1,'mA'\n",
+ "print 'collector quiescent voltage VC = ',VC1,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "tail current = 2.4 mA\n",
+ "emitter current = 1.2 mA\n",
+ "collector quiescent voltage VC = 8.4 V\n",
+ "with second approximation,\n",
+ "tail current = 2.26 mA\n",
+ "emitter current = 1.13 mA\n",
+ "collector quiescent voltage VC = 8.61 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 92
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-4, Page 631"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12.0 #supply voltage(V)\n",
+ "RE=7.5 #Emitter resistance(KOhm)\n",
+ "RC=5.0 #collector resistance(KOhm)\n",
+ "IE=1 #emitter current as per preceding example(mA)\n",
+ "Vin=1 #input ac voltage(mV)\n",
+ "B=300 #current gain\n",
+ "\n",
+ "re=25/IE #ac emitter resistance(Ohm)\n",
+ "Av=1000*RC/re #voltage gain\n",
+ "Vout=Av*Vin #Output voltage(mV)\n",
+ "Zinb=2*B*re #input impedance of diff amp(Ohm)\n",
+ "\n",
+ "print 'voltage gain Av = ',Av\n",
+ "print 'Output voltage Vout = ',Vout,'mV'\n",
+ "print 'input impedance of diff amplifier, Zin(base) = ',Zinb/1000,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain Av = 200.0\n",
+ "Output voltage Vout = 200.0 mV\n",
+ "input impedance of diff amplifier, Zin(base) = 15 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 91
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-5, Page 632"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12.0 #supply voltage(V)\n",
+ "RE=7.5 #Emitter resistance(KOhm)\n",
+ "RC=5.0 #collector resistance(KOhm)\n",
+ "IE=0.955 #emitter current as per previous example(mA)\n",
+ "Vin=1 #input ac voltage(mV)\n",
+ "B=300 #current gain\n",
+ "\n",
+ "re=25/IE #ac emitter resistance(Ohm)\n",
+ "Av=1000*RC/re #voltage gain\n",
+ "Vout=Av*Vin #Output voltage(mV)\n",
+ "Zinb=2*B*re #input impedance of diff amp(Ohm)\n",
+ "\n",
+ "print 'voltage gain Av = ',Av\n",
+ "print 'Output voltage Vout = ',Vout,'mV'\n",
+ "print 'input impedance of diff amplifier, Zin(base) = ',round((Zinb/1000),2),'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain Av = 191.0\n",
+ "Output voltage Vout = 191.0 mV\n",
+ "input impedance of diff amplifier, Zin(base) = 15.71 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-6, Page 633"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12.0 #supply voltage(V)\n",
+ "RE=7.5 #Emitter resistance(KOhm)\n",
+ "RC=5.0 #collector resistance(KOhm)\n",
+ "IE=1 #emitter current as per preceding example(mA)\n",
+ "V2=1 #input ac voltage(mV)\n",
+ "B=300 #current gain\n",
+ "\n",
+ "re=25/IE #ac emitter resistance(Ohm)\n",
+ "Av=1000*RC/re #voltage gain\n",
+ "Vout=Av*V2 #Output voltage(mV)\n",
+ "Zinb=2*B*re #input impedance of diff amp(Ohm)\n",
+ "\n",
+ "print 'V2 input is at inverting input, So, ideally same as previous case.'\n",
+ "print 'Voltage gain Av = ',Av\n",
+ "print 'Output voltage Vout = ',Vout,'mV'\n",
+ "print 'input impedance of diff amplifier, Zin(base) = ',Zinb/1000,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "V2 input is at inverting input, So, ideally same as previous case.\n",
+ "Voltage gain Av = 200.0\n",
+ "Output voltage Vout = 200.0 mV\n",
+ "input impedance of diff amplifier, Zin(base) = 15 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 96
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-7, Page 633"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15.0 #supply voltage(V)\n",
+ "RC=1.0**10**6 #collector resistance(Ohm)\n",
+ "RE=1.0**10**6 #emitter resistance(Ohm)\n",
+ "IE=1 #emitter current as per preceding example(mA)\n",
+ "Vin=7 #input ac voltage(mV)\n",
+ "B=300 #current gain\n",
+ "\n",
+ "IT=VCC/RE #tail current (uA)\n",
+ "IE=IT/2 #emitter current (uA)\n",
+ "re=25/IE/1000 #ac emitter resistance(Ohm)\n",
+ "Av=RC/(2*re) #voltage gain\n",
+ "Vout=Av*Vin #Output voltage(V)\n",
+ "Zinb=2*B*re #input impedance of diff amp(MOhm)\n",
+ "\n",
+ "print 'Voltage gain Av = ',Av\n",
+ "print 'Output voltage Vout = ',Vout/1000,'V'\n",
+ "print 'input impedance of diff amplifier, Zin(base) = ',Zinb,'MOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage gain Av = 150.0\n",
+ "Output voltage Vout = 1.05 V\n",
+ "input impedance of diff amplifier, Zin(base) = 2.0 MOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 97
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-8, Page 639"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15.0 #supply voltage(V)\n",
+ "RC=5.0*10**3 #collector resistance(Ohm)\n",
+ "RE=7.5*10**3 #emitter resistance(Ohm)\n",
+ "RB=1*10**3 #base resistance(Ohm)\n",
+ "Vin=10 #input ac voltage(mV)\n",
+ "Av=200 #voltage gain\n",
+ "Iinb=3*10**-6 #bias current(A)\n",
+ "Iino =0.5*10**-6 #Iin(off) (A) \n",
+ "Vino=1.0 #Vin(off) (mV)\n",
+ "\n",
+ "V1err=RB*Iinb*1000 #dc error input1 (mV)\n",
+ "V2err=RB*(Iino/2)*1000 #dc error input2 (mV)\n",
+ "V3err=Vino #dc error input3 (mV)\n",
+ "Verror=Av*(V1err+V2err+V3err) #output error voltage(mV)\n",
+ "V1err1=0 #dc error input1 (mV)\n",
+ "V2err1=RB*Iino*1000 #dc error input2 (mV)\n",
+ "V3err1=Vino #dc error input3 (mV)\n",
+ "Verror1=Av*(V1err1+V2err1+V3err1) #output error voltage(mV)\n",
+ "\n",
+ "print 'output error voltage Verror = ',Verror,'mV'\n",
+ "print 'output error voltage Verror = ',Verror1,'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output error voltage Verror = 850.0 mV\n",
+ "output error voltage Verror = 300.0 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-9, Page 640"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15.0 #supply voltage(V)\n",
+ "RC=1.0*10**6 #collector resistance(Ohm)\n",
+ "RE=1.0*10**6 #emitter resistance(Ohm)\n",
+ "RB=10*10**3 #base resistance(Ohm)\n",
+ "Vin=10 #input ac voltage(mV)\n",
+ "Av=300 #voltage gain\n",
+ "Iinb=80*10**-9 #bias current(A)\n",
+ "Iino=20*10**-9 #Iin(off) (A) \n",
+ "Vino=5.0 #Vin(off) (mV)\n",
+ "\n",
+ "V1err=0 #dc error input1 (mV)\n",
+ "V2err=RB*(Iino/2)*1000 #dc error input2 (mV)\n",
+ "V3err=Vino #dc error input3 (mV)\n",
+ "Verror=Av*(V1err+V2err+V3err) #output error voltage(mV)\n",
+ "\n",
+ "print 'output error voltage Verror = ',Verror/1000,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output error voltage Verror = 1.53 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 98
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-10, Page 643"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15.0 #supply voltage(V)\n",
+ "RC=1.0*10**6 #collector resistance(Ohm)\n",
+ "RE=1.0*10**6 #emitter resistance(Ohm)\n",
+ "Vin=1 #input ac voltage(mV)\n",
+ "\n",
+ "Av_CM=RC/(2*RE) #common mode voltage gain\n",
+ "Vout=Av_CM*Vin #output voltage(mV) \n",
+ "\n",
+ "print 'common mode voltage gain : Av(CM) = ',Av_CM\n",
+ "print 'Output voltage Vout = ',Vout,'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "common mode voltage gain : Av(CM) = 0.5\n",
+ "Output voltage Vout = 0.5 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-11, Page 643"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=1 #input ac voltage(mV)\n",
+ "Av=150 #voltage gain\n",
+ "Av_CM=0.5 #common mode voltage gain\n",
+ "\n",
+ "Vout1=Av*Vin #output voltage1(mV)\n",
+ "Vout2=Av_CM*Vin #output voltage2(mV)\n",
+ "Vout=Vout1+Vout2 #output volatge(mV)\n",
+ "\n",
+ "print 'output voltage Vout1 = ',Vout1,'mV'\n",
+ "print 'output voltage Vout2 = ',Vout2,'mV'\n",
+ "print 'output voltage Vout = ',Vout,'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage Vout1 = 150 mV\n",
+ "output voltage Vout2 = 0.5 mV\n",
+ "output voltage Vout = 150.5 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-12, Page 644"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "CMRR_dB=90 #CMRR(dB)\n",
+ "Av=200000 #voltage gain\n",
+ "Vin=1*10**-6 #input voltage(V)\n",
+ "\n",
+ "CMRR=10**(CMRR_dB/20.0) #CMRR \n",
+ "Av_CM=Av/CMRR #common mode voltage gain \n",
+ "Vout1=Av*Vin #desired output: voltage1(V)\n",
+ "Vout2=Av_CM*Vin #common mode output: voltage2(V)\n",
+ "\n",
+ "print 'output voltage Vout1 = ',Vout1,'V'\n",
+ "print 'output voltage Vout2 = ',round((Vout2*10**6),2),'uV'\n",
+ "print 'see, desired output is much larger than common mode output.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage Vout1 = 0.2 V\n",
+ "output voltage Vout2 = 6.32 uV\n",
+ "see, desired output is much larger than common mode output.\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-13, Page 651"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15.0 #supply voltage(V)\n",
+ "RC=7.5*10**3 #collector resistance(Ohm)\n",
+ "RE=7.5*10**3 #emitter resistance(Ohm)\n",
+ "V1=10 #input ac voltage(mV)\n",
+ "re=25 #as per example 17-4 (Ohm) \n",
+ "RL=15*10**3 #load resistance(KOhm)\n",
+ "\n",
+ "Av=RC/re #voltage gain\n",
+ "Vout=Av*V1/1000 #output voltage(V) \n",
+ "RTH=2*RC #Thevenin resistance(Ohm)\n",
+ "VL=(RL/(RL+RTH))*Vout #load voltage(V)\n",
+ "\n",
+ "print 'Load voltage VL = ',VL,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load voltage VL = 1.5 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 67
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17-14, Page 652"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RL=15.0 #load resistance as per previous example(Ohm)\n",
+ "VL=3 #load voltage as per previous example(V)\n",
+ "\n",
+ "iL=VL/RL #load current(mA)\n",
+ "\n",
+ "print 'Load current iL = ',iL,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load current iL = 0.2 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 69
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_18_New.ipynb b/Electronic_Principles/Chapter_18_New.ipynb
new file mode 100755
index 00000000..a06bb044
--- /dev/null
+++ b/Electronic_Principles/Chapter_18_New.ipynb
@@ -0,0 +1,568 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 18 OPERATIONAL AMPLIFIERS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-1, Page 672"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vout=13.5 #As per figure 18-7b(V)\n",
+ "Aov=100000 #open loop voltage gain\n",
+ "\n",
+ "V2=Vout/Aov #required input voltage(V)\n",
+ "\n",
+ "print 'Required input voltage V2 = ',V2*10**6,'uV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Required input voltage V2 = 135.0 uV\n"
+ ]
+ }
+ ],
+ "prompt_number": 71
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-2, Page 672"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "CMRR_dB=40 #As per figure 18-7a at 100KHz(dB)\n",
+ "\n",
+ "CMRR=10**(CMRR_dB/20)\n",
+ "\n",
+ "print 'Common-mode rejection ratio = ',CMRR"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Common-mode rejection ratio = 100\n"
+ ]
+ }
+ ],
+ "prompt_number": 76
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-3, Page 673"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "\n",
+ "Av1=1000 #Voltage gain as per figure 18-7c for 1KHZ\n",
+ "Av10=100 #Voltage gain as per figure 18-7c for 10KHZ\n",
+ "Av100=10 #Voltage gain as per figure 18-7c for 100KHZ\n",
+ "\n",
+ "print 'Voltage gain for 1KHZ = ',Av1\n",
+ "print 'Voltage gain for 1KHZ = ',Av10\n",
+ "print 'Voltage gain for 1KHZ = ',Av100"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage gain for 1KHZ = 1000\n",
+ "Voltage gain for 1KHZ = 100\n",
+ "Voltage gain for 1KHZ = 10\n"
+ ]
+ }
+ ],
+ "prompt_number": 77
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-4, Page 673"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vout=0.25 #output changes in 0.1us (V)\n",
+ "t=0.1 #time for output change(us) \n",
+ "\n",
+ "SR=Vout/t #slew rate(V/us)\n",
+ "\n",
+ "print 'Slew rate SR = ',SR,'V/us'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Slew rate SR = 2.5 V/us\n"
+ ]
+ }
+ ],
+ "prompt_number": 79
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-5, Page 673"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "SR=15 #slew rate(V/us)\n",
+ "Vp=10 #Peak output voltage(V)\n",
+ "\n",
+ "fmax=1000*SR/(2*math.pi*Vp) #power bandwidth (KHz) \n",
+ "\n",
+ "print 'Power bandwidth = ',round(fmax),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power bandwidth = 239.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-6, Page 673"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "SR1=0.5 #Slew rate1(V/us)\n",
+ "SR2=5 #Slew rate2(V/us)\n",
+ "SR3=50 #Slew rate3(V/us)\n",
+ "Vp=8 #peak voltage(V)\n",
+ "\n",
+ "fmax1=1000*SR1/(2*math.pi*Vp) #power bandwidth1 (KHz) \n",
+ "fmax2=1000*SR2/(2*math.pi*Vp) #power bandwidth2 (KHz) \n",
+ "fmax3=SR3/(2*3*math.pi*Vp) #power bandwidth3 (MHz) \n",
+ "\n",
+ "print 'Power bandwidth1 = ',math.ceil(fmax1),'KHz'\n",
+ "print 'Power bandwidth2 = ',math.ceil(fmax2),'KHz'\n",
+ "print 'Power bandwidth3 = ',math.ceil(fmax3),'MHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power bandwidth1 = 10.0 KHz\n",
+ "Power bandwidth2 = 100.0 KHz\n",
+ "Power bandwidth3 = 1.0 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-7, Page 678"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=10 #input voltage(mV)\n",
+ "Rf=75 #feedback path resistance Rf (KOhm)\n",
+ "R1=1.5 #inverting input resistance R1(KOhm)\n",
+ "Funity=1 #Funity (MHz)\n",
+ "\n",
+ "Av_CL=-Rf/R1 #closed loop voltage gain\n",
+ "f2_CL1=Funity/-Av_CL #closed loop bandwidth1(KHz)\n",
+ "Vout1=Av_CL*Vin #output voltage1(mV)\n",
+ "Vout2=-Vin #output voltage2(mV)\n",
+ "\n",
+ "print 'Output voltage for 1KHz = ',Vout1,'mVpp'\n",
+ "print 'Output voltage for 1MHz = ',Vout2,'mVpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage for 1KHz = -500.0 mVpp\n",
+ "Output voltage for 1MHz = -10 mVpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 90
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-8, Page 679"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=10 #input voltage(mV)\n",
+ "Rf=75 #feedback path resistance Rf (KOhm)\n",
+ "R1=1.5 #inverting input resistance R1(KOhm)\n",
+ "Iinb=80*10**-9 #bias current(A)\n",
+ "Iino =20*10**-9 #Iin(off) (A) \n",
+ "Vino=2.0 #Vin(off) (mV)\n",
+ "Av=50 #voltage gain \n",
+ "RB1=0 #resistance at noninverting input(KOhm) \n",
+ "\n",
+ "RB2=R1*Rf/(Rf+R1) #thevenin resistance at inverting input(KOhm) \n",
+ "V1err=(RB1-RB2)*Iinb*10**6 #dc error input1 (mV)\n",
+ "V2err=(RB1+RB2)*(Iino/2)*10**6 #dc error input2 (mV)\n",
+ "V3err=Vino #dc error input3 (mV)\n",
+ "Verror=Av*(abs(V1err)+V2err+V3err) #output error voltage(mV)\n",
+ "\n",
+ "print 'output error voltage Verror = ',round(Verror,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output error voltage Verror = 106.62 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-9, Page 679"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=10 #input voltage(mV)\n",
+ "Rf=75 #feedback path resistance Rf (KOhm)\n",
+ "R1=1.5 #inverting input resistance R1(KOhm)\n",
+ "Iinb=500*10**-9 #bias current(A)\n",
+ "Iino =200*10**-9 #Iin(off) (A) \n",
+ "Vino=6.0 #Vin(off) (mV)\n",
+ "Av=50 #voltage gain \n",
+ "RB1=0 #resistance at noninverting input(KOhm) \n",
+ "\n",
+ "RB2=R1*Rf/(Rf+R1) #thevenin resistance at inverting input(KOhm) \n",
+ "V1err=(RB1-RB2)*Iinb*10**6 #dc error input1 (mV)\n",
+ "V2err=(RB1+RB2)*(Iino/2)*10**6 #dc error input2 (mV)\n",
+ "V3err=Vino #dc error input3 (mV)\n",
+ "Verror=Av*(abs(V1err)+V2err+V3err) #output error voltage(mV)\n",
+ "\n",
+ "print 'output error voltage Verror = ',round(Verror,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output error voltage Verror = 344.12 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-10, Page 683"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Vin=50 #input voltage(mV)\n",
+ "Rf=3.9*10**3 #feedback path resistance Rf (Ohm)\n",
+ "R1=100 #inverting input resistance R1(Ohm)\n",
+ "Funity=1*10**6 #Funity (Hz)\n",
+ "\n",
+ "Av_CL=1+(Rf/R1) #closed loop voltage gain\n",
+ "f2_CL1=Funity/Av_CL #closed loop bandwidth1(KHz)\n",
+ "Av_CL1=math.ceil(10**(12/20.0)) #Av for 12 dB at 250 KHz \n",
+ "Vout=Av_CL1*Vin #output voltage(mV)\n",
+ "\n",
+ "print 'Output voltage for 250KHz = ',Vout,'mVpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage for 250KHz = 200.0 mVpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-11, Page 684"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=10 #input voltage(mV)\n",
+ "Rf=3.9*10**3 #feedback path resistance Rf (Ohm)\n",
+ "R1=100 #inverting input resistance R1(Ohm)\n",
+ "Iinb=500*10**-9 #bias current(A)\n",
+ "Iino =200*10**-9 #Iin(off) (A) \n",
+ "Vino=6.0*10**-3 #Vin(off) (V)\n",
+ "Av=40 #voltage gain \n",
+ "RB1=0 #resistance at noninverting input(KOhm) \n",
+ "\n",
+ "RB2=R1*Rf/(Rf+R1) #thevenin resistance at inverting input(KOhm) \n",
+ "V1err=(RB1-RB2)*Iinb #dc error input1 (mV)\n",
+ "V2err=(RB1+RB2)*(Iino/2) #dc error input2 (mV)\n",
+ "V3err=Vino #dc error input3 (mV)\n",
+ "Verror=Av*(abs(V1err)+V2err+V3err) #output error voltage(mV)\n",
+ "\n",
+ "print 'output error voltage Verror = ',Verror*1000,'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output error voltage Verror = 242.34 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-12, Page 687"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin1=100*10**-3 #input voltage1(V)\n",
+ "Vin2=200*10**-3 #input voltage2(V)\n",
+ "Vin3=300*10**-3 #input voltage3(V)\n",
+ "Rf=100.0 #feedback path resistance Rf (KOhm)\n",
+ "R1=20.0 #inverting input resistance R1(KOhm)\n",
+ "R2=10.0 #inverting input resistance R2(KOhm)\n",
+ "R3=50.0 #inverting input resistance R3(KOhm)\n",
+ "\n",
+ "Av1_CL=-Rf/R1 #closed loop voltage gain\n",
+ "Av2_CL=-Rf/R1 #closed loop voltage gain\n",
+ "Av3_CL=-Rf/R1 #closed loop voltage gain\n",
+ "Vout=Av1_CL*Vin1+Av2_CL*Vin2+Av3_CL*Vin3 #output voltage1(mV)\n",
+ "RB2=(R1**-1+R2**-1+R3**-1+Rf**-1)**-1 #thevenin resistance at inverting input(KOhm) \n",
+ "\n",
+ "print 'Output voltage = ',Vout,'Vpp'\n",
+ "print 'thevenin resistance at inverting input RB2 = ',round(RB2,2),'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage = -3.0 Vpp\n",
+ "thevenin resistance at inverting input RB2 = 5.56 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-13, Page 688"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=10 #ac voltage source (mVpp)\n",
+ "Av=1 #voltage gain\n",
+ "Funity=1 #unity frequency (MHz) \n",
+ "\n",
+ "Vout=Av*Vin #output voltage(V) \n",
+ "f2_CL=Funity #bandwidth(MHz) \n",
+ "\n",
+ "print 'Output voltage = ',Vout,'mVpp'\n",
+ "print 'Bandwidth f2(CL) = ',f2_CL,'MHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage = 10 mVpp\n",
+ "Bandwidth f2(CL) = 1 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18-14, Page 688"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "RL=1.0 #load resistance(Ohm)\n",
+ "Vout=9.99 #load voltage(mV)\n",
+ "Vz=0.01 #voltage across Zout(CL) (mV)\n",
+ "\n",
+ "iout=Vout/RL #load current(mA)\n",
+ "Zout_CL=Vz/iout #output impedance(Ohm)\n",
+ "\n",
+ "print 'Load current iout = ',iout,'mA'\n",
+ "print 'closed loop output impedance Zout(CL) = ',round(Zout_CL,3),'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load current iout = 9.99 mA\n",
+ "closed loop output impedance Zout(CL) = 0.001 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_19_New.ipynb b/Electronic_Principles/Chapter_19_New.ipynb
new file mode 100755
index 00000000..2cb36ac1
--- /dev/null
+++ b/Electronic_Principles/Chapter_19_New.ipynb
@@ -0,0 +1,502 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 19 NEGATIVE FEEDBACK"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-1, Page 709"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=50 #input voltage(mV)\n",
+ "Rf=3.9 #feedback path resistance Rf (KOhm)\n",
+ "R1=0.1 #inverting input resistance R1(KOhm)\n",
+ "AVOL=100000 #open loop voltage gain\n",
+ "\n",
+ "B=R1/(Rf+R1) #feedback fraction\n",
+ "Av=B**-1 #closed loop voltage gain\n",
+ "Err=100/(1+AVOL*B) #percent error (%)\n",
+ "Av1=Av-((Av/100)*Err) #closed loop voltage gain1\n",
+ "Av2=AVOL/(1+AVOL*B) #closed loop voltage gain2\n",
+ "\n",
+ "print 'closed loop voltage gain by approach 1 = ',round(Av1,2)\n",
+ "print 'closed loop voltage gain by approach 2 = ',round(Av2,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop voltage gain by approach 1 = 39.98\n",
+ "closed loop voltage gain by approach 2 = 39.98\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-2, Page 713"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=50 #input voltage(mV)\n",
+ "Rf=3.9*10**3 #feedback path resistance Rf (Ohm)\n",
+ "R1=100 #inverting input resistance R1(Ohm)\n",
+ "AVOL=100000 #open loop voltage gain\n",
+ "B=0.025 #feedback fraction\n",
+ "Rin=2*10**6 #open loop input resistance(Ohm)\n",
+ "RCM=200*10**6 #common mode input resistance(Ohm)\n",
+ "\n",
+ "Zin_CL=(1+(AVOL*B))*Rin #closed loop input impedance(Ohm)\n",
+ "Zin_CL1=RCM*Zin_CL/(RCM+Zin_CL) #closed loop input impedance(Ohm)\n",
+ "\n",
+ "print 'closed loop input impedance Zin(CL) = ',round((Zin_CL1/10**6),2),'MOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop input impedance Zin(CL) = 192.31 MOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-3, Page 714"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rout=75 #open loop output resistance(Ohm)\n",
+ "AVOL=100000 #open loop voltage gain\n",
+ "B=0.025 #feedback fraction\n",
+ "\n",
+ "Zout_CL=Rout/(1+AVOL*B) #closed loop input impedance(Ohm)\n",
+ "\n",
+ "print 'closed loop output impedance Zout(CL) = ',round(Zout_CL,2),'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop output impedance Zout(CL) = 0.03 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-4, Page 714"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "THD=7.5 #open loop total harmonic distortion (%)\n",
+ "AVOL=100000 #open loop voltage gain\n",
+ "B=0.025 #feedback fraction\n",
+ "\n",
+ "THD_CL=THD/(1+AVOL*B) #closed loop total harmonic distortion (%)\n",
+ "\n",
+ "print 'Closed loop total harmonic distortion THD(CL) = ',round(THD_CL,3),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Closed loop total harmonic distortion THD(CL) = 0.003 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-5, Page 716"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Iin=1 #input current(mA)\n",
+ "Rf=5 #feedback path resistance Rf (KOhm)\n",
+ "\n",
+ "Vout=-(Iin*Rf) #Output voltage at 1KHz (Vpp) \n",
+ "\n",
+ "print 'Output ac voltage at 1KHz Vout = ',Vout,'Vpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output ac voltage at 1KHz Vout = -5 Vpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-6, Page 717"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rout=75.0 #open loop output resistance(Ohm)\n",
+ "AVOL=100000 #open loop voltage gain\n",
+ "Rf=5.0*10**3 #feedback path resistance(Ohm)\n",
+ "\n",
+ "Zin_CL=Rf/(1+AVOL) #closed loop input impedance(Ohm)\n",
+ "Zout_CL=Rout/(1+AVOL) #closed loop input impedance(Ohm)\n",
+ "\n",
+ "print 'closed loop input impedance Zin(CL) = ',round(Zin_CL,2),'Ohm'\n",
+ "print 'closed loop output impedance Zout(CL) = ',round(Zout_CL,5),'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop input impedance Zin(CL) = 0.05 Ohm\n",
+ "closed loop output impedance Zout(CL) = 0.00075 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-7, Page 718"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=2 #input voltage(Vrms)\n",
+ "RL1=2 #load resistance (KOhm)\n",
+ "R1=1 #inverting input resistance R1(KOhm)\n",
+ "RL2=4 #load resistance(KOhm)\n",
+ "\n",
+ "iout=Vin/R1 #output current (mA)\n",
+ "PL1=(iout**2)*RL1 #load power for 2 Ohm (W) \n",
+ "PL2=(iout**2)*RL2 #load power for 4 Ohm (W) \n",
+ "\n",
+ "print 'load power for 2 Ohm = ',PL1,'W'\n",
+ "print 'load power for 4 Ohm = ',PL2,'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "load power for 2 Ohm = 8 W\n",
+ "load power for 4 Ohm = 16 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-8, Page 720"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Iin=1.5*10**-3 #input current(mA)\n",
+ "RL1=1 #load resistance (KOhm)\n",
+ "R1=1 #inverting input resistance R1(KOhm)\n",
+ "RL2=2 #load resistance (KOhm)\n",
+ "Rf=1*10**3 #feedback path resistance(Ohm)\n",
+ "\n",
+ "Ai=math.ceil(1+(Rf/R1)) #current gain\n",
+ "iout=Iin*Ai #output current (mA)\n",
+ "PL1=(iout**2)*RL1 #load power for 1 Ohm (W) \n",
+ "PL2=(iout**2)*RL2 #load power for 2 Ohm (W) \n",
+ "\n",
+ "print 'load power for 2 Ohm = ',round(PL1,2),'W'\n",
+ "print 'load power for 4 Ohm = ',round(PL2,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "load power for 2 Ohm = 2.25 W\n",
+ "load power for 4 Ohm = 4.51 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-9, Page 723"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "AB=1000 #(1+AvolB) term \n",
+ "f2_OL=160 #open loop bandwidth(Hz)\n",
+ "\n",
+ "f2_CL=f2_OL*AB/1000 #closed loop bandwidth(KHz)\n",
+ "\n",
+ "print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop bandwidth f2(CL)= 160 KHZ\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-10, Page 723"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "AVOL=250000 #open loop voltage gain\n",
+ "f2_OL=1.2 #open loop bandwidth(Hz)\n",
+ "Av_CL=50 #closed loop voltage gain\n",
+ "\n",
+ "f2_CL=f2_OL*AVOL/Av_CL/1000 #closed loop bandwidth(KHz)\n",
+ "\n",
+ "print 'closed loop bandwidth for Av(CL) = 50, f2(CL)= ',f2_CL,'KHZ'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop bandwidth for Av(CL) = 50, f2(CL)= 6.0 KHZ\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-11, Page 724"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "AVOL=50000 #open loop voltage gain\n",
+ "f2_OL=14 #open loop bandwidth(Hz)\n",
+ "\n",
+ "f2_CL=f2_OL*(1+AVOL)/1000 #closed loop bandwidth(KHz)\n",
+ "\n",
+ "print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop bandwidth f2(CL)= 700 KHZ\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-12, Page 724"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "AB=2500 #(1+AvolB) term \n",
+ "f2_OL=20 #open loop bandwidth(Hz)\n",
+ "\n",
+ "f2_CL=f2_OL*AB/1000 #closed loop bandwidth(KHz)\n",
+ "\n",
+ "print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop bandwidth f2(CL)= 50 KHZ\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19-13, Page 724"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Av_CL=10.0 #voltage gain\n",
+ "Funity=1*10**6 #unity frequency (Hz) \n",
+ "Sr=0.5 #slew rate (V/us)\n",
+ "\n",
+ "f2_CL=Funity/Av_CL/1000 #closed loop bandwidth(KHz)\n",
+ "Vp_max=1000*Sr/(2*math.pi*f2_CL) #largest peak output voltage(V)\n",
+ "\n",
+ "print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'\n",
+ "print 'largest peak output voltage Vp(max)= ',round(Vp_max,3),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop bandwidth f2(CL)= 100.0 KHZ\n",
+ "largest peak output voltage Vp(max)= 0.796 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_1_New.ipynb b/Electronic_Principles/Chapter_1_New.ipynb
new file mode 100755
index 00000000..5245d442
--- /dev/null
+++ b/Electronic_Principles/Chapter_1_New.ipynb
@@ -0,0 +1,256 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 1 INTRODUCTION"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1-1, Page 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rs=50 #source resistance(Ohm)\n",
+ "\n",
+ "RL=100*Rs/1000 #Minimum Load resistance(KOhm)\n",
+ "\n",
+ "print 'Minimum Load resistance =',RL,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum Load resistance = 5 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1-2, Page 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Is=0.002 #Current source(A)\n",
+ "Rs=10000000 #internal resistance(Ohm)\n",
+ "\n",
+ "Rl_Max=0.01*Rs/1000 #Maximum load resistance(KOhm)\n",
+ "\n",
+ "print 'With 100:1 Rule, Maximum Load resistance =',Rl_Max,'KOhm'\n",
+ "print 'Stiff range for current source is load resistance from 0 KOhm to',Rl_Max,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "With 100:1 Rule, Maximum Load resistance = 100.0 KOhm\n",
+ "Stiff range for current source is load resistance from 0 KOhm to 100.0 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1-3, Page 13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Il=0.002 #current source(A)\n",
+ "Rl=10000 #load resistance(Ohm)\n",
+ "\n",
+ "Vl=Il*Rl #load voltage(V)\n",
+ "\n",
+ "print 'Load Voltage =',Vl,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load Voltage = 20.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1-4, Page 14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "print 'As per figure 1-9a, Calculate Thevenin resistor by opening load resistor'\n",
+ "\n",
+ "Vs=72 #source voltage\n",
+ "R1=6 #Resistance (KOhm)\n",
+ "R2=3 #Resistance (KOhm)\n",
+ "R3=4 #Resistance (KOhm)\n",
+ "\n",
+ "Ro=R1+R2 #Resistance (KOhm)\n",
+ "I=Vs/Ro\n",
+ "Vab=R2*Vs/(R1+R2) #Thevenin voltage(V)\n",
+ "Rth=((R1*R2)/(R1+R2))+R3 #Thevenin Resistance(KOhm)\n",
+ "\n",
+ "print 'After removing Rl current flowing through 6KOhm is',I,'mA'\n",
+ "print 'Thevenin Voltage Vth =',Vab,'V'\n",
+ "print 'Calculating Thevenin Resistance with considering R1 & R2 in parallel'\n",
+ "print 'Thevenin Resistance =',Rth,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "As per figure 1-9a, Calculate Thevenin resistor by opening load resistor\n",
+ "After removing Rl current flowing through 6KOhm is 8 mA\n",
+ "Thevenin Voltage Vth = 24 V\n",
+ "Calculating Thevenin Resistance with considering R1 & R2 in parallel\n",
+ "Thevenin Resistance = 6 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1-5, Page 15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vs=72 #source voltage\n",
+ "R1=2 #resistance1 (KOhm)\n",
+ "R2=2 #resistance1 (KOhm)\n",
+ "R3=1 #resistance1 (KOhm)\n",
+ "R4=2 #resistance1 (KOhm)\n",
+ "R5=1 #resistance1 (KOhm)\n",
+ "R6=2 #resistance1 (KOhm)\n",
+ "R7=0.5 #resistance1 (KOhm)\n",
+ "RL=1 #load resistance (KOhm)\n",
+ "\n",
+ "Vth=9 #Thevenin voltage(V)\n",
+ "Rth=1.5 #Thevenin resistance(KOhm)\n",
+ "\n",
+ "print 'Thevenin Voltage Vth =',Vth,'V'\n",
+ "print 'Thevenin Resistance =',Rth,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thevenin Voltage Vth = 9 V\n",
+ "Thevenin Resistance = 1.5 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1-6, Page 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vs=10 #source voltage\n",
+ "Rs=2 #series source resistance (KOhm)\n",
+ "\n",
+ "IN=Vs/Rs #Norton current(mA)\n",
+ "Rp=Rs #parallel source resistance(KOhm)\n",
+ "\n",
+ "print 'Norton current IN =',IN,'mA'\n",
+ "print 'Norton Resistance =',Rp,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Norton current IN = 5 mA\n",
+ "Norton Resistance = 2 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_20_New.ipynb b/Electronic_Principles/Chapter_20_New.ipynb
new file mode 100755
index 00000000..1bf81dd2
--- /dev/null
+++ b/Electronic_Principles/Chapter_20_New.ipynb
@@ -0,0 +1,424 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 20 LINEAR OP-AMP CIRCUITS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-1, Page 741"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rf=100.0 #feedback path resistance Rf (KOhm)\n",
+ "R1=100.0 #inverting input resistance R1(KOhm)\n",
+ "R2=1.0 #inverting input & drain resistance R2(KOhm)\n",
+ "\n",
+ "Av1=(Rf/(R1**-1+R2**-1)**-1)+1 #maximum voltage gain\n",
+ "Av2=(Rf/R1)+1 #minimum voltage gain\n",
+ "\n",
+ "print 'maximum voltage gain = ',Av1\n",
+ "print 'minimum voltage gain = ',Av2"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "maximum voltage gain = 102.0\n",
+ "minimum voltage gain = 2.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-2, Page 747"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=1.2 #inverting input resistance R1(KOhm)\n",
+ "R2=91.0 #feedback resistance R2(KOhm)\n",
+ "\n",
+ "Av1=-R2/R1 #maximum voltage gain\n",
+ "Av2=0 #minimum voltage gain\n",
+ "\n",
+ "print 'maximum voltage gain = ',round(Av1,2)\n",
+ "print 'minimum voltage gain = ',Av2"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "maximum voltage gain = -75.83\n",
+ "minimum voltage gain = 0\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-3, Page 747"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R=1.5 #inverting input resistance R1(KOhm)\n",
+ "nR=7.5 #feedback resistance(KOhm)\n",
+ "\n",
+ "n=nR/R #max. limit of voltage gain \n",
+ "rf=nR/(n-1) #fixed resistor (KOhm)\n",
+ "\n",
+ "print 'maximum positive voltage gain = ',n\n",
+ "print 'other fixed resistor = ',rf,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "maximum positive voltage gain = 5.0\n",
+ "other fixed resistor = 1.875 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-4, Page 757"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=1.0 #inverting input resistance R1(KOhm)\n",
+ "R2=100.0 #feedback resistance R2(KOhm)\n",
+ "R=10.0 #resistor of opamp in seconnd stage(KOhm)\n",
+ "Vin=10*10**-3 #input voltage(V)\n",
+ "Vin_CM=10 #common mode input voltage(V)\n",
+ "T=0.0001 #tolerance of resistor \n",
+ "\n",
+ "Av=(R2/R1)+1 #preamp voltage gain\n",
+ "Av_CM=2*T #common mode voltage gain of 2nd stage\n",
+ "Vout=-Av*Vin #output siganl voltage(V)\n",
+ "Vout_CM=Av_CM*Vin_CM #output siganl voltage for common mode signal(V)\n",
+ "\n",
+ "print 'output siganl voltage for common mode signal Vout(CM) = ',Vout_CM,'V'\n",
+ "print 'output siganl voltage Vout = ',Vout,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output siganl voltage for common mode signal Vout(CM) = 0.002 V\n",
+ "output siganl voltage Vout = -1.01 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-5, Page 759"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rf=6.0 #feedback path resistance Rf (KOhm)\n",
+ "R1=1.0 #inverting input resistance R1(KOhm)\n",
+ "R2=2.0 #inverting input resistance R2(KOhm)\n",
+ "R3=3.0 #non-inverting input resistance R3(KOhm)\n",
+ "R4=4.0 #non-inverting input resistance R4(KOhm)\n",
+ "R5=5.0 #non-inverting input resistance R5(KOhm)\n",
+ "\n",
+ "Av1=(-Rf/R1) #voltage gain1\n",
+ "Av2=(-Rf/R2) #voltage gain2\n",
+ "Av3=(1+(Rf/((R1**-1+R2**-1)**-1)))*(((R4**-1+R5**-1)**-1)/(R3+((R4**-1+R5**-1)**-1))) #voltage gain3\n",
+ "Av4=(1+(Rf/((R1**-1+R2**-1)**-1)))*(((R3**-1+R5**-1)**-1)/(R4+((R3**-1+R5**-1)**-1))) #voltage gain4\n",
+ "\n",
+ "print 'Voltage gain channel-1 Av1 = ',Av1\n",
+ "print 'Voltage gain channel-2 Av2 = ',Av2\n",
+ "print 'Voltage gain channel-3 Av3 = ',round(Av3,2)\n",
+ "print 'Voltage gain channel-4 Av4 = ',round(Av4,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage gain channel-1 Av1 = -6.0\n",
+ "Voltage gain channel-2 Av2 = -3.0\n",
+ "Voltage gain channel-3 Av3 = 4.26\n",
+ "Voltage gain channel-4 Av4 = 3.19\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-6, Page 762"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "D0=1 #digital input0 (binary)\n",
+ "D1=0 #digital input1 (binary)\n",
+ "D2=0 #digital input2 (binary)\n",
+ "D3=1 #digital input3 (binary)\n",
+ "Vref=5 #reference voltage(V)\n",
+ "N=4 #no. of inputs\n",
+ "\n",
+ "BIN=(D0*2**0)+(D1*2**1)+(D2*2**2)+(D3*2**3) #decimal equivalent BIN\n",
+ "Vout=-((2*Vref*BIN)/2.0**N) #output voltage of converter(V)\n",
+ "\n",
+ "print 'decimal equivalent BIN = ',BIN\n",
+ "print 'output voltage of converter Vout = ',Vout,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "decimal equivalent BIN = 9\n",
+ "output voltage of converter Vout = -5.625 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-7, Page 764"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R2=51 #feedback path resistance (KOhm)\n",
+ "R1=1 #inverting input resistance R1(KOhm)\n",
+ "Bdc=125 #current gain\n",
+ "Zout=75 #open loop output impedance(Ohm)\n",
+ "AVOL=100000 #741C voltage gain\n",
+ "\n",
+ "Av=-R2/R1 #closed loop voltage gain\n",
+ "B=R1/(R1+R2) #feedback fraction\n",
+ "Zout_CL=Zout/(1+(AVOL*B)) #closed loop output impedance(Ohm)\n",
+ "Isc=25.0/1000 #shorted current for 741C op-amp(A)\n",
+ "Imax=Bdc*Isc #maximum load current(A)\n",
+ "\n",
+ "print 'closed loop output impedance Zout(CL) = ',Zout_CL,'Ohm'\n",
+ "print 'maximum load current Imax = ',Imax,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "closed loop output impedance Zout(CL) = 75 Ohm\n",
+ "maximum load current Imax = 3.125 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-8, Page 768"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=1.0 #input voltage(V)\n",
+ "VCC=15 #supply voltage(V)\n",
+ "R=10 #inverting input resistance(KOhm)\n",
+ "Vin2=10.0 #larger input(V)\n",
+ "\n",
+ "iout=Vin/R #output current(mA)\n",
+ "RL_max=R*(VCC/Vin2-1) #Maximum load resistance(KOhm) \n",
+ "\n",
+ "print 'Output current iout = ',iout,'mA'\n",
+ "print 'Maximum load resistance RL(max) = ',RL_max,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output current iout = 0.1 mA\n",
+ "Maximum load resistance RL(max) = 5.0 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-9, Page 768"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vin=3.0 #input voltage(V)\n",
+ "VCC=15 #supply voltage(V)\n",
+ "R=15 #inverting input resistance(KOhm)\n",
+ "Vin2=12.0 #larger input(V)\n",
+ "\n",
+ "iout=-Vin/R #output current(mA)\n",
+ "RL_max=(R/2.0)*(VCC/Vin2-1) #Maximum load resistance(KOhm) \n",
+ "\n",
+ "print 'Output current iout = ',iout,'mA'\n",
+ "print 'Maximum load resistance RL(max) = ',RL_max,'KOhm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output current iout = -0.2 mA\n",
+ "Maximum load resistance RL(max) = 1.875 KOhm\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20-10, Page 771"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R2=47 #feedback path resistance (KOhm)\n",
+ "R1=1.0 #inverting input resistance R1(KOhm)\n",
+ "R3=100 #non-inverting input resistance R3(KOhm)\n",
+ "rds1=0.050 #ohmic resistance of JFET (KOhm)\n",
+ "rds2=120.0 #ohmic resistance of JFET (KOhm)\n",
+ "\n",
+ "Av1=((R2/R1)+1)*(rds1/(rds1+R3)) #minimum voltage gain\n",
+ "Av2=((R2/R1)+1)*(rds2/(rds2+R3)) #maximum voltage gain\n",
+ "\n",
+ "print 'Maximum voltage gain Av = ',round(Av2,2)\n",
+ "print 'Minimum voltage gain Av = ',round(Av1,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum voltage gain Av = 26.18\n",
+ "Minimum voltage gain Av = 0.024\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_21_New.ipynb b/Electronic_Principles/Chapter_21_New.ipynb
new file mode 100755
index 00000000..93fb24ec
--- /dev/null
+++ b/Electronic_Principles/Chapter_21_New.ipynb
@@ -0,0 +1,620 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 21 ACTIVE FILTERS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-1, Page 806"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Rf=39.0 #feedback path resistance Rf (KOhm)\n",
+ "R1=1.0 #inverting input resistance R1(KOhm)\n",
+ "R2=12.0*10**3 #non-inverting input resistance R2(Ohm)\n",
+ "C=680*10**-12 #capacitance at non-inverting input(F)\n",
+ "\n",
+ "Av=(Rf/R1)+1 # voltage gain\n",
+ "fc=(2*math.pi*R2*C)**-1 #cutoff frequency(Hz)\n",
+ "\n",
+ "print 'voltage gain Av = ',Av\n",
+ "print 'cutoff frequency fc = ',round((fc/1000),2),'KHz'\n",
+ "print 'frequency response:'\n",
+ "print 'voltage gain is 32 dB in pass band. response breaks at 19.5 KHz.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain Av = 40.0\n",
+ "cutoff frequency fc = 19.5 KHz\n",
+ "frequency response:\n",
+ "voltage gain is 32 dB in pass band. response breaks at 19.5 KHz.\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-2, Page 807"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "Rf=43.0 #feedback path resistance Rf (KOhm)\n",
+ "R1=0.220 #non-inverting input resistance R1(KOhm)\n",
+ "C=100*10**-12 #capacitance (F)\n",
+ "\n",
+ "Av=(-Rf/R1) # voltage gain\n",
+ "fc=((2*math.pi*Rf*C)**-1)/10**6 #cutoff frequency(KHz)\n",
+ "\n",
+ "print 'voltage gain Av = ',round(Av,2)\n",
+ "print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
+ "print 'voltage gain is 45.8 dB in pass band. response breaks at 37 KHz.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain Av = -195.45\n",
+ "cutoff frequency fc = 37.01 KHz\n",
+ "voltage gain is 45.8 dB in pass band. response breaks at 37 KHz.\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-3, Page 811"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=30 #non-inverting input resistance R1(KOhm)\n",
+ "R2=30 #non-inverting input resistance R2(KOhm)\n",
+ "C2=1.64*10**-9 #feedback path capacitance (F)\n",
+ "C1=820*10**-12 #non-inverting input capacitance (F)\n",
+ "\n",
+ "Q=0.5*((C2/C1)**0.5) #Q\n",
+ "fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=fp #cutoff frequency(KHz)\n",
+ "\n",
+ "print ' Q = ',round(Q,3)\n",
+ "print 'pole frequency fp = ',round(fp,2),'KHz'\n",
+ "print 'cutoff frequency fc = fp, ',round(fc,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Q = 0.707\n",
+ "pole frequency fp = 4.57 KHz\n",
+ "cutoff frequency fc = fp, 4.57 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-4, Page 811"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=51 #non-inverting input resistance R1(KOhm)\n",
+ "R2=51 #non-inverting input resistance R2(KOhm)\n",
+ "C2=440*10**-12 #feedback path capacitance (F)\n",
+ "C1=330*10**-12 #non-inverting input capacitance (F)\n",
+ "kc=0.786 #constant for bessel response \n",
+ "\n",
+ "Q=0.5*((C2/C1)**0.5) #Q\n",
+ "fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=kc*fp #cutoff frequency(KHz) \n",
+ "\n",
+ "print ' Q = ',round(Q,2)\n",
+ "print 'pole frequency fp = ',round(fp,2),'KHz'\n",
+ "print 'cutoff frequency fc = ',round(fc,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Q = 0.58\n",
+ "pole frequency fp = 8.19 KHz\n",
+ "cutoff frequency fc = 6.44 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-5, Page 812"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "R1=22 #non-inverting input resistance R1(KOhm)\n",
+ "R2=22 #non-inverting input resistance R2(KOhm)\n",
+ "C2=27*10**-9 #feedback path capacitance (F)\n",
+ "C1=390*10**-12 #non-inverting input capacitance (F)\n",
+ "kc=1.38 #constant for bessel response \n",
+ "k0=0.99 #constant for bessel response\n",
+ "k3=1.54 #constant for bessel response\n",
+ "\n",
+ "Q=0.5*((C2/C1)**0.5) #Q\n",
+ "fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=kc*fp #cutoff frequency(KHz) \n",
+ "f3=k3*fp #3-dB frequency(KHz)\n",
+ "\n",
+ "print 'Q = ',round(Q,2)\n",
+ "print 'pole frequency fp = ',round(fp,2),'KHz'\n",
+ "print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
+ "print '3-dB frequency f(3dB) = ',round(f3,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Q = 4.16\n",
+ "pole frequency fp = 2.23 KHz\n",
+ "cutoff frequency fc = 3.08 KHz\n",
+ "3-dB frequency f(3dB) = 3.43 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-6, Page 817"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=47 #non-inverting input resistance R1(KOhm)\n",
+ "R2=47 #non-inverting input resistance R2(KOhm)\n",
+ "C2=330*10**-12 #feedback path capacitance (F)\n",
+ "C1=330*10**-12 #non-inverting input capacitance (F)\n",
+ "R3=51 #inverting input resistance R3(KOhm)\n",
+ "Rf=30.0 #feedback path resistance Rf (KOhm)\n",
+ "\n",
+ "Av=(Rf/R3)+1 #voltage gain \n",
+ "Q=(3-Av)**-1 #Q\n",
+ "fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=fp #cutoff frequency(KHz) \n",
+ "\n",
+ "print ' Q = ',round(Q,2)\n",
+ "print 'pole frequency fp = ',round(fp,2),'KHz'\n",
+ "print 'cutoff frequency fc = ',round(fc,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Q = 0.71\n",
+ "pole frequency fp = 10.26 KHz\n",
+ "cutoff frequency fc = 10.26 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-7, Page 817"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=82 #non-inverting input resistance R1(KOhm)\n",
+ "R2=82 #non-inverting input resistance R2(KOhm)\n",
+ "C2=100*10**-12 #feedback path capacitance (F)\n",
+ "C1=100*10**-12 #non-inverting input capacitance (F)\n",
+ "R3=56 #inverting input resistance R3(KOhm)\n",
+ "Rf=15.0 #feedback path resistance Rf (KOhm)\n",
+ "kc=0.786 #constant for bessel response \n",
+ "\n",
+ "Av=(Rf/R3)+1 #voltage gain \n",
+ "Q=(3-Av)**-1 #Q\n",
+ "fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=kc*fp #cutoff frequency(KHz) \n",
+ "\n",
+ "print 'Q = ',round(Q,2)\n",
+ "print 'pole frequency fp = ',round(fp,2),'KHz'\n",
+ "print 'cutoff frequency fc = ',round(fc,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Q = 0.58\n",
+ "pole frequency fp = 19.41 KHz\n",
+ "cutoff frequency fc = 15.26 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-8, Page 818"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=56 #non-inverting input resistance R1(KOhm)\n",
+ "R2=56 #non-inverting input resistance R2(KOhm)\n",
+ "C2=220*10**-12 #feedback path capacitance (F)\n",
+ "C1=220*10**-12 #non-inverting input capacitance (F)\n",
+ "R3=20.0 #inverting input resistance R3(KOhm)\n",
+ "Rf=39.0 #feedback path resistance Rf (KOhm)\n",
+ "kc=1.414 #constant for bessel response \n",
+ "k0=1.0 #constant for bessel response\n",
+ "k3=1.55 #constant for bessel response\n",
+ "\n",
+ "Av=(Rf/R3)+1 #voltage gain \n",
+ "Q=(3-Av)**-1 #Q\n",
+ "fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=kc*fp #cutoff frequency(KHz) \n",
+ "f0=k0*fp #resosnant frequency(KHz)\n",
+ "f3=k3*fp #3-dB frequency (KHz)\n",
+ "Av1=((1.01*Rf)/(0.99*R3))+1 #voltage gain considering 1% tolerance \n",
+ "Q1=(3-Av1)**-1 #Q\n",
+ "\n",
+ "print 'Q = ',Q\n",
+ "print 'pole frequency fp = ',round(fp,2),'KHz'\n",
+ "print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
+ "print 'resonant frequency f0 = ',round(f0,2),'KHz'\n",
+ "print '3-dB frequency f(3-dB) = ',round(f3,2),'KHz'\n",
+ "print 'circuit produces 26-dB peak in response at 12.9 KHz, rolls off to 0 dB at cutoff and 3 dB down at 20 KHz'\n",
+ "print 'after considering tolerance in resistance, Q changed to',Q1,'approximately'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Q = 20.0\n",
+ "pole frequency fp = 12.92 KHz\n",
+ "cutoff frequency fc = 18.27 KHz\n",
+ "resonant frequency f0 = 12.92 KHz\n",
+ "3-dB frequency f(3-dB) = 20.02 KHz\n",
+ "circuit produces 26-dB peak in response at 12.9 KHz, rolls off to 0 dB at cutoff and 3 dB down at 20 KHz\n",
+ "after considering tolerance in resistance, Q changed to 94.2857142857 approximately\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-9, Page 820"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "R1=24 #non-inverting input resistance R1(KOhm)\n",
+ "R2=12 #feedback path resistance R2(KOhm)\n",
+ "C=4.7*10**-9 #non-inverting input capacitance (F)\n",
+ "\n",
+ "Q=0.5*((R1/R2)**0.5) #Q\n",
+ "fp=((2*math.pi*C*(R1*R2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=fp #cutoff frequency(KHz) \n",
+ "\n",
+ "print 'Q = ',round(Q,2)\n",
+ "print 'pole frequency fp = ',math.ceil(fp),'KHz'\n",
+ "print 'cutoff frequency fc = ',math.ceil(fc),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Q = 0.71\n",
+ "pole frequency fp = 2.0 KHz\n",
+ "cutoff frequency fc = 2.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-10, Page 821"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=30 #non-inverting input resistance R1(KOhm)\n",
+ "R2=30 #feedback path resistance R2(KOhm)\n",
+ "C=1*10**-9 #non-inverting input capacitance (F)\n",
+ "R3=10.0 #inverting input resistance R3(KOhm)\n",
+ "Rf=15.0 #feedback path resistance Rf (KOhm)\n",
+ "kc=1.32 #constant for bessel response \n",
+ "k0=0.94 #constant for bessel response\n",
+ "k3=1.48 #constant for bessel response\n",
+ "\n",
+ "Av=(Rf/R3)+1 #voltage gain \n",
+ "Q=(3-Av)**-1 #Q\n",
+ "fp=((2*math.pi*R1*C)**-1)/10**6 #pole frequency(KHz)\n",
+ "fc=fp/kc #cutoff frequency(KHz) \n",
+ "f0=fp/k0 #resosnant frequency(KHz)\n",
+ "f3=fp/k3 #3-dB frequency (KHz)\n",
+ "\n",
+ "print 'Q = ',Q\n",
+ "print 'pole frequency fp = ',round(fp,2),'KHz'\n",
+ "print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
+ "print 'resonant frequency f0 = ',round(f0,2),'KHz'\n",
+ "print '3-dB frequency f(3-dB) = ',round(f3,2),'KHz'\n",
+ "print 'circuit produces 6.3-dB peak in response at 5.65 KHz, rolls off to 0 dB at cutoff at 4.02 KHz and 3 dB down at 3.59 KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Q = 2.0\n",
+ "pole frequency fp = 5.31 KHz\n",
+ "cutoff frequency fc = 4.02 KHz\n",
+ "resonant frequency f0 = 5.64 KHz\n",
+ "3-dB frequency f(3-dB) = 3.58 KHz\n",
+ "circuit produces 6.3-dB peak in response at 5.65 KHz, rolls off to 0 dB at cutoff at 4.02 KHz and 3 dB down at 3.59 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-11, Page 825"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=18 #non-inverting input resistance R1(KOhm)\n",
+ "R2=30 #feedback path resistance R2(KOhm)\n",
+ "C=8.2*10**-9 #non-inverting input capacitance (F)\n",
+ "R31=0.080 #inverting max input resistance R3(KOhm)\n",
+ "R32=0.015 #inverting min input resistance R3(KOhm)\n",
+ "\n",
+ "BW=((2*math.pi*R1*C)**-1)/10**6 #bandwidth(KHz)\n",
+ "f0=((2*math.pi*C*((2*R1*((R1**-1+R31**-1)**-1))**0.5))**-1)/10**6 #minimum center frequency(KHz)\n",
+ "f01=((2*math.pi*C*((2*R1*((R1**-1+R32**-1)**-1))**0.5))**-1)/10**6 #minimum center frequency(KHz)\n",
+ "\n",
+ "print 'bandwidth BW = ',round(BW,2),'KHz'\n",
+ "print 'minimum center frequency f0 = ',round(f0,2),'KHz'\n",
+ "print 'maximum center frequency f0 = ',round(f01,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "bandwidth BW = 1.08 KHz\n",
+ "minimum center frequency f0 = 11.46 KHz\n",
+ "maximum center frequency f0 = 26.42 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-12, Page 827"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R=22.0 #non-inverting input resistance(KOhm)\n",
+ "C=120*10**-9 #non-inverting input capacitance (F)\n",
+ "R1=13.0 #inverting input resistance(KOhm)\n",
+ "R2=10.0 #feedback path resistance(KOhm)\n",
+ "\n",
+ "Av=(R2/R1)+1 #voltage gain \n",
+ "Q=0.5/(2-Av) #Q\n",
+ "f0=((2*math.pi*R*C)**-1)/10**3 #center frequency(KHz)\n",
+ "\n",
+ "print 'voltage gain Av = ',round(Av,2)\n",
+ "print 'Q = ',round(Q,2)\n",
+ "print 'center frequency f0 = ',round(f0,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage gain Av = 1.77\n",
+ "Q = 2.17\n",
+ "center frequency f0 = 60.29 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21-13, Page 833"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "R=1.0 #non-inverting input resistance(KOhm)\n",
+ "C=100*10**-9 #non-inverting input capacitance (F)\n",
+ "f=1.0 #frequency given(KHz)\n",
+ "\n",
+ "f0=((2*math.pi*R*C)**-1)/10**6 #center frequency(KHz)\n",
+ "phi=(2*math.atan(f0/f))*180/math.pi #phase shift(deg)\n",
+ "\n",
+ "print 'center frequency f0 = ',round(f0,2),'KHz'\n",
+ "print 'phase shift = ',math.ceil(phi),'degrees'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "center frequency f0 = 1.59 KHz\n",
+ "phase shift = 116.0 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_22_New.ipynb b/Electronic_Principles/Chapter_22_New.ipynb
new file mode 100755
index 00000000..ebbb0124
--- /dev/null
+++ b/Electronic_Principles/Chapter_22_New.ipynb
@@ -0,0 +1,369 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 22 NONLINEAR OP-AMP CIRCUITS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-4, Page 854"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "Vin=10 #ac input(V)\n",
+ "Vs=15 #non-inverting input voltage(V)\n",
+ "R1=200.0*10**3 #non-inverting input resistance R1(Ohm)\n",
+ "R2=100.0*10**3 #non-inverting input resistance R2(Ohm)\n",
+ "C=10*10**-6 #capacitance at non-inverting input(F)\n",
+ "\n",
+ "Vref=Vs/3 #reference voltage at trip point(V)\n",
+ "fc=(2*math.pi*((R1**-1+R2**-1)**-1)*C)**-1 #cutoff frequency(Hz)\n",
+ "\n",
+ "print 'trip point voltage Vref = ',Vref,'V'\n",
+ "print 'cutoff frequency of bypass circuit fc = ',round(fc,2),'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "trip point voltage Vref = 5 V\n",
+ "cutoff frequency of bypass circuit fc = 0.24 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-5, Page 855"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Vp=10.0 #sine peak(V)\n",
+ "Vin=5.0 #input voltage(V) \n",
+ "\n",
+ "theta=math.ceil((math.asin(Vin/Vp))*180/math.pi) #angle theta (deg)\n",
+ "D=(150-theta)/360.0 #duty cycle\n",
+ "\n",
+ "print 'theta = ',theta,'degrees'\n",
+ "print 'duty cycle D = ',round((D*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "theta = 31.0 degrees\n",
+ "duty cycle D = 33.06 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-6, Page 860"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=1.0 #non-inverting input resistance R1(KOhm)\n",
+ "R2=47.0 #feedback path resistance R2(KOhm)\n",
+ "Vsat=13.5 #saturation voltage(V)\n",
+ "\n",
+ "B=R1/(R1+R2) #feedback fraction\n",
+ "UTP=B*Vsat #upper trip point\n",
+ "LTP=-B*Vsat #lower trip point\n",
+ "H=UTP-LTP #hysteresis\n",
+ "\n",
+ "print 'lower trip point LTP = ',round(LTP,2),'V'\n",
+ "print 'upper trip point LTP = ',round(UTP,2),'V'\n",
+ "print 'hysteresis is ',round(H,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "lower trip point LTP = -0.28 V\n",
+ "upper trip point LTP = 0.28 V\n",
+ "hysteresis is 0.56 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-7, Page 865"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R=2 #inverting input resistance R1(KOhm)\n",
+ "C=1*10**-6 #feedback path capacitance (F)\n",
+ "T=1*10**-3 #time period(s)\n",
+ "Vin=8 #input pulse voltage(V)\n",
+ "AVOL=100000 #open loop voltage gain\n",
+ "\n",
+ "V=Vin*T/(R*C)/1000 #output voltage(V)\n",
+ "t=R*C*(AVOL+1)*1000 #time constant(s)\n",
+ "\n",
+ "print 'Magnitude of negative output voltage at end of the pulse = ',V,'V'\n",
+ "print 'closed loop time constant = ',t,'s'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of negative output voltage at end of the pulse = 4.0 V\n",
+ "closed loop time constant = 200.002 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-8, Page 868"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=1*10**3 #inverting input resistance R1(Ohm)\n",
+ "R2=10*10**3 #feedback path resistance R2(Ohm)\n",
+ "C=10*10**-6 #feedback path capacitance (F)\n",
+ "Vin=5 #input pulse voltage(V)\n",
+ "f=1*10**3 #input frequency(Hz)\n",
+ "\n",
+ "Vout=Vin/(2*f*R1*C) #output voltage(V)\n",
+ "\n",
+ "print 'peak to peak output voltage = ',Vout,'Vpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "peak to peak output voltage = 0.25 Vpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-9, Page 868"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vs=15.0 #non-inverting input voltage(V)\n",
+ "Rw=5.0*10**3 #inverting input wiper resistance(Ohm)\n",
+ "R1=10.0*10**3 #inverting input resistance R1(Ohm)\n",
+ "f=1.0 #input frequency(KHz) \n",
+ "\n",
+ "Vref=Vs*(Rw/(Rw+R1)) #reference voltage(V)\n",
+ "T=1/f #period of signal(s)\n",
+ "W=2*(T/2)*((Vs/2)-Vref)/Vs #output pulse width\n",
+ "D=W/T #duty cycle\n",
+ "\n",
+ "print 'duty cycle D = ',round((D*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "duty cycle D = 16.67 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-10, Page 871"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "R1=18.0 #non-inverting input resistance R1(KOhm)\n",
+ "R2=2.0 #feedback path resistance R2(KOhm)\n",
+ "R=1.0 #feedback path resistance R(KOhm)\n",
+ "C=0.1*10**-6 #feedback path capacitance (F)\n",
+ "\n",
+ "B=R1/(R1+R2) #feedback fraction\n",
+ "T=10**9*2*R*C*math.log((1+B)/(1-B)) #period of output(us)\n",
+ "f=1000*1/T #frequency(KHz)\n",
+ "\n",
+ "print 'period T = ',round(T,2),'us'\n",
+ "print 'frequency f = ',round(f,2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "period T = 588.89 us\n",
+ "frequency f = 1.7 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-11, Page 871"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vsat=13.5 #saturation voltage given(V)\n",
+ "R4=10*10**3 #given resistance R4(Ohm)\n",
+ "C2=10*10**-6 #given capacitance C2(F)\n",
+ "T=589*10**-6 #period from preceding example(s)\n",
+ "\n",
+ "Vout=Vsat*T/(2*R4*C2) #output voltage (V) \n",
+ "\n",
+ "print 'Output voltage = ',round((Vout*1000),2),'mVpp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage = 39.76 mVpp\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22-12, Page 873"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=1*10**3 #resistance R1(Ohm)\n",
+ "R2=100*10**3 #resistance R2(Ohm)\n",
+ "R3=10*10**3 #resistance R3(Ohm)\n",
+ "C=10*10**-6 #capacitance (F)\n",
+ "\n",
+ "UTP=Vsat*R1/R2 #UTP value (V)\n",
+ "Vout=2*UTP #output voltage/hysteresis (V)\n",
+ "f=R2/(4*R1*R3*C) #frequency(Hz)\n",
+ "\n",
+ "print 'Vout = H = ',Vout,'V'\n",
+ "print 'frequency f = ',f,'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Vout = H = 0.27 V\n",
+ "frequency f = 250.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_23_New.ipynb b/Electronic_Principles/Chapter_23_New.ipynb
new file mode 100755
index 00000000..a842cb81
--- /dev/null
+++ b/Electronic_Principles/Chapter_23_New.ipynb
@@ -0,0 +1,618 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 23 OSCILLATORS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-1, Page 897 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "R1=100.0*10**3 #non-inverting input resistance wiper R1(Ohm)\n",
+ "R2=1.0*10**3 #non-inverting input resistance R2(Ohm)\n",
+ "C=0.01*10**-6 #capacitance at non-inverting input(F)\n",
+ "\n",
+ "R=R1+R2 #max. total resistance(Ohm)\n",
+ "fr1=(2*math.pi*R*C)**-1 #minimum frequency(Hz)\n",
+ "R=R2 #min. total resistance(Ohm)\n",
+ "fr2=(2*math.pi*R*C)**-1 #maximum frequency(Hz)\n",
+ "\n",
+ "print 'minimum frequency fr = ',round(fr1,2),'Hz'\n",
+ "print 'maximum frequency fr = ',round((fr2/1000),2),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "minimum frequency fr = 157.58 Hz\n",
+ "maximum frequency fr = 15.92 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-2, Page 897"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rf=2 #feedback resistance(KOhm)\n",
+ "Rl=1 #lamp resistance(KOhm)\n",
+ "Vl=2 #lamp voltage(V)\n",
+ "\n",
+ "Il=Vl/Rl #lamp current(mA)\n",
+ "Vout=Il*(Rf+Rl) #output voltage of oscillator(V)\n",
+ "\n",
+ "print 'Lamp current = ',Il,'mA'\n",
+ "print 'output voltage of oscillator = ',Vout,'Vrms'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Lamp current = 2 mA\n",
+ "output voltage of oscillator = 6 Vrms\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-3, Page 904"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "C1=0.001*10**-6 #capacitance in oscillator(F)\n",
+ "C2=0.01*10**-6 #capacitance in oscillator(F)\n",
+ "L=15*10**-6 #inductance(H)\n",
+ "\n",
+ "C=C1*C2/(C1+C2) #equivalent capacitance(F)\n",
+ "fr=(2*math.pi*((L*C)**0.5))**-1 #oscillation frequency(Hz)\n",
+ "B=C1/C2 #feedback fraction\n",
+ "Av_min=C2/C1 #minimum voltage gain\n",
+ "\n",
+ "print 'feedback fraction B = ',B\n",
+ "print 'oscillation frequency fr = ',round((fr*10**-6),2),'MHz'\n",
+ "print 'minimum voltage gain Av(min) = ',Av_min"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "feedback fraction B = 0.1\n",
+ "oscillation frequency fr = 1.36 MHz\n",
+ "minimum voltage gain Av(min) = 10.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-4, Page 908"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "C1=0.001*10**-6 #capacitance in oscillator(F)\n",
+ "C2=0.01*10**-6 #capacitance in oscillator(F)\n",
+ "C3=50.0*10**-12 #capacitance in oscillator(F)\n",
+ "L=15*10**-6 #inductance(H)\n",
+ "\n",
+ "C=(C1**-1+C2**-1+C3**-1)**-1 #equivalent capacitance(F)\n",
+ "fr=(2*math.pi*((L*C)**0.5))**-1 #oscillation frequency(Hz)\n",
+ "\n",
+ "print 'oscillation frequency fr = ',round((fr*10**-6),2),'MHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "oscillation frequency fr = 5.97 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-5, Page 912"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Cs=0.05*10**-12 #series capacitance in oscillator(F)\n",
+ "Cm=10.0*10**-12 #capacitance in oscillator(F)\n",
+ "R=2.0*10**3 #resistance in oscillator(Ohm)\n",
+ "L=3 #inductance(H)\n",
+ "\n",
+ "fs=(2*math.pi*((L*Cs)**0.5))**-1 #series resonant frequency(Hz)\n",
+ "Cp=Cs*Cm/(Cs+Cm) #equvalent parallel capacitance(F)\n",
+ "fp=(2*math.pi*((L*Cp)**0.5))**-1 #parallel resonant frequency(Hz)\n",
+ "\n",
+ "print 'series resonant frequency fs = ',math.ceil(fs*10**-3),'KHz'\n",
+ "print 'parallel resonant frequency fp = ',math.ceil(fp*10**-3),'KHz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "series resonant frequency fs = 411.0 KHz\n",
+ "parallel resonant frequency fp = 412.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-6, Page 918"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12.0 #given supply voltage(V)\n",
+ "R=33*10**3 #given resistance(Ohm)\n",
+ "C=0.47*10**-6 #given capacitance(F)\n",
+ "\n",
+ "LTP=VCC/3 #trip point LTP (V)\n",
+ "UTP=2*LTP #trip point UTP (V)\n",
+ "W=1.1*R*C #pulse width of output(s)\n",
+ "\n",
+ "print 'trigger voltage LTP = ',LTP,'V'\n",
+ "print 'trigger voltage UTP = ',UTP,'V'\n",
+ "print 'pulse width W = ',W*10**3,'ms'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "trigger voltage LTP = 4.0 V\n",
+ "trigger voltage UTP = 8.0 V\n",
+ "pulse width W = 17.061 ms\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-7, Page 919"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R=10*10**6 #given resistance(Ohm)\n",
+ "C=470*10**-6 #given capacitance(F)\n",
+ "\n",
+ "W=1.1*R*C #pulse width of output(s)\n",
+ "\n",
+ "print 'pulse width W = ',W,'s = ',round((W/3600),2),'hours'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "pulse width W = 5170.0 s = 1.44 hours\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-8, Page 922"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=75.0*10**3 #given resistance1(Ohm)\n",
+ "R2=30.0*10**3 #given resistance2(Ohm)\n",
+ "C=47.0*10**-9 #given capacitance(F)\n",
+ "\n",
+ "f=1.44/((R1+(2*R2))*C) #frequency (Hz)\n",
+ "D=(R1+R2)/(R1+(2*R2)) #duty cycle \n",
+ "\n",
+ "print 'frequency f = ',round(f,2),'Hz' \n",
+ "print 'duty cycle D = ',round((D*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "frequency f = 226.95 Hz\n",
+ "duty cycle D = 77.78 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-9, Page 923"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "VCC=12.0 #given supply voltage(V)\n",
+ "R1=75.0*10**3 #given resistance1(Ohm)\n",
+ "R2=30.0*10**3 #given resistance2(Ohm)\n",
+ "C=47.0*10**-9 #given capacitance(F)\n",
+ "Vcon1=11 #given Vcon(V) \n",
+ "Vcon2=1 #given Vcon(V) \n",
+ "\n",
+ "W1=-(R1+R2)*C*(math.log((VCC-Vcon1)/(VCC-(0.5*Vcon1)))) #pulse width(s)\n",
+ "T1=W1+(0.693*R2*C) #period(s)\n",
+ "D1=W1/T1 #duty cycle\n",
+ "f1=1/T1 #frequency(Hz)\n",
+ "W2=-(R1+R2)*C*(math.log((VCC-Vcon2)/(VCC-(0.5*Vcon2)))) #pulse width(s)\n",
+ "T2=W2+(0.693*R2*C) #period(s)\n",
+ "D2=W2/T2 #duty cycle\n",
+ "f2=1/T2 #frequency(Hz)\n",
+ "\n",
+ "print 'For Vcon = 11V,'\n",
+ "print 'frequency f = ',round(f1,2),'Hz'\n",
+ "print 'duty cycle D = ',round((D1*100),2),'%'\n",
+ "print 'For Vcon = 1V,'\n",
+ "print 'frequency f = ',round(f2,2),'Hz'\n",
+ "print 'duty cycle D = ',round((D2*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "For Vcon = 11V,\n",
+ "frequency f = 97.9 Hz\n",
+ "duty cycle D = 90.43 %\n",
+ "For Vcon = 1V,\n",
+ "frequency f = 835.77 Hz\n",
+ "duty cycle D = 18.33 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-10, Page 927"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12.0 #given supply voltage(V)\n",
+ "R=9.1*10**3 #given resistance(Ohm)\n",
+ "C=0.01*10**-6 #given capacitance(F)\n",
+ "f=2.5*10**3 #given frequency(Hz)\n",
+ "Vmod=2 #peak value of modulating signal(V) \n",
+ "\n",
+ "T=1/f #period of output pulse(s)\n",
+ "W=1.1*R*C #pulse width(s)\n",
+ "UTP_max=(2*VCC/3)+Vmod #maximum UTP(V)\n",
+ "UTP_min=(2*VCC/3)-Vmod #minimum UTP(V)\n",
+ "Wmin=-R*C*(math.log(1-(UTP_min/VCC))) #minimum pulse width(s)\n",
+ "Wmax=-R*C*(math.log(1-(UTP_max/VCC))) #maximum pulse width(s)\n",
+ "Dmin=Wmin/T #minimum duty cycle\n",
+ "Dmax=Wmax/T #maximum duty cycle\n",
+ "\n",
+ "print 'period of output pulse T = ',T*10**6,'us'\n",
+ "print 'Quiscent pulse width W = ',W*10**6,'us'\n",
+ "print 'minimum UTP = ',UTP_min,'V'\n",
+ "print 'maximum UTP = ',UTP_max,'V'\n",
+ "print 'minimum pulse width W(min) = ',round((Wmin*10**6),2),'us'\n",
+ "print 'maximum pulse width W(max) = ',round((Wmax*10**6),2),'us'\n",
+ "print 'minimum duty cycle D(min) = ',round((Dmin*100),2),'%'\n",
+ "print 'maximum duty cycle D(max) = ',round((Dmax*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "period of output pulse T = 400.0 us\n",
+ "Quiscent pulse width W = 100.1 us\n",
+ "minimum UTP = 6.0 V\n",
+ "maximum UTP = 10.0 V\n",
+ "minimum pulse width W(min) = 63.08 us\n",
+ "maximum pulse width W(max) = 163.05 us\n",
+ "minimum duty cycle D(min) = 15.77 %\n",
+ "maximum duty cycle D(max) = 40.76 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 23-11, Page 928"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=12.0 #given supply voltage(V)\n",
+ "R1=3.9*10**3 #given resistance(Ohm)\n",
+ "R2=3*10**3 #given resistance(Ohm)\n",
+ "C=0.01*10**-6 #given capacitance(F)\n",
+ "Vmod=1.5 #peak value of modulating signal(V) \n",
+ "\n",
+ "W=0.693*(R1+R2)*C #pulse width(s)\n",
+ "T=0.693*(R1+(2*R2))*C #period of output pulse(s)\n",
+ "UTP_max=(2*VCC/3)+Vmod #maximum UTP(V)\n",
+ "UTP_min=(2*VCC/3)-Vmod #minimum UTP(V)\n",
+ "Wmin=-(R1+R2)*C*(math.log((VCC-UTP_min)/(VCC-(0.5*UTP_min)))) #minimum pulse width(s)\n",
+ "Wmax=-(R1+R2)*C*(math.log((VCC-UTP_max)/(VCC-(0.5*UTP_max)))) #minimum pulse width(s)\n",
+ "Tmin=Wmin+(0.693*R2*C) #minimum period(s)\n",
+ "Tmax=Wmax+(0.693*R2*C) #maximum period(s)\n",
+ "s=0.693*R2*C #space(s)\n",
+ "\n",
+ "print 'period of output pulse T = ',T*10**6,'us'\n",
+ "print 'Quiscent pulse width W = ',W*10**6,'us'\n",
+ "print 'minimum UTP = ',UTP_min,'V'\n",
+ "print 'maximum UTP = ',UTP_max,'V'\n",
+ "print 'minimum pulse width W(min) = ',round((Wmin*10**6),2),'us'\n",
+ "print 'maximum pulse width W(max) = ',round((Wmax*10**6),2),'us'\n",
+ "print 'minimum period T(min) = ',round((Tmin*10**6),2),'us'\n",
+ "print 'maximum period T(max) = ',round((Tmax*10**6),2),'us'\n",
+ "print 'space = ',round((s*10**6),2),'us'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "period of output pulse T = 68.607 us\n",
+ "Quiscent pulse width W = 47.817 us\n",
+ "minimum UTP = 6.5 V\n",
+ "maximum UTP = 9.5 V\n",
+ "minimum pulse width W(min) = 32.04 us\n",
+ "maximum pulse width W(max) = 73.47 us\n",
+ "minimum period T(min) = 52.83 us\n",
+ "maximum period T(max) = 94.26 us\n",
+ "space = 20.79 us\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-12, Page 929"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15.0 #given supply voltage(V)\n",
+ "C=100*10**-9 #given capacitance(F)\n",
+ "Ic=1*10**-3 #collector current (A)\n",
+ "\n",
+ "S=Ic/C #slope(V/s) \n",
+ "V=2*VCC/3 #peak value(V)\n",
+ "T=V/S #duration of ramp(s) \n",
+ "\n",
+ "print 'slope is ',S/1000,'V/ms'\n",
+ "print 'Peak value V = ',V,'V'\n",
+ "print 'duration of ramp = ',T*10**3,'ms'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "slope is 10.0 V/ms\n",
+ "Peak value V = 10.0 V\n",
+ "duration of ramp = 1.0 ms\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-13, Page 938"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R=10*10**3 #given resistance(Ohm)\n",
+ "C=0.01*10**-6 #given capacitance(F)\n",
+ "\n",
+ "f0=(R*C)**-1 #output frequency(Hz)\n",
+ "\n",
+ "print 'output frequency f0 = ',f0/1000,'KHz' "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output frequency f0 = 10.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23-14, Page 938"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=1.0*10**3 #given resistance(Ohm)\n",
+ "R2=2.0*10**3 #given resistance(Ohm)\n",
+ "C=0.1*10**-6 #given capacitance(F)\n",
+ "\n",
+ "f=(2/C)*((R1+R2)**-1) #output frequency(Hz)\n",
+ "D=R1/(R1+R2) #duty cycle\n",
+ "\n",
+ "print 'output frequency f = ',round((f/1000),2),'KHz' \n",
+ "print 'duty cycle = ',round((D*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output frequency f = 6.67 KHz\n",
+ "duty cycle = 33.33 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_24_New.ipynb b/Electronic_Principles/Chapter_24_New.ipynb
new file mode 100755
index 00000000..ab177723
--- /dev/null
+++ b/Electronic_Principles/Chapter_24_New.ipynb
@@ -0,0 +1,706 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 24 REGULATED POWER SUPPLIES"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-1, Page 954 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "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",
+ "print 'Output voltage Vout = ',Vout,'V'\n",
+ "print 'input current Is = ',Is,'mA'\n",
+ "print 'load current IL = ',IL,'mA'\n",
+ "print 'collector current IC = ',IC,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 9.9 V\n",
+ "input current Is = 510.0 mA\n",
+ "load current IL = 247.5 mA\n",
+ "collector current IC = 262.5 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-2, Page 954"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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.81 #base-emitter voltage drop(V) \n",
+ "Vz=6.2 #voltage across diode(V)\n",
+ "R1=750 #base input resistance(Ohm)\n",
+ "R2=250 #base input resistance(Ohm)\n",
+ "\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",
+ "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",
+ "print 'collector current IC = ',round(IC,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 9.35 V\n",
+ "input current Is = 565.33 mA\n",
+ "load current IL = 233.67 mA\n",
+ "collector current IC = 331.67 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-3, Page 954"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "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",
+ "print 'input power Pin = ',Pin,'W'\n",
+ "print 'Output power Pout = ',round(Pout,2),'W'\n",
+ "print 'Effifciency = ',round((eff*100),2),'%'\n",
+ "print'power dissipated by regulator = ',round(preg,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input power Pin = 8.475 W\n",
+ "Output power Pout = 2.19 W\n",
+ "Effifciency = 25.82 %\n",
+ "power dissipated by regulator = 6.29 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-4, Page 955"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rs=10 #given source resistance Rs(Ohm)\n",
+ "RL=40 #given load resistance RL(Ohm)\n",
+ "Vin=15 #input voltage(V)\n",
+ "Vz=6.8 #voltage across diode(V)\n",
+ "R1=7.5*10**3 #base input resistance(Ohm)\n",
+ "R2=2.5*10**3 #base input resistance(Ohm)\n",
+ "\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",
+ "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",
+ "print 'collector current IC = ',round(IC,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 9.07 V\n",
+ "input current Is = 593.33 mA\n",
+ "load current IL = 226.67 mA\n",
+ "collector current IC = 366.67 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-5, Page 956"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "Imax1=Is1 #maximum load current (mA) \n",
+ "Imax2=Is2 #maximum load current (mA) \n",
+ "Imax4=Is4 #maximum load current (mA) \n",
+ "\n",
+ "print 'maximum load current Imax1 = ',Imax1,'mA'\n",
+ "print 'maximum load current Imax2 = ',Imax2,'mA'\n",
+ "print 'maximum load current Imax4 = ',Imax4,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "maximum load current Imax1 = 510 mA\n",
+ "maximum load current Imax2 = 565 mA\n",
+ "maximum load current Imax4 = 593 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-6, Page 956"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "LoR=(VNL-VFL)*100/VFL #Load regulation(%)\n",
+ "LiR=(VHL-VLL)*100/VLL #Line regulation(%)\n",
+ "\n",
+ "print 'Load regulation = ',round(LoR,2),'%'\n",
+ "print 'Line regulation = ',round(LiR,2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load regulation = 1.02 %\n",
+ "Line regulation = 1.53 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-7, Page 962"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "R1=3.0 #base input resistance(KOhm)\n",
+ "R2=1.0 #base input resistance(KOhm)\n",
+ "Vin=15 #input voltage(V)\n",
+ "\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",
+ "print 'Output voltage Vout = ',Vout,'V'\n",
+ "print 'transistor current = load current = IC = ',IC*1000,'mA'\n",
+ "print 'Power dissipation PD = ',PD,'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 9.2 V\n",
+ "transistor current = load current = IC = "
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "230.0 mA\n",
+ "Power dissipation PD = 1.334 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-8, Page 963"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vout=9.2 #output voltage(V)\n",
+ "IL=230 #load current(mA)\n",
+ "Vin=15.0 #input voltage(V)\n",
+ "\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",
+ "print 'input power Pin = ',Pin,'W'\n",
+ "print 'Output power Pout = ',Pout,'W'\n",
+ "print 'Effifciency 1= ',round((eff1*100),2),'%'\n",
+ "print 'Effifciency 2= ',round((eff2*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input power Pin = 3.45 W\n",
+ "Output power Pout = 2.116 W\n",
+ "Effifciency 1= 61.33 %\n",
+ "Effifciency 2= 61.33 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-9, Page 963"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "R2=2.2 #base input resistance(KOhm)\n",
+ "Vin=15 #input voltage(V)\n",
+ "B=100 #current gain\n",
+ "\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",
+ "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'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 10.16 V\n",
+ "Load current IL = 2.54 A\n",
+ "base current IB = 25.41 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-10, Page 964"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "LoR=(VNL-VFL)*100/VFL #Load regulation(%)\n",
+ "LiR=(VHL-VLL)*100/VLL #Line regulation(%)\n",
+ "\n",
+ "print 'Load regulation = ',round(LoR,3),'%'\n",
+ "print 'Line regulation = ',round(LiR,2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load regulation = 0.099 %\n",
+ "Line regulation = 0.89 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-11, Page 965"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "R12=750 #base input resistance with min. potentiometer(Ohm)\n",
+ "R2=750 #base input resistance(Ohm)\n",
+ "Vin=22.5 #max. input voltage(V)\n",
+ "B=100 #current gain\n",
+ "Rs=820 #input side resistance(Ohm)\n",
+ "Vcl=0.6 #voltage across current limiting resistor(V)\n",
+ "Vcs=0.7 #voltage across current sensing resistor(V)\n",
+ "Vo=12.5 #regulated voltage given(V)\n",
+ "\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",
+ "IL=Vcl/RL #load current(A)\n",
+ "RL1=Vo/IL #load resistance(Ohm)\n",
+ "ISL=Vcs/RL #shorted-load current(A)\n",
+ "\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",
+ "print 'shorted-load current ISL = ',round((ISL*1000),2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "maximum zener current Iz = 21.71 mA\n",
+ "Load current IL = 200.0 mA\n",
+ "load resistance RL = 62.5 Ohm\n",
+ "shorted-load current ISL = 233.33 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-12, Page 971"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vout=12.0 #regulated output voltage(V)\n",
+ "RL=100.0 #given load resistance RL(Ohm)\n",
+ "\n",
+ "C=1000*10**-6 #given capacitance(F)\n",
+ "f=120 #frequency(Hz)\n",
+ "RR_dB=72.0 #ripple rejection(dB)\n",
+ "\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",
+ "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'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load current IL = 120.0 mA\n",
+ "peak to peak input ripple = 1.0 V\n",
+ "peak to peak output ripple = 0.25 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-13, Page 972"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=2.0 #given resistance(KOhm)\n",
+ "R2=22.0 #given resistance(KOhm)\n",
+ "R21=46.0 #given resistance increased(KOhm)\n",
+ "\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",
+ "print 'Output voltage Vout1 = ',Vout1,'V'\n",
+ "print 'output voltage with increased R2, Vout2 = ',Vout2,'V' "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout1 = 15.0 V\n",
+ "output voltage with increased R2, Vout2 = 30.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-14, Page 972"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "eff_max=Vout/Vin_min #maximum efficiency\n",
+ "eff_min=Vout/Vin_max #minimum efficiency\n",
+ "\n",
+ "print 'Minimum Effifciency = ',eff_min*100,'%'\n",
+ "print 'Maximum Effifciency = ',round((eff_max*100),2),'%'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum Effifciency = 25.0 %\n",
+ "Maximum Effifciency = 66.67 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-15, Page 984"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "Vout=VREF*(R1+R2)/R1 #output voltage(V)\n",
+ "\n",
+ "print 'Output voltage Vout = ',Vout,'V'\n",
+ "print 'Input voltage should be 2V greater than output voltage So, Vin = 7 V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 5.01 V\n",
+ "Input voltage should be 2V greater than output voltage So, Vin = 7 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24-16, Page 984"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "R1=1 #given resistance(KOhm)\n",
+ "R2=5.79 #given resistance(KOhm)\n",
+ "VREF=2.21 #Reference voltage(V)\n",
+ "\n",
+ "Vout=VREF*(R1+R2)/R1 #output voltage(V)\n",
+ "\n",
+ "print 'Output voltage Vout = ',round(Vout,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage Vout = 15.01 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_2_New.ipynb b/Electronic_Principles/Chapter_2_New.ipynb
new file mode 100755
index 00000000..4404a233
--- /dev/null
+++ b/Electronic_Principles/Chapter_2_New.ipynb
@@ -0,0 +1,160 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 2 SEMICONDUCTORS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2-5, Page 49"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Tj=100 #junction temperature 1(C)\n",
+ "Vb=0.7 #Barrier potential(V)\n",
+ "Tamb=25 #Ambient temperature(C)\n",
+ "T1=0 #junction temperature 2(C)\n",
+ "\n",
+ "Vd=-0.002*(Tj-Tamb) #Change in barrier potential(V)\n",
+ "Vbn=Vb+Vd #Barrier potential(V)\n",
+ "Vd1=-0.002*(T1-Tamb) #Change in barrier potential(V)\n",
+ "Vb1n=Vb+Vd1 #Barrier potential(V)\n",
+ "\n",
+ "print 'Change in barrier potential = Vd =',Vd,'V'\n",
+ "print 'Brrier potential = Vbn =',Vbn,'V'\n",
+ "print 'For junction temperature 0 C'\n",
+ "print 'Change in barrier potential = Vd1 =',Vd1,'V'\n",
+ "print 'New barrier potential = Vb1n =',Vb1n,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change in barrier potential = Vd = -0.15 V\n",
+ "Brrier potential = Vbn = 0.55 V\n",
+ "For junction temperature 0 C\n",
+ "Change in barrier potential = Vd1 = 0.05 V\n",
+ "New barrier potential = Vb1n = 0.75 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2-6, Page 51"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "\n",
+ "T2=100 #Temperature(C)\n",
+ "T1=25 #Temperature(C)\n",
+ "Isat1=5 #Current(nA)\n",
+ "\n",
+ "Td=T2-T1 #Temperature change(C)\n",
+ "Is1=(2**7)*Isat1 #Current(nA)\n",
+ "Is2=(1.07**5)*Is1 #Current(nA)\n",
+ "\n",
+ "print 'Change in temperature = Td = T2-T1 =',Td,'C'\n",
+ "print 'For first 70 C change seven doublings are there.'\n",
+ "print 'Is1 = (2^7)*Isat1 =',Is1,'nA'\n",
+ "print 'For additional 5 C, 7% per C'\n",
+ "print 'Is2 = ',round(Is2,2),'nA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change in temperature = Td = T2-T1 = 75 C\n",
+ "For first 70 C change seven doublings are there.\n",
+ "Is1 = (2^7)*Isat1 = 640 nA\n",
+ "For additional 5 C, 7% per C\n",
+ "Is2 = 897.63 nA\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2-7, Page 52"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Isl=2*(10**-9) #surface leakage current(nA)\n",
+ "Vr=25 #Reverse voltage(V)\n",
+ "Vr1=35 #Reverse voltage(V)\n",
+ "\n",
+ "Rsl=Vr/Isl #surface leakage reistance(Ohm)\n",
+ "Isl1=(Vr1/Rsl)*(10**9) #surface leakage current(nA)\n",
+ "\n",
+ "print 'surface-leakage reistance Rsl = Vr/Isl =',Rsl*10**-6,'MOhm'\n",
+ "print 'for Vr1 = 35 V,'\n",
+ "print 'surface-leakage reistance Isl1 = Vr1/Rsl =',Isl1,'nA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "surface-leakage reistance Rsl = Vr/Isl = 12500.0 MOhm\n",
+ "for Vr1 = 35 V,\n",
+ "surface-leakage reistance Isl1 = Vr1/Rsl = 2.8 nA\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_3_New.ipynb b/Electronic_Principles/Chapter_3_New.ipynb
new file mode 100755
index 00000000..e4397d8b
--- /dev/null
+++ b/Electronic_Principles/Chapter_3_New.ipynb
@@ -0,0 +1,334 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 3 DIODE THEORY"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3-2, Page 63"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Pr=5 #Power rating(W)\n",
+ "Vd=1.2 #diode voltage(V)\n",
+ "Id=1.75 #diode current(A)\n",
+ "\n",
+ "PD=Vd*Id #Power dissipaion(W)\n",
+ "\n",
+ "print 'Power Dissipation =',PD,'W'\n",
+ "print 'PD(',PD,'W) < ''Pr(',Pr,'W), So diode will not be destroyed.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power Dissipation = 2.1 W\n",
+ "PD( 2.1 W) < Pr( 5 W), So diode will not be destroyed.\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3-3, Page 65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "\n",
+ "Vs=10 #Source voltage(V)\n",
+ "RL=1 #Load resistance(KOhm)\n",
+ "VL=Vs #LOad voltage(V)\n",
+ "\n",
+ "IL=VL/RL #Load current(mA)\n",
+ "\n",
+ "print 'Vs will be appearing across RL'\n",
+ "print 'Load voltage VL =',Vs,'V'\n",
+ "print 'Load current IL =',IL,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Vs will be appearing across RL\n",
+ "Load voltage VL = 10 V\n",
+ "Load current IL = 10 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3-4, Page 65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "print 'As per figure 3-6b, Thevenize the circuit to the left of the diode'\n",
+ "R1=6 #Resistance(KOhm)\n",
+ "R2=3 #Resistance(KOhm)\n",
+ "RL=1 #Load Resistance(KOhm)\n",
+ "Vs=36 #Supply voltage(V)\n",
+ "\n",
+ "Vth=R2*Vs/(R1+R2) #ThCevenin voltage(V)\n",
+ "Rth=(R1*R2)/(R1+R2) #Thevenin resistance(KOhm)\n",
+ "Rt=Rth+RL #total resistance(KOhm)\n",
+ "IL=Vth/Rt #Load current(mA)\n",
+ "VL=IL*RL #Load voltage(V)\n",
+ "\n",
+ "print 'Vth =',Vth,'V & Rth =',Rth,'KOhm'\n",
+ "print 'Visualize diode as closed switch,'\n",
+ "print 'IL =',IL,'mA'\n",
+ "print 'VL =',VL,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "As per figure 3-6b, Thevenize the circuit to the left of the diode\n",
+ "Vth = 12 V & Rth = 2 KOhm\n",
+ "Visualize diode as closed switch,\n",
+ "IL = 4 mA\n",
+ "VL = 4 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3-5, Page 67"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "print 'As per Second approximation in Fig.3-8,'\n",
+ "Vd=0.7 #diode voltgage(V)\n",
+ "Vs=10 #supply voltage(V)\n",
+ "RL=1 #Load resistance(KOhm)\n",
+ "\n",
+ "VL=Vs-Vd #Load voltage(v)\n",
+ "IL=VL/RL #Load current(mA)\n",
+ "PD=Vd*IL #diode power(mW)\n",
+ "\n",
+ "print 'IL =',IL,'mA & VL =',VL,'V'\n",
+ "print 'Diode power PD =',PD,'mW'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "As per Second approximation in Fig.3-8,\n",
+ "IL = 9.3 mA & VL = 9.3 V\n",
+ "Diode power PD = 6.51 mW\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3-6, Page 67"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "print 'As per Second approximation in Fig.3-9a,'\n",
+ "Vd=0.7 #diode voltgage(V)\n",
+ "Vs=36 #supply voltage(V)\n",
+ "R1=6 #Resistance(KOhm)\n",
+ "R2=3 #Resistance(KOhm)\n",
+ "RL=1 #Load resistance(KOhm)\n",
+ "\n",
+ "Vth=R2*Vs/(R1+R2)#Thevenin Voltage(V)\n",
+ "Rth=(R1*R2)/(R1+R2)#Thevenin resistance(KOhm)\n",
+ "IL=(Vth-Vd)/R2#Load current(mA)\n",
+ "VL=IL*RL#Load voltage(V)\n",
+ "PD=Vd*IL#diode power(mW)\n",
+ "\n",
+ "print 'Thevenize the circuit to the left of the diode'\n",
+ "print 'Vth =',Vth,'V & Rth =',Rth,'KOhm'\n",
+ "print 'VL =',round(VL,2),'V & IL =',round(IL,2),'mA'\n",
+ "print 'Diode power PD =',round(PD,2),'mW'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "As per Second approximation in Fig.3-9a,\n",
+ "Thevenize the circuit to the left of the diode\n",
+ "Vth = 12 V & Rth = 2 KOhm\n",
+ "VL = 3.77 V & IL = 3.77 mA\n",
+ "Diode power PD = 2.64 mW\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3-7, Page 68"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "print 'In Fig.3-11a,'\n",
+ "Vd=0.7 #diode voltgage(V)\n",
+ "Vs=10 #supply voltage(V)\n",
+ "RL=1000L #Load resistance(Ohm)\n",
+ "Rb=0.23 #bulk resistance\n",
+ "\n",
+ "print 'As per third approximation, we get fig.3-11b'\n",
+ "if Rb<(RL/100):\n",
+ " print'If Rb < 0.01RL than ignore Rb & use second approximation.'\n",
+ " VL=Vs-Vd #Load voltage(V)\n",
+ " IL=(VL/RL)*1000 #Load current(mA)\n",
+ " PD=Vd*IL #diode power(mW)\n",
+ "\n",
+ " print 'IL =',IL,'mA & VL =',VL,'V'\n",
+ " print 'Diode power PD =',PD,'mW'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "In Fig.3-11a,\n",
+ "As per third approximation, we get fig.3-11b\n",
+ "If Rb < 0.01RL than ignore Rb & use second approximation.\n",
+ "IL = 9.3 mA & VL = 9.3 V\n",
+ "Diode power PD = 6.51 mW\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3-8, Page 69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "print 'In Fig.3-11a, take RL = 10 Ohm'\n",
+ "Vd=0.7 #diode voltgage(V)\n",
+ "Vs=10 #supply voltage(V)\n",
+ "RL=10 #Load resistance(Ohm)\n",
+ "Rb=0.23 #bulk resistance\n",
+ "RT=Rb+RL #Total reistance(Ohm)\n",
+ "VT=Vs-Vd #total voltage(V)\n",
+ "\n",
+ "print 'RT =',RT,'Ohm & VT =',VT,'V'\n",
+ "IL=VT/RT #Load current(mA)\n",
+ "VL=IL*RL #Load voltage(V)\n",
+ "VD=Vd+(IL*Rb) \n",
+ "PD=VD*IL #diode power(W)\n",
+ "\n",
+ "print 'IL =',round(IL,2),'mA & VL =',round(VL,2),'V'\n",
+ "print 'VD =',round(VD,2),'V'\n",
+ "print 'Diode power PD =',round(PD,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "In Fig.3-11a, take RL = 10 Ohm\n",
+ "RT = 10.23 Ohm & VT = 9.3 V\n",
+ "IL = 0.91 mA & VL = 9.09 V\n",
+ "VD = 0.91 V\n",
+ "Diode power PD = 0.83 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_4_New.ipynb b/Electronic_Principles/Chapter_4_New.ipynb
new file mode 100755
index 00000000..b02a4e3e
--- /dev/null
+++ b/Electronic_Principles/Chapter_4_New.ipynb
@@ -0,0 +1,515 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 4 DIODE CIRCUITS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-1, Page 92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Vrms=10 #RMS Value of sine wave(V)\n",
+ "f=60 #frequency(Hz)\n",
+ "\n",
+ "Vp=Vrms/0.707 #peak source voltage(V)\n",
+ "Vpout=Vp #peak load voltage(V)\n",
+ "Vdc=Vp/math.pi #dc load voltage(V)\n",
+ "Vpouts=Vp-0.7 #peak load voltage in 2nd approx.\n",
+ "Vdc=Vpouts/math.pi #dc load voltage(V)\n",
+ "\n",
+ "print 'Vp=',round(Vp,2),'V'\n",
+ "print 'With an ideal diode, Vpout =',round(Vpout,2),'V'\n",
+ "print 'DC load voltage, Vdc =',round(Vdc,2),'V'\n",
+ "print 'With second approximation, Vpout =',round(Vpouts,2),'V'\n",
+ "print 'DC load voltage, Vdc =',round(Vdc,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Vp= 14.14 V\n",
+ "With an ideal diode, Vpout = 14.14 V\n",
+ "DC load voltage, Vdc = 4.28 V\n",
+ "With second approximation, Vpout = 13.44 V\n",
+ "DC load voltage, Vdc = 4.28 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-2, Page 94"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Vs=120 #supply voltage(V)\n",
+ "\n",
+ "V2=Vs/5 #Secondary voltage(V)\n",
+ "Vp=V2/0.707 #peak secondary voltage\n",
+ "Vpout=Vp #peak load voltage(V)\n",
+ "Vdc1=Vp/math.pi #dc load voltage(V)\n",
+ "Vpouts=Vp-0.7 #peak load voltage in 2nd approx.(V)\n",
+ "Vdc2=Vpouts/math.pi #dc load voltage(V)\n",
+ "\n",
+ "print 'As per fig.4-5, Transformer turns ratio is 5:1'\n",
+ "print 'V2=',round(V2,2),'V'\n",
+ "print 'Vp=',round(Vp,2),'V'\n",
+ "print 'With an ideal diode, Vpout =',round(Vpout,2),'V'\n",
+ "print 'DC load voltage, Vdc =',round(Vdc1,2),'V'\n",
+ "print 'With second approximation, Vpout =',round(Vpouts,2),'V'\n",
+ "print 'DC load voltage, Vdc =',round(Vdc2,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "As per fig.4-5, Transformer turns ratio is 5:1\n",
+ "V2= 24.0 V\n",
+ "Vp= 33.95 V\n",
+ "With an ideal diode, Vpout = 33.95 V\n",
+ "DC load voltage, Vdc = 10.81 V\n",
+ "With second approximation, Vpout = 33.25 V\n",
+ "DC load voltage, Vdc = 10.58 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-3, Page 97"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=10 #turn ratio\n",
+ "\n",
+ "Vp1=Vrms/0.707 #peak primary voltage(V)\n",
+ "Vp2=Vp1/N12 #peak secondary voltage(V)\n",
+ "Vpin=0.5*Vp2 #input voltage(V)\n",
+ "Vpout=Vpin #Output voltage (V)\n",
+ "Vpouts=Vpin-0.7 #Output voltage in 2nd approx.(V)\n",
+ "\n",
+ "print 'Peak primary voltage Vp1=',round(Vp1,2),'V'\n",
+ "print 'Peak secondary voltage Vp2=',round(Vp2,2),'V'\n",
+ "print 'Due to center-tap,' \n",
+ "print 'input voltage to each half-wave rectifier is only half the secondary voltage:'\n",
+ "print 'With an ideal diode, Vpout =',round(Vpout,2),'V'\n",
+ "print 'With second approximation, Vpout =',round(Vpouts,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Peak primary voltage Vp1= 169.73 V\n",
+ "Peak secondary voltage Vp2= 16.97 V\n",
+ "Due to center-tap,\n",
+ "input voltage to each half-wave rectifier is only half the secondary voltage:\n",
+ "With an ideal diode, Vpout = 8.49 V\n",
+ "With second approximation, Vpout = 7.79 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-4, Page 99"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=10 #turn ratio\n",
+ "\n",
+ "Vp1=Vrms/0.707 #peak primary voltage(V)\n",
+ "Vp2=Vp1/N12 #peak secondary voltage(V)\n",
+ "Vpin=0.5*Vp2 #input voltage(V)\n",
+ "Vpout=Vpin #Output voltage(V)\n",
+ "Vpouts=Vpin-0.7 #Output voltage in 2nd approx.(V)\n",
+ "\n",
+ "print 'Peak primary voltage Vp1=',round(Vp1,2),'V'\n",
+ "print 'Peak secondary voltage Vp2=',round(Vp2,2),'V'\n",
+ "print 'Due to one of the diodes were open, load voltage will be the half wave signal'\n",
+ "print 'But still peak of half wave signal is same as prior case'\n",
+ "print 'With an ideal diode, Vpout =',round(Vpout,2),'V'\n",
+ "print 'With second approximation, Vpout =',round(Vpouts,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Peak primary voltage Vp1= 169.73 V\n",
+ "Peak secondary voltage Vp2= 16.97 V\n",
+ "Due to one of the diodes were open, load voltage will be the half wave signal\n",
+ "But still peak of half wave signal is same as prior case\n",
+ "With an ideal diode, Vpout = 8.49 V\n",
+ "With second approximation, Vpout = 7.79 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-5, Page 102"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=10 #turn ratio\n",
+ "\n",
+ "Vp1=Vrms/0.707 #peak primary voltage(V)\n",
+ "Vp2=Vp1/N12 #peak secondary voltage(V)\n",
+ "Vpout=Vp2 #Output voltage(V)\n",
+ "\n",
+ "print 'Peak primary voltage Vp1=',round(Vp1,2),'V'\n",
+ "print 'Peak secondary voltage Vp2=',round(Vp2,2),'V'\n",
+ "print 'secondary voltage is input of rectifier'\n",
+ "print 'With an ideal diode, Vpout =',round(Vpout,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Peak primary voltage Vp1= 169.73 V\n",
+ "Peak secondary voltage Vp2= 16.97 V\n",
+ "secondary voltage is input of rectifier\n",
+ "With an ideal diode, Vpout = 16.97 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-6, Page 108"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=5 #turn ratio\n",
+ "RL=5 #Load resistance(KOhm)\n",
+ "C=100 #Capacitance(uF)\n",
+ "f=60 #Frequency(Hz)\n",
+ "\n",
+ "V2=Vrms/N12 #RMS secondary voltage(V)\n",
+ "Vp=V2/0.707 #peak secondary voltage(V)\n",
+ "VL=Vp #dc load voltage(V)\n",
+ "IL=VL/RL #Load current(mA)\n",
+ "VR=(IL/(f*C))*(10**3) #ripple voltage(V)\n",
+ "\n",
+ "print 'RMS secondary voltage V2=',V2,'V'\n",
+ "print 'Peak secondary voltage Vp=',round(Vp,2),'V'\n",
+ "print 'with ideal diode and small ripple, dc load voltage, VL =',round(VL,2),'V'\n",
+ "print 'To calculate ripple get, dc load current,'\n",
+ "print 'DC Load current IL=',round(IL,2),'mA'\n",
+ "print 'As per ripple formula,'\n",
+ "print 'Ripple voltage VR=',round(VR,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RMS secondary voltage V2= 24 V\n",
+ "Peak secondary voltage Vp= 33.95 V\n",
+ "with ideal diode and small ripple, dc load voltage, VL = 33.95 V\n",
+ "To calculate ripple get, dc load current,\n",
+ "DC Load current IL= 6.79 mA\n",
+ "As per ripple formula,\n",
+ "Ripple voltage VR= 1.13 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-7, Page 109"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=5 #turn ratio\n",
+ "RL=5 #Load resistance(KOhm)\n",
+ "C=100 #Capacitance(uF)\n",
+ "f=60 #Frequency(Hz)\n",
+ "\n",
+ "V2=Vrms/N12 #RMS secondary voltage(V)\n",
+ "Vp=V2/0.707 #peak secondary voltage(V)\n",
+ "VL=Vp/2 #dc load voltage(V)\n",
+ "IL=VL/RL #Load current(mA)\n",
+ "VR=(IL/(2*f*C))*(10**3) #ripple voltage(V)\n",
+ "\n",
+ "print 'RMS secondary voltage V2=',V2,'V'\n",
+ "print 'Peak secondary voltage Vp=',round(Vp,2),'V'\n",
+ "print 'Half this voltage is input to each half-wave section, with ideal diode and small ripple, dc load voltage, VL =',round(VL,2),'V'\n",
+ "print 'But, due to 0.7V across conducting diode actual dc voltage is, VL =',round((VL-0.7),2),'V'\n",
+ "print 'To calculate ripple get, dc load current,'\n",
+ "print 'DC Load current IL=',round(IL,2),'mA'\n",
+ "print 'As per ripple formula,'\n",
+ "print 'Ripple voltage VR=',round(VR,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RMS secondary voltage V2= 24 V\n",
+ "Peak secondary voltage Vp= 33.95 V\n",
+ "Half this voltage is input to each half-wave section, with ideal diode and small ripple, dc load voltage, VL = 16.97 V\n",
+ "But, due to 0.7V across conducting diode actual dc voltage is, VL = 16.27 V\n",
+ "To calculate ripple get, dc load current,\n",
+ "DC Load current IL= 3.39 mA\n",
+ "As per ripple formula,\n",
+ "Ripple voltage VR= 0.28 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-8, Page 110"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=5 #turn ratio\n",
+ "RL=5 #Load resistance(KOhm)\n",
+ "C=100 #Capacitance(uF)\n",
+ "f=60 #Frequency(Hz)\n",
+ "\n",
+ "V2=Vrms/N12 #RMS secondary voltage(V)\n",
+ "Vp=V2/0.707 #peak secondary voltage(V)\n",
+ "VL=Vp #dc load voltage(V)\n",
+ "IL=VL/RL #Load current(mA)\n",
+ "VR=(IL/(2*f*C))*(10**3) #ripple voltage(V)\n",
+ "\n",
+ "print 'RMS secondary voltage V2=',V2,'V'\n",
+ "print 'Peak secondary voltage Vp=',round(Vp,2),'V'\n",
+ "print 'with ideal diode and small ripple, dc load voltage, VL =',round(VL,2),'V'\n",
+ "print 'But, due to 1.4V across two conducting diodes actual dc voltage is, VL =',round((VL-1.4),2),'V'\n",
+ "print 'To calculate ripple get, dc load current,'\n",
+ "print 'DC Load current IL=',round(IL,2),'mA'\n",
+ "print 'As per ripple formula,'\n",
+ "print 'Ripple voltage VR=',round(VR,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RMS secondary voltage V2= 24 V\n",
+ "Peak secondary voltage Vp= 33.95 V\n",
+ "with ideal diode and small ripple, dc load voltage, VL = 33.95 V\n",
+ "But, due to 1.4V across two conducting diodes actual dc voltage is, VL = 32.55 V\n",
+ "To calculate ripple get, dc load current,\n",
+ "DC Load current IL= 6.79 mA\n",
+ "As per ripple formula,\n",
+ "Ripple voltage VR= 0.57 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-9, Page 111"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=15 #turn ratio\n",
+ "RL=0.5 #Load resistance(KOhm)\n",
+ "C=4700 #Capacitance(uF)\n",
+ "f=60 #Frequency(Hz)\n",
+ "\n",
+ "V2=Vrms/N12 #RMS secondary voltage(V)\n",
+ "Vp=V2/0.707 #peak secondary voltage(V)\n",
+ "VL=Vp-1.4 #dc load voltage(V)\n",
+ "IL=VL/RL #Load current(mA)\n",
+ "VR=(IL/(2*f*C))*(10**3) #ripple voltage(V)\n",
+ "\n",
+ "print 'RMS secondary voltage V2=',V2,'V'\n",
+ "print 'Peak secondary voltage Vp=',round(Vp,2),'V'\n",
+ "print 'with ideal diode and small ripple & due to 1.4V across two conducting diodes actual dc voltage is, VL =',round(VL,2),'V'\n",
+ "print 'To calculate ripple get, dc load current,'\n",
+ "print 'DC Load current IL=',round(IL,2),'mA'\n",
+ "print 'As per ripple formula,'\n",
+ "print 'Ripple voltage VR=',round((VR*1000),2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RMS secondary voltage V2= 8 V\n",
+ "Peak secondary voltage Vp= 11.32 V\n",
+ "with ideal diode and small ripple & due to 1.4V across two conducting diodes actual dc voltage is, VL = 9.92 V\n",
+ "To calculate ripple get, dc load current,\n",
+ "DC Load current IL= 19.83 mA\n",
+ "As per ripple formula,\n",
+ "Ripple voltage VR= 35.16 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4-10, Page 114"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vrms=120 #RMS value of supply(V)\n",
+ "N12=8 #turn ratio\n",
+ "f=60 #Frequency(Hz)\n",
+ "\n",
+ "V2=Vrms/N12 #RMS secondary voltage(V)\n",
+ "Vp=V2/0.707 #peak secondary voltage(V)\n",
+ "PIV = Vp #Peak Inverse Voltage(V)\n",
+ "\n",
+ "print 'RMS secondary voltage V2=',V2,'V'\n",
+ "print 'Peak inverse voltage PIV =',round(PIV,2),'V'\n",
+ "print 'PIV << breakdown voltage(50V), So, it is safe to use IN4001'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RMS secondary voltage V2= 15 V\n",
+ "Peak inverse voltage PIV = 21.22 V\n",
+ "PIV << breakdown voltage(50V), So, it is safe to use IN4001\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_5_New.ipynb b/Electronic_Principles/Chapter_5_New.ipynb
new file mode 100755
index 00000000..cfea03f3
--- /dev/null
+++ b/Electronic_Principles/Chapter_5_New.ipynb
@@ -0,0 +1,446 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 5 SPECIAL-PURPOSE DIODES"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-1, Page 146"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vsmin=20 #Source voltage minimum(V)\n",
+ "Vsmax=40 #Source voltage maximum(V)\n",
+ "Vbd=10 #Breakdown voltage(V)\n",
+ "R=0.82 #Resistance(KOhm)\n",
+ "\n",
+ "Vr1=Vsmin-Vbd #voltage across resistor(V)\n",
+ "Is1=Vr1/R #Minimum current(mA)\n",
+ "Vr2=Vsmax-Vbd #voltage across resistor(V)\n",
+ "Is2=Vr2/R #Maximum current(mA)\n",
+ "\n",
+ "print 'Ideally, zener diode acts as a battery(of breakdown voltage = 10V) shown in figure 5-4b'\n",
+ "print 'Minimum current Is1=',round(Is1,2),'mA'\n",
+ "print 'Maximum current Is1=',round(Is2,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ideally, zener diode acts as a battery(of breakdown voltage = 10V) shown in figure 5-4b\n",
+ "Minimum current Is1= 12.2 mA\n",
+ "Maximum current Is1= 36.59 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-2, Page 149"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vs=18 #supply voltage(V)\n",
+ "Rs=0.27 #source resistance(KOhm)\n",
+ "RL=1 #Load resistance(KOhm)\n",
+ "Vz=10 #Zener voltage(V)\n",
+ "\n",
+ "VTH=(RL/(Rs+RL))*Vs #Thevenin voltage(V)\n",
+ "\n",
+ "print 'Thevenin voltage VTH = ',round(VTH,2),'V'\n",
+ "print 'Thevenin voltage is greater than zener voltage, zener diode is operating in breakdown region.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thevenin voltage VTH = 14.17 V\n",
+ "Thevenin voltage is greater than zener voltage, zener diode is operating in breakdown region.\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-3, Page 149"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vs=18 #supply voltage(V)\n",
+ "Rs=0.27 #source resistance(KOhm)\n",
+ "RL=1 #Load resistance(KOhm)\n",
+ "Vbd=10 #Zener voltage(V)\n",
+ "\n",
+ "Vr=Vs-Vbd #voltage across resistor(V)\n",
+ "Is=Vr/Rs #Current(mA)\n",
+ "IL=Vbd/RL #Current(mA)\n",
+ "Iz=Is-IL #Zener current(mA)\n",
+ "\n",
+ "print 'Load current IL = ',IL,'mA'\n",
+ "print 'Zener current Iz = ',round(Iz,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load current IL = 10 mA\n",
+ "Zener current Iz = 19.63 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-7, Page 153"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Iz=20 #zener current(mA)\n",
+ "Rz=8.5 #zener resistance(Ohm)\n",
+ "Vbd=10 #Zener voltage(V)\n",
+ "\n",
+ "DVL=Iz*Rz/1000 #change in load voltage(V)\n",
+ "VL=Vbd+DVL #Load voltage(V)\n",
+ "\n",
+ "print 'Change in load voltage DVL =',DVL,'V'\n",
+ "print 'Load voltage with second approx., VL =',VL,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change in load voltage DVL = 0.17 V\n",
+ "Load voltage with second approx., VL = 10.17 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-8, Page 154"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Rs=270 #Source resistance (Ohm)\n",
+ "Rz=8.5 #zener resistance(Ohm)\n",
+ "VRin=2 #Zener voltage(V)\n",
+ "\n",
+ "VRout=(Rz/Rs)*VRin*1000 #Load ripple voltage(V)\n",
+ "\n",
+ "print 'Load ripple voltage VRout=',round(VRout,2),'mV'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load ripple voltage VRout= 62.96 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-10, Page 157"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vil=22 #input voltage range low(V)\n",
+ "Vih=30 #input voltage range high(V)\n",
+ "Vz=12 #regulated output voltage(V)\n",
+ "Rl=140 #Load resistance low(KOhm)\n",
+ "Rh=10 #Load resistance high(KOhm)\n",
+ "\n",
+ "RSmax=Rl*(float(Vil)/float(Vz)-1) #Maximum series resistance\n",
+ "\n",
+ "print 'Maximum series resistance RSmax =',round(RSmax,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum series resistance RSmax = 116.67 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-11, Page 157"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "\n",
+ "Vil=15 #input voltage range low(V)\n",
+ "Vih=20 #input voltage range high(V)\n",
+ "Vz=6.8 #regulated output voltage(V)\n",
+ "Il=5 #Load current low(mA)\n",
+ "Ih=20 #Load current high(mA)\n",
+ "\n",
+ "RSmax=(Vil-float(Vz))/Ih*1000 #Maximum series resistance\n",
+ "\n",
+ "print 'Maximum series resistance RSmax =',RSmax,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum series resistance RSmax = 410.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 69
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-12, Page 168"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vi=50 #voatage supply(V)\n",
+ "Rs=2.2 #series resistance(KOhm)\n",
+ "Vf=2 #forward approx. voltage\n",
+ " \n",
+ "Is=(Vi-Vf)/Rs\n",
+ "\n",
+ "print 'LED current Is =',round(Is,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "LED current Is = 21.82 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-13, Page 168"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Vs=9 #voatage supply(V)\n",
+ "Rs=470.0 #series resistance(Ohm)\n",
+ "Vf=2 #forward approx. voltage\n",
+ " \n",
+ "Is=(Vs-Vf)/Rs\n",
+ "\n",
+ "print 'LED current Is =',round((Is*1000),2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "LED current Is = 14.89 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-14, Page 169"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Vac=20 #AC voatage supply(V)\n",
+ "Rs=680.0 #series resistance(KOhm)\n",
+ " \n",
+ "Vacp=1.414*Vac #peak source voltage(V)\n",
+ "Is1=(Vacp/Rs)*1000 #approx. peak current(mA)\n",
+ "Is2=Is1/math.pi #average of half-wave current through LED(mA)\n",
+ "P=(Vac)**2/Rs #Power dissipation(W)\n",
+ "\n",
+ "print 'approx. peak LED current Is1 =',round(Is1,2),'mA'\n",
+ "print 'average of half-wave current through LED Is2 =',round(Is2,2),'mA'\n",
+ "print 'Power dissipation P =',round(P,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "approx. peak LED current Is1 = 41.59 mA\n",
+ "average of half-wave current through LED Is2 = 13.24 mA\n",
+ "Power dissipation P = 0.59 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5-15, Page 170"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "Vs=120 #AC voatage supply(V)\n",
+ "f=60 #frequency(Hz)\n",
+ "C=0.68 #series resistance(KOhm)\n",
+ " \n",
+ "Xc=1/(2*math.pi*f*C)*1000 #capacitive reactance(KOhm)\n",
+ "Vacp=Vs*1.414\n",
+ "Is1=(Vacp/Xc) #approx. peak current(mA)\n",
+ "Is2=Is1/math.pi #average current through LED(mA)\n",
+ "\n",
+ "print 'Capacitance reactance Xc = ',round(Xc,2),'KOhm'\n",
+ "print 'approx. peak LED current Is1 =',round(Is1,2),'mA'\n",
+ "print 'average current through LED Is2 =',round(Is2,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance reactance Xc = 3.9 KOhm\n",
+ "approx. peak LED current Is1 = 43.5 mA\n",
+ "average current through LED Is2 = 13.85 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_6_New.ipynb b/Electronic_Principles/Chapter_6_New.ipynb
new file mode 100755
index 00000000..990f6ef8
--- /dev/null
+++ b/Electronic_Principles/Chapter_6_New.ipynb
@@ -0,0 +1,534 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 6 BIPOLAR JUNCTION TRANSISTOR"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-1, Page 194"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Ic=10 #collector current(mA)\n",
+ "Ib=40.0/1000.0 #base current (mA)\n",
+ "\n",
+ "Bdc=Ic/Ib #Current gain\n",
+ "\n",
+ "print 'Current gain Bdc =',Bdc"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current gain Bdc = 250.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-2, Page 194"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Bdc=175 #current gain\n",
+ "Ib=0.1 #base current (mA)\n",
+ "\n",
+ "Ic=Bdc*Ib #Current gain\n",
+ "\n",
+ "print 'Collector current Ic =',Ic,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector current Ic = 17.5 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-3, Page 195"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "Bdc=135.0 #current gain\n",
+ "Ic=2.0 #collector current (mA)\n",
+ "\n",
+ "Ib=(Ic/Bdc)*1000 #Current gain\n",
+ "\n",
+ "print 'Base current Ib =',round(Ib,2),'uA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current Ib = 14.81 uA\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-4, Page 197"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "Ib=((Vbb-Vbe)/Rb)*1000 #base current(uA)\n",
+ "Ic=Bdc*Ib/1000 #Collector current(mA)\n",
+ "\n",
+ "print 'Base current Ib =',Ib,'uA'\n",
+ "print 'Collector current Ic =',Ic,'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current Ib = 13.0 uA\n",
+ "Collector current Ic = 2.6 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-5, Page 201"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VBB=10 #Base voltage (V)\n",
+ "RC=2 #Collector resistance(KOhm)\n",
+ "VCC=10 #collector voltage(V)\n",
+ "Bdc=300 #current gain\n",
+ "RB=1 #base resistance (MOhm)\n",
+ "VBE=0.7 #base-emitter voltage drop(V) \n",
+ "\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",
+ "print 'Base current IB =',IB,'uA'\n",
+ "print 'Collector current IC =',IC,'mA'\n",
+ "print 'Collector-emitter voltage VCE =',VCE,'V'\n",
+ "print 'Power dissipation PD = ',round(PD,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current IB = 9.3 uA\n",
+ "Collector current IC = 2.79 mA\n",
+ "Collector-emitter voltage VCE = 4.42 V\n",
+ "Power dissipation PD = 12.33 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-6, Page 202"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VBB=10 #Base voltage (V)\n",
+ "RC=470 #Collector resistance(Ohm)\n",
+ "VCC=10 #collector voltage(V)\n",
+ "Bdc=300 #current gain\n",
+ "VCE=5.4535 #collector-emitter voltage shown on multisim screen \n",
+ "RB=330 #base resistance (KOhm)\n",
+ "VBE=0.7 #base-emitter voltage drop \n",
+ "\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",
+ "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",
+ "print 'Current gain Bdc = ',Bdc"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current IB = 28.18 uA\n",
+ "voltage across Rc VRc = 4.55 V\n",
+ "Collector current IC = 9.67 mA\n",
+ "Current gain Bdc = 343\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-7, Page 204"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VBB=15 #Base voltage (V)\n",
+ "RC=3.6 #Collector resistance(KOhm)\n",
+ "VCC=15 #collector voltage(V)\n",
+ "Bdc=100 #current gain\n",
+ "RB=470 #base resistance (KOhm)\n",
+ "VBE=0 #base-emitter voltage drop(V) \n",
+ "\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",
+ "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",
+ "print 'Emitter current IE =',round(IE,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current IB = 31.91 uA\n",
+ "Collector current IC = 3.19 mA\n",
+ "Collector-emitter voltage VCE = 3.51 V\n",
+ "Emitter current IE = 3.22 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-8, Page 205"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VBB=15 #Base voltage (V)\n",
+ "RC=3.6 #Collector resistance(KOhm)\n",
+ "VCC=15 #collector voltage(V)\n",
+ "Bdc=100 #current gain\n",
+ "RB=470 #base resistance (KOhm)\n",
+ "VBE=0.7 #base-emitter voltage drop(V) \n",
+ "\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",
+ "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'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current IB = 30.43 uA\n",
+ "Collector current IC = 3.04 mA\n",
+ "Collector-emitter voltage VCE = 4.05 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-9, Page 206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VBB=15 #Base voltage (V)\n",
+ "RC=3.6 #Collector resistance(KOhm)\n",
+ "VCC=15 #collector voltage(V)\n",
+ "Bdc=100 #current gain\n",
+ "RB=470 #base resistance (KOhm)\n",
+ "VBE=1 #base-emitter voltage drop(V) \n",
+ "\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",
+ "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'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current IB = 29.79 uA\n",
+ "Collector current IC = 2.98 mA\n",
+ "Collector-emitter voltage VCE = 4.28 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-10, Page 206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VBB=5 #Base voltage (V)\n",
+ "RC=3.6 #Collector resistance(KOhm)\n",
+ "VCC=15 #collector voltage(V)\n",
+ "Bdc=100 #current gain\n",
+ "RB=470 #base resistance (KOhm)\n",
+ "VBE1=0 #base-emitter voltage drop1(V) \n",
+ "VBE2=0.7 #base-emitter voltage drop2(V)\n",
+ "VBE3=1 #base-emitter voltage drop3(V)\n",
+ "\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",
+ "\n",
+ "IB2=((VBB-VBE2)/float(RB))*1000 #base current2(uA)\n",
+ "IC2=Bdc*IB2/1000 #Collector current2(mA)\n",
+ "VCE2=VCC-(IC2*RC) #Collector-emitter voltage2(V)\n",
+ "\n",
+ "IB3=((VBB-VBE3)/float(RB))*1000 #base current3(uA)\n",
+ "IC3=Bdc*IB3/1000 #Collector current3(mA)\n",
+ "VCE3=VCC-(IC3*RC) #Collector-emitter voltage3(V)\n",
+ "\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",
+ "\n",
+ "print 'Base current IB2 =',round(IB2,2),'uA'\n",
+ "print 'Collector current IC2 =',round(IC2,2),'mA'\n",
+ "print 'Collector-emitter voltage VCE2 = ',round(VCE2,2),'V'\n",
+ "\n",
+ "print 'Base current IB3 =',round(IB3,2),'uA'\n",
+ "print 'Collector current IC3 =',round(IC3,2),'mA'\n",
+ "print 'Collector-emitter voltage VCE3 = ',round(VCE3,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current IB1 = 10.64 uA\n",
+ "Collector current IC1 = 1.06 mA\n",
+ "Collector-emitter voltage VCE1 = 11.17 V\n",
+ "Base current IB2 = 9.15 uA\n",
+ "Collector current IC2 = 0.91 mA\n",
+ "Collector-emitter voltage VCE2 = 11.71 V\n",
+ "Base current IB3 = 8.51 uA\n",
+ "Collector current IC3 = 0.85 mA\n",
+ "Collector-emitter voltage VCE3 = 11.94 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-11, Page 211"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCE=10 #Collector-emitter voltage(V)\n",
+ "IC=20 #Collector current(mA)\n",
+ "T=25 #Ambient temperature(deg C)\n",
+ " \n",
+ "PD = VCE*IC #Power dissipation(mW)\n",
+ "\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.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power dissipation PD = 200 mW\n",
+ "for 25 deg C, power rating is 625 mW So, transistor is well within power rating.\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6-12, Page 212"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\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",
+ "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",
+ "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.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum Power dissipation PDmax = 250 mW\n",
+ "for 25 deg C, power rating is 625 mW So, transistor is yet within power rating.\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_7_New.ipynb b/Electronic_Principles/Chapter_7_New.ipynb
new file mode 100755
index 00000000..bf956ac7
--- /dev/null
+++ b/Electronic_Principles/Chapter_7_New.ipynb
@@ -0,0 +1,427 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 7 TRANSISTOR FUNDAMENTALS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-1, Page 228"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=30 #collector voltage(V)\n",
+ "RC=3 #Collector resistance (KOhm)\n",
+ "\n",
+ "ICsat=VCC/RC #Saturation current(mA)\n",
+ "VCEc=VCC #VCE cutoff voltage(V)\n",
+ "\n",
+ "print 'Saturation current IC(saturation) = ',ICsat,'mA'\n",
+ "print 'Collector emitter cutoff VCE(cutoff) = ',VCEc,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Saturation current IC(saturation) = 10 mA\n",
+ "Collector emitter cutoff VCE(cutoff) = 30 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-2, Page 228"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=9 #collector voltage(V)\n",
+ "RC=3 #Collector resistance(KOhm)\n",
+ "\n",
+ "ICsat=VCC/RC #Saturation current(mA)\n",
+ "VCEc=VCC #VCE cutoff voltage(V)\n",
+ "\n",
+ "print 'Saturation current IC(saturation) = ',ICsat,'mA'\n",
+ "print 'Collector emitter cutoff VCE(cutoff) = ',VCEc,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Saturation current IC(saturation) = 3 mA\n",
+ "Collector emitter cutoff VCE(cutoff) = 9 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-3, Page 229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #collector voltage(V)\n",
+ "RC=1 #Collector resistance(KOhm)\n",
+ "\n",
+ "ICsat=VCC/RC #Saturation current(mA)\n",
+ "VCEc=VCC #VCE cutoff voltage(V)\n",
+ "\n",
+ "print 'Saturation current IC(saturation) = ',ICsat,'mA'\n",
+ "print 'Collector emitter cutoff VCE(cutoff) = ',VCEc,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Saturation current IC(saturation) = 15 mA\n",
+ "Collector emitter cutoff VCE(cutoff) = 15 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-4, Page 229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #collector voltage(V)\n",
+ "RC=3 #Collector resistance(KOhm)\n",
+ "\n",
+ "ICsat=VCC/RC #Saturation current(mA)\n",
+ "VCEc=VCC #VCE cutoff voltage(V)\n",
+ "\n",
+ "print 'Saturation current IC(saturation) = ',ICsat,'mA'\n",
+ "print 'Collector emitter cutoff VCE(cutoff) = ',VCEc,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Saturation current IC(saturation) = 5 mA\n",
+ "Collector emitter cutoff VCE(cutoff) = 15 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-5, Page 232"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15.0 #collector voltage(V)\n",
+ "RC=3 #collector resistance (KOhm)\n",
+ "VBB=15.0 #base voltage(V)\n",
+ "RB=1 #base resistance (MOhm)\n",
+ "Bdc=100 #current gain\n",
+ "\n",
+ "IB1=(VBB/RB) #base current(uA)\n",
+ "IC1=Bdc*IB1/1000 #Collector current(mA)\n",
+ "VCE1=VCC-(IC1*RC) #Collector-emitter voltage(V)\n",
+ "\n",
+ "IB2=((VBB-0.7)/RB) #base current(uA)\n",
+ "IC2=Bdc*IB2/1000 #Collector current(mA)\n",
+ "VCE2=VCC-(IC2*RC) #Collector-emitter voltage(V)\n",
+ "\n",
+ "print 'Collector emitter voltage VCE1 = ',VCE1,'V'\n",
+ "print 'For second approx., collector emitter voltage VCE2 = ',VCE2,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector emitter voltage VCE1 = 10.5 V\n",
+ "For second approx., collector emitter voltage VCE2 = 10.71 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-6, Page 235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=20.0 #collector voltage(V)\n",
+ "RC=10 #collector resistance (KOhm)\n",
+ "VBB=10.0 #base voltage(V)\n",
+ "RB=1 #base resistance (MOhm)\n",
+ "Bdc=50 #current gain\n",
+ "\n",
+ "IB=(VBB/RB) #base current(uA)\n",
+ "IC=Bdc*IB/1000 #Collector current(mA)\n",
+ "VCE=VCC-(IC*RC) #Collector-emitter voltage(V)\n",
+ "\n",
+ "print 'Collector emitter voltage VCE = ',VCE,'V'\n",
+ "print 'So, transistor is in active region.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector emitter voltage VCE = 15.0 V\n",
+ "So, transistor is in active region\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-7, Page 235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=20.0 #collector voltage(V)\n",
+ "RC=5 #collector resistance (KOhm)\n",
+ "VBB=10.0 #base voltage(V)\n",
+ "RB=100 #base resistance(KOhm)\n",
+ "Bdco=50 #old current gain\n",
+ "\n",
+ "ICsat=VCC/RC #Saturation current(mA)\n",
+ "IB=VBB/RB #base current(mA)\n",
+ "IC=Bdc*IB/1000 #Collector current(mA)\n",
+ "VCE=VCC-(IC*RC) #Collector-emitter voltage(V)\n",
+ "Bdcn=ICsat/IB #New current gain\n",
+ " \n",
+ "\n",
+ "print 'ICsat = ',ICsat,'mA'\n",
+ "print 'Bdc = ',int(Bdcn)\n",
+ "print 'Current can not be more than ICsat So, current gain will decrease.'\n",
+ "print 'So, transistor has two current gain: active region & saturation region.'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ICsat = 4.0 mA\n",
+ "Bdc = 40\n",
+ "Current can not be more than ICsat So, current gain will decrease.\n",
+ "So, transistor has two current gain: active region & saturation region.\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-8, Page 236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=5.0 #collector voltage(V)\n",
+ "ICEO=50 #Collector leakage current(nA)\n",
+ "RC=1 #collector resistance (KOhm)\n",
+ "VBB=10.0 #base voltage(V)\n",
+ "RB=10 #base resistance(KOhm)\n",
+ "VCEs=0.15 #VCE saturation(V)\n",
+ "\n",
+ "VCE=VCC-((ICEO*RC)*10**-6) #Collector-emitter voltage(V)\n",
+ "\n",
+ "print 'Two values of output voltage are 0 and 5 V'\n",
+ "print 'first voltage is voltage across saturated transistor = ',VCEs,'V' \n",
+ "print 'Second voltage is: VCE = ',round(VCE,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Two values of output voltage are 0 and 5 V\n",
+ "first voltage is voltage across saturated transistor = 0.15 V\n",
+ "Second voltage is: VCE = 5.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-9, Page 239"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #collector voltage(V)\n",
+ "VBB=5 #Base voltage(V)\n",
+ "RC=2 #collector resistance (KOhm)\n",
+ "VBE=0.7 #base voltage(V)\n",
+ "RB=100 #base resistance(KOhm)\n",
+ "RE=1 #emitter resistance(KOhm)\n",
+ "\n",
+ "\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=(VE/RE) #emitter current(mA)\n",
+ "IC=IE #Collector current(mA)\n",
+ "VC=VCC-(IC*RC) #Collector-emitter voltage(V)\n",
+ "VCE=VC-VE #Collector-emitter voltage(V)\n",
+ " \n",
+ "\n",
+ "print 'Emitter current IE = ',IE,'mA'\n",
+ "print 'Emitter voltage VE = ',VE,'V'\n",
+ "print 'Collector emitter voltage VCE = ',VCE,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 4.3 mA\n",
+ "Emitter voltage VE = 4.3 V\n",
+ "Collector emitter voltage VCE = 2.1 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7-10, Page 242"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=20 #collector voltage(V)\n",
+ "VBB=15 #Base voltage(V)\n",
+ "VBE=0.7 #base voltage(V)\n",
+ "RE=1.5 #emitter resistance(KOhm)\n",
+ "IE=25.0 #emitter current(mA)\n",
+ "\n",
+ "VE=IE*RE #emitter current(mA)\n",
+ "RE=(VBB/IE)*1000 #emitter resistance(KOhm)\n",
+ "RE2=((VBB-VBE)/IE)*1000 #emitter resistance(KOhm)\n",
+ " \n",
+ "print 'Emitter voltage VE = ',VE,'V'\n",
+ "print 'Emitter resistance RE = ',RE,'Ohm'\n",
+ "print 'Emitter resistance RE2 = ',RE2,'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter voltage VE = 37.5 V\n",
+ "Emitter resistance RE = 600.0 Ohm\n",
+ "Emitter resistance RE2 = 572.0 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_8_New.ipynb b/Electronic_Principles/Chapter_8_New.ipynb
new file mode 100755
index 00000000..5db68b59
--- /dev/null
+++ b/Electronic_Principles/Chapter_8_New.ipynb
@@ -0,0 +1,300 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 8 TRANSISTOR BIASING"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8-1, Page 263"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1 #Emitter resistance (KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "\n",
+ "VBB=(R2/(R1+R2))*VCC #Base voltage(V)\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "IC=IE #Collector current(mA)\n",
+ "VC=VCC-(IC*RC) #collector to ground voltage(V)\n",
+ "VCE=VC-VE #Collector-emitter voltage(V)\n",
+ "\n",
+ "print 'Collector current IC = ',round(IC,2),'mA'\n",
+ "print 'Collector-emitter voltage VCE = ',round(VCE,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector current IC = 1.1 mA\n",
+ "Collector-emitter voltage VCE = 4.92 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8-3, Page 267"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1 #Emitter resistance (KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "Bdc=200 #current gain\n",
+ "\n",
+ "R=(R1*R2)/(R1+R2) #Thevenin resistance(KOhm)\n",
+ "Ri=Bdc*RE #Base input resistance(KOhm)\n",
+ "R100=0.01*Ri #100th of Ri(KOhm)\n",
+ "VBB=(R2/(R1+R2))*VCC #Base voltage(V)\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=VE/(RE+(R/Ri)) #Emitter current(mA)\n",
+ "\n",
+ "print 'As per stiff voltage divider rule, R1||R2 < 0.01 Bdc*RE, So, Voltage divider is stiff.'\n",
+ "print 'Emitter current IE = ',round(IE,2),'mA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "As per stiff voltage divider rule, R1||R2 < 0.01 Bdc*RE, So, Voltage divider is stiff.\n",
+ "Emitter current IE = 1.09 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8-4, Page 269"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "IC=10 #Collector current(mA)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "Bdc=100 #current gain\n",
+ "\n",
+ "IE=IC #Emitter current(mA)\n",
+ "VE=0.1*VCC #Emitter voltage(V)\n",
+ "RE=(VE/IE)*1000 #Emitter resistance (Ohm)\n",
+ "RC=4*RE #Collector resistance(Ohm)\n",
+ "R2=0.01*Bdc*RE #Base input resistance2(Ohm)\n",
+ "V2=VE+VBE #voltage across R1(V)\n",
+ "V1=VCC-V2 #voltage across R2(V)\n",
+ "R1=(V1/V2)*R2 #Base input resistance1(Ohm)\n",
+ "\n",
+ "print 'Emitter resistance RE = ',RE,'Ohm'\n",
+ "print 'Collector resistance RC = ',RC,'Ohm'\n",
+ "print 'Base resistance R1 = ',round(R1,2),'Ohm'\n",
+ "print 'Base resistance R2 = ',R2,'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter resistance RE = 100.0 Ohm\n",
+ "Collector resistance RC = 400.0 Ohm\n",
+ "Base resistance R1 = 488.24 Ohm\n",
+ "Base resistance R2 = 100.0 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8-5, Page 271"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1.8 #Emitter resistance (KOhm)\n",
+ "RB=2.7 #Base resistance (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "VEE=2 #emitter voltage(V)\n",
+ "\n",
+ "VBB=0 #Base voltage(V)\n",
+ "VE=VEE-VBE #Emitter to ground voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "IC=IE #Collector current(mA)\n",
+ "VC=VCC-(IC*RC) #collector to ground voltage(V)\n",
+ "\n",
+ "print 'Emitter current IE = ',round(IE,2),'mA'\n",
+ "print 'Collector voltage VC = ',VC,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 0.72 mA\n",
+ "Collector voltage VC = 7.4 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8-6, Page 271"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=15 #collector voltage(V)\n",
+ "RC=10 #Collector resistance (KOhm)\n",
+ "RE=20 #Emitter resistance (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "VEE=15 #emitter voltage(V)\n",
+ "\n",
+ "VBB=0 #Base voltage(V)\n",
+ "VE=VEE-VBE #Emitter to ground voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "IC=IE #Collector current(mA)\n",
+ "VC=VCC-(IC*RC) #collector to ground voltage(V)\n",
+ "\n",
+ "print 'Emitter current IE = ',IE,'mA'\n",
+ "print 'Collector voltage VC = ',VC,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 0.715 mA\n",
+ "Collector voltage VC = 7.85 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8-7, Page 278"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=-10 #collector supply voltage(V)\n",
+ "VEE=-VCC #Emitter supply voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1 #Emitter resistance (KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "\n",
+ "V2=(R2/(R1+R2))*VEE #Base voltage(V)\n",
+ "IE=(V2-VBE)/RE #Emitter current(mA)\n",
+ "VC=IE*RC #collector to ground voltage(V)\n",
+ "VB=VEE-V2 #Base to ground voltage(V)\n",
+ "VE=VEE-(V2-VBE) #Emitter to ground voltage(V)\n",
+ "\n",
+ "print 'Emitter current IE = ',round(IE,2),'mA'\n",
+ "print 'Collector to ground voltage VC = ',round(VC,2),'V'\n",
+ "print 'Base to ground voltage VB = ',round(VB,2),'V'\n",
+ "print 'Emitter to ground voltage VE = ',round(VE,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 1.1 mA\n",
+ "Collector to ground voltage VC = 3.97 V\n",
+ "Base to ground voltage VB = 8.2 V\n",
+ "Emitter to ground voltage VE = 8.9 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/Chapter_9_New.ipynb b/Electronic_Principles/Chapter_9_New.ipynb
new file mode 100755
index 00000000..3fb67bca
--- /dev/null
+++ b/Electronic_Principles/Chapter_9_New.ipynb
@@ -0,0 +1,266 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER 9 AC MODELS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9-1, Page 289"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "f=20 #frequency(Hz)\n",
+ "R=2 #Resistance(KOhm)\n",
+ "\n",
+ "XC=0.1*R #Capacitive reactance(Ohm)\n",
+ "C=(1/(2*math.pi*f*XC))*1000 #Capacitance(uF)\n",
+ "\n",
+ "print 'Capacitance C = ',round(C,2),'uF'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance C = 39.79 uF\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9-2, Page 293"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "f=1 #frequency(KHz)\n",
+ "R1=600 #Resistance1(Ohm)\n",
+ "R2=1000 #Resistance2(Ohm)\n",
+ "\n",
+ "\n",
+ "RTH=R1*R2/(R1+R2) #Thevenin resistance(Ohm)\n",
+ "XC=0.1*RTH #Capacitive reactance(Ohm)\n",
+ "C=(1/(2*math.pi*f*XC))*1000 #Capacitance(uF)\n",
+ "\n",
+ "print 'Capacitance C = ',round(C,2),'uF'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance C = 4.24 uF\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9-3, Page 297"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RE=1 #Emitter resistance(KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "VEE=2 #Emitter supply voltage(V)\n",
+ "\n",
+ "IEQ=(VEE-VBE)/RE #Q point emitter current(mA)\n",
+ "iepp=0.1*IEQ*1000 #small signal emitter current(uA) \n",
+ "\n",
+ "print 'Q point emitter current IEQ = ',IEQ,'mA'\n",
+ "print 'Small signal emitter current iepp = ',iepp,'uApp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Q point emitter current IEQ = 1.3 mA\n",
+ "Small signal emitter current iepp = 130.0 uApp\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9-4, Page 301"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=30 #Supply voltage(V)\n",
+ "RC=5 #Collector resistance (KOhm)\n",
+ "RL=100 #Emitter resistance (KOhm)\n",
+ "RB=1 #Base resistance (MOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "Bdc=100 #current gain\n",
+ "\n",
+ "IB=(VCC-VBE)/RB #Base current(mA)\n",
+ "IE=Bdc*IB/1000 #Emitter current(mA)\n",
+ "re=25/IE #AC resistance(Ohm)\n",
+ "\n",
+ "print 'Emitter current IE = ',IE,'mA'\n",
+ "print 'AC resistance re\\' = ',round(re,2),'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 2.93 mA\n",
+ "AC resistance re' = 8.53 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9-5, Page 302"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1 #Emitter resistance (KOhm)\n",
+ "R1=10 #Base resistance1 (KOhm)\n",
+ "R2=2.2 #Base resistance2 (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "\n",
+ "VBB=(R2/(R1+R2))*VCC #Base voltage(V)\n",
+ "VE=VBB-VBE #Emitter voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "re=25/IE #AC resistance(Ohm)\n",
+ "\n",
+ "print 'Emitter current IE = ',round(IE,2),'mA'\n",
+ "print 'AC resistance re\\' = ',round(re,2),'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 1.1 mA\n",
+ "AC resistance re' = 22.66 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9-6, Page 302"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "VCC=10 #collector voltage(V)\n",
+ "RC=3.6 #Collector resistance (KOhm)\n",
+ "RE=1 #Emitter resistance (KOhm)\n",
+ "RB=2.7 #Base resistance (KOhm)\n",
+ "VBE=0.7 #Base-emitter voltage drop(V)\n",
+ "VEE=2 #emitter voltage(V)\n",
+ "\n",
+ "VE=VEE-VBE #Emitter to ground voltage(V)\n",
+ "IE=VE/RE #Emitter current(mA)\n",
+ "re=25/IE #AC resistance(Ohm)\n",
+ "\n",
+ "print 'Emitter current IE = ',IE,'mA'\n",
+ "print 'AC resistance re\\' = ',round(re,2),'Ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current IE = 1.3 mA\n",
+ "AC resistance re' = 19.23 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Principles/README.txt b/Electronic_Principles/README.txt
new file mode 100755
index 00000000..14f66cee
--- /dev/null
+++ b/Electronic_Principles/README.txt
@@ -0,0 +1,10 @@
+Contributed By: Nitya Kothari
+Course: be
+College/Institute/Organization: DDU
+Department/Designation: Electronics and Communication En
+Book Title: Electronic Principles
+Author: Albert Malvino & David J. Bates
+Publisher: Tata Mcgraw Hill Education Private Limited
+Year of publication: 2006
+Isbn: 9780070634244
+Edition: 7th \ No newline at end of file
diff --git a/Electronic_Principles/screenshots/nitya-1.png b/Electronic_Principles/screenshots/nitya-1.png
new file mode 100755
index 00000000..9c466186
--- /dev/null
+++ b/Electronic_Principles/screenshots/nitya-1.png
Binary files differ
diff --git a/Electronic_Principles/screenshots/nitya-2.png b/Electronic_Principles/screenshots/nitya-2.png
new file mode 100755
index 00000000..b335594e
--- /dev/null
+++ b/Electronic_Principles/screenshots/nitya-2.png
Binary files differ
diff --git a/Electronic_Principles/screenshots/nitya-3.png b/Electronic_Principles/screenshots/nitya-3.png
new file mode 100755
index 00000000..e2215017
--- /dev/null
+++ b/Electronic_Principles/screenshots/nitya-3.png
Binary files differ