diff options
author | Trupti Kini | 2016-08-31 23:30:27 +0600 |
---|---|---|
committer | Trupti Kini | 2016-08-31 23:30:27 +0600 |
commit | 53987b22bf76d7fe08a9117d1f4142b9f22b9782 (patch) | |
tree | a4af3799bbcb742baf7238af5b80ff8cc49c062b | |
parent | 4d212577396e7d6a0c810f0ce0ec4cb863cad3bc (diff) | |
download | Python-Textbook-Companions-53987b22bf76d7fe08a9117d1f4142b9f22b9782.tar.gz Python-Textbook-Companions-53987b22bf76d7fe08a9117d1f4142b9f22b9782.tar.bz2 Python-Textbook-Companions-53987b22bf76d7fe08a9117d1f4142b9f22b9782.zip |
Added(A)/Deleted(D) following books
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9_1.ipynb
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1_1.png
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2_1.png
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png
A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3_1.png
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_4.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_5.ipynb
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter10_ac_load_line_4.png
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_4.png
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_5.png
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_4.png
A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_5.png
A sample_notebooks/AshvaniKumar/ch10.ipynb
A sample_notebooks/MohdAsif/chapter1.ipynb
A sample_notebooks/karansingh/ch1.ipynb
90 files changed, 56981 insertions, 0 deletions
diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb new file mode 100644 index 00000000..0422f24a --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb @@ -0,0 +1,558 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Advanced Operational Amplifier Principles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.1,Page 6" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "open output voltage is 0.5 V\n", + "resistance lower loaded is 333.333 ohm\n", + "loaded output voltage is 0.25 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=1000.0;\n", + "R2=1000.0;\n", + "Rl=500.0#load resistance\n", + "V=1.0#input voltage\n", + "\n", + "#calculation\n", + "Vo=(R2/(R1+R2))*V;\n", + "Rll=1/((1/R2)+(1/Rl))#lower loaded resistance\n", + "Vol=(Rll/(R2+Rll))*V;\n", + "\n", + "#result\n", + "print \"open output voltage is\",round(Vo,3),\"V\"\n", + "print \"resistance lower loaded is\",round(Rll,3),\"ohm\"\n", + "print \"loaded output voltage is\",round(Vol,3),\"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.2,Page 11" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistance is 1.01 Kohm\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=100000.0#resistance\n", + "Acl=100.0#amplifier gain\n", + "\n", + "#calculation\n", + "Ri=Rf/(Acl-1);\n", + "\n", + "#result\n", + "print \"input resistance is\",round(Ri/1000,2), \"Kohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.3,Page 17" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current through Ri1 is 178.571 microAmp\n", + "current through Ri2 is 31.915 microAmp\n", + "current through Ri2 is 31.915 microAmp\n", + "current through Rf is 210.486 microAmp\n", + "voltage dropped is 2.105 V\n", + "output voltage 1 is -2.105 V\n", + "output voltage is 2.105 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vni=0.0#non inverting voltage\n", + "Vinv=0.0;#inverting voltage\n", + "Vri1=1.0;\n", + "Vri2=15.0;\n", + "Ri1=5600.0#resistance\n", + "Ri2=470000.0;\n", + "Rf=10000.0#load resistance\n", + "\n", + "#calculation\n", + "Ir1=Vri1/Ri1;\n", + "Ir2=Vri2/Ri2;\n", + "Irf=(Vri1/Ri1)+(Vri2/Ri2);\n", + "Vr=Irf*Rf;\n", + "Vo1=-Vr;\n", + "Vo=Irf*Rf;\n", + "\n", + "#result\n", + "print \"current through Ri1 is\",round(Ir1*1e6,3), \"microAmp\"\n", + "print \"current through Ri2 is\",round(Ir2*1e6,3), \"microAmp\"\n", + "print \"current through Ri2 is\",round(Ir2*1e6,3),\"microAmp\"\n", + "print \"current through Rf is\",round(Irf*1e6,3), \"microAmp\"\n", + "print \"voltage dropped is\",round(Vr,3), \"V\"\n", + "print \"output voltage 1 is\",round(Vo1,3), \"V\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.4,Page 25" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "inverting voltage is 4.955 V\n", + "non inverting voltage is 4.955 V\n", + "current through Rf2 is 42.698 microA\n", + "current through Ri2 is 42.698 microA\n", + "voltage dropped is 4.056 V\n", + "output voltage is 884.897 mV\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ri1=950.00;#ohm\n", + "Ri2=1050.00;\n", + "Rf1=105000.00;#resistance\n", + "Rf2=95000.00;\n", + "Vin=5.00;#voltage\n", + "\n", + "#calculation\n", + "Vinv=(Rf1/(Rf1+Ri1))*Vin;\n", + "Vni=Vinv;\n", + "Irf2=(Vin-Vinv)/Ri2;\n", + "Iri2=Irf2;\n", + "Vrf2=Irf2*Rf2;\n", + "Vo=Vinv-Vrf2-.014;\n", + "\n", + "#result\n", + "print \"inverting voltage is\",round(Vinv,3), \"V\"\n", + "print \"non inverting voltage is\",round (Vni,3), \"V\"\n", + "print \"current through Rf2 is\",round(Irf2*1e6,3), \"microA\"\n", + "print \"current through Ri2 is\",round(Iri2*1e6,3), \"microA\"\n", + "print \"voltage dropped is\",round(Vrf2,3), \"V\"\n", + "print \"output voltage is\",round(Vo*1000,3), \"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.5,Page 27" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 272.222 microA\n", + "input resistor current is 500.0 microA\n", + "feedback resistor current is 227.778 microAmp\n", + "resistor voltage is 227.778 mV\n", + "1st output voltage is 2.222 V\n", + "input resistor current is 327.778 microA\n", + "input resistor current is 827.778 microA\n", + "feedback resistor voltage is 7.45 V\n", + "2nd output voltage is 10.0 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vniu1=2.45;#V\n", + "Vniu2=2.55;#V\n", + "Vinvu1=2.45;\n", + "Vinvu2=2.55;\n", + "Ri1=9000.0;#ohm\n", + "Ri2=1000.0;#ohm\n", + "Rf1=1000.0;\n", + "Rf2=9000.0;\n", + "Rg=200.0;#load resistance\n", + "\n", + "#calculation\n", + "Iri1=Vniu1/Ri1;\n", + "Irg=(Vniu2-Vniu1)/Rg;\n", + "Irf1=Irg-Iri1;\n", + "Vrf1=Irf1*Rf1;\n", + "Vou1=Vniu1-Vrf1;\n", + "Iri2=(Vniu2-Vou1)/Ri2;\n", + "Irf2=Iri2+Irg;\n", + "Vrf2=Irf2*Rf2#feedback resistor voltage\n", + "Vo=Vrf2+Vniu2;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Iri1*1e6,3), \"microA\"\n", + "print \"input resistor current is\",round(Irg*1e6,3), \"microA\"\n", + "print \"feedback resistor current is\",round(Irf1*1e6,3), \"microAmp\"\n", + "print \"resistor voltage is\",round(Vrf1*1000,3), \"mV\"\n", + "print \"1st output voltage is\",round(Vou1,3), \"V\"\n", + "print \"input resistor current is\",round(Iri2*1e6,3), \"microA\"\n", + "print \"input resistor current is\",round(Irf2*1e6,3),\"microA\"\n", + "print \"feedback resistor voltage is\",round(Vrf2,3), \"V\"\n", + "print \"2nd output voltage is\",round(Vo,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.6.a,Page 29" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 128.0 microA\n", + "feedback resistor current is 128.0 microA\n", + "feedback resistor voltage is 5.018 V\n", + "output resistor voltage is 5.018 V\n", + "output voltage is 3.818 V\n", + "load current is 0.5 A\n", + "load power is 2.5 W\n", + "power dissipated in LM317 is 5.0 W\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vniu1=0;#V\n", + "Vinvu2=0;#V\n", + "Vref=2.56;\n", + "Rl=10000.0;#ohm\n", + "Rf=39200.0;#ohm\n", + "Ro=10.0;#resistance\n", + "Vdc1=5.0;\n", + "Vdc2=15.0;\n", + "Idc=0.5;#current\n", + "\n", + "#calculation\n", + "Iu1=(Vref/Rl)*.5;\n", + "Irf=Iu1;\n", + "Vrf=Irf*Rf;\n", + "Vout=Vrf+Vinvu2;\n", + "Eo=Vout-1.2;\n", + "Iload=Vdc1/Ro;\n", + "Pload=Vdc1**2/Ro;\n", + "Plm317=(Vdc2-Vdc1)*Idc;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Iu1*1e6,3), \"microA\"\n", + "print \"feedback resistor current is\",round(Irf*1e6,3), \"microA\"\n", + "print \"feedback resistor voltage is\",round(Vrf,3), \"V\"\n", + "print \"output resistor voltage is\",round(Vout,3), \"V\"\n", + "print \"output voltage is\",round(Eo,3), \"V\"\n", + "print \"load current is\",round(Iload,3), \"A\"\n", + "print \"load power is\",round(Pload,3), \"W\"\n", + "print \"power dissipated in LM317 is\",round(Plm317,3), \"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.6.b,Page 31" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 360.36 microamp\n", + "inverting voltage 1 & 2 is 396.396 mV\n", + "current across Rs is 3.964 A\n", + "emitter voltage is 8.324 V\n", + "output voltage is 10.124 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=4;#V\n", + "Vs=1.8;#V\n", + "Rf=10000.0;#ohm\n", + "Ri=1100.0;#ohm\n", + "Rl=2.0;#ohm\n", + "Rs=0.1;#ohm\n", + "\n", + "#calculation\n", + "Irf=Vin/(Rf+Ri);\n", + "Vni=Irf*Ri;\n", + "Ir=Vni/Rs;\n", + "Ve=Ir*(Rl+Rs);\n", + "Vo=Ve+Vs;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Irf*1e6,3),\"microamp\"\n", + "print \"inverting voltage 1 & 2 is\",round(Vni*1000,3), \"mV\"\n", + "print \"current across Rs is\",round(Ir,3), \"A\"\n", + "print \"emitter voltage is\",round(Ve,3), \"V\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.7,Page 36" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 9.899 V\n", + "power delivered is 12.25 W\n", + "load voltage is 28.284 V\n" + ] + } + ], + "source": [ + "#finding voltage and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vs=18.0;#V\n", + "Rl=8.0;#load resistance\n", + "Pll=100.0;#power\n", + "\n", + "#calculation\n", + "Vlp=Vs-4;\n", + "Vlr=Vlp/(2**(.5));\n", + "Pl=(Vlr**2)/Rl;\n", + "Vl=(Pll*Rl)**(.5);\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vlr,3), \"V\"\n", + "print \"power delivered is\",round(Pl,3), \"W\"\n", + "print \"load voltage is\",round(Vl,3), \"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.9,Page 44" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 37.34 V\n", + "V+ is 45.34 V ;V- is 29.34 V\n" + ] + } + ], + "source": [ + "#finding output volatage and range \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "import numpy as np\n", + "Vp=6.0;#V\n", + "Ra=10.0;#Kohm\n", + "Rb=1800.0;#ohm\n", + "V=8.0;\n", + "#solving for Ir & Vo\n", + "a=np.array([[1.0,-124.6e-6],[7800.0,-1.0]])\n", + "b=np.array([134.6e-6,0.0])\n", + "\n", + "#calculation\n", + "x=np.linalg.solve(a,b);\n", + "Vo=x[1];\n", + "Va=Vo+V;\n", + "Vb=Vo-V;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vo,2), \"V\"\n", + "print \"V+ is\",round(Va,2), \"V ;V- is\",round(Vb,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.11,Page 50" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output current is 4.091 mA\n", + "output voltage is 45.409 V\n", + "gain output voltage 1 is 13.356 V\n", + "gain output voltage 2 is 0.38 V\n" + ] + } + ], + "source": [ + "#finding output voltage and gain output voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=4.5;\n", + "R1=1100.0;\n", + "R2=10000.0;\n", + "\n", + "G1=3.4#gain 1\n", + "G2=120.0#gain 2\n", + "\n", + "#calculation\n", + "Ir=Vin/R1;\n", + "Vo=Ir*(R1+R2);\n", + "Vuo1=Vo/G1;\n", + "Vuo2=Vo/G2;\n", + "\n", + "#result\n", + "print \"output current is\",round(Ir*1000,3),\"mA\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"\n", + "print \"gain output voltage 1 is\",round(Vuo1,3), \"V\"\n", + "print \"gain output voltage 2 is\",round(Vuo2,2),\"V\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb new file mode 100644 index 00000000..9d88fe28 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb @@ -0,0 +1,65 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2: Power Electronics Circuit Layout" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 2.9,Page 83" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load current is 3.75 A\n", + "wiring resistance is 26.67 mohm\n", + "resistance per inch is 1666.67 microohm/inch\n" + ] + } + ], + "source": [ + "#finding an appropriate wire gauge\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=15.0;#voltage\n", + "R=4.0;#resistance\n", + "Vl=.1;\n", + "D=8.0;#duty cycle\n", + "\n", + "#calculation\n", + "Il=V/R;\n", + "Rw=Vl/Il#wiring resistance\n", + "Ri=Rw/(2*D);\n", + "\n", + "#result\n", + "print \"load current is\",round(Il,2), \"A\"\n", + "print \"wiring resistance is\",round(Rw*1000,2), \"mohm\"\n", + "print \"resistance per inch is\",round(Ri*1e6,2), \"microohm/inch\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb new file mode 100644 index 00000000..4129f088 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb @@ -0,0 +1,481 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 : Power Parameter Calculations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.1,Page 109" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ramp current is 450.0 kAt/s\n", + "current at 5 micro sec is 2.25 A\n" + ] + } + ], + "source": [ + "#finding ramp current and current at 5 micro sec\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=3.0;\n", + "f=150000.0;\n", + "t=5.0e-6;\n", + "\n", + "#calculation\n", + "T=1/f;\n", + "It=Ip/T;\n", + "I5=It*t;\n", + "\n", + "#result\n", + "print \"ramp current is\",round(It/1000,3), \"kAt/s\"\n", + "print \"current at 5 micro sec is\",round(I5,3), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.2,Page 110" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current in time 0<=t<800ns is 3.575 A\n", + "current in time 800ns<=t<2 microsec is 0.0 A\n", + "current in time 400ns is 1.85 A\n", + "current in time 1 microsec is 0.0 A\n" + ] + } + ], + "source": [ + "#finding current at different time\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=2.0;\n", + "f=500000.0;\n", + "Ir=.3;\n", + "Cd=.4#duty cycle\n", + "t1=4.0e-7;\n", + "t2=1.0e-6;\n", + "I1=0;\n", + "\n", + "#calculation\n", + "T=1/f;\n", + "Im=Ip-Ir;\n", + "I4=(Ip-Im)*t1/(Cd*T)+Im;\n", + "It=(Ip-Im)*t/(Cd*T)+Im;\n", + "It1=0\n", + "\n", + "#resilt\n", + "print \"current in time 0<=t<800ns is\",round(It,3),\"A\"\n", + "print \"current in time 800ns<=t<2 microsec is\",round(It1,2), \"A\"\n", + "print \"current in time 400ns is\",round(I4,2), \"A\"\n", + "print \"current in time 1 microsec is\",round(I1,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.3,Page 115" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 54.02 V\n" + ] + } + ], + "source": [ + "#finding average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vr=120;\n", + "\n", + "#calculation\n", + "V=(Vr*2**.5)/pi;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(V,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.4,Page 119" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average current is 0.98 A\n" + ] + } + ], + "source": [ + "#finding average current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "f=100000.0;\n", + "Cd=.35#duty cycle\n", + "Ip=3.0;\n", + "Ir=.4;\n", + "\n", + "#calculation\n", + "Im=Ip-Ir;\n", + "T=1/f;\n", + "I=Cd*((Ip-Im)/2+Im)\n", + "\n", + "#result\n", + "print \"average current is\",round(I,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.5,Page 124" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 8.87 V\n" + ] + } + ], + "source": [ + "#finding rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=15.0;\n", + "Cd=.35;\n", + "f=100000.0;\n", + "\n", + "#calculation\n", + "V=Vp*Cd**.5;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(V,2), \"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.6,Page 127" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms current is 1.73 A\n" + ] + } + ], + "source": [ + "#finding rms current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=3.0;\n", + "f=100000.0;\n", + "\n", + "#calculation\n", + "I=Ip/3**.5;\n", + "\n", + "#result\n", + "print \"rms current is\",round(I,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.7,Page 133" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 85.0 V\n" + ] + } + ], + "source": [ + "#finding rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=170.0;\n", + "f=60.0;\n", + "\n", + "#calculation\n", + "Vr=Vp/2;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vr,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.8,Page 140" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power required is 2.42 hp\n", + "Pick a 5HP motor\n", + "current required is 18.84 amp\n" + ] + } + ], + "source": [ + "#finding current and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "M=1000.0;\n", + "H=40.0;\n", + "T=30.0;\n", + "E1=.9;\n", + "E2=.5;\n", + "V=220.0;\n", + "P1=5.0;\n", + "\n", + "#calculation\n", + "W=M*H;\n", + "P=(W)/(T*550);\n", + "Pe=P1/E1;\n", + "I=(Pe*746)/V;\n", + "\n", + "#result\n", + "print \"power required is\",round(P,2), \"hp\"\n", + "print('Pick a 5HP motor')\n", + "print \"current required is\",round(I,2), \"amp\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.9,Page 145" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered to the load is 6.36 Watt\n", + "power provided by each supply is 7.23 Watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=1.0;\n", + "Ri=1100.0;\n", + "Rf=10000.0;\n", + "Rl=8.0;\n", + "Vs=18.0;\n", + "\n", + "#calculation\n", + "Ir=Vin/Ri;\n", + "Vl=Ir*(Ri+Rf);\n", + "Ip=Vl/Rl;\n", + "Pl=(Vl*Ip)/2;\n", + "Ps=(Vs*Ip)/pi;\n", + "\n", + "#result\n", + "print \"power delivered to the load is\",round(Pl,2),\"Watt\"\n", + "print \"power provided by each supply is\",round(Ps,2), \"Watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.10,Page 149" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 141.67 Watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=170.0;\n", + "R=51.0;\n", + "\n", + "#calculation\n", + "I=V/R;\n", + "P=(V*I)/4;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(P,2), \"Watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.11,Page 151" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power dissipated is 7.05 watt\n", + "power dissipated when transistor resistance is 0.2 hm is 0.35 watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=7.2;\n", + "Rq=.2;\n", + "Rl=4;\n", + "D=.6;\n", + "\n", + "#calculation\n", + "Ip=V/(Rq+Rl);\n", + "Vl=Ip*Rl;\n", + "P=D*Vl*Ip;\n", + "Vq=Ip*Rq;\n", + "Pq=D*Vq*Ip;\n", + "\n", + "#result\n", + "print \"power dissipated is\",round(P,2), \"watt\"\n", + "print \"power dissipated when transistor resistance is 0.2 hm is\",round(Pq,2), \"watt\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb new file mode 100644 index 00000000..706b4d0c --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb @@ -0,0 +1,733 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4: Linear Power Amplifier Integrated Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.1,Page 162" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 500.0 mV\n" + ] + } + ], + "source": [ + "#finding voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=1;\n", + "Ri=10;\n", + "Vi=0;\n", + "Ip=500;\n", + "\n", + "#calculation\n", + "Vrf=Ip*Rf;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vrf,2), \"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.2,Page 165" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency of OPA548 is 67.26 KHz\n", + "slew rate of OPA548 is 1.12 Mhz\n", + "the OPA548 can be used\n" + ] + } + ], + "source": [ + "#finding frequency\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=300.0;\n", + "P=35.0;\n", + "R=8.0;\n", + "S=10000.0;\n", + "fh=20.0;\n", + "\n", + "#calculation\n", + "Vl=(P*R)**.5;\n", + "Vp=Vl*2**.5;\n", + "Il=Vl/R;\n", + "f=S/(2*pi*Vp);\n", + "Ao=Vl/Vi;\n", + "G=Ao*fh;\n", + "\n", + "#result\n", + "print \"frequency of OPA548 is\",round(f,2), \"KHz\"\n", + "print \"slew rate of OPA548 is\",round(G,2), \"Mhz\"\n", + "print('the OPA548 can be used')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.3,Page 168" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 3.5 watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=10.0;\n", + "V=12.0;\n", + "Vl=5.0;\n", + "\n", + "#calculation\n", + "Pl=Vl**2/Rl;\n", + "I=Vl/Rl;\n", + "Ps=V*I;\n", + "Pic=Ps-Pl;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(Pic,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.4,Page 170" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vload Iload Pload Ps Pic\n", + "0.0 0.0 0.0 0.0 0.0\n", + "0.2 0.0 0.0 0.24 0.24\n", + "0.4 0.0 0.02 0.48 0.46\n", + "0.6 0.1 0.04 0.72 0.68\n", + "0.8 0.1 0.06 0.96 0.9\n", + "4.8 0.5 2.3 5.76 3.46\n", + "5.0 0.5 2.5 6.0 3.5\n", + "5.2 0.5 2.7 6.24 3.54\n", + "5.4 0.5 2.92 6.48 3.56\n", + "5.6 0.6 3.14 6.72 3.58\n", + "5.8 0.6 3.36 6.96 3.6\n", + "6.0 0.6 3.6 7.2 3.6\n", + "6.2 0.6 3.84 7.44 3.6\n", + "6.4 0.6 4.1 7.68 3.58\n", + "11.4 1.1 13.0 13.68 0.68\n", + "11.6 1.2 13.46 13.92 0.46\n", + "11.8 1.2 13.92 14.16 0.24\n", + "12.0 1.2 14.4 14.4 0.0\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEZCAYAAACXRVJOAAAABHNCSVQICAgIfAhkiAAAA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4fd8892750>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Vload vs Pic graph\n", + "\n", + "#initialisation of variable\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vload=[0.0, 0.2, 0.4, 0.6, 0.8, 4.8, 5.0, 5.2, 5.4, 5.6, 5.8, 6.0, 6.2, 6.4, 11.4, 11.6, 11.8, 12.0];\n", + "Iload=[0.0, 0.0, 0.0, 0.1, 0.1, 0.5, 0.5, 0.5, 0.5, 0.6, 0.6, 0.6, 0.6, 0.6, 1.1, 1.2, 1.2, 1.2];\n", + "Pload=[0.00, 0.00, 0.02, 0.04, 0.06, 2.30, 2.50, 2.70, 2.92, 3.14, 3.36, 3.60, 3.84, 4.10, 13.00, 13.46, 13.92, 14.40];\n", + "Ps=[0.00, 0.24, 0.48, 0.72, 0.96, 5.76, 6.00, 6.24, 6.48, 6.72, 6.96, 7.20, 7.44, 7.68, 13.68, 13.92, 14.16, 14.40];\n", + "Pic=[0.00, 0.24, 0.46, 0.68, 0.90, 3.46, 3.50, 3.54, 3.56, 3.58, 3.60, 3.60, 3.60, 3.58, 0.68, 0.46, 0.24, 0.00];\n", + "\n", + "#result\n", + "print('Vload Iload Pload Ps Pic');\n", + "for i in range(0,18):\n", + " print Vload[i],\" \",Iload[i],\" \",Pload[i],\" \",Ps[i],\" \", Pic[i]\n", + " \n", + "plt.plot(Vload,Pic);\n", + "plt.xlabel('load voltage (V)')\n", + "plt.ylabel('IC Power(W)')\n", + "plt.title('load voltage vs IC Power')\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.5,Page 173" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IC power is 2.57 W\n", + "total power is 3.82 W\n", + "dc supply current is 159.155 mA\n", + "power delivered is 1.25 watt\n" + ] + } + ], + "source": [ + "#finding different power and current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=12.0;\n", + "Vp=5.0;\n", + "R=10.0;\n", + "\n", + "#calculation\n", + "Ip=Vp/R;\n", + "Il=Ip/2**.5;\n", + "Pl=(Vp*Ip)/2;\n", + "Id=Ip/pi;\n", + "Pt=2*V*Ip/pi;\n", + "Pic=Pt-Pl;\n", + "\n", + "#result\n", + "print \"IC power is\",round(Pic,2), \"W\"\n", + "print \"total power is\",round(Pt,2), \"W\"\n", + "print \"dc supply current is\",round(Id*1000,3), \"mA\"\n", + "print \"power delivered is\",round(Pl,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.6,Page 179" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "thermal resistance is 24.61 C/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ts=40.0;\n", + "P=2.92;\n", + "Qj=2.5;\n", + "Qc=2.0;\n", + "Tj=125.0;\n", + "\n", + "#calculation\n", + "Qs=(Tj-Ts)/P-Qj-Qc;\n", + "\n", + "#result\n", + "print \"thermal resistance is\",round(Qs,2),\"C/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.7,Page 180" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vload Iload Pload Ps Pic\n", + "9.4 0.94 4.42 14.36 9.94\n", + "9.6 0.96 4.61 14.67 10.06\n", + "10.0 power delivered by IC in watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=24.0;\n", + "R=10.0;\n", + "Qs=4.0;\n", + "Tj=125.0;\n", + "Ta=40.0;\n", + "Qj=2.5;\n", + "Qc=2.0;\n", + "Vload=[9.4, 9.6];\n", + "Iload=[.94, .96];\n", + "Pload=[4.42, 4.61];\n", + "Ps=[14.36, 14.67];\n", + "Pic=[9.94, 10.06];\n", + "\n", + "#calculation\n", + "P=(Tj-Ta)/(Qj+Qc+Qs);\n", + "\n", + "#result\n", + "print('Vload Iload Pload Ps Pic');\n", + "for i in range(0,2):\n", + " print Vload[i],\" \",Iload[i],\" \",Pload[i],\" \",Ps[i],\" \", Pic[i]\n", + "print round(P,2),\"power delivered by IC in watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.8,Page 182" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "gain is 23.0\n", + "limit current is 4.01 A\n", + "output voltage is 46.0 V\n", + "maximum output voltage is 32.0 V\n" + ] + } + ], + "source": [ + "#finding current and voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=22.0;\n", + "Ri=1.0;\n", + "Rs=15.0;\n", + "I=4.75;\n", + "Rc=4.0;\n", + "Vp=2.0;\n", + "Rl=8.0;\n", + "Im=4.0;\n", + "\n", + "#calculation\n", + "Av=1+(Rf/Ri);\n", + "Il=(Rs*I)/(Rc+13.75);\n", + "Vo=Vp*Av;\n", + "V=Im*Rl;\n", + "\n", + "#result\n", + "print \"gain is\",round(Av,2)\n", + "print \"limit current is\",round(Il,2), \"A\"\n", + "print \"output voltage is\",round(Vo,2), \"V\"\n", + "print \"maximum output voltage is\",round(V,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.9,Page 185" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "loudness ofsound is 108.06 dB\n" + ] + } + ], + "source": [ + "#finding loudness\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "D=8.0;\n", + "d=1.0;\n", + "I=90.0;\n", + "\n", + "#calculation\n", + "Is=20*log(d/D,10);\n", + "Ir=I-Is;\n", + "\n", + "#result\n", + "print \"loudness ofsound is\",round(Ir,2), \"dB\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.10,Page 186" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "19.95 power provided in watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "D=1.0;\n", + "I1=108.0;\n", + "I2=95.0;\n", + "P=1.0;\n", + "\n", + "#calculation\n", + "I=I1-I2;\n", + "Pr=P*10**(I/10);\n", + "\n", + "#result\n", + "print \"power provided is\",round(Pr,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.11,Page 188" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 12.65 V\n", + "gain is 10.28\n" + ] + } + ], + "source": [ + "#finding output voltage and gain\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "P=20;\n", + "R=8;\n", + "Vi=1.23;\n", + "\n", + "#calculation\n", + "V=(P*R)**.5;\n", + "G=V/Vi;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(V,2), \"V\"\n", + "print \"gain is\",round(G,2)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.12,Page 191" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistor b/w pins 1&8 is 600.0 ohm\n", + "thus pick a 620 ohm resistor\n", + "capacitor b/w pins 1&8 is 22.46 microF\n", + "thus pick a 27 microF capacitor\n" + ] + } + ], + "source": [ + "#finding resistor and capacitor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "G=40.0;\n", + "f=80.0;\n", + "R1=15000.0;\n", + "R2=150.0;\n", + "\n", + "#calculation\n", + "R=2*(R1/G)-R2;\n", + "R11=620;\n", + "C=1/(2*pi*f*R11/7);\n", + "\n", + "#result\n", + "print \"resistor b/w pins 1&8 is\",round(R,2),\"ohm\"\n", + "print('thus pick a 620 ohm resistor')\n", + "print \"capacitor b/w pins 1&8 is\",round(C*1e6,2), \"microF\"\n", + "print('thus pick a 27 microF capacitor')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.13,Page 193" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power dissipated is 140.0 mW\n", + "thermal resistance is 628.93 degree C/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "V=5.0#voltage\n", + "Tm=150.0#temperature\n", + "Ta=50.0#temperature\n", + "Qa=107.0;\n", + "Qc=37.0;\n", + "Ps=299.0;\n", + "\n", + "#calculation\n", + "Vd=V/2;\n", + "Vm=V-1;\n", + "Vp=Vm-Vd;\n", + "Vr=Vp/2**.5;\n", + "Pl=1000*Vr**2/R;\n", + "Pl=140;\n", + "Pic=Ps-Pl;\n", + "Q=(Tm-Ta)/Pic;\n", + "\n", + "#result\n", + "print \"power dissipated is\",round(Pl,2), \"mW\"\n", + "print \"thermal resistance is\",round(Q*1000,2),\"degree C/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.14,Page 197" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power deliverd is 562.5 mwatt\n" + ] + } + ], + "source": [ + "#finding power delivered\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "V=5.0#voltage\n", + "\n", + "#calculation\n", + "Vl=V-1;\n", + "Vp=Vl-1;\n", + "Vr=Vp/2**.5;\n", + "P=Vr**2/R;\n", + "\n", + "#result\n", + "print \"power deliverd is\",round(P*1000,2), \"mwatt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.15,Page 201" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 85.56 watt\n", + "thermal resistance is 1.4 degreeC/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "Ts=35.0#temperature\n", + "Ta=150.0#temperature\n", + "Vm=42.0#voltage\n", + "\n", + "#calcuation\n", + "Vp=Vm-5;\n", + "Vr=Vp/2**.5;\n", + "Pm=Vr**2/R;\n", + "P=45;\n", + "Qs=(Ta-Ts)/P-1.2;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(Pm,2), \"watt\"\n", + "print \"thermal resistance is\",round(round(Qs*10)/10,2), \"degreeC/W\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb new file mode 100644 index 00000000..58305b46 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb @@ -0,0 +1,647 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5: Discrete Linear Power Amplifier" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.1,Page 215" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Id=0 from 0 to 2 so not shown in the graph\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEZCAYAAACTsIJzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl4U2Xax/FvW4ogi7K8uIGgiAOIIqKC4EBxFxcUURRE\nQAUGcccNx4UZfd/RUWdwRFFBEBQQFWVEQFywbiOiwyKyuLAJio6gIoso0Lx/3KfTENP2pM3Jc5L8\nPteVi+TkNLmtp7nzPPezgIiIiIiIiIiIiIiIiIiIiIiIiIiIiIgkUROgCMh1HIdIKOkPQzLVauBE\nR+99IbAqzvEqwH+ArqkNRyQxSgySqSLezYUXgb2BzjHHTwN2Aa+kPCKRBCgxSDbIA+4HvgNWAGeU\nce7NwHMxxx70bgD9vNf4CVgJ9IrzGr8AzwKXxBy/BJiEdWMB3AR8DawDLveOH+w91xVY4r3POmBo\nGTGLiIgPq4ATvPt/AJYBBwB1gDexb+7xvhgdCGwFanqP87AP72OBGsAmoJn33D5Ay1Lev4N3bjXv\n8V7ANuAI7/FpwHqgBVAdeJrdE8N6oGPUz7Yp+z9XRETKE50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Jc+4u4FhsV7Azsb1yiXP+FCwhNMM2iFkR57XivX6sz724\nFgN3A7fH/HyRj9cQSSolBskGW7AWwThgknfsPawbJwfrSirwjtfAljGeBVxPyVr6a7B9pIutxJLI\n7dieAGD7SjfBNkMB272rME48OyipeeyHtVAmAvez+0qq+3nvKyIiAeiGfZAf6j3OwbaELC4+v4a1\nKvbFCsuLsG6e4q0ZO1JSfC421HvNA6OOnUBJ8XkMVkSG3WsM92C7oD2FDaVdhLViPog6J5/4rRAR\nEQlQDe/felhdoEEZ5xYPV61axjnJdArwYIreS0REPG9iH/ZLgEt8nH8F0D/QiEo8iwrPIiIiIiIi\nIiIiIiIiIiIiIiIiIiIiknn+HwC9g+9EmLPsAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fb0a512a8d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Id vs Vgs\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vth=3.6;\n", + "Vgs=4;#voltage\n", + "#volt change beyond 3.6 causes a major increase in Id as it is cut off voltage\n", + "\n", + "#result\n", + "print('Id=0 from 0 to 2 so not shown in the graph')\n", + "x=np.linspace(2,3.6,300);\n", + "y=(-2.5*(x-3.6))**.5;\n", + "plt.plot(x,y)\n", + "plt.xlabel('Vgs(volts)');\n", + "plt.ylabel('Id(amps)');\n", + "plt.title('Id vs Vgs');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.2,Page 217" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "drain current is 3.8 A\n", + "Vth=4V is assumed\n" + ] + } + ], + "source": [ + "#finding drain current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=4.5;#voltage\n", + "T=25;#degreeC\n", + "Id=3.8;\n", + "\n", + "#result\n", + "print \"drain current is\",round(Id,2), \"A\"\n", + "print('Vth=4V is assumed')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.3,Page 219" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MOSFET is IRF530N\n", + "lower limit of Vth is -4.0 V\n", + "upper limit of Vth is -2.0 V\n", + "current is 2.3 A\n" + ] + } + ], + "source": [ + "#finding drain current of IRF530N\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vgs=-5;#voltage\n", + "Vthl=-4;\n", + "Vthu=-2;\n", + "Id=2.3;#current\n", + "\n", + "#result\n", + "print('MOSFET is IRF530N')\n", + "print \"lower limit of Vth is\",round(Vthl,2), \"V\"\n", + "print \"upper limit of Vth is\",round(Vthu,2), \"V\"\n", + "print \"current is\",round(Id,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example5.5,Page 225" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 1.51 kohm\n", + "load voltage is 36.68 V\n", + "Pq is 40.02 watt\n", + "Ps is 82.0 watt\n", + "Pl is 41.97 watt\n" + ] + } + ], + "source": [ + "#finding Pq,Pl,Ps,resistance,load voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=22.0;#resistance\n", + "Vg=3.6;#voltage\n", + "Vd=56.0;\n", + "G=.98;#gain\n", + "Vi=40.0;\n", + "Rl=8.0;#load resistance\n", + "Vp=36.5;\n", + "\n", + "#calculation\n", + "Vr=Vd-Vg;\n", + "Ir=Vr/R1;\n", + "R2=Vg/Ir;\n", + "Va=(R1/(R1+R2))*Vi;\n", + "Vl=G*Va;\n", + "Il=Vp/Rl;\n", + "Pl=Vp*4.6/4;\n", + "Ps=Vd*4.6/pi;\n", + "Pq=Ps-Pl;\n", + "\n", + "#result\n", + "print \"resistance is\",round(R2,2), \"kohm\"\n", + "print \"load voltage is\",round(Vl,2), \"V\"\n", + "print \"Pq is\",round(Pq,2), \"watt\"\n", + "print \"Ps is\",round(Ps,2), \"watt\"\n", + "print \"Pl is\",round(Pl,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.6,Page 232" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current is 2.45 mA\n", + "resistance2 is 814.815 ohm\n", + "pick R2=R3=820ohm R1=R4=22 kohm\n" + ] + } + ], + "source": [ + "#finding resistance and current \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=22.0;#resistance\n", + "V1=56.0;#voltage\n", + "V2=2.0;#voltage\n", + "\n", + "#calculation\n", + "I=(V1-V2)/R1;\n", + "R2=V2/I;\n", + "\n", + "#result\n", + "print \"current is\",round(I,2), \"mA\"\n", + "print \"resistance2 is\",round(R2*1000,3), \"ohm\"\n", + "print('pick R2=R3=820ohm R1=R4=22 kohm')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.7,Page 234" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load voltage is 10.01 V\n" + ] + } + ], + "source": [ + "#finding load voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=350.0;#voltage\n", + "f=100.0;#frequency\n", + "Rf=10000.0;#resistance\n", + "Ri=520.0;\n", + "\n", + "#calculation\n", + "Vp=(1+(Rf/Ri))*Vi*2**.5;\n", + "\n", + "#result\n", + "print \"load voltage is\",round(Vp/1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.8,Page 238" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load rms voltage is 20.0 V\n", + "resistance is 54.04 kohm\n", + "current is 1.18 mA\n", + "load current is 4.41 A\n", + "supply power is 39.3 watt\n", + "load power is 38.9 W\n", + "power is 19.552 W\n", + "thermal resistance is 3.01 degreC/W\n" + ] + } + ], + "source": [ + "#designing amplifier\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=50.0;#power\n", + "Z=4.7#impedence\n", + "R=4.0;#resistance\n", + "Ta=40.0;#degreeC\n", + "Tj=140.0;#degreeC\n", + "Vd=28.0;\n", + "R2=22.0;\n", + "\n", + "#calculation\n", + "Vr=(P*R)**.5;\n", + "Vp=Vr*2**.5;\n", + "Av=-Vr/1.23;\n", + "Rf=-Av*Z;\n", + "I=(Vd-2)/R2;\n", + "Vm=.63*Vd;\n", + "Ip=Vm/R;\n", + "Ps=Vd*Ip/pi;\n", + "Pl=Ip**2/2*R;\n", + "Pq=round(Ps)-Pl/2;\n", + "Qs=(Tj-Ta)/Pq-2.1;\n", + "\n", + "#result\n", + "print \"load rms voltage is\",round(Vp,2), \"V\"\n", + "print \"resistance is\",round(Rf,2), \"kohm\"\n", + "print \"current is\",round(I,2), \"mA\"\n", + "print \"load current is\",round(Ip,2), \"A\"\n", + "print \"supply power is\",round(Ps,2), \"watt\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"power is\",round(Pq,3), \"W\"\n", + "print \"thermal resistance is\",round(Qs,2), \"degreC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.9,Page 243" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 129.37 mV\n", + "load current is 32.34 mA\n" + ] + } + ], + "source": [ + "#finding load current,output voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=7.5e-3;#voltage\n", + "Ib=800e-9;#current\n", + "R=53.9e3;#resistance\n", + "\n", + "#calculation\n", + "Vo=11.5*Vi+Ib*R;\n", + "Id=Vo/4;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vo*1000,2), \"mV\"\n", + "print \"load current is\",round(Id*1000,2), \"mA\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.10,Page 249" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 0.31 ohm\n", + "thus pick a .33ohm rsistance\n", + "voltage is 0.55 V\n", + "power is 0.23 W\n", + "thermal resistance is 8.1 degreeC/W\n" + ] + } + ], + "source": [ + "#finding resistance,voltage,power \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "G=6.4;#A/V\n", + "I=5.0;#current\n", + "Pq=9.8;#W\n", + "Tj=140.0;\n", + "Ta=40.0;\n", + "R1=.33;\n", + "\n", + "#calculation\n", + "R=2/G;\n", + "Im=I/3;\n", + "Vr=Im*R1;\n", + "P=Vr*Im/4;\n", + "Qs=(Tj-Ta)/Pq-2.1;\n", + "\n", + "#result\n", + "print \"resistance is\",round(R,2), \"ohm\"\n", + "print('thus pick a .33ohm rsistance')\n", + "print \"voltage is\",round(Vr,2), \"V\"\n", + "print \"power is\",round(P,2), \"W\"\n", + "print \"thermal resistance is\",round(Qs,2), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.11,Page 251" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "limit level current is 8.49 A\n" + ] + } + ], + "source": [ + "#finding limit current \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=200;#power\n", + "R=8;#ohm\n", + "\n", + "#calculation\n", + "Il=(P/R)**.5*2**.5;\n", + "Ilm=1.2*Il;\n", + "\n", + "#result\n", + "print \"limit level current is\",round(Ilm,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.12,Page 253" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 0.1 ohm\n", + "power is 1.8 W\n", + "MOSFET power is 84.0 W\n", + "temperature is 468.4 degreeC\n" + ] + } + ], + "source": [ + "#finding resistance,power,temperature \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=6;#current\n", + "V=.6;#voltage\n", + "D=.5;#duty cycle\n", + "T=40;#temperature\n", + "\n", + "#calculation\n", + "Rs=V/I;\n", + "Pr=D*V*I;\n", + "Vp=28;\n", + "Pm=D*Vp*I;\n", + "Tj=T+Pm*5.1;\n", + "\n", + "#result\n", + "print \"resistance is\",round(Rs,2), \"ohm\"\n", + "print \"power is\",round(Pr,2), \"W\"\n", + "print \"MOSFET power is\",round(Pm,2), \"W\"\n", + "print \"temperature is\",round(Tj,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.13,Page 255" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum safe temperature is 89.05 degreeC\n" + ] + } + ], + "source": [ + "#finding maximum safe temperature \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "T=130;#temperature\n", + "P=19.5;#power\n", + "\n", + "#calculation\n", + "Ts=T-P*2.1;\n", + "\n", + "#result\n", + "print \"maximum safe temperature is\",round(Ts,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.14,Page 257" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "reactance is 8.86 ohm\n", + "voltage across resistor is 10.03 V\n", + "-48 is the angle of the voltage in degrees\n", + "power dissipated by load is 12.5 watts\n", + "current across the resistance is 1.77 A\n", + "power supply is 15.8 W\n", + "power dissipated by transistor is 9.55 watts\n" + ] + } + ], + "source": [ + "#finding 3 powers and current across resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=15.0;#voltage\n", + "f=300.0;#frequency\n", + "L=4.7;#inductance\n", + "Vdc=28;#V\n", + "Pr=12.5;\n", + "\n", + "#calculation\n", + "Xl=2*pi*f*L;\n", + "Zload=sqrt(8**2+8.9**2);#magnitude of Zload\n", + "Vload=15.0;#msgnitude of Vload\n", + "Vr=Vload*8/Zload;\n", + "I=Vr/8*sqrt(2);\n", + "Psupply=Vdc*I/pi;\n", + "Pq=Psupply-Pr/2;\n", + "\n", + "#result\n", + "print \"reactance is\",round(Xl/1000,2), \"ohm\"\n", + "print \"voltage across resistor is\",round(Vr,2), \"V\"\n", + "print \"-48 is the angle of the voltage in degrees\";\n", + "print \"power dissipated by load is\",round(Pr,2), \"watts\"\n", + "print \"current across the resistance is\",round(I,2), \"A\"\n", + "print \"power supply is\",round(Psupply,2), \"W\"\n", + "print \"power dissipated by transistor is\",round(Pq,2), \"watts\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb new file mode 100644 index 00000000..0c7858a4 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb @@ -0,0 +1,528 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6: Power Switches" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.1,Page 274" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "collector current is 1.81 A\n", + "load power is 49.32 W\n", + "transistor power is 1.45 W\n", + "least value of base current is 90.67 mA\n", + "max value of base resistance is 4.85 ohm\n", + "thus pick Rb=33ohm\n" + ] + } + ], + "source": [ + "#finding Ic,Pload,Pq,Ibase,Rbase\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vs=28.0;#V\n", + "Vi=5.0;#V\n", + "Rl=15.0;#ohm\n", + "Vc=.8;#V\n", + "b=20.0;\n", + "\n", + "#calculation\n", + "Ic=(Vs-Vc)/Rl;\n", + "Pl=Ic**2*Rl;\n", + "Pq=Ic*Vc;\n", + "Ib=Ic/b*1000;\n", + "Rb=(Vi-.6)/Ib;\n", + "\n", + "#result\n", + "print \"collector current is\",round(Ic,2), \"A\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"transistor power is\",round(Pq,2), \"W\"\n", + "print \"least value of base current is\",round(Ib,2), \"mA\"\n", + "print \"max value of base resistance is\",round(Rb*100,2), \"ohm\"\n", + "print ('thus pick Rb=33ohm')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.4,Page 282" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load resistance is 554.0 ohm\n", + "thus pick Rl=560ohm\n", + "max value of Rb is 3.0 kohm\n", + "thus pick Rb=2.2kohm\n", + "load current is 49.46 mA\n", + "load power is 685.08 mW\n", + "power delivered is 7.42 mW\n" + ] + } + ], + "source": [ + "#finding Pload,Pq,Iload,resistances\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vd=28.0;#V\n", + "f=100.0;#frequency\n", + "I=50.0;#current\n", + "Rl1=560.0;\n", + "Vp=2.4;\n", + "Ib=500.0;#microAmp\n", + "D=.5;#duty cycle\n", + "\n", + "#calculation\n", + "Rl=(Vd-.3)/I;\n", + "Rb=(Vp-.9)/Ib;\n", + "Vl=Vd-.3;\n", + "Ip=Vl/Rl1;\n", + "Pl=D*Vl*Ip;\n", + "Pq=D*Ip*.3;\n", + "\n", + "#result\n", + "print \"load resistance is\",round(Rl*1000), \"ohm\"\n", + "print('thus pick Rl=560ohm')\n", + "print \"max value of Rb is\",round(Rb*1000,2),\"kohm\"\n", + "print('thus pick Rb=2.2kohm')\n", + "print \"load current is\",round(Ip*1000,2), \"mA\"\n", + "print \"load power is\",round(Pl*1000,2), \"mW\"\n", + "print \"power delivered is\",round(Pq*1000,2), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.5,Page 286" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time of rise is 788.48 ns\n", + "time of rise is 4.65 microsec\n" + ] + } + ], + "source": [ + "#finding time of rise\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "C=640.0;#capacitor\n", + "R1=560.0;#load resistance\n", + "R2=3.3;#kohm\n", + "\n", + "#calculation\n", + "t1=2.2*R1*C;\n", + "t2=2.2*R2*C;\n", + "\n", + "#result\n", + "print \"time of rise is\",round(t1/1000,2), \"ns\"\n", + "print \"time of rise is\",round(t2/1000,2), \"microsec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.6,Page 287" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 682.5 ohm\n", + "pick up resistance=680 ohm\n", + "rise time is 957.44 ns\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEZCAYAAACervI0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGQJJREFUeJzt3XuQXGWdh/FnkgkxkISEiyEEcCQsiBguLuAFLy0qxVYE\nZNeyQNwFRbC2RNDVFXBdmdWqJUKJWrulW6uAQTQqoEi0QIhLLxfxgiQkhITInUAyYU0gIQESkt4/\n3tNMz6RnpufS/b7n9POp6prTZ87p/tFkzve873nf0yBJkiRJkiRJkiRJkiRJkiRJasADwLtiFyFJ\nKbsF+Lc6608B1gDjRvHa3we+Oor9U3sfadhG8wckNdv3gY/WWf/3wLXAjpZWI0lqmUnAc8A7a9ZN\nB14E5gATgW8CT2ePbwC7ZNudBdzZ7/V2ALOBc4GtwMvAJuAXdd77O8Dl/db9AvhMtnwhsBrYCKwE\njq/zGgO9z+M123cD1wE/yF5rKfBXwMVAD/AE8P6a19wduBJ4Jnv/r+KJnKSC+m/guzXPPwncly1/\nBfgtsFf2uDtbBwMHwIHZ8tU129bzTuDJmufTgS3APsAh2e/2yX53QM3r9lfvfR6jbwC8SDjIjwfm\nEwLi4uz5J4BHa/b9OSGcJgF7A78nBI0kFc5xwAZ6z+zvBi7Ilh8GTqzZ9gTCwRUaC4DB+uY7CGff\n1db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veDNxLuOXCIdn64wi31n0le14GriDMyF0BHAP8nDAD86vZNl30\nDaPPA5dky+cTZrDeT5jRCeHGXfcAJ4zgv1uS2t7r6D3o1i6fRfiWud2AvYDngXOz311BuNsqwG+A\ng7Llt2TPIdxX5XM173M7cGm2fD5hSv4Mwj2sniIEShd9A+BzwJez5afpPdOfWrPNx2jfe/uoxZrZ\nnJVi6BhgGcJBe3P2eI7em8otAw4nhMPb6XvdYJfs5wHAXf1er3pPogeyR/U+7I8S7mS7cZD6lhK+\nwvBG+t7p9Rm855NaxABQO3m5ZnlHzfMdhL+FccAGwpfv1NM/UGr37//anYTuotpu1kk1y3OBdwEn\nAf8CvCnbbxx+L4ZaxGsAKppNwJRh7lM9sG8iXB/4UM36w7PlJ+i9z3qjeoDXEu7QOJHwxTaV7HUP\nIFxHuIgwcmlyts/M7L2kprMFoKL5C3A3oVtnBb1n0/2/Han/cvX5GcB3gC8R+ugXELpr7iJcOK5n\noG9e2gZ8BfgDoc//wWz9eOAHhAN/B/AteruLjsXvO5CkpFSHge4y1IajMI4wDNQTM7XE+NgFSDky\nnvANdUua9PonEVow5Sa9viRJkiRJkiRJkiRJkiRJkqT8+3+DM0mrOvS/VQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f4e9da3f2d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Rpick up,time of rise\n", + "\n", + "#initialisation of variable\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vol=0.7;\n", + "Iol=40.0/1000;#current\n", + "Rpullup1=680.0;\n", + "C=640.0;\n", + "Epullup=28.0;\n", + "#for plotting\n", + "x=[0, .1, 1.9, 4.1, 5, 5.1, 5.3, 5.6, 6.0, 9.3];\n", + "y=[27.8, .1, .1, .1, .1, 5, 13.5, 21.0, 27.0, 27.8];\n", + "\n", + "#calculation\n", + "Rpullup=(Epullup-Vol)/Iol;\n", + "trise=2.2*Rpullup1*C;\n", + "plt.plot(x,y,'r');\n", + "plt.xlabel ('time(mus)')\n", + "plt.ylabel ('Vout')\n", + "plt.title ('Vout vs time')\n", + "\n", + "#result\n", + "print \"resistance is\",round(Rpullup,2), \"ohm\"\n", + "print('pick up resistance=680 ohm');\n", + "print \"rise time is\",round(trise/1000,2), \"ns\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.7,Page 289" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "worst case resistance is 0.286 ohm\n", + "load current is 4.45 A\n", + "load voltage is 26.73 V\n", + "load power is 47.62 W\n", + "drop voltage is 1.27 V\n", + "power is 2.27 W\n", + "temperature is 182.6 deg.C\n" + ] + } + ], + "source": [ + "#finding worst case resistance and power characteristics\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=.11;#resistance\n", + "Vd=28.0;#voltage\n", + "R2=6.0;#ohm\n", + "D=.4;#duty cycle\n", + "Q=62.0;\n", + "\n", + "#calculation\n", + "Ro=2.6*R1;\n", + "Ip=Vd/(R2+Ro);\n", + "Vl=Ip*R2;\n", + "Pl=D*Vl*Ip;\n", + "Vq=Ip*Ro;\n", + "Pq=D*Vq*Ip;\n", + "T=40+round(Pq*10)/10*Q;\n", + "\n", + "#result\n", + "print \"worst case resistance is\",round(Ro,3), \"ohm\"\n", + "print \"load current is\",round(Ip,2),\"A\"\n", + "print \"load voltage is\",round(Vl,2), \"V\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"drop voltage is\",round(Vq,2), \"V\"\n", + "print \"power is\",round(Pq*10,2)/10, \"W\"\n", + "print \"temperature is\",round(T,2), \"deg.C\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.8,Page 292" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "voltage is 150.0 V\n" + ] + } + ], + "source": [ + "#finding voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "L=10.0;#inductor\n", + "I=4.5;#current\n", + "t=300.0#time\n", + "\n", + "#calculation\n", + "V=L*I/t;\n", + "\n", + "#result\n", + "print \"voltage is\",round(V*1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.9,Page 298" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R1+R2 is 682.5 ohm\n", + "pick R1=330ohm & R2=360ohm as they divide Vd setting 8V<Vg<18V\n", + "node voltage for V1 is 28.0 V\n", + "node voltage for V2 is 0.7 V\n", + "gate voltage is 15.31 V\n", + "gate & source diff is -12.69 V\n", + "load voltage is 26.73 V\n", + "load current is 2.23 A\n", + "load power is 47.63 W\n", + "Pq is 2.26 W\n", + "thermal resistance is 44.92 degreeC/W\n" + ] + } + ], + "source": [ + "#finding resistance and power characteristics\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=12.0;#load resistance\n", + "V1=.8;#voltage\n", + "V2=2.4;#voltage\n", + "D=.8;#duty cycle\n", + "Tj=150.0;#degreeC\n", + "Ta=40.0;#degreeC\n", + "Vd=28.0;\n", + "Vo=.7;\n", + "I=40.0;#mA;\n", + "R1=330;\n", + "R2=360;\n", + "Vn1=28;\n", + "Vn2=.7;\n", + "\n", + "#calculation\n", + "k=(Vd-Vo)/I;\n", + "Vg=R2*Vd/(R1+R2)+Vn2;\n", + "Vgs=Vg-Vd;\n", + "Vl=Vd*Rl/(Rl+.57);\n", + "Il=Vl/Rl;\n", + "Pl=D*Vl*Il;\n", + "Vq=Il*.57;\n", + "Pq=D*Vq*Il;\n", + "Q=(Tj-Ta)/Pq-3.7;\n", + "\n", + "#result\n", + "print \"R1+R2 is\",round(k*1000,2), \"ohm\"\n", + "print('pick R1=330ohm & R2=360ohm as they divide Vd setting 8V<Vg<18V')\n", + "print \"node voltage for V1 is\",round(Vn1,2),\"V\"\n", + "print \"node voltage for V2 is\",round(Vn2,2), \"V\"\n", + "print \"gate voltage is\",round(Vg,2), \"V\"\n", + "print \"gate & source diff is\",round(Vgs,2), \"V\"\n", + "print \"load voltage is\",round(Vl,3), \"V\"\n", + "print \"load current is\",round(Il,2), \"A\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"Pq is\",round(Pq,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,2), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.10,Page 305" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time is 1.1 micro s\n" + ] + } + ], + "source": [ + "#finding time\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=40.0;#current\n", + "Q=44.0;#nC\n", + "\n", + "#calculation\n", + "t=Q/I;\n", + "\n", + "#result\n", + "print \"time is\",round(t,2), \"micro s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.11,Page 313" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current is 1.8 A\n", + "load voltage is 26.97 V\n", + "power is 40.85 W\n", + "high side voltage is 0.67 V\n", + "high side power is 1.03 W\n", + "low side voltage is 0.36 V\n", + "low side power is 0.55 W\n", + "IC power is 1.56 W\n", + "thermal resistance is 55.49 degreeC/W\n" + ] + } + ], + "source": [ + "#finding different voltages and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=15.0;#load resistance\n", + "D=.85;#duty cycle\n", + "Ts=60.0;#degreeC\n", + "Vd=28.0;#voltage\n", + "R1=.375;\n", + "R2=.2;\n", + "\n", + "#calculation\n", + "I=Vd/(R1+R2+Rl);\n", + "Vl1=I*Rl;\n", + "P=D*Vl*I;\n", + "Vh=I*R1;\n", + "Ph=D*Vh*I;\n", + "Vl=I*R2;\n", + "Pl=D*Vl*I;\n", + "Pic=Ph+Pl;\n", + "Pic=1.56;\n", + "Tj=150;\n", + "Ta=60;\n", + "Q=(Tj-Ta)/Pic-2.2;\n", + "\n", + "#result\n", + "print \"current is\",round(I,2), \"A\"\n", + "print \"load voltage is\",round(Vl1,2), \"V\"\n", + "print \"power is\",round(P,2), \"W\"\n", + "print \"high side voltage is\",round(Vh,2), \"V\"\n", + "print \"high side power is\",round(Ph,2), \"W\"\n", + "print \"low side voltage is\",round(Vl,2), \"V\"\n", + "print \"low side power is\",round(Pl,2), \"W\"\n", + "print \"IC power is\",round(Pic,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,2), \"degreeC/W\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb new file mode 100644 index 00000000..45af7d98 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb @@ -0,0 +1,505 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7: Switiching Power Supplies" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.1,Page 326" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 0.25\n", + "average voltage is 3.0 V\n" + ] + } + ], + "source": [ + "#finding duty cycle and average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "T=20.0;#time\n", + "Vp=12.0;#voltage\n", + "t=5.0;\n", + "\n", + "#calculation\n", + "D=t/T;\n", + "Vd=(D*Vp);\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D,3)\n", + "print \"average voltage is\",round(Vd,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.2,Page 238" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 42.0 %\n", + "time is 10.0 microsec\n", + "on time is 4.167 microsec\n", + "ripple current is 133.636 mA\n", + "load current is 500.0 mA\n", + "peak inductor current is 566.818 mA\n" + ] + } + ], + "source": [ + "#finding on time ripple,load,peak inductor current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vd=12.0;#voltage\n", + "Vl=5.0;#load voltage\n", + "Rl=10.0;#load resistance\n", + "f=100.0;#frequency\n", + "L=220.0;#inductor\n", + "\n", + "#calculation\n", + "D=Vl/Vd;\n", + "T=1/f;\n", + "t=D*T;\n", + "Vr=Vd-Vl;\n", + "I=Vr*round(t*10000)/10/L;\n", + "Il=Vl/Rl;\n", + "Ip=Il+I/2;\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D*100), \"%\"\n", + "print \"time is\",round(T*1000,3), \"microsec\"\n", + "print \"on time is\",round(t*10000,2)/10, \"microsec\"\n", + "print \"ripple current is\",round(I*1000,3),\"mA\"\n", + "print \"load current is\",round(Il*1000,3), \"mA\"\n", + "print \"peak inductor current is\",round(Ip*1000,3), \"mA\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.3,Page 335" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms current is 325.01 mA\n", + "by trapezium method\n", + "rms current is 324.04 mA\n", + "by rectangle method\n", + "\n", + " rectangle method gives good result than trapezium method\n" + ] + } + ], + "source": [ + "#finding rms current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Id=500.0;#load current\n", + "i=134;#mA\n", + "D=.42;#duty cycle\n", + "\n", + "#calculation\n", + "Ip=Id+i/2;\n", + "Im=Id-i/2;\n", + "I1=((D/3)*(Ip**2+Im*Ip+Im**2))**.5;\n", + "I2=D**.5*Id;\n", + "\n", + "#result\n", + "print \"rms current is\",round(I1,2), \"mA\"\n", + "print('by trapezium method')\n", + "print \"rms current is\",round(I2,2), \"mA\"\n", + "print('by rectangle method')\n", + "print '\\n rectangle method gives good result than trapezium method'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.4,Page 336" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "voltage is 0.3 V\n", + "dissipated power is 63.0 mW\n" + ] + } + ], + "source": [ + "#finding voltage and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=.3;#voltage\n", + "I=500.0;#current\n", + "D=.42;#duty cycle\n", + "T=150.0;#temperature\n", + "R=.6;#ohm\n", + "\n", + "#calculation\n", + "Vq=I*R;\n", + "Pq=D*Vq*I;\n", + "\n", + "#result\n", + "print \"voltage is\",round(Vq/1000,2), \"V\"\n", + "print \"dissipated power is\",round(Pq/1000,2), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.5,Page 341" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 42.0 %\n", + "time period is 6.667 microsec\n", + "on time is 2.778 microsec\n", + "load current is 500.0 mA\n", + "ripple current is 125.0 mA\n", + "inductor voltage is 7.0 V\n", + "inductor is 155.556 microH\n", + "inductor current is 562.5 mA\n", + "minimum capacitor current is 250.0 mA\n", + "minimum capacitor voltage is 18.0 V\n", + "Rf/Ri is 3.07\n", + "power of LM2595 is 0.33 W\n", + "thermal resistance is 210.998 degreeC/W\n" + ] + } + ], + "source": [ + "#finding all componenets\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R=10.0;#resistance\n", + "V1=5.0;#V\n", + "V2=12.0;#V\n", + "Ta=80.0;#degreeC\n", + "Tb=150.0;\n", + "f=150.0;#frequency\n", + "\n", + "#calculation\n", + "D=V1/V2;\n", + "T=1/f;\n", + "t=D*T;\n", + "Id=V1/R;\n", + "i=.25*Id;\n", + "Vl=V2-V1;\n", + "L=Vl*t/i;\n", + "Ip=Id+i/2;\n", + "Ic=Id/2;\n", + "Vc=1.5*V2;\n", + "K=V1/1.23-1;\n", + "P=.01*V2+D*Id*1;\n", + "Q=(Tb-Ta)/P-2.2;\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D*100), \"%\"\n", + "print \"time period is\",round(T*1000,3), \"microsec\"\n", + "print \"on time is\",round(t*1000,3), \"microsec\"\n", + "print \"load current is\",round(Id*1000,3), \"mA\"\n", + "print \"ripple current is\",round(i*1000,3), \"mA\"\n", + "print \"inductor voltage is\",round(Vl,2), \"V\"\n", + "print \"inductor is\",round(L*1000,3), \"microH\"\n", + "print \"inductor current is\",round(Ip*1000,2), \"mA\"\n", + "print \"minimum capacitor current is\",round(Ic*1000,2), \"mA\"\n", + "print \"minimum capacitor voltage is\",round(Vc,3), \"V\"\n", + "print \"Rf/Ri is\",round(K,2)\n", + "print \"power of LM2595 is\",round(P,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,3), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.6,Page 349" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load power is 15.4 W\n", + "supply power is 17.11 W\n", + "dc current is 1.4 A\n", + "inductor current is 1.57 A\n", + "duty cycle is 0.45\n", + "inductor is 154.29 microH\n", + "transistor power is 352.8 mW\n", + "diode power is 385.0 mW\n", + "capacitor is 157.5 microF\n" + ] + } + ], + "source": [ + "#finding different power,inductor current,inductor value\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0#V\n", + "V2=22.0;#V\n", + "I=.7;#A\n", + "f=100.0;#kHz\n", + "R=.4;#ohm\n", + "Vd=.5;\n", + "\n", + "#calculation\n", + "Pl=V2*I;\n", + "Ps=Pl/.9;\n", + "Id=round(Ps/V1*10)/10;\n", + "i=.25*Id;\n", + "Ip=Id+i/2;\n", + "D=round((1-V1/V2)*100)/100;\n", + "t=D/f;\n", + "L=V1*t/i;\n", + "Vp=Id*R;\n", + "Pq=D*Vp*Id;\n", + "Pd=(1-D)*.5*Id;\n", + "C=Id*t/2/20;\n", + "\n", + "#result\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"supply power is\",round(Ps,2), \"W\"\n", + "print \"dc current is\",round(Id,2), \"A\"\n", + "print \"inductor current is\",round(Ip,2), \"A\"\n", + "print \"duty cycle is\",round(D,2)\n", + "print \"inductor is\",round(L*1000,2), \"microH\"\n", + "print \"transistor power is\",round(Pq*1000,2), \"mW\"\n", + "print \"diode power is\",round(Pd*100,2)*10, \"mW\"\n", + "print \"capacitor is\",round(C*1e6,2), \"microF\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.7,Page 355" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rf/Ri is 16.886\n", + "pick Rf=22; Ri=1.3;\n", + "rms current is 1.4 A\n", + "switch power is 132.3 mW\n", + "IC power is 151.2 mW\n", + "total power is 283.5 mW\n", + "IC temperature is 98.43 degreeC\n" + ] + } + ], + "source": [ + "#finding feedback resistor,power,current and temperature\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0;#V\n", + "V2=22.0;#V\n", + "I=.7;#A\n", + "Ta=80.0;#degreeC\n", + "Ps=17.1#supply power\n", + "\n", + "#calculation\n", + "K=V2/1.23-1;\n", + "Id=round(Ps/V1*10)/10;\n", + "D=round((1-(V1/V2))*100)/100;\n", + "Ir=D**.5*Id;\n", + "Ps=Ir**2*.15;\n", + "Pi=D*Id*V1/50;\n", + "P=Ps+Pi;\n", + "T=Ta+P*65;\n", + "\n", + "#result\n", + "print \"Rf/Ri is\",round(K,3)\n", + "print('pick Rf=22; Ri=1.3;')\n", + "print \"rms current is\",round(Id,2), \"A\"\n", + "print \"switch power is\",round(Ps*1000,2), \"mW\"\n", + "print \"IC power is\",round(Pi*1000,2), \"mW\"\n", + "print \"total power is\",round(P*1000,2), \"mW\"\n", + "print \"IC temperature is\",round(T,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.8,Page 359" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum voltage is 18.25 V\n", + "diode voltage is 20.0 V\n", + "duty cycle is 0.34\n", + "power delivered is 5.0 W\n", + "average current is 466.67 mA\n", + "mid primary current is 1.37 A\n", + "rms current is 800.33 mA\n", + "ramp current is 480.0 mA\n", + "maximum transistor current is 1.61 A\n", + "minimum transistor current is 1.13 A\n", + "diode peak current is 2.02 A\n", + "secondary rms current is 1.23 A\n", + "capacitor is 170.0 microF\n" + ] + } + ], + "source": [ + "#designing circuit and finding circuit parameter\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0;#V\n", + "V2=5.0;#V\n", + "Il=1.0;#load current\n", + "T=10.0;#microsec\n", + "K=1.25;#Npri/Nsec\n", + "L=85.0;#microH\n", + "\n", + "#calculation\n", + "Vq=V1+V2*K;\n", + "Vd=V1*K+V2;\n", + "D=round((K*V2)*100/(V1+K*V2))/100;\n", + "Po=V2*Il;\n", + "Pi=round(Po/.09)/10;\n", + "Id=Pi/V1;\n", + "Im=Id/D;\n", + "Ir=(Im*D**.5);\n", + "i=V1*D*T/L;\n", + "IM=Im+.24;\n", + "Imin=Im-.24;\n", + "Ip=K*IM;\n", + "Imid=Il/(1-D);\n", + "Irms=Imid*(1-D)**.5;\n", + "C=D*Il*T/20;\n", + "\n", + "#result\n", + "print \"maximum voltage is\",round(Vq,2), \"V\"\n", + "print \"diode voltage is\",round(Vd,2), \"V\"\n", + "print \"duty cycle is\",round(D,2)\n", + "print \"power delivered is\",round(Po,2), \"W\"\n", + "print \"average current is\",round(Id*1000,2), \"mA\"\n", + "print \"mid primary current is\",round(Im,2), \"A\"\n", + "print \"rms current is\",round(Ir*1000,2),\"mA\"\n", + "print \"ramp current is\",round(i*1000,2), \"mA\"\n", + "print \"maximum transistor current is\",round(IM,2),\"A\"\n", + "print \"minimum transistor current is\",round(Imin,2),\"A\"\n", + "print \"diode peak current is\",round(Ip,2), \"A\"\n", + "print \"secondary rms current is\",round(Irms,2),\"A\"\n", + "print \"capacitor is\",round(C*1000,2), \"microF\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb new file mode 100644 index 00000000..7cf6b405 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb @@ -0,0 +1,326 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8: Thyristors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.3,Page 397" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "inductance is 6.22 microH\n", + "load impedence at angle 90 degree is 0.00195 ohm\n" + ] + } + ], + "source": [ + "#finding inductance,load impedence\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "f=50.0;#hertz\n", + "R=80.0;#load resistance\n", + "K=50.0;#di/dt\n", + "\n", + "#calculation\n", + "L=V*2**.5/K;\n", + "Z=2*pi*f*L;\n", + "\n", + "#result\n", + "print \"inductance is\",round(L,2),\"microH\"\n", + "print \"load impedence at angle 90 degree is\",round(Z*1e-6,5), \"ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.4,Page 400" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "minimum value of capacitor is 0.067 micfoF\n", + "\n", + "choose C=.1 micoF\n", + "capacitor impedence at angle -90degree is 31.83 ohm\n", + "Load current in mA at an angle 90 degrees is 6.91\n", + "Potential drop in V at an angle 90 degrees is 0.55\n", + "Power dissipated is 3 mW\n" + ] + } + ], + "source": [ + "#finding capacitor,current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "f=50.0;#hertz\n", + "R=80.0;#load resistance\n", + "K=75.0;#dv/dt\n", + "Vd=400.0;#DRM voltage\n", + "\n", + "\n", + "#calculation\n", + "C=Vd/R/K;\n", + "C1=.1;\n", + "Z=1/(2*pi*f*C1);\n", + "Iload=V/1000/(-Z*cos(180*pi/180)+R*round(cos(90*pi/180)));\n", + "Vload=Iload/1000*R;\n", + "P=Vload*Iload;\n", + "\n", + "#result\n", + "print \"minimum value of capacitor is\",round(C,3), \"micfoF\"\n", + "print('\\nchoose C=.1 micoF')\n", + "print \"capacitor impedence at angle -90degree is\",round(Z*1000,2), \"ohm\"\n", + "print \"Load current in mA at an angle 90 degrees is\",round(Iload,2)\n", + "print \"Potential drop in V at an angle 90 degrees is\",round(Vload,2)\n", + "print \"Power dissipated is\",int(P), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.5,Page 402" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "snubbing resistnce is 7.39 ohm\n" + ] + } + ], + "source": [ + "#finding snubbing resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220;#line voltage\n", + "f=50;#hertz\n", + "R=80;#load resistance\n", + "I=46;#TSM current\n", + "\n", + "#calculation\n", + "Rs=V*2**.5/(I-V*2**.5/R);\n", + "\n", + "#result\n", + "print \"snubbing resistnce is\",round(Rs,2), \"ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.6,Page 414" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "line period is 16.67 ms\n", + "half-cycle time is 8.333 ms\n", + "no. of cycles is 10.0\n", + "voltage for t1 is 54.0 V\n", + "power for t1 is 291.6 W\n", + "voltage for t2 is 100.0 V\n", + "voltage for t2 is 1000.0 W\n" + ] + } + ], + "source": [ + "#finding voltage , power and cycles\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R=10.0;#load\n", + "V=120.0;#rms voltage\n", + "f=60.0;#hertz\n", + "T=83.3;#ms\n", + "t1=15;#ms\n", + "t2=55;#ms\n", + "\n", + "#calculation\n", + "Tl=1/f;\n", + "Th=Tl/2;\n", + "C=round(T/Th/100)*100;\n", + "D1=.2;\n", + "V1=round(V*D1**.5);\n", + "P1=V1**2/R;\n", + "D2=.7;\n", + "V2=round(V*D2**.5);\n", + "P2=V2**2/R;\n", + "\n", + "#result\n", + "print \"line period is\",round(Tl*1000,2), \"ms\"\n", + "print \"half-cycle time is\",round(Th*1000,3), \"ms\"\n", + "print \"no. of cycles is\",C/1000\n", + "print \"voltage for t1 is\",round(V1,3), \"V\"\n", + "print \"power for t1 is\",round(P1,3), \"W\"\n", + "print \"voltage for t2 is\",round(V2,3), \"V\"\n", + "print \"voltage for t2 is\",round(P2,3), \"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.8,Page 427" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 42.0 V\n", + "dc voltage is 41.0 V\n", + "\n", + "the markers indicae Vp=163V Vave=41\n", + "full-wave rms voltage is 108.0 V\n", + "rms voltage is 108.0 V\n", + "\n", + "the markers indicate Vp=169V ;Vave=106V\n" + ] + } + ], + "source": [ + "#finding dc volatge,average voltage,rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=120.0;#line voltage\n", + "A=60.0;#degree\n", + "D=0.35;\n", + "\n", + "#calculation\n", + "Va=D*V;\n", + "Vd=V*2**.5*(cos(A*pi/180)+1)/2/pi;\n", + "Vr=.9*V;\n", + "Vrms=V*(2**.5)*(.5*(pi-1.047)+.25*sin(2*A*pi/180))**.5/pi**.5;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(Va,3), \"V\"\n", + "print \"dc voltage is\",round(Vd), \"V\"\n", + "print('\\nthe markers indicae Vp=163V Vave=41')\n", + "print \"full-wave rms voltage is\",round(Vr), \"V\"\n", + "print \"rms voltage is\",round(Vrms), \"V\"\n", + "print('\\nthe markers indicate Vp=169V ;Vave=106V')\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.9,Page 430" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 141.18 V\n", + "double checked value of rms voltage is 141.18 V\n" + ] + } + ], + "source": [ + "#finding rms voltage and double checked rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "P=1.3;#kW\n", + "R=15.0;#ohm\n", + "\n", + "#calculation\n", + "Vr=round((P*1000*R)**.5);\n", + "D=Vr/V;\n", + "Vr=V*2**.5*(.5*(pi-1.710)+sin(196*pi/180)/4)**.5/pi**.5;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vr,2), \"V\"\n", + "print \"double checked value of rms voltage is\",round(Vr,2), \"V\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb new file mode 100644 index 00000000..d50d131a --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb @@ -0,0 +1,405 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9: Power Conversation and Motor Drive Operations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.1,Page 457" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "peak voltage is 37.6 V\n", + "load voltage is 35.7 V\n", + "ripple voltage is 3.96 V\n", + "approx. load voltage is 35.62 V\n" + ] + } + ], + "source": [ + "#finding peak,load,ripple voltages\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=28.0;#V\n", + "C=4700.0;#microF\n", + "R=16.0;#load\n", + "f=120.0;#hertz\n", + "\n", + "#calculation\n", + "Vp=V*2**.5-2;\n", + "Vd=0.95*Vp;\n", + "Id=Vd/R;\n", + "v=Id/f/C;\n", + "#approximation\n", + "Vd1=Vp-v*1e6/2;\n", + "\n", + "#result\n", + "print \"peak voltage is\",round(Vp,2), \"V\"\n", + "print \"load voltage is\",round(Vd,1), \"V\"\n", + "print \"ripple voltage is\",round(v*1e6,2), \"V\"\n", + "print \"approx. load voltage is\",round(Vd1,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.2,Page 459" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Zth is 1.0 + 1.0 in ohm\n", + "inductor is 2.65 mH\n" + ] + } + ], + "source": [ + "#finding inductor,Zth\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=120.0;#pri voltage\n", + "V2=28.0;#sec voltage\n", + "I=2.0;#pri current\n", + "f=60.0;#Hz\n", + "Vth=28.8;#open voltage\n", + "V3=12.1;#pri-short voltage\n", + "Is=2.0;#short current at 45 degree\n", + "\n", + "#calculation\n", + "Zi=(V2*V3)/V1/Is*cos(45*pi/180);\n", + "Zj=(V2*V3)/V1/Is*sin(45*pi/180);\n", + "L=Zi/(2*pi*f);\n", + "\n", + "#result\n", + "print'Zth is',round(Zi),'+',round(Zj),'in ohm'\n", + "print \"inductor is\",round(L*1000,2), \"mH\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.4,Page 463" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power factor is 0.32\n" + ] + } + ], + "source": [ + "#finding power factor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I1=1.8;#current\n", + "R=16.0;#resistance\n", + "I2=5.7;#A\n", + "V=28.8;#Voltage\n", + "\n", + "#calculation\n", + "P=I1**2*R;\n", + "S=I2*V;\n", + "Pf=P/S;\n", + "\n", + "#result\n", + "print \"power factor is\",round(Pf,2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.5, Page 468" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aparrent power is 8.14 kVA\n", + "dissipated power is 7.84 kW\n", + "power factor is 0.96\n" + ] + } + ], + "source": [ + "#finding power factor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=22.6;#current\n", + "I2=28.00;\n", + "V=120.0;#Voltage\n", + "V2=280.0;\n", + "\n", + "#calculation\n", + "Pt=3*I*V;\n", + "Pl=I2*V2;\n", + "Pf=Pl/Pt;\n", + "\n", + "#result\n", + "print \"aparrent power is\",round(Pt/1000,2),\"kVA\"\n", + "print \"dissipated power is\",round(Pl/1000,2),\"kW\"\n", + "print \"power factor is\",round(Pl/Pt,2)\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.6,Page 474" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio is 0.72\n", + "firing angle is 58 degrees\n", + "dc voltage is 148.85 V\n", + "time delay is 2.69 ms\n" + ] + } + ], + "source": [ + "#finding firing angle, time delay,Vd\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=208.0;#voltage\n", + "R=100.0;#load\n", + "Vd=150.0;#V\n", + "\n", + "#calculation\n", + "r=Vd/V;\n", + "a=58;#degree\n", + "Vd=3*2**.5*208*(cos(pi/3+a*pi/180)-cos(2*pi/3+a*pi/180))/pi;\n", + "t=a*16.7/360;\n", + "\n", + "#result\n", + "print \"ratio is\",round(r,2)\n", + "print('firing angle is 58 degrees');\n", + "print \"dc voltage is\",round(Vd,2), \"V\"\n", + "print \"time delay is\",round(t,2), \"ms\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.7,Page 480" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "max. current is 41.67 A\n", + "dissipated power is 8.68 W\n" + ] + } + ], + "source": [ + "#finding maximum current and power dissipated\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=150.0;#power\n", + "V=8.0;#voltage\n", + "R=.01;#resistance\n", + "D=.5;#duty cycle\n", + "\n", + "#calculation\n", + "I=P/.9/D/V;\n", + "Ir=I*D**.5;\n", + "Pq=Ir**2*R;\n", + "\n", + "#result\n", + "print \"max. current is\",round(I,2), \"A\"\n", + "print \"dissipated power is\",round(Pq,2),\"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.8,Page 489" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "pwm fundamental frequency is 30.72 kHz\n", + "output voltage is 9.46 V\n" + ] + } + ], + "source": [ + "#finding fundamental frequency and output voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "f1=60.0;#frequency\n", + "V=150.0;#voltage\n", + "f2=31.0;#kHz\n", + "\n", + "#calculation\n", + "f3=f1*4;\n", + "Vo=V*10**(-4.2);\n", + "\n", + "#result\n", + "print \"pwm fundamental frequency is\",round(f3*2**7/1000,2), \"kHz\"\n", + "print \"output voltage is\",round(Vo*1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.9,Page 491" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 127.32 V\n", + "\n", + "Va-d @ 200Vin=4.2V\n", + "\n", + "\n", + "pick R1=47kohm\n", + "current through dividers is 2.62 mA\n", + "R2 is 1.6 kohm\n", + "capacitor is 27.01 microF\n" + ] + } + ], + "source": [ + "#finding resistances,capacitor,average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=120.0;#load voltage\n", + "f=60.0;#Hz\n", + "Vp=200.0;#V\n", + "Vd=5.0;#V\n", + "\n", + "\n", + "#calculation\n", + "Vdc=2*Vp/pi;\n", + "Va=4.2;\n", + "R1=47.0;\n", + "I=(Vdc-Va)/R1;\n", + "R2=Va/I;\n", + "K=1.0/(1/R1+1/R2)# R1 \\\\ R2\n", + "C=1.0/2/pi/3.8/K;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(Vdc,2), \"V\"\n", + "print('\\nVa-d @ 200Vin=4.2V')\n", + "print('\\n\\npick R1=47kohm')\n", + "print \"current through dividers is\",round(I,2), \"mA\"\n", + "print \"R2 is\",round(R2,2), \"kohm\"\n", + "print \"capacitor is\",round(C*1000,2), \"microF\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png Binary files differnew file mode 100644 index 00000000..5199042e --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png Binary files differnew file mode 100644 index 00000000..76933e63 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png diff --git a/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png Binary files differnew file mode 100644 index 00000000..607dd0a1 --- /dev/null +++ b/Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb new file mode 100644 index 00000000..0422f24a --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb @@ -0,0 +1,558 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Advanced Operational Amplifier Principles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.1,Page 6" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "open output voltage is 0.5 V\n", + "resistance lower loaded is 333.333 ohm\n", + "loaded output voltage is 0.25 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=1000.0;\n", + "R2=1000.0;\n", + "Rl=500.0#load resistance\n", + "V=1.0#input voltage\n", + "\n", + "#calculation\n", + "Vo=(R2/(R1+R2))*V;\n", + "Rll=1/((1/R2)+(1/Rl))#lower loaded resistance\n", + "Vol=(Rll/(R2+Rll))*V;\n", + "\n", + "#result\n", + "print \"open output voltage is\",round(Vo,3),\"V\"\n", + "print \"resistance lower loaded is\",round(Rll,3),\"ohm\"\n", + "print \"loaded output voltage is\",round(Vol,3),\"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.2,Page 11" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistance is 1.01 Kohm\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=100000.0#resistance\n", + "Acl=100.0#amplifier gain\n", + "\n", + "#calculation\n", + "Ri=Rf/(Acl-1);\n", + "\n", + "#result\n", + "print \"input resistance is\",round(Ri/1000,2), \"Kohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.3,Page 17" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current through Ri1 is 178.571 microAmp\n", + "current through Ri2 is 31.915 microAmp\n", + "current through Ri2 is 31.915 microAmp\n", + "current through Rf is 210.486 microAmp\n", + "voltage dropped is 2.105 V\n", + "output voltage 1 is -2.105 V\n", + "output voltage is 2.105 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vni=0.0#non inverting voltage\n", + "Vinv=0.0;#inverting voltage\n", + "Vri1=1.0;\n", + "Vri2=15.0;\n", + "Ri1=5600.0#resistance\n", + "Ri2=470000.0;\n", + "Rf=10000.0#load resistance\n", + "\n", + "#calculation\n", + "Ir1=Vri1/Ri1;\n", + "Ir2=Vri2/Ri2;\n", + "Irf=(Vri1/Ri1)+(Vri2/Ri2);\n", + "Vr=Irf*Rf;\n", + "Vo1=-Vr;\n", + "Vo=Irf*Rf;\n", + "\n", + "#result\n", + "print \"current through Ri1 is\",round(Ir1*1e6,3), \"microAmp\"\n", + "print \"current through Ri2 is\",round(Ir2*1e6,3), \"microAmp\"\n", + "print \"current through Ri2 is\",round(Ir2*1e6,3),\"microAmp\"\n", + "print \"current through Rf is\",round(Irf*1e6,3), \"microAmp\"\n", + "print \"voltage dropped is\",round(Vr,3), \"V\"\n", + "print \"output voltage 1 is\",round(Vo1,3), \"V\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.4,Page 25" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "inverting voltage is 4.955 V\n", + "non inverting voltage is 4.955 V\n", + "current through Rf2 is 42.698 microA\n", + "current through Ri2 is 42.698 microA\n", + "voltage dropped is 4.056 V\n", + "output voltage is 884.897 mV\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ri1=950.00;#ohm\n", + "Ri2=1050.00;\n", + "Rf1=105000.00;#resistance\n", + "Rf2=95000.00;\n", + "Vin=5.00;#voltage\n", + "\n", + "#calculation\n", + "Vinv=(Rf1/(Rf1+Ri1))*Vin;\n", + "Vni=Vinv;\n", + "Irf2=(Vin-Vinv)/Ri2;\n", + "Iri2=Irf2;\n", + "Vrf2=Irf2*Rf2;\n", + "Vo=Vinv-Vrf2-.014;\n", + "\n", + "#result\n", + "print \"inverting voltage is\",round(Vinv,3), \"V\"\n", + "print \"non inverting voltage is\",round (Vni,3), \"V\"\n", + "print \"current through Rf2 is\",round(Irf2*1e6,3), \"microA\"\n", + "print \"current through Ri2 is\",round(Iri2*1e6,3), \"microA\"\n", + "print \"voltage dropped is\",round(Vrf2,3), \"V\"\n", + "print \"output voltage is\",round(Vo*1000,3), \"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.5,Page 27" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 272.222 microA\n", + "input resistor current is 500.0 microA\n", + "feedback resistor current is 227.778 microAmp\n", + "resistor voltage is 227.778 mV\n", + "1st output voltage is 2.222 V\n", + "input resistor current is 327.778 microA\n", + "input resistor current is 827.778 microA\n", + "feedback resistor voltage is 7.45 V\n", + "2nd output voltage is 10.0 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vniu1=2.45;#V\n", + "Vniu2=2.55;#V\n", + "Vinvu1=2.45;\n", + "Vinvu2=2.55;\n", + "Ri1=9000.0;#ohm\n", + "Ri2=1000.0;#ohm\n", + "Rf1=1000.0;\n", + "Rf2=9000.0;\n", + "Rg=200.0;#load resistance\n", + "\n", + "#calculation\n", + "Iri1=Vniu1/Ri1;\n", + "Irg=(Vniu2-Vniu1)/Rg;\n", + "Irf1=Irg-Iri1;\n", + "Vrf1=Irf1*Rf1;\n", + "Vou1=Vniu1-Vrf1;\n", + "Iri2=(Vniu2-Vou1)/Ri2;\n", + "Irf2=Iri2+Irg;\n", + "Vrf2=Irf2*Rf2#feedback resistor voltage\n", + "Vo=Vrf2+Vniu2;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Iri1*1e6,3), \"microA\"\n", + "print \"input resistor current is\",round(Irg*1e6,3), \"microA\"\n", + "print \"feedback resistor current is\",round(Irf1*1e6,3), \"microAmp\"\n", + "print \"resistor voltage is\",round(Vrf1*1000,3), \"mV\"\n", + "print \"1st output voltage is\",round(Vou1,3), \"V\"\n", + "print \"input resistor current is\",round(Iri2*1e6,3), \"microA\"\n", + "print \"input resistor current is\",round(Irf2*1e6,3),\"microA\"\n", + "print \"feedback resistor voltage is\",round(Vrf2,3), \"V\"\n", + "print \"2nd output voltage is\",round(Vo,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.6.a,Page 29" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 128.0 microA\n", + "feedback resistor current is 128.0 microA\n", + "feedback resistor voltage is 5.018 V\n", + "output resistor voltage is 5.018 V\n", + "output voltage is 3.818 V\n", + "load current is 0.5 A\n", + "load power is 2.5 W\n", + "power dissipated in LM317 is 5.0 W\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vniu1=0;#V\n", + "Vinvu2=0;#V\n", + "Vref=2.56;\n", + "Rl=10000.0;#ohm\n", + "Rf=39200.0;#ohm\n", + "Ro=10.0;#resistance\n", + "Vdc1=5.0;\n", + "Vdc2=15.0;\n", + "Idc=0.5;#current\n", + "\n", + "#calculation\n", + "Iu1=(Vref/Rl)*.5;\n", + "Irf=Iu1;\n", + "Vrf=Irf*Rf;\n", + "Vout=Vrf+Vinvu2;\n", + "Eo=Vout-1.2;\n", + "Iload=Vdc1/Ro;\n", + "Pload=Vdc1**2/Ro;\n", + "Plm317=(Vdc2-Vdc1)*Idc;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Iu1*1e6,3), \"microA\"\n", + "print \"feedback resistor current is\",round(Irf*1e6,3), \"microA\"\n", + "print \"feedback resistor voltage is\",round(Vrf,3), \"V\"\n", + "print \"output resistor voltage is\",round(Vout,3), \"V\"\n", + "print \"output voltage is\",round(Eo,3), \"V\"\n", + "print \"load current is\",round(Iload,3), \"A\"\n", + "print \"load power is\",round(Pload,3), \"W\"\n", + "print \"power dissipated in LM317 is\",round(Plm317,3), \"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.6.b,Page 31" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 360.36 microamp\n", + "inverting voltage 1 & 2 is 396.396 mV\n", + "current across Rs is 3.964 A\n", + "emitter voltage is 8.324 V\n", + "output voltage is 10.124 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=4;#V\n", + "Vs=1.8;#V\n", + "Rf=10000.0;#ohm\n", + "Ri=1100.0;#ohm\n", + "Rl=2.0;#ohm\n", + "Rs=0.1;#ohm\n", + "\n", + "#calculation\n", + "Irf=Vin/(Rf+Ri);\n", + "Vni=Irf*Ri;\n", + "Ir=Vni/Rs;\n", + "Ve=Ir*(Rl+Rs);\n", + "Vo=Ve+Vs;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Irf*1e6,3),\"microamp\"\n", + "print \"inverting voltage 1 & 2 is\",round(Vni*1000,3), \"mV\"\n", + "print \"current across Rs is\",round(Ir,3), \"A\"\n", + "print \"emitter voltage is\",round(Ve,3), \"V\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.7,Page 36" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 9.899 V\n", + "power delivered is 12.25 W\n", + "load voltage is 28.284 V\n" + ] + } + ], + "source": [ + "#finding voltage and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vs=18.0;#V\n", + "Rl=8.0;#load resistance\n", + "Pll=100.0;#power\n", + "\n", + "#calculation\n", + "Vlp=Vs-4;\n", + "Vlr=Vlp/(2**(.5));\n", + "Pl=(Vlr**2)/Rl;\n", + "Vl=(Pll*Rl)**(.5);\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vlr,3), \"V\"\n", + "print \"power delivered is\",round(Pl,3), \"W\"\n", + "print \"load voltage is\",round(Vl,3), \"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.9,Page 44" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 37.34 V\n", + "V+ is 45.34 V ;V- is 29.34 V\n" + ] + } + ], + "source": [ + "#finding output volatage and range \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "import numpy as np\n", + "Vp=6.0;#V\n", + "Ra=10.0;#Kohm\n", + "Rb=1800.0;#ohm\n", + "V=8.0;\n", + "#solving for Ir & Vo\n", + "a=np.array([[1.0,-124.6e-6],[7800.0,-1.0]])\n", + "b=np.array([134.6e-6,0.0])\n", + "\n", + "#calculation\n", + "x=np.linalg.solve(a,b);\n", + "Vo=x[1];\n", + "Va=Vo+V;\n", + "Vb=Vo-V;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vo,2), \"V\"\n", + "print \"V+ is\",round(Va,2), \"V ;V- is\",round(Vb,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.11,Page 50" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output current is 4.091 mA\n", + "output voltage is 45.409 V\n", + "gain output voltage 1 is 13.356 V\n", + "gain output voltage 2 is 0.38 V\n" + ] + } + ], + "source": [ + "#finding output voltage and gain output voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=4.5;\n", + "R1=1100.0;\n", + "R2=10000.0;\n", + "\n", + "G1=3.4#gain 1\n", + "G2=120.0#gain 2\n", + "\n", + "#calculation\n", + "Ir=Vin/R1;\n", + "Vo=Ir*(R1+R2);\n", + "Vuo1=Vo/G1;\n", + "Vuo2=Vo/G2;\n", + "\n", + "#result\n", + "print \"output current is\",round(Ir*1000,3),\"mA\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"\n", + "print \"gain output voltage 1 is\",round(Vuo1,3), \"V\"\n", + "print \"gain output voltage 2 is\",round(Vuo2,2),\"V\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1_1.ipynb new file mode 100644 index 00000000..0422f24a --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1_1.ipynb @@ -0,0 +1,558 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Advanced Operational Amplifier Principles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.1,Page 6" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "open output voltage is 0.5 V\n", + "resistance lower loaded is 333.333 ohm\n", + "loaded output voltage is 0.25 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=1000.0;\n", + "R2=1000.0;\n", + "Rl=500.0#load resistance\n", + "V=1.0#input voltage\n", + "\n", + "#calculation\n", + "Vo=(R2/(R1+R2))*V;\n", + "Rll=1/((1/R2)+(1/Rl))#lower loaded resistance\n", + "Vol=(Rll/(R2+Rll))*V;\n", + "\n", + "#result\n", + "print \"open output voltage is\",round(Vo,3),\"V\"\n", + "print \"resistance lower loaded is\",round(Rll,3),\"ohm\"\n", + "print \"loaded output voltage is\",round(Vol,3),\"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.2,Page 11" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistance is 1.01 Kohm\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=100000.0#resistance\n", + "Acl=100.0#amplifier gain\n", + "\n", + "#calculation\n", + "Ri=Rf/(Acl-1);\n", + "\n", + "#result\n", + "print \"input resistance is\",round(Ri/1000,2), \"Kohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.3,Page 17" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current through Ri1 is 178.571 microAmp\n", + "current through Ri2 is 31.915 microAmp\n", + "current through Ri2 is 31.915 microAmp\n", + "current through Rf is 210.486 microAmp\n", + "voltage dropped is 2.105 V\n", + "output voltage 1 is -2.105 V\n", + "output voltage is 2.105 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vni=0.0#non inverting voltage\n", + "Vinv=0.0;#inverting voltage\n", + "Vri1=1.0;\n", + "Vri2=15.0;\n", + "Ri1=5600.0#resistance\n", + "Ri2=470000.0;\n", + "Rf=10000.0#load resistance\n", + "\n", + "#calculation\n", + "Ir1=Vri1/Ri1;\n", + "Ir2=Vri2/Ri2;\n", + "Irf=(Vri1/Ri1)+(Vri2/Ri2);\n", + "Vr=Irf*Rf;\n", + "Vo1=-Vr;\n", + "Vo=Irf*Rf;\n", + "\n", + "#result\n", + "print \"current through Ri1 is\",round(Ir1*1e6,3), \"microAmp\"\n", + "print \"current through Ri2 is\",round(Ir2*1e6,3), \"microAmp\"\n", + "print \"current through Ri2 is\",round(Ir2*1e6,3),\"microAmp\"\n", + "print \"current through Rf is\",round(Irf*1e6,3), \"microAmp\"\n", + "print \"voltage dropped is\",round(Vr,3), \"V\"\n", + "print \"output voltage 1 is\",round(Vo1,3), \"V\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.4,Page 25" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "inverting voltage is 4.955 V\n", + "non inverting voltage is 4.955 V\n", + "current through Rf2 is 42.698 microA\n", + "current through Ri2 is 42.698 microA\n", + "voltage dropped is 4.056 V\n", + "output voltage is 884.897 mV\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ri1=950.00;#ohm\n", + "Ri2=1050.00;\n", + "Rf1=105000.00;#resistance\n", + "Rf2=95000.00;\n", + "Vin=5.00;#voltage\n", + "\n", + "#calculation\n", + "Vinv=(Rf1/(Rf1+Ri1))*Vin;\n", + "Vni=Vinv;\n", + "Irf2=(Vin-Vinv)/Ri2;\n", + "Iri2=Irf2;\n", + "Vrf2=Irf2*Rf2;\n", + "Vo=Vinv-Vrf2-.014;\n", + "\n", + "#result\n", + "print \"inverting voltage is\",round(Vinv,3), \"V\"\n", + "print \"non inverting voltage is\",round (Vni,3), \"V\"\n", + "print \"current through Rf2 is\",round(Irf2*1e6,3), \"microA\"\n", + "print \"current through Ri2 is\",round(Iri2*1e6,3), \"microA\"\n", + "print \"voltage dropped is\",round(Vrf2,3), \"V\"\n", + "print \"output voltage is\",round(Vo*1000,3), \"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.5,Page 27" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 272.222 microA\n", + "input resistor current is 500.0 microA\n", + "feedback resistor current is 227.778 microAmp\n", + "resistor voltage is 227.778 mV\n", + "1st output voltage is 2.222 V\n", + "input resistor current is 327.778 microA\n", + "input resistor current is 827.778 microA\n", + "feedback resistor voltage is 7.45 V\n", + "2nd output voltage is 10.0 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vniu1=2.45;#V\n", + "Vniu2=2.55;#V\n", + "Vinvu1=2.45;\n", + "Vinvu2=2.55;\n", + "Ri1=9000.0;#ohm\n", + "Ri2=1000.0;#ohm\n", + "Rf1=1000.0;\n", + "Rf2=9000.0;\n", + "Rg=200.0;#load resistance\n", + "\n", + "#calculation\n", + "Iri1=Vniu1/Ri1;\n", + "Irg=(Vniu2-Vniu1)/Rg;\n", + "Irf1=Irg-Iri1;\n", + "Vrf1=Irf1*Rf1;\n", + "Vou1=Vniu1-Vrf1;\n", + "Iri2=(Vniu2-Vou1)/Ri2;\n", + "Irf2=Iri2+Irg;\n", + "Vrf2=Irf2*Rf2#feedback resistor voltage\n", + "Vo=Vrf2+Vniu2;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Iri1*1e6,3), \"microA\"\n", + "print \"input resistor current is\",round(Irg*1e6,3), \"microA\"\n", + "print \"feedback resistor current is\",round(Irf1*1e6,3), \"microAmp\"\n", + "print \"resistor voltage is\",round(Vrf1*1000,3), \"mV\"\n", + "print \"1st output voltage is\",round(Vou1,3), \"V\"\n", + "print \"input resistor current is\",round(Iri2*1e6,3), \"microA\"\n", + "print \"input resistor current is\",round(Irf2*1e6,3),\"microA\"\n", + "print \"feedback resistor voltage is\",round(Vrf2,3), \"V\"\n", + "print \"2nd output voltage is\",round(Vo,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.6.a,Page 29" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 128.0 microA\n", + "feedback resistor current is 128.0 microA\n", + "feedback resistor voltage is 5.018 V\n", + "output resistor voltage is 5.018 V\n", + "output voltage is 3.818 V\n", + "load current is 0.5 A\n", + "load power is 2.5 W\n", + "power dissipated in LM317 is 5.0 W\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vniu1=0;#V\n", + "Vinvu2=0;#V\n", + "Vref=2.56;\n", + "Rl=10000.0;#ohm\n", + "Rf=39200.0;#ohm\n", + "Ro=10.0;#resistance\n", + "Vdc1=5.0;\n", + "Vdc2=15.0;\n", + "Idc=0.5;#current\n", + "\n", + "#calculation\n", + "Iu1=(Vref/Rl)*.5;\n", + "Irf=Iu1;\n", + "Vrf=Irf*Rf;\n", + "Vout=Vrf+Vinvu2;\n", + "Eo=Vout-1.2;\n", + "Iload=Vdc1/Ro;\n", + "Pload=Vdc1**2/Ro;\n", + "Plm317=(Vdc2-Vdc1)*Idc;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Iu1*1e6,3), \"microA\"\n", + "print \"feedback resistor current is\",round(Irf*1e6,3), \"microA\"\n", + "print \"feedback resistor voltage is\",round(Vrf,3), \"V\"\n", + "print \"output resistor voltage is\",round(Vout,3), \"V\"\n", + "print \"output voltage is\",round(Eo,3), \"V\"\n", + "print \"load current is\",round(Iload,3), \"A\"\n", + "print \"load power is\",round(Pload,3), \"W\"\n", + "print \"power dissipated in LM317 is\",round(Plm317,3), \"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.6.b,Page 31" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "input resistor current is 360.36 microamp\n", + "inverting voltage 1 & 2 is 396.396 mV\n", + "current across Rs is 3.964 A\n", + "emitter voltage is 8.324 V\n", + "output voltage is 10.124 V\n" + ] + } + ], + "source": [ + "#finding voltage current resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=4;#V\n", + "Vs=1.8;#V\n", + "Rf=10000.0;#ohm\n", + "Ri=1100.0;#ohm\n", + "Rl=2.0;#ohm\n", + "Rs=0.1;#ohm\n", + "\n", + "#calculation\n", + "Irf=Vin/(Rf+Ri);\n", + "Vni=Irf*Ri;\n", + "Ir=Vni/Rs;\n", + "Ve=Ir*(Rl+Rs);\n", + "Vo=Ve+Vs;\n", + "\n", + "#result\n", + "print \"input resistor current is\",round(Irf*1e6,3),\"microamp\"\n", + "print \"inverting voltage 1 & 2 is\",round(Vni*1000,3), \"mV\"\n", + "print \"current across Rs is\",round(Ir,3), \"A\"\n", + "print \"emitter voltage is\",round(Ve,3), \"V\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.7,Page 36" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 9.899 V\n", + "power delivered is 12.25 W\n", + "load voltage is 28.284 V\n" + ] + } + ], + "source": [ + "#finding voltage and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vs=18.0;#V\n", + "Rl=8.0;#load resistance\n", + "Pll=100.0;#power\n", + "\n", + "#calculation\n", + "Vlp=Vs-4;\n", + "Vlr=Vlp/(2**(.5));\n", + "Pl=(Vlr**2)/Rl;\n", + "Vl=(Pll*Rl)**(.5);\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vlr,3), \"V\"\n", + "print \"power delivered is\",round(Pl,3), \"W\"\n", + "print \"load voltage is\",round(Vl,3), \"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.9,Page 44" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 37.34 V\n", + "V+ is 45.34 V ;V- is 29.34 V\n" + ] + } + ], + "source": [ + "#finding output volatage and range \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "import numpy as np\n", + "Vp=6.0;#V\n", + "Ra=10.0;#Kohm\n", + "Rb=1800.0;#ohm\n", + "V=8.0;\n", + "#solving for Ir & Vo\n", + "a=np.array([[1.0,-124.6e-6],[7800.0,-1.0]])\n", + "b=np.array([134.6e-6,0.0])\n", + "\n", + "#calculation\n", + "x=np.linalg.solve(a,b);\n", + "Vo=x[1];\n", + "Va=Vo+V;\n", + "Vb=Vo-V;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vo,2), \"V\"\n", + "print \"V+ is\",round(Va,2), \"V ;V- is\",round(Vb,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 1.11,Page 50" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output current is 4.091 mA\n", + "output voltage is 45.409 V\n", + "gain output voltage 1 is 13.356 V\n", + "gain output voltage 2 is 0.38 V\n" + ] + } + ], + "source": [ + "#finding output voltage and gain output voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=4.5;\n", + "R1=1100.0;\n", + "R2=10000.0;\n", + "\n", + "G1=3.4#gain 1\n", + "G2=120.0#gain 2\n", + "\n", + "#calculation\n", + "Ir=Vin/R1;\n", + "Vo=Ir*(R1+R2);\n", + "Vuo1=Vo/G1;\n", + "Vuo2=Vo/G2;\n", + "\n", + "#result\n", + "print \"output current is\",round(Ir*1000,3),\"mA\"\n", + "print \"output voltage is\",round(Vo,3), \"V\"\n", + "print \"gain output voltage 1 is\",round(Vuo1,3), \"V\"\n", + "print \"gain output voltage 2 is\",round(Vuo2,2),\"V\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb new file mode 100644 index 00000000..9d88fe28 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb @@ -0,0 +1,65 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2: Power Electronics Circuit Layout" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 2.9,Page 83" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load current is 3.75 A\n", + "wiring resistance is 26.67 mohm\n", + "resistance per inch is 1666.67 microohm/inch\n" + ] + } + ], + "source": [ + "#finding an appropriate wire gauge\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=15.0;#voltage\n", + "R=4.0;#resistance\n", + "Vl=.1;\n", + "D=8.0;#duty cycle\n", + "\n", + "#calculation\n", + "Il=V/R;\n", + "Rw=Vl/Il#wiring resistance\n", + "Ri=Rw/(2*D);\n", + "\n", + "#result\n", + "print \"load current is\",round(Il,2), \"A\"\n", + "print \"wiring resistance is\",round(Rw*1000,2), \"mohm\"\n", + "print \"resistance per inch is\",round(Ri*1e6,2), \"microohm/inch\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2_1.ipynb new file mode 100644 index 00000000..9d88fe28 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2_1.ipynb @@ -0,0 +1,65 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2: Power Electronics Circuit Layout" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 2.9,Page 83" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load current is 3.75 A\n", + "wiring resistance is 26.67 mohm\n", + "resistance per inch is 1666.67 microohm/inch\n" + ] + } + ], + "source": [ + "#finding an appropriate wire gauge\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=15.0;#voltage\n", + "R=4.0;#resistance\n", + "Vl=.1;\n", + "D=8.0;#duty cycle\n", + "\n", + "#calculation\n", + "Il=V/R;\n", + "Rw=Vl/Il#wiring resistance\n", + "Ri=Rw/(2*D);\n", + "\n", + "#result\n", + "print \"load current is\",round(Il,2), \"A\"\n", + "print \"wiring resistance is\",round(Rw*1000,2), \"mohm\"\n", + "print \"resistance per inch is\",round(Ri*1e6,2), \"microohm/inch\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb new file mode 100644 index 00000000..4129f088 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb @@ -0,0 +1,481 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 : Power Parameter Calculations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.1,Page 109" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ramp current is 450.0 kAt/s\n", + "current at 5 micro sec is 2.25 A\n" + ] + } + ], + "source": [ + "#finding ramp current and current at 5 micro sec\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=3.0;\n", + "f=150000.0;\n", + "t=5.0e-6;\n", + "\n", + "#calculation\n", + "T=1/f;\n", + "It=Ip/T;\n", + "I5=It*t;\n", + "\n", + "#result\n", + "print \"ramp current is\",round(It/1000,3), \"kAt/s\"\n", + "print \"current at 5 micro sec is\",round(I5,3), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.2,Page 110" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current in time 0<=t<800ns is 3.575 A\n", + "current in time 800ns<=t<2 microsec is 0.0 A\n", + "current in time 400ns is 1.85 A\n", + "current in time 1 microsec is 0.0 A\n" + ] + } + ], + "source": [ + "#finding current at different time\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=2.0;\n", + "f=500000.0;\n", + "Ir=.3;\n", + "Cd=.4#duty cycle\n", + "t1=4.0e-7;\n", + "t2=1.0e-6;\n", + "I1=0;\n", + "\n", + "#calculation\n", + "T=1/f;\n", + "Im=Ip-Ir;\n", + "I4=(Ip-Im)*t1/(Cd*T)+Im;\n", + "It=(Ip-Im)*t/(Cd*T)+Im;\n", + "It1=0\n", + "\n", + "#resilt\n", + "print \"current in time 0<=t<800ns is\",round(It,3),\"A\"\n", + "print \"current in time 800ns<=t<2 microsec is\",round(It1,2), \"A\"\n", + "print \"current in time 400ns is\",round(I4,2), \"A\"\n", + "print \"current in time 1 microsec is\",round(I1,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.3,Page 115" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 54.02 V\n" + ] + } + ], + "source": [ + "#finding average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vr=120;\n", + "\n", + "#calculation\n", + "V=(Vr*2**.5)/pi;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(V,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.4,Page 119" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average current is 0.98 A\n" + ] + } + ], + "source": [ + "#finding average current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "f=100000.0;\n", + "Cd=.35#duty cycle\n", + "Ip=3.0;\n", + "Ir=.4;\n", + "\n", + "#calculation\n", + "Im=Ip-Ir;\n", + "T=1/f;\n", + "I=Cd*((Ip-Im)/2+Im)\n", + "\n", + "#result\n", + "print \"average current is\",round(I,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.5,Page 124" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 8.87 V\n" + ] + } + ], + "source": [ + "#finding rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=15.0;\n", + "Cd=.35;\n", + "f=100000.0;\n", + "\n", + "#calculation\n", + "V=Vp*Cd**.5;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(V,2), \"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.6,Page 127" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms current is 1.73 A\n" + ] + } + ], + "source": [ + "#finding rms current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=3.0;\n", + "f=100000.0;\n", + "\n", + "#calculation\n", + "I=Ip/3**.5;\n", + "\n", + "#result\n", + "print \"rms current is\",round(I,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.7,Page 133" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 85.0 V\n" + ] + } + ], + "source": [ + "#finding rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=170.0;\n", + "f=60.0;\n", + "\n", + "#calculation\n", + "Vr=Vp/2;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vr,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.8,Page 140" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power required is 2.42 hp\n", + "Pick a 5HP motor\n", + "current required is 18.84 amp\n" + ] + } + ], + "source": [ + "#finding current and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "M=1000.0;\n", + "H=40.0;\n", + "T=30.0;\n", + "E1=.9;\n", + "E2=.5;\n", + "V=220.0;\n", + "P1=5.0;\n", + "\n", + "#calculation\n", + "W=M*H;\n", + "P=(W)/(T*550);\n", + "Pe=P1/E1;\n", + "I=(Pe*746)/V;\n", + "\n", + "#result\n", + "print \"power required is\",round(P,2), \"hp\"\n", + "print('Pick a 5HP motor')\n", + "print \"current required is\",round(I,2), \"amp\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.9,Page 145" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered to the load is 6.36 Watt\n", + "power provided by each supply is 7.23 Watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=1.0;\n", + "Ri=1100.0;\n", + "Rf=10000.0;\n", + "Rl=8.0;\n", + "Vs=18.0;\n", + "\n", + "#calculation\n", + "Ir=Vin/Ri;\n", + "Vl=Ir*(Ri+Rf);\n", + "Ip=Vl/Rl;\n", + "Pl=(Vl*Ip)/2;\n", + "Ps=(Vs*Ip)/pi;\n", + "\n", + "#result\n", + "print \"power delivered to the load is\",round(Pl,2),\"Watt\"\n", + "print \"power provided by each supply is\",round(Ps,2), \"Watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.10,Page 149" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 141.67 Watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=170.0;\n", + "R=51.0;\n", + "\n", + "#calculation\n", + "I=V/R;\n", + "P=(V*I)/4;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(P,2), \"Watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.11,Page 151" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power dissipated is 7.05 watt\n", + "power dissipated when transistor resistance is 0.2 hm is 0.35 watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=7.2;\n", + "Rq=.2;\n", + "Rl=4;\n", + "D=.6;\n", + "\n", + "#calculation\n", + "Ip=V/(Rq+Rl);\n", + "Vl=Ip*Rl;\n", + "P=D*Vl*Ip;\n", + "Vq=Ip*Rq;\n", + "Pq=D*Vq*Ip;\n", + "\n", + "#result\n", + "print \"power dissipated is\",round(P,2), \"watt\"\n", + "print \"power dissipated when transistor resistance is 0.2 hm is\",round(Pq,2), \"watt\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3_1.ipynb new file mode 100644 index 00000000..4129f088 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3_1.ipynb @@ -0,0 +1,481 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 : Power Parameter Calculations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.1,Page 109" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ramp current is 450.0 kAt/s\n", + "current at 5 micro sec is 2.25 A\n" + ] + } + ], + "source": [ + "#finding ramp current and current at 5 micro sec\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=3.0;\n", + "f=150000.0;\n", + "t=5.0e-6;\n", + "\n", + "#calculation\n", + "T=1/f;\n", + "It=Ip/T;\n", + "I5=It*t;\n", + "\n", + "#result\n", + "print \"ramp current is\",round(It/1000,3), \"kAt/s\"\n", + "print \"current at 5 micro sec is\",round(I5,3), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.2,Page 110" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current in time 0<=t<800ns is 3.575 A\n", + "current in time 800ns<=t<2 microsec is 0.0 A\n", + "current in time 400ns is 1.85 A\n", + "current in time 1 microsec is 0.0 A\n" + ] + } + ], + "source": [ + "#finding current at different time\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=2.0;\n", + "f=500000.0;\n", + "Ir=.3;\n", + "Cd=.4#duty cycle\n", + "t1=4.0e-7;\n", + "t2=1.0e-6;\n", + "I1=0;\n", + "\n", + "#calculation\n", + "T=1/f;\n", + "Im=Ip-Ir;\n", + "I4=(Ip-Im)*t1/(Cd*T)+Im;\n", + "It=(Ip-Im)*t/(Cd*T)+Im;\n", + "It1=0\n", + "\n", + "#resilt\n", + "print \"current in time 0<=t<800ns is\",round(It,3),\"A\"\n", + "print \"current in time 800ns<=t<2 microsec is\",round(It1,2), \"A\"\n", + "print \"current in time 400ns is\",round(I4,2), \"A\"\n", + "print \"current in time 1 microsec is\",round(I1,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.3,Page 115" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 54.02 V\n" + ] + } + ], + "source": [ + "#finding average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vr=120;\n", + "\n", + "#calculation\n", + "V=(Vr*2**.5)/pi;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(V,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.4,Page 119" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average current is 0.98 A\n" + ] + } + ], + "source": [ + "#finding average current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "f=100000.0;\n", + "Cd=.35#duty cycle\n", + "Ip=3.0;\n", + "Ir=.4;\n", + "\n", + "#calculation\n", + "Im=Ip-Ir;\n", + "T=1/f;\n", + "I=Cd*((Ip-Im)/2+Im)\n", + "\n", + "#result\n", + "print \"average current is\",round(I,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.5,Page 124" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 8.87 V\n" + ] + } + ], + "source": [ + "#finding rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=15.0;\n", + "Cd=.35;\n", + "f=100000.0;\n", + "\n", + "#calculation\n", + "V=Vp*Cd**.5;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(V,2), \"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.6,Page 127" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms current is 1.73 A\n" + ] + } + ], + "source": [ + "#finding rms current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ip=3.0;\n", + "f=100000.0;\n", + "\n", + "#calculation\n", + "I=Ip/3**.5;\n", + "\n", + "#result\n", + "print \"rms current is\",round(I,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.7,Page 133" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 85.0 V\n" + ] + } + ], + "source": [ + "#finding rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=170.0;\n", + "f=60.0;\n", + "\n", + "#calculation\n", + "Vr=Vp/2;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vr,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.8,Page 140" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power required is 2.42 hp\n", + "Pick a 5HP motor\n", + "current required is 18.84 amp\n" + ] + } + ], + "source": [ + "#finding current and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "M=1000.0;\n", + "H=40.0;\n", + "T=30.0;\n", + "E1=.9;\n", + "E2=.5;\n", + "V=220.0;\n", + "P1=5.0;\n", + "\n", + "#calculation\n", + "W=M*H;\n", + "P=(W)/(T*550);\n", + "Pe=P1/E1;\n", + "I=(Pe*746)/V;\n", + "\n", + "#result\n", + "print \"power required is\",round(P,2), \"hp\"\n", + "print('Pick a 5HP motor')\n", + "print \"current required is\",round(I,2), \"amp\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.9,Page 145" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered to the load is 6.36 Watt\n", + "power provided by each supply is 7.23 Watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vin=1.0;\n", + "Ri=1100.0;\n", + "Rf=10000.0;\n", + "Rl=8.0;\n", + "Vs=18.0;\n", + "\n", + "#calculation\n", + "Ir=Vin/Ri;\n", + "Vl=Ir*(Ri+Rf);\n", + "Ip=Vl/Rl;\n", + "Pl=(Vl*Ip)/2;\n", + "Ps=(Vs*Ip)/pi;\n", + "\n", + "#result\n", + "print \"power delivered to the load is\",round(Pl,2),\"Watt\"\n", + "print \"power provided by each supply is\",round(Ps,2), \"Watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.10,Page 149" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 141.67 Watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=170.0;\n", + "R=51.0;\n", + "\n", + "#calculation\n", + "I=V/R;\n", + "P=(V*I)/4;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(P,2), \"Watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 3.11,Page 151" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power dissipated is 7.05 watt\n", + "power dissipated when transistor resistance is 0.2 hm is 0.35 watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=7.2;\n", + "Rq=.2;\n", + "Rl=4;\n", + "D=.6;\n", + "\n", + "#calculation\n", + "Ip=V/(Rq+Rl);\n", + "Vl=Ip*Rl;\n", + "P=D*Vl*Ip;\n", + "Vq=Ip*Rq;\n", + "Pq=D*Vq*Ip;\n", + "\n", + "#result\n", + "print \"power dissipated is\",round(P,2), \"watt\"\n", + "print \"power dissipated when transistor resistance is 0.2 hm is\",round(Pq,2), \"watt\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb new file mode 100644 index 00000000..706b4d0c --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb @@ -0,0 +1,733 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4: Linear Power Amplifier Integrated Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.1,Page 162" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 500.0 mV\n" + ] + } + ], + "source": [ + "#finding voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=1;\n", + "Ri=10;\n", + "Vi=0;\n", + "Ip=500;\n", + "\n", + "#calculation\n", + "Vrf=Ip*Rf;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vrf,2), \"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.2,Page 165" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency of OPA548 is 67.26 KHz\n", + "slew rate of OPA548 is 1.12 Mhz\n", + "the OPA548 can be used\n" + ] + } + ], + "source": [ + "#finding frequency\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=300.0;\n", + "P=35.0;\n", + "R=8.0;\n", + "S=10000.0;\n", + "fh=20.0;\n", + "\n", + "#calculation\n", + "Vl=(P*R)**.5;\n", + "Vp=Vl*2**.5;\n", + "Il=Vl/R;\n", + "f=S/(2*pi*Vp);\n", + "Ao=Vl/Vi;\n", + "G=Ao*fh;\n", + "\n", + "#result\n", + "print \"frequency of OPA548 is\",round(f,2), \"KHz\"\n", + "print \"slew rate of OPA548 is\",round(G,2), \"Mhz\"\n", + "print('the OPA548 can be used')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.3,Page 168" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 3.5 watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=10.0;\n", + "V=12.0;\n", + "Vl=5.0;\n", + "\n", + "#calculation\n", + "Pl=Vl**2/Rl;\n", + "I=Vl/Rl;\n", + "Ps=V*I;\n", + "Pic=Ps-Pl;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(Pic,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.4,Page 170" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vload Iload Pload Ps Pic\n", + "0.0 0.0 0.0 0.0 0.0\n", + "0.2 0.0 0.0 0.24 0.24\n", + "0.4 0.0 0.02 0.48 0.46\n", + "0.6 0.1 0.04 0.72 0.68\n", + "0.8 0.1 0.06 0.96 0.9\n", + "4.8 0.5 2.3 5.76 3.46\n", + "5.0 0.5 2.5 6.0 3.5\n", + "5.2 0.5 2.7 6.24 3.54\n", + "5.4 0.5 2.92 6.48 3.56\n", + "5.6 0.6 3.14 6.72 3.58\n", + "5.8 0.6 3.36 6.96 3.6\n", + "6.0 0.6 3.6 7.2 3.6\n", + "6.2 0.6 3.84 7.44 3.6\n", + "6.4 0.6 4.1 7.68 3.58\n", + "11.4 1.1 13.0 13.68 0.68\n", + "11.6 1.2 13.46 13.92 0.46\n", + "11.8 1.2 13.92 14.16 0.24\n", + "12.0 1.2 14.4 14.4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RHd+CBYp5bRERERERE\nREREREREREREREREREREJBn/DwWIrS4GjkBZAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f4fd8892750>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Vload vs Pic graph\n", + "\n", + "#initialisation of variable\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vload=[0.0, 0.2, 0.4, 0.6, 0.8, 4.8, 5.0, 5.2, 5.4, 5.6, 5.8, 6.0, 6.2, 6.4, 11.4, 11.6, 11.8, 12.0];\n", + "Iload=[0.0, 0.0, 0.0, 0.1, 0.1, 0.5, 0.5, 0.5, 0.5, 0.6, 0.6, 0.6, 0.6, 0.6, 1.1, 1.2, 1.2, 1.2];\n", + "Pload=[0.00, 0.00, 0.02, 0.04, 0.06, 2.30, 2.50, 2.70, 2.92, 3.14, 3.36, 3.60, 3.84, 4.10, 13.00, 13.46, 13.92, 14.40];\n", + "Ps=[0.00, 0.24, 0.48, 0.72, 0.96, 5.76, 6.00, 6.24, 6.48, 6.72, 6.96, 7.20, 7.44, 7.68, 13.68, 13.92, 14.16, 14.40];\n", + "Pic=[0.00, 0.24, 0.46, 0.68, 0.90, 3.46, 3.50, 3.54, 3.56, 3.58, 3.60, 3.60, 3.60, 3.58, 0.68, 0.46, 0.24, 0.00];\n", + "\n", + "#result\n", + "print('Vload Iload Pload Ps Pic');\n", + "for i in range(0,18):\n", + " print Vload[i],\" \",Iload[i],\" \",Pload[i],\" \",Ps[i],\" \", Pic[i]\n", + " \n", + "plt.plot(Vload,Pic);\n", + "plt.xlabel('load voltage (V)')\n", + "plt.ylabel('IC Power(W)')\n", + "plt.title('load voltage vs IC Power')\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.5,Page 173" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IC power is 2.57 W\n", + "total power is 3.82 W\n", + "dc supply current is 159.155 mA\n", + "power delivered is 1.25 watt\n" + ] + } + ], + "source": [ + "#finding different power and current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=12.0;\n", + "Vp=5.0;\n", + "R=10.0;\n", + "\n", + "#calculation\n", + "Ip=Vp/R;\n", + "Il=Ip/2**.5;\n", + "Pl=(Vp*Ip)/2;\n", + "Id=Ip/pi;\n", + "Pt=2*V*Ip/pi;\n", + "Pic=Pt-Pl;\n", + "\n", + "#result\n", + "print \"IC power is\",round(Pic,2), \"W\"\n", + "print \"total power is\",round(Pt,2), \"W\"\n", + "print \"dc supply current is\",round(Id*1000,3), \"mA\"\n", + "print \"power delivered is\",round(Pl,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.6,Page 179" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "thermal resistance is 24.61 C/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ts=40.0;\n", + "P=2.92;\n", + "Qj=2.5;\n", + "Qc=2.0;\n", + "Tj=125.0;\n", + "\n", + "#calculation\n", + "Qs=(Tj-Ts)/P-Qj-Qc;\n", + "\n", + "#result\n", + "print \"thermal resistance is\",round(Qs,2),\"C/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.7,Page 180" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vload Iload Pload Ps Pic\n", + "9.4 0.94 4.42 14.36 9.94\n", + "9.6 0.96 4.61 14.67 10.06\n", + "10.0 power delivered by IC in watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=24.0;\n", + "R=10.0;\n", + "Qs=4.0;\n", + "Tj=125.0;\n", + "Ta=40.0;\n", + "Qj=2.5;\n", + "Qc=2.0;\n", + "Vload=[9.4, 9.6];\n", + "Iload=[.94, .96];\n", + "Pload=[4.42, 4.61];\n", + "Ps=[14.36, 14.67];\n", + "Pic=[9.94, 10.06];\n", + "\n", + "#calculation\n", + "P=(Tj-Ta)/(Qj+Qc+Qs);\n", + "\n", + "#result\n", + "print('Vload Iload Pload Ps Pic');\n", + "for i in range(0,2):\n", + " print Vload[i],\" \",Iload[i],\" \",Pload[i],\" \",Ps[i],\" \", Pic[i]\n", + "print round(P,2),\"power delivered by IC in watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.8,Page 182" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "gain is 23.0\n", + "limit current is 4.01 A\n", + "output voltage is 46.0 V\n", + "maximum output voltage is 32.0 V\n" + ] + } + ], + "source": [ + "#finding current and voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=22.0;\n", + "Ri=1.0;\n", + "Rs=15.0;\n", + "I=4.75;\n", + "Rc=4.0;\n", + "Vp=2.0;\n", + "Rl=8.0;\n", + "Im=4.0;\n", + "\n", + "#calculation\n", + "Av=1+(Rf/Ri);\n", + "Il=(Rs*I)/(Rc+13.75);\n", + "Vo=Vp*Av;\n", + "V=Im*Rl;\n", + "\n", + "#result\n", + "print \"gain is\",round(Av,2)\n", + "print \"limit current is\",round(Il,2), \"A\"\n", + "print \"output voltage is\",round(Vo,2), \"V\"\n", + "print \"maximum output voltage is\",round(V,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.9,Page 185" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "loudness ofsound is 108.06 dB\n" + ] + } + ], + "source": [ + "#finding loudness\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "D=8.0;\n", + "d=1.0;\n", + "I=90.0;\n", + "\n", + "#calculation\n", + "Is=20*log(d/D,10);\n", + "Ir=I-Is;\n", + "\n", + "#result\n", + "print \"loudness ofsound is\",round(Ir,2), \"dB\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.10,Page 186" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "19.95 power provided in watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "D=1.0;\n", + "I1=108.0;\n", + "I2=95.0;\n", + "P=1.0;\n", + "\n", + "#calculation\n", + "I=I1-I2;\n", + "Pr=P*10**(I/10);\n", + "\n", + "#result\n", + "print \"power provided is\",round(Pr,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.11,Page 188" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 12.65 V\n", + "gain is 10.28\n" + ] + } + ], + "source": [ + "#finding output voltage and gain\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "P=20;\n", + "R=8;\n", + "Vi=1.23;\n", + "\n", + "#calculation\n", + "V=(P*R)**.5;\n", + "G=V/Vi;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(V,2), \"V\"\n", + "print \"gain is\",round(G,2)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.12,Page 191" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistor b/w pins 1&8 is 600.0 ohm\n", + "thus pick a 620 ohm resistor\n", + "capacitor b/w pins 1&8 is 22.46 microF\n", + "thus pick a 27 microF capacitor\n" + ] + } + ], + "source": [ + "#finding resistor and capacitor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "G=40.0;\n", + "f=80.0;\n", + "R1=15000.0;\n", + "R2=150.0;\n", + "\n", + "#calculation\n", + "R=2*(R1/G)-R2;\n", + "R11=620;\n", + "C=1/(2*pi*f*R11/7);\n", + "\n", + "#result\n", + "print \"resistor b/w pins 1&8 is\",round(R,2),\"ohm\"\n", + "print('thus pick a 620 ohm resistor')\n", + "print \"capacitor b/w pins 1&8 is\",round(C*1e6,2), \"microF\"\n", + "print('thus pick a 27 microF capacitor')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.13,Page 193" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power dissipated is 140.0 mW\n", + "thermal resistance is 628.93 degree C/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "V=5.0#voltage\n", + "Tm=150.0#temperature\n", + "Ta=50.0#temperature\n", + "Qa=107.0;\n", + "Qc=37.0;\n", + "Ps=299.0;\n", + "\n", + "#calculation\n", + "Vd=V/2;\n", + "Vm=V-1;\n", + "Vp=Vm-Vd;\n", + "Vr=Vp/2**.5;\n", + "Pl=1000*Vr**2/R;\n", + "Pl=140;\n", + "Pic=Ps-Pl;\n", + "Q=(Tm-Ta)/Pic;\n", + "\n", + "#result\n", + "print \"power dissipated is\",round(Pl,2), \"mW\"\n", + "print \"thermal resistance is\",round(Q*1000,2),\"degree C/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.14,Page 197" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power deliverd is 562.5 mwatt\n" + ] + } + ], + "source": [ + "#finding power delivered\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "V=5.0#voltage\n", + "\n", + "#calculation\n", + "Vl=V-1;\n", + "Vp=Vl-1;\n", + "Vr=Vp/2**.5;\n", + "P=Vr**2/R;\n", + "\n", + "#result\n", + "print \"power deliverd is\",round(P*1000,2), \"mwatt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.15,Page 201" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 85.56 watt\n", + "thermal resistance is 1.4 degreeC/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "Ts=35.0#temperature\n", + "Ta=150.0#temperature\n", + "Vm=42.0#voltage\n", + "\n", + "#calcuation\n", + "Vp=Vm-5;\n", + "Vr=Vp/2**.5;\n", + "Pm=Vr**2/R;\n", + "P=45;\n", + "Qs=(Ta-Ts)/P-1.2;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(Pm,2), \"watt\"\n", + "print \"thermal resistance is\",round(round(Qs*10)/10,2), \"degreeC/W\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4_1.ipynb new file mode 100644 index 00000000..706b4d0c --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4_1.ipynb @@ -0,0 +1,733 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4: Linear Power Amplifier Integrated Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.1,Page 162" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 500.0 mV\n" + ] + } + ], + "source": [ + "#finding voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=1;\n", + "Ri=10;\n", + "Vi=0;\n", + "Ip=500;\n", + "\n", + "#calculation\n", + "Vrf=Ip*Rf;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vrf,2), \"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.2,Page 165" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency of OPA548 is 67.26 KHz\n", + "slew rate of OPA548 is 1.12 Mhz\n", + "the OPA548 can be used\n" + ] + } + ], + "source": [ + "#finding frequency\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=300.0;\n", + "P=35.0;\n", + "R=8.0;\n", + "S=10000.0;\n", + "fh=20.0;\n", + "\n", + "#calculation\n", + "Vl=(P*R)**.5;\n", + "Vp=Vl*2**.5;\n", + "Il=Vl/R;\n", + "f=S/(2*pi*Vp);\n", + "Ao=Vl/Vi;\n", + "G=Ao*fh;\n", + "\n", + "#result\n", + "print \"frequency of OPA548 is\",round(f,2), \"KHz\"\n", + "print \"slew rate of OPA548 is\",round(G,2), \"Mhz\"\n", + "print('the OPA548 can be used')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.3,Page 168" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 3.5 watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=10.0;\n", + "V=12.0;\n", + "Vl=5.0;\n", + "\n", + "#calculation\n", + "Pl=Vl**2/Rl;\n", + "I=Vl/Rl;\n", + "Ps=V*I;\n", + "Pic=Ps-Pl;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(Pic,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.4,Page 170" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vload Iload Pload Ps Pic\n", + "0.0 0.0 0.0 0.0 0.0\n", + "0.2 0.0 0.0 0.24 0.24\n", + "0.4 0.0 0.02 0.48 0.46\n", + "0.6 0.1 0.04 0.72 0.68\n", + "0.8 0.1 0.06 0.96 0.9\n", + "4.8 0.5 2.3 5.76 3.46\n", + "5.0 0.5 2.5 6.0 3.5\n", + "5.2 0.5 2.7 6.24 3.54\n", + "5.4 0.5 2.92 6.48 3.56\n", + "5.6 0.6 3.14 6.72 3.58\n", + "5.8 0.6 3.36 6.96 3.6\n", + "6.0 0.6 3.6 7.2 3.6\n", + "6.2 0.6 3.84 7.44 3.6\n", + "6.4 0.6 4.1 7.68 3.58\n", + "11.4 1.1 13.0 13.68 0.68\n", + "11.6 1.2 13.46 13.92 0.46\n", + "11.8 1.2 13.92 14.16 0.24\n", + "12.0 1.2 14.4 14.4 0.0\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEZCAYAAACXRVJOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmcU/W5x/EPi6yiQLGggoKoVL1WKBQBoQRBK4tQsVZF\nrlXqxVuwLrhVkTpVLFdxAVFkcekgICibQBFRJCDKKgNaBEVAZVMpoCDI4kzuH8+JE0JmJjOTk5Nz\n5vt+vfKaLCcnT2bg95zfDiIiIiIiIiIiIiIiIiIiIiIiIiIiIiKl8jnQ0YXzZgEvu3Dez3EnXpEy\nobzXAUhGizg3N87rhth4s3An6aRTHnBGzOOzgdeAncC3wBrgDhL/Pw45798H7AXWAze4F6oEgRKC\niD80BpYBXwD/BdQErgKaAzUKeM8257UTgHuBscA5rkd6rIoefKaIpNhm4GLnfmVgGFbIbAOeAio5\nr9UEZgPfALuBWcCpMedpBCzErlTnASMo+Op9HdA15nFF7Iq4qfO4O7AW2AMsAH6RIN7LgEPAYewK\nOcd5/UbgYyeOjUDfuM++B9gObAVu4ugr9MrA41iB/BXwHFAlQfyVsav382KeOwk4ANRxbrOd+HcB\ni4ByCX8TR3/+eOz3mqwQsCXuuW+AntjfraC/5ULnGICLnBi6OI87kv+7BOiD/T53A3OB0+Ji7wds\nwH7XIuJzsQnhIeB98gu195znAGoDV2AF5PHAq8D0mPMswQrT44B2WIE8roDPHIQVflFdsQQA1mTy\nPVYwVQDuxgqc6BVobLwPJviMLlhyAvgNsB9o5jy+DNiBXUFXdWKILZCfAmZgye94YCbwjwK+wwvA\n4JjH/YE5zv0hWDKp4NwuKuAcxH3+DuCPhRwbL0R+QiiP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0sPwpr09+Itc3HG4O14W/D\n9sTOwfbm3QIsdo45CPRzjtuPJZ/od3oYGObEXh5rWorvWP4K+/9a3Xk/zvtfw5qNFsYd35Jg7kEh\nIhII1WPuP4sNVy2OLPL7OQpTHttjQxd8IiIZ6nas9rAWeBlrxiqOkyhik3RHd+CBYp5bRERERERE\nREREREREREREREREREREJBn/DwWIrS4GjkBZAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f4fd8892750>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Vload vs Pic graph\n", + "\n", + "#initialisation of variable\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vload=[0.0, 0.2, 0.4, 0.6, 0.8, 4.8, 5.0, 5.2, 5.4, 5.6, 5.8, 6.0, 6.2, 6.4, 11.4, 11.6, 11.8, 12.0];\n", + "Iload=[0.0, 0.0, 0.0, 0.1, 0.1, 0.5, 0.5, 0.5, 0.5, 0.6, 0.6, 0.6, 0.6, 0.6, 1.1, 1.2, 1.2, 1.2];\n", + "Pload=[0.00, 0.00, 0.02, 0.04, 0.06, 2.30, 2.50, 2.70, 2.92, 3.14, 3.36, 3.60, 3.84, 4.10, 13.00, 13.46, 13.92, 14.40];\n", + "Ps=[0.00, 0.24, 0.48, 0.72, 0.96, 5.76, 6.00, 6.24, 6.48, 6.72, 6.96, 7.20, 7.44, 7.68, 13.68, 13.92, 14.16, 14.40];\n", + "Pic=[0.00, 0.24, 0.46, 0.68, 0.90, 3.46, 3.50, 3.54, 3.56, 3.58, 3.60, 3.60, 3.60, 3.58, 0.68, 0.46, 0.24, 0.00];\n", + "\n", + "#result\n", + "print('Vload Iload Pload Ps Pic');\n", + "for i in range(0,18):\n", + " print Vload[i],\" \",Iload[i],\" \",Pload[i],\" \",Ps[i],\" \", Pic[i]\n", + " \n", + "plt.plot(Vload,Pic);\n", + "plt.xlabel('load voltage (V)')\n", + "plt.ylabel('IC Power(W)')\n", + "plt.title('load voltage vs IC Power')\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.5,Page 173" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IC power is 2.57 W\n", + "total power is 3.82 W\n", + "dc supply current is 159.155 mA\n", + "power delivered is 1.25 watt\n" + ] + } + ], + "source": [ + "#finding different power and current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=12.0;\n", + "Vp=5.0;\n", + "R=10.0;\n", + "\n", + "#calculation\n", + "Ip=Vp/R;\n", + "Il=Ip/2**.5;\n", + "Pl=(Vp*Ip)/2;\n", + "Id=Ip/pi;\n", + "Pt=2*V*Ip/pi;\n", + "Pic=Pt-Pl;\n", + "\n", + "#result\n", + "print \"IC power is\",round(Pic,2), \"W\"\n", + "print \"total power is\",round(Pt,2), \"W\"\n", + "print \"dc supply current is\",round(Id*1000,3), \"mA\"\n", + "print \"power delivered is\",round(Pl,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.6,Page 179" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "thermal resistance is 24.61 C/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Ts=40.0;\n", + "P=2.92;\n", + "Qj=2.5;\n", + "Qc=2.0;\n", + "Tj=125.0;\n", + "\n", + "#calculation\n", + "Qs=(Tj-Ts)/P-Qj-Qc;\n", + "\n", + "#result\n", + "print \"thermal resistance is\",round(Qs,2),\"C/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.7,Page 180" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vload Iload Pload Ps Pic\n", + "9.4 0.94 4.42 14.36 9.94\n", + "9.6 0.96 4.61 14.67 10.06\n", + "10.0 power delivered by IC in watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=24.0;\n", + "R=10.0;\n", + "Qs=4.0;\n", + "Tj=125.0;\n", + "Ta=40.0;\n", + "Qj=2.5;\n", + "Qc=2.0;\n", + "Vload=[9.4, 9.6];\n", + "Iload=[.94, .96];\n", + "Pload=[4.42, 4.61];\n", + "Ps=[14.36, 14.67];\n", + "Pic=[9.94, 10.06];\n", + "\n", + "#calculation\n", + "P=(Tj-Ta)/(Qj+Qc+Qs);\n", + "\n", + "#result\n", + "print('Vload Iload Pload Ps Pic');\n", + "for i in range(0,2):\n", + " print Vload[i],\" \",Iload[i],\" \",Pload[i],\" \",Ps[i],\" \", Pic[i]\n", + "print round(P,2),\"power delivered by IC in watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.8,Page 182" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "gain is 23.0\n", + "limit current is 4.01 A\n", + "output voltage is 46.0 V\n", + "maximum output voltage is 32.0 V\n" + ] + } + ], + "source": [ + "#finding current and voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rf=22.0;\n", + "Ri=1.0;\n", + "Rs=15.0;\n", + "I=4.75;\n", + "Rc=4.0;\n", + "Vp=2.0;\n", + "Rl=8.0;\n", + "Im=4.0;\n", + "\n", + "#calculation\n", + "Av=1+(Rf/Ri);\n", + "Il=(Rs*I)/(Rc+13.75);\n", + "Vo=Vp*Av;\n", + "V=Im*Rl;\n", + "\n", + "#result\n", + "print \"gain is\",round(Av,2)\n", + "print \"limit current is\",round(Il,2), \"A\"\n", + "print \"output voltage is\",round(Vo,2), \"V\"\n", + "print \"maximum output voltage is\",round(V,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.9,Page 185" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "loudness ofsound is 108.06 dB\n" + ] + } + ], + "source": [ + "#finding loudness\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "D=8.0;\n", + "d=1.0;\n", + "I=90.0;\n", + "\n", + "#calculation\n", + "Is=20*log(d/D,10);\n", + "Ir=I-Is;\n", + "\n", + "#result\n", + "print \"loudness ofsound is\",round(Ir,2), \"dB\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.10,Page 186" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "19.95 power provided in watt\n" + ] + } + ], + "source": [ + "#finding power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "D=1.0;\n", + "I1=108.0;\n", + "I2=95.0;\n", + "P=1.0;\n", + "\n", + "#calculation\n", + "I=I1-I2;\n", + "Pr=P*10**(I/10);\n", + "\n", + "#result\n", + "print \"power provided is\",round(Pr,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.11,Page 188" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 12.65 V\n", + "gain is 10.28\n" + ] + } + ], + "source": [ + "#finding output voltage and gain\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "P=20;\n", + "R=8;\n", + "Vi=1.23;\n", + "\n", + "#calculation\n", + "V=(P*R)**.5;\n", + "G=V/Vi;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(V,2), \"V\"\n", + "print \"gain is\",round(G,2)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.12,Page 191" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistor b/w pins 1&8 is 600.0 ohm\n", + "thus pick a 620 ohm resistor\n", + "capacitor b/w pins 1&8 is 22.46 microF\n", + "thus pick a 27 microF capacitor\n" + ] + } + ], + "source": [ + "#finding resistor and capacitor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "G=40.0;\n", + "f=80.0;\n", + "R1=15000.0;\n", + "R2=150.0;\n", + "\n", + "#calculation\n", + "R=2*(R1/G)-R2;\n", + "R11=620;\n", + "C=1/(2*pi*f*R11/7);\n", + "\n", + "#result\n", + "print \"resistor b/w pins 1&8 is\",round(R,2),\"ohm\"\n", + "print('thus pick a 620 ohm resistor')\n", + "print \"capacitor b/w pins 1&8 is\",round(C*1e6,2), \"microF\"\n", + "print('thus pick a 27 microF capacitor')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.13,Page 193" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power dissipated is 140.0 mW\n", + "thermal resistance is 628.93 degree C/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "V=5.0#voltage\n", + "Tm=150.0#temperature\n", + "Ta=50.0#temperature\n", + "Qa=107.0;\n", + "Qc=37.0;\n", + "Ps=299.0;\n", + "\n", + "#calculation\n", + "Vd=V/2;\n", + "Vm=V-1;\n", + "Vp=Vm-Vd;\n", + "Vr=Vp/2**.5;\n", + "Pl=1000*Vr**2/R;\n", + "Pl=140;\n", + "Pic=Ps-Pl;\n", + "Q=(Tm-Ta)/Pic;\n", + "\n", + "#result\n", + "print \"power dissipated is\",round(Pl,2), \"mW\"\n", + "print \"thermal resistance is\",round(Q*1000,2),\"degree C/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.14,Page 197" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power deliverd is 562.5 mwatt\n" + ] + } + ], + "source": [ + "#finding power delivered\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "V=5.0#voltage\n", + "\n", + "#calculation\n", + "Vl=V-1;\n", + "Vp=Vl-1;\n", + "Vr=Vp/2**.5;\n", + "P=Vr**2/R;\n", + "\n", + "#result\n", + "print \"power deliverd is\",round(P*1000,2), \"mwatt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 4.15,Page 201" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power delivered is 85.56 watt\n", + "thermal resistance is 1.4 degreeC/W\n" + ] + } + ], + "source": [ + "#finding thermal resistance and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan,log\n", + "R=8.0#resistance\n", + "Ts=35.0#temperature\n", + "Ta=150.0#temperature\n", + "Vm=42.0#voltage\n", + "\n", + "#calcuation\n", + "Vp=Vm-5;\n", + "Vr=Vp/2**.5;\n", + "Pm=Vr**2/R;\n", + "P=45;\n", + "Qs=(Ta-Ts)/P-1.2;\n", + "\n", + "#result\n", + "print \"power delivered is\",round(Pm,2), \"watt\"\n", + "print \"thermal resistance is\",round(round(Qs*10)/10,2), \"degreeC/W\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb new file mode 100644 index 00000000..58305b46 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb @@ -0,0 +1,647 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5: Discrete Linear Power Amplifier" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.1,Page 215" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Id=0 from 0 to 2 so not shown in the graph\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEZCAYAAACTsIJzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl4U2Xax/FvW4ogi7K8uIGgiAOIIqKC4EBxFxcUURRE\nQAUGcccNx4UZfd/RUWdwRFFBEBQQFWVEQFywbiOiwyKyuLAJio6gIoso0Lx/3KfTENP2pM3Jc5L8\nPteVi+TkNLmtp7nzPPezgIiIiIiIiIiIiIiIiIiIiIiIiIiIiIgkUROgCMh1HIdIKOkPQzLVauBE\nR+99IbAqzvEqwH+ArqkNRyQxSgySqS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xd45+djM59FRCQA0ylZXO0W4K9AD+wDGWz9mO+xJRXqAcujfrZ21M8NjTq+AEsIADdj\n3UPVgC+BQ7zj4ylZ4ri0FsN5wONx3g/gLeJvwiQSqLCtrioShMnAhd79nt7jjlg/PpSsYw/wI7Ad\n+7Z/LrbnORmYAAABXElEQVRKJtgicuujXvNZ77XAvuVPwVasXEXJN/3xQKdyYvsY6za6B2uV/BT1\n3NeUJB+RlFFikGzwEtbF0wbrulngHc+Jc+4u4FhsV7Azsb1yiXP+FCwhNMM2iFkR57XivX6sz724\nFgN3A7fH/HyRj9cQSSolBskGW7AWwThgknfsPawbJwfrSirwjtfAljGeBVxPyVr6a7B9pIutxJLI\n7dieAGD7SjfBNkMB272rME48OyipeeyHtVAmAvez+0qq+3nvKyIiAeiGfZAf6j3OwbaELC4+v4a1\nKvbFCsuLsG6e4q0ZO1JSfC421HvNA6OOnUBJ8XkMVkSG3WsM92C7oD2FDaVdhLViPog6J5/4rRAR\nEQlQDe/felhdoEEZ5xYPV61axjnJdArwYIreS0REPG9iH/ZLgEt8nH8F0D/QiEo8iwrPIiIiIiIi\nIiIiIiIiIiIiIiIiIiIiknn+HwC9g+9EmLPsAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fb0a512a8d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Id vs Vgs\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vth=3.6;\n", + "Vgs=4;#voltage\n", + "#volt change beyond 3.6 causes a major increase in Id as it is cut off voltage\n", + "\n", + "#result\n", + "print('Id=0 from 0 to 2 so not shown in the graph')\n", + "x=np.linspace(2,3.6,300);\n", + "y=(-2.5*(x-3.6))**.5;\n", + "plt.plot(x,y)\n", + "plt.xlabel('Vgs(volts)');\n", + "plt.ylabel('Id(amps)');\n", + "plt.title('Id vs Vgs');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.2,Page 217" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "drain current is 3.8 A\n", + "Vth=4V is assumed\n" + ] + } + ], + "source": [ + "#finding drain current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=4.5;#voltage\n", + "T=25;#degreeC\n", + "Id=3.8;\n", + "\n", + "#result\n", + "print \"drain current is\",round(Id,2), \"A\"\n", + "print('Vth=4V is assumed')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.3,Page 219" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MOSFET is IRF530N\n", + "lower limit of Vth is -4.0 V\n", + "upper limit of Vth is -2.0 V\n", + "current is 2.3 A\n" + ] + } + ], + "source": [ + "#finding drain current of IRF530N\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vgs=-5;#voltage\n", + "Vthl=-4;\n", + "Vthu=-2;\n", + "Id=2.3;#current\n", + "\n", + "#result\n", + "print('MOSFET is IRF530N')\n", + "print \"lower limit of Vth is\",round(Vthl,2), \"V\"\n", + "print \"upper limit of Vth is\",round(Vthu,2), \"V\"\n", + "print \"current is\",round(Id,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example5.5,Page 225" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 1.51 kohm\n", + "load voltage is 36.68 V\n", + "Pq is 40.02 watt\n", + "Ps is 82.0 watt\n", + "Pl is 41.97 watt\n" + ] + } + ], + "source": [ + "#finding Pq,Pl,Ps,resistance,load voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=22.0;#resistance\n", + "Vg=3.6;#voltage\n", + "Vd=56.0;\n", + "G=.98;#gain\n", + "Vi=40.0;\n", + "Rl=8.0;#load resistance\n", + "Vp=36.5;\n", + "\n", + "#calculation\n", + "Vr=Vd-Vg;\n", + "Ir=Vr/R1;\n", + "R2=Vg/Ir;\n", + "Va=(R1/(R1+R2))*Vi;\n", + "Vl=G*Va;\n", + "Il=Vp/Rl;\n", + "Pl=Vp*4.6/4;\n", + "Ps=Vd*4.6/pi;\n", + "Pq=Ps-Pl;\n", + "\n", + "#result\n", + "print \"resistance is\",round(R2,2), \"kohm\"\n", + "print \"load voltage is\",round(Vl,2), \"V\"\n", + "print \"Pq is\",round(Pq,2), \"watt\"\n", + "print \"Ps is\",round(Ps,2), \"watt\"\n", + "print \"Pl is\",round(Pl,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.6,Page 232" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current is 2.45 mA\n", + "resistance2 is 814.815 ohm\n", + "pick R2=R3=820ohm R1=R4=22 kohm\n" + ] + } + ], + "source": [ + "#finding resistance and current \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=22.0;#resistance\n", + "V1=56.0;#voltage\n", + "V2=2.0;#voltage\n", + "\n", + "#calculation\n", + "I=(V1-V2)/R1;\n", + "R2=V2/I;\n", + "\n", + "#result\n", + "print \"current is\",round(I,2), \"mA\"\n", + "print \"resistance2 is\",round(R2*1000,3), \"ohm\"\n", + "print('pick R2=R3=820ohm R1=R4=22 kohm')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.7,Page 234" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load voltage is 10.01 V\n" + ] + } + ], + "source": [ + "#finding load voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=350.0;#voltage\n", + "f=100.0;#frequency\n", + "Rf=10000.0;#resistance\n", + "Ri=520.0;\n", + "\n", + "#calculation\n", + "Vp=(1+(Rf/Ri))*Vi*2**.5;\n", + "\n", + "#result\n", + "print \"load voltage is\",round(Vp/1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.8,Page 238" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load rms voltage is 20.0 V\n", + "resistance is 54.04 kohm\n", + "current is 1.18 mA\n", + "load current is 4.41 A\n", + "supply power is 39.3 watt\n", + "load power is 38.9 W\n", + "power is 19.552 W\n", + "thermal resistance is 3.01 degreC/W\n" + ] + } + ], + "source": [ + "#designing amplifier\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=50.0;#power\n", + "Z=4.7#impedence\n", + "R=4.0;#resistance\n", + "Ta=40.0;#degreeC\n", + "Tj=140.0;#degreeC\n", + "Vd=28.0;\n", + "R2=22.0;\n", + "\n", + "#calculation\n", + "Vr=(P*R)**.5;\n", + "Vp=Vr*2**.5;\n", + "Av=-Vr/1.23;\n", + "Rf=-Av*Z;\n", + "I=(Vd-2)/R2;\n", + "Vm=.63*Vd;\n", + "Ip=Vm/R;\n", + "Ps=Vd*Ip/pi;\n", + "Pl=Ip**2/2*R;\n", + "Pq=round(Ps)-Pl/2;\n", + "Qs=(Tj-Ta)/Pq-2.1;\n", + "\n", + "#result\n", + "print \"load rms voltage is\",round(Vp,2), \"V\"\n", + "print \"resistance is\",round(Rf,2), \"kohm\"\n", + "print \"current is\",round(I,2), \"mA\"\n", + "print \"load current is\",round(Ip,2), \"A\"\n", + "print \"supply power is\",round(Ps,2), \"watt\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"power is\",round(Pq,3), \"W\"\n", + "print \"thermal resistance is\",round(Qs,2), \"degreC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.9,Page 243" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 129.37 mV\n", + "load current is 32.34 mA\n" + ] + } + ], + "source": [ + "#finding load current,output voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=7.5e-3;#voltage\n", + "Ib=800e-9;#current\n", + "R=53.9e3;#resistance\n", + "\n", + "#calculation\n", + "Vo=11.5*Vi+Ib*R;\n", + "Id=Vo/4;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vo*1000,2), \"mV\"\n", + "print \"load current is\",round(Id*1000,2), \"mA\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.10,Page 249" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 0.31 ohm\n", + "thus pick a .33ohm rsistance\n", + "voltage is 0.55 V\n", + "power is 0.23 W\n", + "thermal resistance is 8.1 degreeC/W\n" + ] + } + ], + "source": [ + "#finding resistance,voltage,power \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "G=6.4;#A/V\n", + "I=5.0;#current\n", + "Pq=9.8;#W\n", + "Tj=140.0;\n", + "Ta=40.0;\n", + "R1=.33;\n", + "\n", + "#calculation\n", + "R=2/G;\n", + "Im=I/3;\n", + "Vr=Im*R1;\n", + "P=Vr*Im/4;\n", + "Qs=(Tj-Ta)/Pq-2.1;\n", + "\n", + "#result\n", + "print \"resistance is\",round(R,2), \"ohm\"\n", + "print('thus pick a .33ohm rsistance')\n", + "print \"voltage is\",round(Vr,2), \"V\"\n", + "print \"power is\",round(P,2), \"W\"\n", + "print \"thermal resistance is\",round(Qs,2), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.11,Page 251" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "limit level current is 8.49 A\n" + ] + } + ], + "source": [ + "#finding limit current \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=200;#power\n", + "R=8;#ohm\n", + "\n", + "#calculation\n", + "Il=(P/R)**.5*2**.5;\n", + "Ilm=1.2*Il;\n", + "\n", + "#result\n", + "print \"limit level current is\",round(Ilm,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.12,Page 253" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 0.1 ohm\n", + "power is 1.8 W\n", + "MOSFET power is 84.0 W\n", + "temperature is 468.4 degreeC\n" + ] + } + ], + "source": [ + "#finding resistance,power,temperature \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=6;#current\n", + "V=.6;#voltage\n", + "D=.5;#duty cycle\n", + "T=40;#temperature\n", + "\n", + "#calculation\n", + "Rs=V/I;\n", + "Pr=D*V*I;\n", + "Vp=28;\n", + "Pm=D*Vp*I;\n", + "Tj=T+Pm*5.1;\n", + "\n", + "#result\n", + "print \"resistance is\",round(Rs,2), \"ohm\"\n", + "print \"power is\",round(Pr,2), \"W\"\n", + "print \"MOSFET power is\",round(Pm,2), \"W\"\n", + "print \"temperature is\",round(Tj,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.13,Page 255" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum safe temperature is 89.05 degreeC\n" + ] + } + ], + "source": [ + "#finding maximum safe temperature \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "T=130;#temperature\n", + "P=19.5;#power\n", + "\n", + "#calculation\n", + "Ts=T-P*2.1;\n", + "\n", + "#result\n", + "print \"maximum safe temperature is\",round(Ts,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.14,Page 257" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "reactance is 8.86 ohm\n", + "voltage across resistor is 10.03 V\n", + "-48 is the angle of the voltage in degrees\n", + "power dissipated by load is 12.5 watts\n", + "current across the resistance is 1.77 A\n", + "power supply is 15.8 W\n", + "power dissipated by transistor is 9.55 watts\n" + ] + } + ], + "source": [ + "#finding 3 powers and current across resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=15.0;#voltage\n", + "f=300.0;#frequency\n", + "L=4.7;#inductance\n", + "Vdc=28;#V\n", + "Pr=12.5;\n", + "\n", + "#calculation\n", + "Xl=2*pi*f*L;\n", + "Zload=sqrt(8**2+8.9**2);#magnitude of Zload\n", + "Vload=15.0;#msgnitude of Vload\n", + "Vr=Vload*8/Zload;\n", + "I=Vr/8*sqrt(2);\n", + "Psupply=Vdc*I/pi;\n", + "Pq=Psupply-Pr/2;\n", + "\n", + "#result\n", + "print \"reactance is\",round(Xl/1000,2), \"ohm\"\n", + "print \"voltage across resistor is\",round(Vr,2), \"V\"\n", + "print \"-48 is the angle of the voltage in degrees\";\n", + "print \"power dissipated by load is\",round(Pr,2), \"watts\"\n", + "print \"current across the resistance is\",round(I,2), \"A\"\n", + "print \"power supply is\",round(Psupply,2), \"W\"\n", + "print \"power dissipated by transistor is\",round(Pq,2), \"watts\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5_1.ipynb new file mode 100644 index 00000000..58305b46 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5_1.ipynb @@ -0,0 +1,647 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5: Discrete Linear Power Amplifier" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.1,Page 215" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Id=0 from 0 to 2 so not shown in the graph\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEZCAYAAACTsIJzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl4U2Xax/FvW4ogi7K8uIGgiAOIIqKC4EBxFxcUURRE\nQAUGcccNx4UZfd/RUWdwRFFBEBQQFWVEQFywbiOiwyKyuLAJio6gIoso0Lx/3KfTENP2pM3Jc5L8\nPteVi+TkNLmtp7nzPPezgIiIiIiIiIiIiIiIiIiIiIiIiI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9+83ZfaXWJtisU7DlCOZ7j5/AlkIGSwxtvdfeiSWZp7Bl\nE2ZgM1cXAxd45+djM59FRCQA0ylZXO0W4K9AD+wDGWz9mO+xJRXqAcujfrZ21M8NjTq+AEsIADdj\n3UPVgC+BQ7zj4ylZ4ri0FsN5wONx3g/gLeJvwiQSqLCtrioShMnAhd79nt7jjlg/PpSsYw/wI7Ad\n+7Z/LrbnORmYAAABXElEQVRKJtgicuujXvNZ77XAvuVPwVasXEXJN/3xQKdyYvsY6za6B2uV/BT1\n3NeUJB+RlFFikGzwEtbF0wbrulngHc+Jc+4u4FhsV7Azsb1yiXP+FCwhNMM2iFkR57XivX6sz724\nFgN3A7fH/HyRj9cQSSolBskGW7AWwThgknfsPawbJwfrSirwjtfAljGeBVxPyVr6a7B9pIutxJLI\n7dieAGD7SjfBNkMB272rME48OyipeeyHtVAmAvez+0qq+3nvKyIiAeiGfZAf6j3OwbaELC4+v4a1\nKvbFCsuLsG6e4q0ZO1JSfC421HvNA6OOnUBJ8XkMVkSG3WsM92C7oD2FDaVdhLViPog6J5/4rRAR\nEQlQDe/felhdoEEZ5xYPV61axjnJdArwYIreS0REPG9iH/ZLgEt8nH8F0D/QiEo8iwrPIiIiIiIi\nIiIiIiIiIiIiIiIiIiIiknn+HwC9g+9EmLPsAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fb0a512a8d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Id vs Vgs\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vth=3.6;\n", + "Vgs=4;#voltage\n", + "#volt change beyond 3.6 causes a major increase in Id as it is cut off voltage\n", + "\n", + "#result\n", + "print('Id=0 from 0 to 2 so not shown in the graph')\n", + "x=np.linspace(2,3.6,300);\n", + "y=(-2.5*(x-3.6))**.5;\n", + "plt.plot(x,y)\n", + "plt.xlabel('Vgs(volts)');\n", + "plt.ylabel('Id(amps)');\n", + "plt.title('Id vs Vgs');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.2,Page 217" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "drain current is 3.8 A\n", + "Vth=4V is assumed\n" + ] + } + ], + "source": [ + "#finding drain current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=4.5;#voltage\n", + "T=25;#degreeC\n", + "Id=3.8;\n", + "\n", + "#result\n", + "print \"drain current is\",round(Id,2), \"A\"\n", + "print('Vth=4V is assumed')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.3,Page 219" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MOSFET is IRF530N\n", + "lower limit of Vth is -4.0 V\n", + "upper limit of Vth is -2.0 V\n", + "current is 2.3 A\n" + ] + } + ], + "source": [ + "#finding drain current of IRF530N\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vgs=-5;#voltage\n", + "Vthl=-4;\n", + "Vthu=-2;\n", + "Id=2.3;#current\n", + "\n", + "#result\n", + "print('MOSFET is IRF530N')\n", + "print \"lower limit of Vth is\",round(Vthl,2), \"V\"\n", + "print \"upper limit of Vth is\",round(Vthu,2), \"V\"\n", + "print \"current is\",round(Id,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example5.5,Page 225" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 1.51 kohm\n", + "load voltage is 36.68 V\n", + "Pq is 40.02 watt\n", + "Ps is 82.0 watt\n", + "Pl is 41.97 watt\n" + ] + } + ], + "source": [ + "#finding Pq,Pl,Ps,resistance,load voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=22.0;#resistance\n", + "Vg=3.6;#voltage\n", + "Vd=56.0;\n", + "G=.98;#gain\n", + "Vi=40.0;\n", + "Rl=8.0;#load resistance\n", + "Vp=36.5;\n", + "\n", + "#calculation\n", + "Vr=Vd-Vg;\n", + "Ir=Vr/R1;\n", + "R2=Vg/Ir;\n", + "Va=(R1/(R1+R2))*Vi;\n", + "Vl=G*Va;\n", + "Il=Vp/Rl;\n", + "Pl=Vp*4.6/4;\n", + "Ps=Vd*4.6/pi;\n", + "Pq=Ps-Pl;\n", + "\n", + "#result\n", + "print \"resistance is\",round(R2,2), \"kohm\"\n", + "print \"load voltage is\",round(Vl,2), \"V\"\n", + "print \"Pq is\",round(Pq,2), \"watt\"\n", + "print \"Ps is\",round(Ps,2), \"watt\"\n", + "print \"Pl is\",round(Pl,2), \"watt\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.6,Page 232" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current is 2.45 mA\n", + "resistance2 is 814.815 ohm\n", + "pick R2=R3=820ohm R1=R4=22 kohm\n" + ] + } + ], + "source": [ + "#finding resistance and current \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=22.0;#resistance\n", + "V1=56.0;#voltage\n", + "V2=2.0;#voltage\n", + "\n", + "#calculation\n", + "I=(V1-V2)/R1;\n", + "R2=V2/I;\n", + "\n", + "#result\n", + "print \"current is\",round(I,2), \"mA\"\n", + "print \"resistance2 is\",round(R2*1000,3), \"ohm\"\n", + "print('pick R2=R3=820ohm R1=R4=22 kohm')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.7,Page 234" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load voltage is 10.01 V\n" + ] + } + ], + "source": [ + "#finding load voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=350.0;#voltage\n", + "f=100.0;#frequency\n", + "Rf=10000.0;#resistance\n", + "Ri=520.0;\n", + "\n", + "#calculation\n", + "Vp=(1+(Rf/Ri))*Vi*2**.5;\n", + "\n", + "#result\n", + "print \"load voltage is\",round(Vp/1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.8,Page 238" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load rms voltage is 20.0 V\n", + "resistance is 54.04 kohm\n", + "current is 1.18 mA\n", + "load current is 4.41 A\n", + "supply power is 39.3 watt\n", + "load power is 38.9 W\n", + "power is 19.552 W\n", + "thermal resistance is 3.01 degreC/W\n" + ] + } + ], + "source": [ + "#designing amplifier\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=50.0;#power\n", + "Z=4.7#impedence\n", + "R=4.0;#resistance\n", + "Ta=40.0;#degreeC\n", + "Tj=140.0;#degreeC\n", + "Vd=28.0;\n", + "R2=22.0;\n", + "\n", + "#calculation\n", + "Vr=(P*R)**.5;\n", + "Vp=Vr*2**.5;\n", + "Av=-Vr/1.23;\n", + "Rf=-Av*Z;\n", + "I=(Vd-2)/R2;\n", + "Vm=.63*Vd;\n", + "Ip=Vm/R;\n", + "Ps=Vd*Ip/pi;\n", + "Pl=Ip**2/2*R;\n", + "Pq=round(Ps)-Pl/2;\n", + "Qs=(Tj-Ta)/Pq-2.1;\n", + "\n", + "#result\n", + "print \"load rms voltage is\",round(Vp,2), \"V\"\n", + "print \"resistance is\",round(Rf,2), \"kohm\"\n", + "print \"current is\",round(I,2), \"mA\"\n", + "print \"load current is\",round(Ip,2), \"A\"\n", + "print \"supply power is\",round(Ps,2), \"watt\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"power is\",round(Pq,3), \"W\"\n", + "print \"thermal resistance is\",round(Qs,2), \"degreC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.9,Page 243" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "output voltage is 129.37 mV\n", + "load current is 32.34 mA\n" + ] + } + ], + "source": [ + "#finding load current,output voltage \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vi=7.5e-3;#voltage\n", + "Ib=800e-9;#current\n", + "R=53.9e3;#resistance\n", + "\n", + "#calculation\n", + "Vo=11.5*Vi+Ib*R;\n", + "Id=Vo/4;\n", + "\n", + "#result\n", + "print \"output voltage is\",round(Vo*1000,2), \"mV\"\n", + "print \"load current is\",round(Id*1000,2), \"mA\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.10,Page 249" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 0.31 ohm\n", + "thus pick a .33ohm rsistance\n", + "voltage is 0.55 V\n", + "power is 0.23 W\n", + "thermal resistance is 8.1 degreeC/W\n" + ] + } + ], + "source": [ + "#finding resistance,voltage,power \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "G=6.4;#A/V\n", + "I=5.0;#current\n", + "Pq=9.8;#W\n", + "Tj=140.0;\n", + "Ta=40.0;\n", + "R1=.33;\n", + "\n", + "#calculation\n", + "R=2/G;\n", + "Im=I/3;\n", + "Vr=Im*R1;\n", + "P=Vr*Im/4;\n", + "Qs=(Tj-Ta)/Pq-2.1;\n", + "\n", + "#result\n", + "print \"resistance is\",round(R,2), \"ohm\"\n", + "print('thus pick a .33ohm rsistance')\n", + "print \"voltage is\",round(Vr,2), \"V\"\n", + "print \"power is\",round(P,2), \"W\"\n", + "print \"thermal resistance is\",round(Qs,2), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.11,Page 251" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "limit level current is 8.49 A\n" + ] + } + ], + "source": [ + "#finding limit current \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=200;#power\n", + "R=8;#ohm\n", + "\n", + "#calculation\n", + "Il=(P/R)**.5*2**.5;\n", + "Ilm=1.2*Il;\n", + "\n", + "#result\n", + "print \"limit level current is\",round(Ilm,2), \"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.12,Page 253" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 0.1 ohm\n", + "power is 1.8 W\n", + "MOSFET power is 84.0 W\n", + "temperature is 468.4 degreeC\n" + ] + } + ], + "source": [ + "#finding resistance,power,temperature \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=6;#current\n", + "V=.6;#voltage\n", + "D=.5;#duty cycle\n", + "T=40;#temperature\n", + "\n", + "#calculation\n", + "Rs=V/I;\n", + "Pr=D*V*I;\n", + "Vp=28;\n", + "Pm=D*Vp*I;\n", + "Tj=T+Pm*5.1;\n", + "\n", + "#result\n", + "print \"resistance is\",round(Rs,2), \"ohm\"\n", + "print \"power is\",round(Pr,2), \"W\"\n", + "print \"MOSFET power is\",round(Pm,2), \"W\"\n", + "print \"temperature is\",round(Tj,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.13,Page 255" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum safe temperature is 89.05 degreeC\n" + ] + } + ], + "source": [ + "#finding maximum safe temperature \n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "T=130;#temperature\n", + "P=19.5;#power\n", + "\n", + "#calculation\n", + "Ts=T-P*2.1;\n", + "\n", + "#result\n", + "print \"maximum safe temperature is\",round(Ts,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 5.14,Page 257" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "reactance is 8.86 ohm\n", + "voltage across resistor is 10.03 V\n", + "-48 is the angle of the voltage in degrees\n", + "power dissipated by load is 12.5 watts\n", + "current across the resistance is 1.77 A\n", + "power supply is 15.8 W\n", + "power dissipated by transistor is 9.55 watts\n" + ] + } + ], + "source": [ + "#finding 3 powers and current across resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=15.0;#voltage\n", + "f=300.0;#frequency\n", + "L=4.7;#inductance\n", + "Vdc=28;#V\n", + "Pr=12.5;\n", + "\n", + "#calculation\n", + "Xl=2*pi*f*L;\n", + "Zload=sqrt(8**2+8.9**2);#magnitude of Zload\n", + "Vload=15.0;#msgnitude of Vload\n", + "Vr=Vload*8/Zload;\n", + "I=Vr/8*sqrt(2);\n", + "Psupply=Vdc*I/pi;\n", + "Pq=Psupply-Pr/2;\n", + "\n", + "#result\n", + "print \"reactance is\",round(Xl/1000,2), \"ohm\"\n", + "print \"voltage across resistor is\",round(Vr,2), \"V\"\n", + "print \"-48 is the angle of the voltage in degrees\";\n", + "print \"power dissipated by load is\",round(Pr,2), \"watts\"\n", + "print \"current across the resistance is\",round(I,2), \"A\"\n", + "print \"power supply is\",round(Psupply,2), \"W\"\n", + "print \"power dissipated by transistor is\",round(Pq,2), \"watts\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb new file mode 100644 index 00000000..0c7858a4 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb @@ -0,0 +1,528 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6: Power Switches" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.1,Page 274" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "collector current is 1.81 A\n", + "load power is 49.32 W\n", + "transistor power is 1.45 W\n", + "least value of base current is 90.67 mA\n", + "max value of base resistance is 4.85 ohm\n", + "thus pick Rb=33ohm\n" + ] + } + ], + "source": [ + "#finding Ic,Pload,Pq,Ibase,Rbase\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vs=28.0;#V\n", + "Vi=5.0;#V\n", + "Rl=15.0;#ohm\n", + "Vc=.8;#V\n", + "b=20.0;\n", + "\n", + "#calculation\n", + "Ic=(Vs-Vc)/Rl;\n", + "Pl=Ic**2*Rl;\n", + "Pq=Ic*Vc;\n", + "Ib=Ic/b*1000;\n", + "Rb=(Vi-.6)/Ib;\n", + "\n", + "#result\n", + "print \"collector current is\",round(Ic,2), \"A\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"transistor power is\",round(Pq,2), \"W\"\n", + "print \"least value of base current is\",round(Ib,2), \"mA\"\n", + "print \"max value of base resistance is\",round(Rb*100,2), \"ohm\"\n", + "print ('thus pick Rb=33ohm')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.4,Page 282" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load resistance is 554.0 ohm\n", + "thus pick Rl=560ohm\n", + "max value of Rb is 3.0 kohm\n", + "thus pick Rb=2.2kohm\n", + "load current is 49.46 mA\n", + "load power is 685.08 mW\n", + "power delivered is 7.42 mW\n" + ] + } + ], + "source": [ + "#finding Pload,Pq,Iload,resistances\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vd=28.0;#V\n", + "f=100.0;#frequency\n", + "I=50.0;#current\n", + "Rl1=560.0;\n", + "Vp=2.4;\n", + "Ib=500.0;#microAmp\n", + "D=.5;#duty cycle\n", + "\n", + "#calculation\n", + "Rl=(Vd-.3)/I;\n", + "Rb=(Vp-.9)/Ib;\n", + "Vl=Vd-.3;\n", + "Ip=Vl/Rl1;\n", + "Pl=D*Vl*Ip;\n", + "Pq=D*Ip*.3;\n", + "\n", + "#result\n", + "print \"load resistance is\",round(Rl*1000), \"ohm\"\n", + "print('thus pick Rl=560ohm')\n", + "print \"max value of Rb is\",round(Rb*1000,2),\"kohm\"\n", + "print('thus pick Rb=2.2kohm')\n", + "print \"load current is\",round(Ip*1000,2), \"mA\"\n", + "print \"load power is\",round(Pl*1000,2), \"mW\"\n", + "print \"power delivered is\",round(Pq*1000,2), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.5,Page 286" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time of rise is 788.48 ns\n", + "time of rise is 4.65 microsec\n" + ] + } + ], + "source": [ + "#finding time of rise\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "C=640.0;#capacitor\n", + "R1=560.0;#load resistance\n", + "R2=3.3;#kohm\n", + "\n", + "#calculation\n", + "t1=2.2*R1*C;\n", + "t2=2.2*R2*C;\n", + "\n", + "#result\n", + "print \"time of rise is\",round(t1/1000,2), \"ns\"\n", + "print \"time of rise is\",round(t2/1000,2), \"microsec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.6,Page 287" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 682.5 ohm\n", + "pick up resistance=680 ohm\n", + "rise time is 957.44 ns\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEZCAYAAACervI0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGQJJREFUeJzt3XuQXGWdh/FnkgkxkISEiyEEcCQsiBguLuAFLy0qxVYE\nZNeyQNwFRbC2RNDVFXBdmdWqJUKJWrulW6uAQTQqoEi0QIhLLxfxgiQkhITInUAyYU0gIQESkt4/\n3tNMz6RnpufS/b7n9POp6prTZ87p/tFkzve873nf0yBJkiRJkiRJkiRJkiRJkiRJasADwLtiFyFJ\nKbsF+Lc6608B1gDjRvHa3we+Oor9U3sfadhG8wckNdv3gY/WWf/3wLXAjpZWI0lqmUnAc8A7a9ZN\nB14E5gATgW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3jdiFJObdtPc1AIA7gIOz5W76zqJvJ0cQRshNIvy9\nzAc+FbWi1uti54vA1dGTF5Gzi8DgJLGqdxD6u5cQuj4W03v7jHb2bhwFdAShBXA/4ay3XUcBQRjx\nUh0GOp/Qam4XCwjXPrYSrp1+jHBhfBE5HQYqSZIkSZIkSZIkSZIkSZIkqS3tDvxjtjwTuG4MX/s8\n4KwxfL3+Tgb+tYmvL0mF1kXfmZFjpYMwGa+zCa9d+x5LaK/JTIootXsBSaM1j3CTsMXAT+kNg7MI\n91O6lXBPofOAzxPuqHkP4ZbCZPveDNxLuOXCIdn64wi31n0le14GriDMyF0BHAP8nDAD86vZNl30\nDaPPA5dky+cTZrDeT5jRCeHGXfcAJ4zgv1uS2t7r6D3o1i6fRfiWud2AvYDngXOz311BuNsqwG+A\ng7Llt2TPIdxX5XM173M7cGm2fD5hSv4Mwj2sniIEShd9A+BzwJez5afpPdOfWrPNx2jfe/uoxZrZ\nnJVi6BhgGcJBe3P2eI7em8otAw4nhMPb6XvdYJfs5wHAXf1er3pPogeyR/U+7I8S7mS7cZD6lhK+\nwvBG+t7p9Rm855NaxABQO3m5ZnlHzfMdhL+FccAGwpfv1NM/UGr37//anYTuotpu1kk1y3OBdwEn\nAf8CvCnbbxx+L4ZaxGsAKppNwJRh7lM9sG8iXB/4UM36w7PlJ+i9z3qjeoDXEu7QOJHwxTaV7HUP\nIFxHuIgwcmlyts/M7L2kprMFoKL5C3A3oVtnBb1n0/2/Han/cvX5GcB3gC8R+ugXELpr7iJcOK5n\noG9e2gZ8BfgDoc//wWz9eOAHhAN/B/AteruLjsXvO5CkpFSHge4y1IajMI4wDNQTM7XE+NgFSDky\nnvANdUua9PonEVow5Sa9viRJkiRJkiRJkiRJkiRJkqT8+3+DM0mrOvS/VQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f4e9da3f2d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Rpick up,time of rise\n", + "\n", + "#initialisation of variable\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vol=0.7;\n", + "Iol=40.0/1000;#current\n", + "Rpullup1=680.0;\n", + "C=640.0;\n", + "Epullup=28.0;\n", + "#for plotting\n", + "x=[0, .1, 1.9, 4.1, 5, 5.1, 5.3, 5.6, 6.0, 9.3];\n", + "y=[27.8, .1, .1, .1, .1, 5, 13.5, 21.0, 27.0, 27.8];\n", + "\n", + "#calculation\n", + "Rpullup=(Epullup-Vol)/Iol;\n", + "trise=2.2*Rpullup1*C;\n", + "plt.plot(x,y,'r');\n", + "plt.xlabel ('time(mus)')\n", + "plt.ylabel ('Vout')\n", + "plt.title ('Vout vs time')\n", + "\n", + "#result\n", + "print \"resistance is\",round(Rpullup,2), \"ohm\"\n", + "print('pick up resistance=680 ohm');\n", + "print \"rise time is\",round(trise/1000,2), \"ns\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.7,Page 289" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "worst case resistance is 0.286 ohm\n", + "load current is 4.45 A\n", + "load voltage is 26.73 V\n", + "load power is 47.62 W\n", + "drop voltage is 1.27 V\n", + "power is 2.27 W\n", + "temperature is 182.6 deg.C\n" + ] + } + ], + "source": [ + "#finding worst case resistance and power characteristics\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=.11;#resistance\n", + "Vd=28.0;#voltage\n", + "R2=6.0;#ohm\n", + "D=.4;#duty cycle\n", + "Q=62.0;\n", + "\n", + "#calculation\n", + "Ro=2.6*R1;\n", + "Ip=Vd/(R2+Ro);\n", + "Vl=Ip*R2;\n", + "Pl=D*Vl*Ip;\n", + "Vq=Ip*Ro;\n", + "Pq=D*Vq*Ip;\n", + "T=40+round(Pq*10)/10*Q;\n", + "\n", + "#result\n", + "print \"worst case resistance is\",round(Ro,3), \"ohm\"\n", + "print \"load current is\",round(Ip,2),\"A\"\n", + "print \"load voltage is\",round(Vl,2), \"V\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"drop voltage is\",round(Vq,2), \"V\"\n", + "print \"power is\",round(Pq*10,2)/10, \"W\"\n", + "print \"temperature is\",round(T,2), \"deg.C\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.8,Page 292" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "voltage is 150.0 V\n" + ] + } + ], + "source": [ + "#finding voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "L=10.0;#inductor\n", + "I=4.5;#current\n", + "t=300.0#time\n", + "\n", + "#calculation\n", + "V=L*I/t;\n", + "\n", + "#result\n", + "print \"voltage is\",round(V*1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.9,Page 298" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R1+R2 is 682.5 ohm\n", + "pick R1=330ohm & R2=360ohm as they divide Vd setting 8V<Vg<18V\n", + "node voltage for V1 is 28.0 V\n", + "node voltage for V2 is 0.7 V\n", + "gate voltage is 15.31 V\n", + "gate & source diff is -12.69 V\n", + "load voltage is 26.73 V\n", + "load current is 2.23 A\n", + "load power is 47.63 W\n", + "Pq is 2.26 W\n", + "thermal resistance is 44.92 degreeC/W\n" + ] + } + ], + "source": [ + "#finding resistance and power characteristics\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=12.0;#load resistance\n", + "V1=.8;#voltage\n", + "V2=2.4;#voltage\n", + "D=.8;#duty cycle\n", + "Tj=150.0;#degreeC\n", + "Ta=40.0;#degreeC\n", + "Vd=28.0;\n", + "Vo=.7;\n", + "I=40.0;#mA;\n", + "R1=330;\n", + "R2=360;\n", + "Vn1=28;\n", + "Vn2=.7;\n", + "\n", + "#calculation\n", + "k=(Vd-Vo)/I;\n", + "Vg=R2*Vd/(R1+R2)+Vn2;\n", + "Vgs=Vg-Vd;\n", + "Vl=Vd*Rl/(Rl+.57);\n", + "Il=Vl/Rl;\n", + "Pl=D*Vl*Il;\n", + "Vq=Il*.57;\n", + "Pq=D*Vq*Il;\n", + "Q=(Tj-Ta)/Pq-3.7;\n", + "\n", + "#result\n", + "print \"R1+R2 is\",round(k*1000,2), \"ohm\"\n", + "print('pick R1=330ohm & R2=360ohm as they divide Vd setting 8V<Vg<18V')\n", + "print \"node voltage for V1 is\",round(Vn1,2),\"V\"\n", + "print \"node voltage for V2 is\",round(Vn2,2), \"V\"\n", + "print \"gate voltage is\",round(Vg,2), \"V\"\n", + "print \"gate & source diff is\",round(Vgs,2), \"V\"\n", + "print \"load voltage is\",round(Vl,3), \"V\"\n", + "print \"load current is\",round(Il,2), \"A\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"Pq is\",round(Pq,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,2), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.10,Page 305" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time is 1.1 micro s\n" + ] + } + ], + "source": [ + "#finding time\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=40.0;#current\n", + "Q=44.0;#nC\n", + "\n", + "#calculation\n", + "t=Q/I;\n", + "\n", + "#result\n", + "print \"time is\",round(t,2), \"micro s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.11,Page 313" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current is 1.8 A\n", + "load voltage is 26.97 V\n", + "power is 40.85 W\n", + "high side voltage is 0.67 V\n", + "high side power is 1.03 W\n", + "low side voltage is 0.36 V\n", + "low side power is 0.55 W\n", + "IC power is 1.56 W\n", + "thermal resistance is 55.49 degreeC/W\n" + ] + } + ], + "source": [ + "#finding different voltages and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=15.0;#load resistance\n", + "D=.85;#duty cycle\n", + "Ts=60.0;#degreeC\n", + "Vd=28.0;#voltage\n", + "R1=.375;\n", + "R2=.2;\n", + "\n", + "#calculation\n", + "I=Vd/(R1+R2+Rl);\n", + "Vl1=I*Rl;\n", + "P=D*Vl*I;\n", + "Vh=I*R1;\n", + "Ph=D*Vh*I;\n", + "Vl=I*R2;\n", + "Pl=D*Vl*I;\n", + "Pic=Ph+Pl;\n", + "Pic=1.56;\n", + "Tj=150;\n", + "Ta=60;\n", + "Q=(Tj-Ta)/Pic-2.2;\n", + "\n", + "#result\n", + "print \"current is\",round(I,2), \"A\"\n", + "print \"load voltage is\",round(Vl1,2), \"V\"\n", + "print \"power is\",round(P,2), \"W\"\n", + "print \"high side voltage is\",round(Vh,2), \"V\"\n", + "print \"high side power is\",round(Ph,2), \"W\"\n", + "print \"low side voltage is\",round(Vl,2), \"V\"\n", + "print \"low side power is\",round(Pl,2), \"W\"\n", + "print \"IC power is\",round(Pic,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,2), \"degreeC/W\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6_1.ipynb new file mode 100644 index 00000000..0c7858a4 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6_1.ipynb @@ -0,0 +1,528 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6: Power Switches" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.1,Page 274" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "collector current is 1.81 A\n", + "load power is 49.32 W\n", + "transistor power is 1.45 W\n", + "least value of base current is 90.67 mA\n", + "max value of base resistance is 4.85 ohm\n", + "thus pick Rb=33ohm\n" + ] + } + ], + "source": [ + "#finding Ic,Pload,Pq,Ibase,Rbase\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vs=28.0;#V\n", + "Vi=5.0;#V\n", + "Rl=15.0;#ohm\n", + "Vc=.8;#V\n", + "b=20.0;\n", + "\n", + "#calculation\n", + "Ic=(Vs-Vc)/Rl;\n", + "Pl=Ic**2*Rl;\n", + "Pq=Ic*Vc;\n", + "Ib=Ic/b*1000;\n", + "Rb=(Vi-.6)/Ib;\n", + "\n", + "#result\n", + "print \"collector current is\",round(Ic,2), \"A\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"transistor power is\",round(Pq,2), \"W\"\n", + "print \"least value of base current is\",round(Ib,2), \"mA\"\n", + "print \"max value of base resistance is\",round(Rb*100,2), \"ohm\"\n", + "print ('thus pick Rb=33ohm')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.4,Page 282" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load resistance is 554.0 ohm\n", + "thus pick Rl=560ohm\n", + "max value of Rb is 3.0 kohm\n", + "thus pick Rb=2.2kohm\n", + "load current is 49.46 mA\n", + "load power is 685.08 mW\n", + "power delivered is 7.42 mW\n" + ] + } + ], + "source": [ + "#finding Pload,Pq,Iload,resistances\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vd=28.0;#V\n", + "f=100.0;#frequency\n", + "I=50.0;#current\n", + "Rl1=560.0;\n", + "Vp=2.4;\n", + "Ib=500.0;#microAmp\n", + "D=.5;#duty cycle\n", + "\n", + "#calculation\n", + "Rl=(Vd-.3)/I;\n", + "Rb=(Vp-.9)/Ib;\n", + "Vl=Vd-.3;\n", + "Ip=Vl/Rl1;\n", + "Pl=D*Vl*Ip;\n", + "Pq=D*Ip*.3;\n", + "\n", + "#result\n", + "print \"load resistance is\",round(Rl*1000), \"ohm\"\n", + "print('thus pick Rl=560ohm')\n", + "print \"max value of Rb is\",round(Rb*1000,2),\"kohm\"\n", + "print('thus pick Rb=2.2kohm')\n", + "print \"load current is\",round(Ip*1000,2), \"mA\"\n", + "print \"load power is\",round(Pl*1000,2), \"mW\"\n", + "print \"power delivered is\",round(Pq*1000,2), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.5,Page 286" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time of rise is 788.48 ns\n", + "time of rise is 4.65 microsec\n" + ] + } + ], + "source": [ + "#finding time of rise\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "C=640.0;#capacitor\n", + "R1=560.0;#load resistance\n", + "R2=3.3;#kohm\n", + "\n", + "#calculation\n", + "t1=2.2*R1*C;\n", + "t2=2.2*R2*C;\n", + "\n", + "#result\n", + "print \"time of rise is\",round(t1/1000,2), \"ns\"\n", + "print \"time of rise is\",round(t2/1000,2), \"microsec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.6,Page 287" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "resistance is 682.5 ohm\n", + "pick up resistance=680 ohm\n", + "rise time is 957.44 ns\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEZCAYAAACervI0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGQJJREFUeJzt3XuQXGWdh/FnkgkxkISEiyEEcCQsiBguLuAFLy0qxVYE\nZNeyQNwFRbC2RNDVFXBdmdWqJUKJWrulW6uAQTQqoEi0QIhLLxfxgiQkhITInUAyYU0gIQESkt4/\n3tNMz6RnpufS/b7n9POp6prTZ87p/tFkzve873nf0yBJkiRJkiRJkiRJkiRJkiRJasADwLtiFyFJ\nKbsF+Lc6608B1gDjRvHa3we+Oor9U3sfadhG8wckNdv3gY/WWf/3wLXAjpZWI0lqmUnAc8A7a9ZN\nB14E5gATgW8CT2ePbwC7ZNudBdzZ7/V2ALOBc4GtwMvAJuAXdd77O8Dl/db9AvhMtnwhsBrYCKwE\njq/zGgO9z+M123cD1wE/yF5rKfBXwMVAD/AE8P6a19wduBJ4Jnv/r+KJnKSC+m/guzXPPwncly1/\nBfgtsFf2uDtbBwMHwIHZ8tU129bzTuDJmufTgS3APsAh2e/2yX53QM3r9lfvfR6jbwC8SDjIjwfm\nEwLi4uz5J4BHa/b9OSGcJgF7A78nBI0kFc5xwAZ6z+zvBi7Ilh8GTqzZ9gTCwRUaC4DB+uY7CGff\n1dbHOcCibPkgwtn5e4EJQ9Rf7336B8Cva353EqG10JE9n5LVPRWYAbwEvKZm+9OB/xmiBq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CeHGXfcAJ4zgv1uS2t7r6D3o1i6fRfiWud2AvYDngXOz311BuNsqwG+A\ng7Llt2TPIdxX5XM173M7cGm2fD5hSv4Mwj2sniIEShd9A+BzwJez5afpPdOfWrPNx2jfe/uoxZrZ\nnJVi6BhgGcJBe3P2eI7em8otAw4nhMPb6XvdYJfs5wHAXf1er3pPogeyR/U+7I8S7mS7cZD6lhK+\nwvBG+t7p9Rm855NaxABQO3m5ZnlHzfMdhL+FccAGwpfv1NM/UGr37//anYTuotpu1kk1y3OBdwEn\nAf8CvCnbbxx+L4ZaxGsAKppNwJRh7lM9sG8iXB/4UM36w7PlJ+i9z3qjeoDXEu7QOJHwxTaV7HUP\nIFxHuIgwcmlyts/M7L2kprMFoKL5C3A3oVtnBb1n0/2/Han/cvX5GcB3gC8R+ugXELpr7iJcOK5n\noG9e2gZ8BfgDoc//wWz9eOAHhAN/B/AteruLjsXvO5CkpFSHge4y1IajMI4wDNQTM7XE+NgFSDky\nnvANdUua9PonEVow5Sa9viRJkiRJkiRJkiRJkiRJkqT8+3+DM0mrOvS/VQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f4e9da3f2d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#finding Rpick up,time of rise\n", + "\n", + "#initialisation of variable\n", + "%matplotlib inline\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "Vol=0.7;\n", + "Iol=40.0/1000;#current\n", + "Rpullup1=680.0;\n", + "C=640.0;\n", + "Epullup=28.0;\n", + "#for plotting\n", + "x=[0, .1, 1.9, 4.1, 5, 5.1, 5.3, 5.6, 6.0, 9.3];\n", + "y=[27.8, .1, .1, .1, .1, 5, 13.5, 21.0, 27.0, 27.8];\n", + "\n", + "#calculation\n", + "Rpullup=(Epullup-Vol)/Iol;\n", + "trise=2.2*Rpullup1*C;\n", + "plt.plot(x,y,'r');\n", + "plt.xlabel ('time(mus)')\n", + "plt.ylabel ('Vout')\n", + "plt.title ('Vout vs time')\n", + "\n", + "#result\n", + "print \"resistance is\",round(Rpullup,2), \"ohm\"\n", + "print('pick up resistance=680 ohm');\n", + "print \"rise time is\",round(trise/1000,2), \"ns\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.7,Page 289" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "worst case resistance is 0.286 ohm\n", + "load current is 4.45 A\n", + "load voltage is 26.73 V\n", + "load power is 47.62 W\n", + "drop voltage is 1.27 V\n", + "power is 2.27 W\n", + "temperature is 182.6 deg.C\n" + ] + } + ], + "source": [ + "#finding worst case resistance and power characteristics\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R1=.11;#resistance\n", + "Vd=28.0;#voltage\n", + "R2=6.0;#ohm\n", + "D=.4;#duty cycle\n", + "Q=62.0;\n", + "\n", + "#calculation\n", + "Ro=2.6*R1;\n", + "Ip=Vd/(R2+Ro);\n", + "Vl=Ip*R2;\n", + "Pl=D*Vl*Ip;\n", + "Vq=Ip*Ro;\n", + "Pq=D*Vq*Ip;\n", + "T=40+round(Pq*10)/10*Q;\n", + "\n", + "#result\n", + "print \"worst case resistance is\",round(Ro,3), \"ohm\"\n", + "print \"load current is\",round(Ip,2),\"A\"\n", + "print \"load voltage is\",round(Vl,2), \"V\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"drop voltage is\",round(Vq,2), \"V\"\n", + "print \"power is\",round(Pq*10,2)/10, \"W\"\n", + "print \"temperature is\",round(T,2), \"deg.C\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.8,Page 292" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "voltage is 150.0 V\n" + ] + } + ], + "source": [ + "#finding voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "L=10.0;#inductor\n", + "I=4.5;#current\n", + "t=300.0#time\n", + "\n", + "#calculation\n", + "V=L*I/t;\n", + "\n", + "#result\n", + "print \"voltage is\",round(V*1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.9,Page 298" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R1+R2 is 682.5 ohm\n", + "pick R1=330ohm & R2=360ohm as they divide Vd setting 8V<Vg<18V\n", + "node voltage for V1 is 28.0 V\n", + "node voltage for V2 is 0.7 V\n", + "gate voltage is 15.31 V\n", + "gate & source diff is -12.69 V\n", + "load voltage is 26.73 V\n", + "load current is 2.23 A\n", + "load power is 47.63 W\n", + "Pq is 2.26 W\n", + "thermal resistance is 44.92 degreeC/W\n" + ] + } + ], + "source": [ + "#finding resistance and power characteristics\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=12.0;#load resistance\n", + "V1=.8;#voltage\n", + "V2=2.4;#voltage\n", + "D=.8;#duty cycle\n", + "Tj=150.0;#degreeC\n", + "Ta=40.0;#degreeC\n", + "Vd=28.0;\n", + "Vo=.7;\n", + "I=40.0;#mA;\n", + "R1=330;\n", + "R2=360;\n", + "Vn1=28;\n", + "Vn2=.7;\n", + "\n", + "#calculation\n", + "k=(Vd-Vo)/I;\n", + "Vg=R2*Vd/(R1+R2)+Vn2;\n", + "Vgs=Vg-Vd;\n", + "Vl=Vd*Rl/(Rl+.57);\n", + "Il=Vl/Rl;\n", + "Pl=D*Vl*Il;\n", + "Vq=Il*.57;\n", + "Pq=D*Vq*Il;\n", + "Q=(Tj-Ta)/Pq-3.7;\n", + "\n", + "#result\n", + "print \"R1+R2 is\",round(k*1000,2), \"ohm\"\n", + "print('pick R1=330ohm & R2=360ohm as they divide Vd setting 8V<Vg<18V')\n", + "print \"node voltage for V1 is\",round(Vn1,2),\"V\"\n", + "print \"node voltage for V2 is\",round(Vn2,2), \"V\"\n", + "print \"gate voltage is\",round(Vg,2), \"V\"\n", + "print \"gate & source diff is\",round(Vgs,2), \"V\"\n", + "print \"load voltage is\",round(Vl,3), \"V\"\n", + "print \"load current is\",round(Il,2), \"A\"\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"Pq is\",round(Pq,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,2), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.10,Page 305" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time is 1.1 micro s\n" + ] + } + ], + "source": [ + "#finding time\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=40.0;#current\n", + "Q=44.0;#nC\n", + "\n", + "#calculation\n", + "t=Q/I;\n", + "\n", + "#result\n", + "print \"time is\",round(t,2), \"micro s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 6.11,Page 313" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current is 1.8 A\n", + "load voltage is 26.97 V\n", + "power is 40.85 W\n", + "high side voltage is 0.67 V\n", + "high side power is 1.03 W\n", + "low side voltage is 0.36 V\n", + "low side power is 0.55 W\n", + "IC power is 1.56 W\n", + "thermal resistance is 55.49 degreeC/W\n" + ] + } + ], + "source": [ + "#finding different voltages and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Rl=15.0;#load resistance\n", + "D=.85;#duty cycle\n", + "Ts=60.0;#degreeC\n", + "Vd=28.0;#voltage\n", + "R1=.375;\n", + "R2=.2;\n", + "\n", + "#calculation\n", + "I=Vd/(R1+R2+Rl);\n", + "Vl1=I*Rl;\n", + "P=D*Vl*I;\n", + "Vh=I*R1;\n", + "Ph=D*Vh*I;\n", + "Vl=I*R2;\n", + "Pl=D*Vl*I;\n", + "Pic=Ph+Pl;\n", + "Pic=1.56;\n", + "Tj=150;\n", + "Ta=60;\n", + "Q=(Tj-Ta)/Pic-2.2;\n", + "\n", + "#result\n", + "print \"current is\",round(I,2), \"A\"\n", + "print \"load voltage is\",round(Vl1,2), \"V\"\n", + "print \"power is\",round(P,2), \"W\"\n", + "print \"high side voltage is\",round(Vh,2), \"V\"\n", + "print \"high side power is\",round(Ph,2), \"W\"\n", + "print \"low side voltage is\",round(Vl,2), \"V\"\n", + "print \"low side power is\",round(Pl,2), \"W\"\n", + "print \"IC power is\",round(Pic,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,2), \"degreeC/W\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb new file mode 100644 index 00000000..45af7d98 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb @@ -0,0 +1,505 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7: Switiching Power Supplies" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.1,Page 326" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 0.25\n", + "average voltage is 3.0 V\n" + ] + } + ], + "source": [ + "#finding duty cycle and average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "T=20.0;#time\n", + "Vp=12.0;#voltage\n", + "t=5.0;\n", + "\n", + "#calculation\n", + "D=t/T;\n", + "Vd=(D*Vp);\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D,3)\n", + "print \"average voltage is\",round(Vd,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.2,Page 238" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 42.0 %\n", + "time is 10.0 microsec\n", + "on time is 4.167 microsec\n", + "ripple current is 133.636 mA\n", + "load current is 500.0 mA\n", + "peak inductor current is 566.818 mA\n" + ] + } + ], + "source": [ + "#finding on time ripple,load,peak inductor current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vd=12.0;#voltage\n", + "Vl=5.0;#load voltage\n", + "Rl=10.0;#load resistance\n", + "f=100.0;#frequency\n", + "L=220.0;#inductor\n", + "\n", + "#calculation\n", + "D=Vl/Vd;\n", + "T=1/f;\n", + "t=D*T;\n", + "Vr=Vd-Vl;\n", + "I=Vr*round(t*10000)/10/L;\n", + "Il=Vl/Rl;\n", + "Ip=Il+I/2;\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D*100), \"%\"\n", + "print \"time is\",round(T*1000,3), \"microsec\"\n", + "print \"on time is\",round(t*10000,2)/10, \"microsec\"\n", + "print \"ripple current is\",round(I*1000,3),\"mA\"\n", + "print \"load current is\",round(Il*1000,3), \"mA\"\n", + "print \"peak inductor current is\",round(Ip*1000,3), \"mA\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.3,Page 335" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms current is 325.01 mA\n", + "by trapezium method\n", + "rms current is 324.04 mA\n", + "by rectangle method\n", + "\n", + " rectangle method gives good result than trapezium method\n" + ] + } + ], + "source": [ + "#finding rms current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Id=500.0;#load current\n", + "i=134;#mA\n", + "D=.42;#duty cycle\n", + "\n", + "#calculation\n", + "Ip=Id+i/2;\n", + "Im=Id-i/2;\n", + "I1=((D/3)*(Ip**2+Im*Ip+Im**2))**.5;\n", + "I2=D**.5*Id;\n", + "\n", + "#result\n", + "print \"rms current is\",round(I1,2), \"mA\"\n", + "print('by trapezium method')\n", + "print \"rms current is\",round(I2,2), \"mA\"\n", + "print('by rectangle method')\n", + "print '\\n rectangle method gives good result than trapezium method'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.4,Page 336" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "voltage is 0.3 V\n", + "dissipated power is 63.0 mW\n" + ] + } + ], + "source": [ + "#finding voltage and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=.3;#voltage\n", + "I=500.0;#current\n", + "D=.42;#duty cycle\n", + "T=150.0;#temperature\n", + "R=.6;#ohm\n", + "\n", + "#calculation\n", + "Vq=I*R;\n", + "Pq=D*Vq*I;\n", + "\n", + "#result\n", + "print \"voltage is\",round(Vq/1000,2), \"V\"\n", + "print \"dissipated power is\",round(Pq/1000,2), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.5,Page 341" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 42.0 %\n", + "time period is 6.667 microsec\n", + "on time is 2.778 microsec\n", + "load current is 500.0 mA\n", + "ripple current is 125.0 mA\n", + "inductor voltage is 7.0 V\n", + "inductor is 155.556 microH\n", + "inductor current is 562.5 mA\n", + "minimum capacitor current is 250.0 mA\n", + "minimum capacitor voltage is 18.0 V\n", + "Rf/Ri is 3.07\n", + "power of LM2595 is 0.33 W\n", + "thermal resistance is 210.998 degreeC/W\n" + ] + } + ], + "source": [ + "#finding all componenets\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R=10.0;#resistance\n", + "V1=5.0;#V\n", + "V2=12.0;#V\n", + "Ta=80.0;#degreeC\n", + "Tb=150.0;\n", + "f=150.0;#frequency\n", + "\n", + "#calculation\n", + "D=V1/V2;\n", + "T=1/f;\n", + "t=D*T;\n", + "Id=V1/R;\n", + "i=.25*Id;\n", + "Vl=V2-V1;\n", + "L=Vl*t/i;\n", + "Ip=Id+i/2;\n", + "Ic=Id/2;\n", + "Vc=1.5*V2;\n", + "K=V1/1.23-1;\n", + "P=.01*V2+D*Id*1;\n", + "Q=(Tb-Ta)/P-2.2;\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D*100), \"%\"\n", + "print \"time period is\",round(T*1000,3), \"microsec\"\n", + "print \"on time is\",round(t*1000,3), \"microsec\"\n", + "print \"load current is\",round(Id*1000,3), \"mA\"\n", + "print \"ripple current is\",round(i*1000,3), \"mA\"\n", + "print \"inductor voltage is\",round(Vl,2), \"V\"\n", + "print \"inductor is\",round(L*1000,3), \"microH\"\n", + "print \"inductor current is\",round(Ip*1000,2), \"mA\"\n", + "print \"minimum capacitor current is\",round(Ic*1000,2), \"mA\"\n", + "print \"minimum capacitor voltage is\",round(Vc,3), \"V\"\n", + "print \"Rf/Ri is\",round(K,2)\n", + "print \"power of LM2595 is\",round(P,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,3), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.6,Page 349" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load power is 15.4 W\n", + "supply power is 17.11 W\n", + "dc current is 1.4 A\n", + "inductor current is 1.57 A\n", + "duty cycle is 0.45\n", + "inductor is 154.29 microH\n", + "transistor power is 352.8 mW\n", + "diode power is 385.0 mW\n", + "capacitor is 157.5 microF\n" + ] + } + ], + "source": [ + "#finding different power,inductor current,inductor value\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0#V\n", + "V2=22.0;#V\n", + "I=.7;#A\n", + "f=100.0;#kHz\n", + "R=.4;#ohm\n", + "Vd=.5;\n", + "\n", + "#calculation\n", + "Pl=V2*I;\n", + "Ps=Pl/.9;\n", + "Id=round(Ps/V1*10)/10;\n", + "i=.25*Id;\n", + "Ip=Id+i/2;\n", + "D=round((1-V1/V2)*100)/100;\n", + "t=D/f;\n", + "L=V1*t/i;\n", + "Vp=Id*R;\n", + "Pq=D*Vp*Id;\n", + "Pd=(1-D)*.5*Id;\n", + "C=Id*t/2/20;\n", + "\n", + "#result\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"supply power is\",round(Ps,2), \"W\"\n", + "print \"dc current is\",round(Id,2), \"A\"\n", + "print \"inductor current is\",round(Ip,2), \"A\"\n", + "print \"duty cycle is\",round(D,2)\n", + "print \"inductor is\",round(L*1000,2), \"microH\"\n", + "print \"transistor power is\",round(Pq*1000,2), \"mW\"\n", + "print \"diode power is\",round(Pd*100,2)*10, \"mW\"\n", + "print \"capacitor is\",round(C*1e6,2), \"microF\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.7,Page 355" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rf/Ri is 16.886\n", + "pick Rf=22; Ri=1.3;\n", + "rms current is 1.4 A\n", + "switch power is 132.3 mW\n", + "IC power is 151.2 mW\n", + "total power is 283.5 mW\n", + "IC temperature is 98.43 degreeC\n" + ] + } + ], + "source": [ + "#finding feedback resistor,power,current and temperature\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0;#V\n", + "V2=22.0;#V\n", + "I=.7;#A\n", + "Ta=80.0;#degreeC\n", + "Ps=17.1#supply power\n", + "\n", + "#calculation\n", + "K=V2/1.23-1;\n", + "Id=round(Ps/V1*10)/10;\n", + "D=round((1-(V1/V2))*100)/100;\n", + "Ir=D**.5*Id;\n", + "Ps=Ir**2*.15;\n", + "Pi=D*Id*V1/50;\n", + "P=Ps+Pi;\n", + "T=Ta+P*65;\n", + "\n", + "#result\n", + "print \"Rf/Ri is\",round(K,3)\n", + "print('pick Rf=22; Ri=1.3;')\n", + "print \"rms current is\",round(Id,2), \"A\"\n", + "print \"switch power is\",round(Ps*1000,2), \"mW\"\n", + "print \"IC power is\",round(Pi*1000,2), \"mW\"\n", + "print \"total power is\",round(P*1000,2), \"mW\"\n", + "print \"IC temperature is\",round(T,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.8,Page 359" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum voltage is 18.25 V\n", + "diode voltage is 20.0 V\n", + "duty cycle is 0.34\n", + "power delivered is 5.0 W\n", + "average current is 466.67 mA\n", + "mid primary current is 1.37 A\n", + "rms current is 800.33 mA\n", + "ramp current is 480.0 mA\n", + "maximum transistor current is 1.61 A\n", + "minimum transistor current is 1.13 A\n", + "diode peak current is 2.02 A\n", + "secondary rms current is 1.23 A\n", + "capacitor is 170.0 microF\n" + ] + } + ], + "source": [ + "#designing circuit and finding circuit parameter\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0;#V\n", + "V2=5.0;#V\n", + "Il=1.0;#load current\n", + "T=10.0;#microsec\n", + "K=1.25;#Npri/Nsec\n", + "L=85.0;#microH\n", + "\n", + "#calculation\n", + "Vq=V1+V2*K;\n", + "Vd=V1*K+V2;\n", + "D=round((K*V2)*100/(V1+K*V2))/100;\n", + "Po=V2*Il;\n", + "Pi=round(Po/.09)/10;\n", + "Id=Pi/V1;\n", + "Im=Id/D;\n", + "Ir=(Im*D**.5);\n", + "i=V1*D*T/L;\n", + "IM=Im+.24;\n", + "Imin=Im-.24;\n", + "Ip=K*IM;\n", + "Imid=Il/(1-D);\n", + "Irms=Imid*(1-D)**.5;\n", + "C=D*Il*T/20;\n", + "\n", + "#result\n", + "print \"maximum voltage is\",round(Vq,2), \"V\"\n", + "print \"diode voltage is\",round(Vd,2), \"V\"\n", + "print \"duty cycle is\",round(D,2)\n", + "print \"power delivered is\",round(Po,2), \"W\"\n", + "print \"average current is\",round(Id*1000,2), \"mA\"\n", + "print \"mid primary current is\",round(Im,2), \"A\"\n", + "print \"rms current is\",round(Ir*1000,2),\"mA\"\n", + "print \"ramp current is\",round(i*1000,2), \"mA\"\n", + "print \"maximum transistor current is\",round(IM,2),\"A\"\n", + "print \"minimum transistor current is\",round(Imin,2),\"A\"\n", + "print \"diode peak current is\",round(Ip,2), \"A\"\n", + "print \"secondary rms current is\",round(Irms,2),\"A\"\n", + "print \"capacitor is\",round(C*1000,2), \"microF\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7_1.ipynb new file mode 100644 index 00000000..45af7d98 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7_1.ipynb @@ -0,0 +1,505 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7: Switiching Power Supplies" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.1,Page 326" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 0.25\n", + "average voltage is 3.0 V\n" + ] + } + ], + "source": [ + "#finding duty cycle and average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "T=20.0;#time\n", + "Vp=12.0;#voltage\n", + "t=5.0;\n", + "\n", + "#calculation\n", + "D=t/T;\n", + "Vd=(D*Vp);\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D,3)\n", + "print \"average voltage is\",round(Vd,3), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.2,Page 238" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 42.0 %\n", + "time is 10.0 microsec\n", + "on time is 4.167 microsec\n", + "ripple current is 133.636 mA\n", + "load current is 500.0 mA\n", + "peak inductor current is 566.818 mA\n" + ] + } + ], + "source": [ + "#finding on time ripple,load,peak inductor current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vd=12.0;#voltage\n", + "Vl=5.0;#load voltage\n", + "Rl=10.0;#load resistance\n", + "f=100.0;#frequency\n", + "L=220.0;#inductor\n", + "\n", + "#calculation\n", + "D=Vl/Vd;\n", + "T=1/f;\n", + "t=D*T;\n", + "Vr=Vd-Vl;\n", + "I=Vr*round(t*10000)/10/L;\n", + "Il=Vl/Rl;\n", + "Ip=Il+I/2;\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D*100), \"%\"\n", + "print \"time is\",round(T*1000,3), \"microsec\"\n", + "print \"on time is\",round(t*10000,2)/10, \"microsec\"\n", + "print \"ripple current is\",round(I*1000,3),\"mA\"\n", + "print \"load current is\",round(Il*1000,3), \"mA\"\n", + "print \"peak inductor current is\",round(Ip*1000,3), \"mA\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.3,Page 335" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms current is 325.01 mA\n", + "by trapezium method\n", + "rms current is 324.04 mA\n", + "by rectangle method\n", + "\n", + " rectangle method gives good result than trapezium method\n" + ] + } + ], + "source": [ + "#finding rms current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Id=500.0;#load current\n", + "i=134;#mA\n", + "D=.42;#duty cycle\n", + "\n", + "#calculation\n", + "Ip=Id+i/2;\n", + "Im=Id-i/2;\n", + "I1=((D/3)*(Ip**2+Im*Ip+Im**2))**.5;\n", + "I2=D**.5*Id;\n", + "\n", + "#result\n", + "print \"rms current is\",round(I1,2), \"mA\"\n", + "print('by trapezium method')\n", + "print \"rms current is\",round(I2,2), \"mA\"\n", + "print('by rectangle method')\n", + "print '\\n rectangle method gives good result than trapezium method'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.4,Page 336" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "voltage is 0.3 V\n", + "dissipated power is 63.0 mW\n" + ] + } + ], + "source": [ + "#finding voltage and power\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "Vp=.3;#voltage\n", + "I=500.0;#current\n", + "D=.42;#duty cycle\n", + "T=150.0;#temperature\n", + "R=.6;#ohm\n", + "\n", + "#calculation\n", + "Vq=I*R;\n", + "Pq=D*Vq*I;\n", + "\n", + "#result\n", + "print \"voltage is\",round(Vq/1000,2), \"V\"\n", + "print \"dissipated power is\",round(Pq/1000,2), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.5,Page 341" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "duty cycle is 42.0 %\n", + "time period is 6.667 microsec\n", + "on time is 2.778 microsec\n", + "load current is 500.0 mA\n", + "ripple current is 125.0 mA\n", + "inductor voltage is 7.0 V\n", + "inductor is 155.556 microH\n", + "inductor current is 562.5 mA\n", + "minimum capacitor current is 250.0 mA\n", + "minimum capacitor voltage is 18.0 V\n", + "Rf/Ri is 3.07\n", + "power of LM2595 is 0.33 W\n", + "thermal resistance is 210.998 degreeC/W\n" + ] + } + ], + "source": [ + "#finding all componenets\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R=10.0;#resistance\n", + "V1=5.0;#V\n", + "V2=12.0;#V\n", + "Ta=80.0;#degreeC\n", + "Tb=150.0;\n", + "f=150.0;#frequency\n", + "\n", + "#calculation\n", + "D=V1/V2;\n", + "T=1/f;\n", + "t=D*T;\n", + "Id=V1/R;\n", + "i=.25*Id;\n", + "Vl=V2-V1;\n", + "L=Vl*t/i;\n", + "Ip=Id+i/2;\n", + "Ic=Id/2;\n", + "Vc=1.5*V2;\n", + "K=V1/1.23-1;\n", + "P=.01*V2+D*Id*1;\n", + "Q=(Tb-Ta)/P-2.2;\n", + "\n", + "#result\n", + "print \"duty cycle is\",round(D*100), \"%\"\n", + "print \"time period is\",round(T*1000,3), \"microsec\"\n", + "print \"on time is\",round(t*1000,3), \"microsec\"\n", + "print \"load current is\",round(Id*1000,3), \"mA\"\n", + "print \"ripple current is\",round(i*1000,3), \"mA\"\n", + "print \"inductor voltage is\",round(Vl,2), \"V\"\n", + "print \"inductor is\",round(L*1000,3), \"microH\"\n", + "print \"inductor current is\",round(Ip*1000,2), \"mA\"\n", + "print \"minimum capacitor current is\",round(Ic*1000,2), \"mA\"\n", + "print \"minimum capacitor voltage is\",round(Vc,3), \"V\"\n", + "print \"Rf/Ri is\",round(K,2)\n", + "print \"power of LM2595 is\",round(P,2), \"W\"\n", + "print \"thermal resistance is\",round(Q,3), \"degreeC/W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.6,Page 349" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "load power is 15.4 W\n", + "supply power is 17.11 W\n", + "dc current is 1.4 A\n", + "inductor current is 1.57 A\n", + "duty cycle is 0.45\n", + "inductor is 154.29 microH\n", + "transistor power is 352.8 mW\n", + "diode power is 385.0 mW\n", + "capacitor is 157.5 microF\n" + ] + } + ], + "source": [ + "#finding different power,inductor current,inductor value\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0#V\n", + "V2=22.0;#V\n", + "I=.7;#A\n", + "f=100.0;#kHz\n", + "R=.4;#ohm\n", + "Vd=.5;\n", + "\n", + "#calculation\n", + "Pl=V2*I;\n", + "Ps=Pl/.9;\n", + "Id=round(Ps/V1*10)/10;\n", + "i=.25*Id;\n", + "Ip=Id+i/2;\n", + "D=round((1-V1/V2)*100)/100;\n", + "t=D/f;\n", + "L=V1*t/i;\n", + "Vp=Id*R;\n", + "Pq=D*Vp*Id;\n", + "Pd=(1-D)*.5*Id;\n", + "C=Id*t/2/20;\n", + "\n", + "#result\n", + "print \"load power is\",round(Pl,2), \"W\"\n", + "print \"supply power is\",round(Ps,2), \"W\"\n", + "print \"dc current is\",round(Id,2), \"A\"\n", + "print \"inductor current is\",round(Ip,2), \"A\"\n", + "print \"duty cycle is\",round(D,2)\n", + "print \"inductor is\",round(L*1000,2), \"microH\"\n", + "print \"transistor power is\",round(Pq*1000,2), \"mW\"\n", + "print \"diode power is\",round(Pd*100,2)*10, \"mW\"\n", + "print \"capacitor is\",round(C*1e6,2), \"microF\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.7,Page 355" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rf/Ri is 16.886\n", + "pick Rf=22; Ri=1.3;\n", + "rms current is 1.4 A\n", + "switch power is 132.3 mW\n", + "IC power is 151.2 mW\n", + "total power is 283.5 mW\n", + "IC temperature is 98.43 degreeC\n" + ] + } + ], + "source": [ + "#finding feedback resistor,power,current and temperature\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0;#V\n", + "V2=22.0;#V\n", + "I=.7;#A\n", + "Ta=80.0;#degreeC\n", + "Ps=17.1#supply power\n", + "\n", + "#calculation\n", + "K=V2/1.23-1;\n", + "Id=round(Ps/V1*10)/10;\n", + "D=round((1-(V1/V2))*100)/100;\n", + "Ir=D**.5*Id;\n", + "Ps=Ir**2*.15;\n", + "Pi=D*Id*V1/50;\n", + "P=Ps+Pi;\n", + "T=Ta+P*65;\n", + "\n", + "#result\n", + "print \"Rf/Ri is\",round(K,3)\n", + "print('pick Rf=22; Ri=1.3;')\n", + "print \"rms current is\",round(Id,2), \"A\"\n", + "print \"switch power is\",round(Ps*1000,2), \"mW\"\n", + "print \"IC power is\",round(Pi*1000,2), \"mW\"\n", + "print \"total power is\",round(P*1000,2), \"mW\"\n", + "print \"IC temperature is\",round(T,2), \"degreeC\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 7.8,Page 359" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum voltage is 18.25 V\n", + "diode voltage is 20.0 V\n", + "duty cycle is 0.34\n", + "power delivered is 5.0 W\n", + "average current is 466.67 mA\n", + "mid primary current is 1.37 A\n", + "rms current is 800.33 mA\n", + "ramp current is 480.0 mA\n", + "maximum transistor current is 1.61 A\n", + "minimum transistor current is 1.13 A\n", + "diode peak current is 2.02 A\n", + "secondary rms current is 1.23 A\n", + "capacitor is 170.0 microF\n" + ] + } + ], + "source": [ + "#designing circuit and finding circuit parameter\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=12.0;#V\n", + "V2=5.0;#V\n", + "Il=1.0;#load current\n", + "T=10.0;#microsec\n", + "K=1.25;#Npri/Nsec\n", + "L=85.0;#microH\n", + "\n", + "#calculation\n", + "Vq=V1+V2*K;\n", + "Vd=V1*K+V2;\n", + "D=round((K*V2)*100/(V1+K*V2))/100;\n", + "Po=V2*Il;\n", + "Pi=round(Po/.09)/10;\n", + "Id=Pi/V1;\n", + "Im=Id/D;\n", + "Ir=(Im*D**.5);\n", + "i=V1*D*T/L;\n", + "IM=Im+.24;\n", + "Imin=Im-.24;\n", + "Ip=K*IM;\n", + "Imid=Il/(1-D);\n", + "Irms=Imid*(1-D)**.5;\n", + "C=D*Il*T/20;\n", + "\n", + "#result\n", + "print \"maximum voltage is\",round(Vq,2), \"V\"\n", + "print \"diode voltage is\",round(Vd,2), \"V\"\n", + "print \"duty cycle is\",round(D,2)\n", + "print \"power delivered is\",round(Po,2), \"W\"\n", + "print \"average current is\",round(Id*1000,2), \"mA\"\n", + "print \"mid primary current is\",round(Im,2), \"A\"\n", + "print \"rms current is\",round(Ir*1000,2),\"mA\"\n", + "print \"ramp current is\",round(i*1000,2), \"mA\"\n", + "print \"maximum transistor current is\",round(IM,2),\"A\"\n", + "print \"minimum transistor current is\",round(Imin,2),\"A\"\n", + "print \"diode peak current is\",round(Ip,2), \"A\"\n", + "print \"secondary rms current is\",round(Irms,2),\"A\"\n", + "print \"capacitor is\",round(C*1000,2), \"microF\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb new file mode 100644 index 00000000..7cf6b405 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb @@ -0,0 +1,326 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8: Thyristors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.3,Page 397" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "inductance is 6.22 microH\n", + "load impedence at angle 90 degree is 0.00195 ohm\n" + ] + } + ], + "source": [ + "#finding inductance,load impedence\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "f=50.0;#hertz\n", + "R=80.0;#load resistance\n", + "K=50.0;#di/dt\n", + "\n", + "#calculation\n", + "L=V*2**.5/K;\n", + "Z=2*pi*f*L;\n", + "\n", + "#result\n", + "print \"inductance is\",round(L,2),\"microH\"\n", + "print \"load impedence at angle 90 degree is\",round(Z*1e-6,5), \"ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.4,Page 400" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "minimum value of capacitor is 0.067 micfoF\n", + "\n", + "choose C=.1 micoF\n", + "capacitor impedence at angle -90degree is 31.83 ohm\n", + "Load current in mA at an angle 90 degrees is 6.91\n", + "Potential drop in V at an angle 90 degrees is 0.55\n", + "Power dissipated is 3 mW\n" + ] + } + ], + "source": [ + "#finding capacitor,current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "f=50.0;#hertz\n", + "R=80.0;#load resistance\n", + "K=75.0;#dv/dt\n", + "Vd=400.0;#DRM voltage\n", + "\n", + "\n", + "#calculation\n", + "C=Vd/R/K;\n", + "C1=.1;\n", + "Z=1/(2*pi*f*C1);\n", + "Iload=V/1000/(-Z*cos(180*pi/180)+R*round(cos(90*pi/180)));\n", + "Vload=Iload/1000*R;\n", + "P=Vload*Iload;\n", + "\n", + "#result\n", + "print \"minimum value of capacitor is\",round(C,3), \"micfoF\"\n", + "print('\\nchoose C=.1 micoF')\n", + "print \"capacitor impedence at angle -90degree is\",round(Z*1000,2), \"ohm\"\n", + "print \"Load current in mA at an angle 90 degrees is\",round(Iload,2)\n", + "print \"Potential drop in V at an angle 90 degrees is\",round(Vload,2)\n", + "print \"Power dissipated is\",int(P), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.5,Page 402" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "snubbing resistnce is 7.39 ohm\n" + ] + } + ], + "source": [ + "#finding snubbing resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220;#line voltage\n", + "f=50;#hertz\n", + "R=80;#load resistance\n", + "I=46;#TSM current\n", + "\n", + "#calculation\n", + "Rs=V*2**.5/(I-V*2**.5/R);\n", + "\n", + "#result\n", + "print \"snubbing resistnce is\",round(Rs,2), \"ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.6,Page 414" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "line period is 16.67 ms\n", + "half-cycle time is 8.333 ms\n", + "no. of cycles is 10.0\n", + "voltage for t1 is 54.0 V\n", + "power for t1 is 291.6 W\n", + "voltage for t2 is 100.0 V\n", + "voltage for t2 is 1000.0 W\n" + ] + } + ], + "source": [ + "#finding voltage , power and cycles\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R=10.0;#load\n", + "V=120.0;#rms voltage\n", + "f=60.0;#hertz\n", + "T=83.3;#ms\n", + "t1=15;#ms\n", + "t2=55;#ms\n", + "\n", + "#calculation\n", + "Tl=1/f;\n", + "Th=Tl/2;\n", + "C=round(T/Th/100)*100;\n", + "D1=.2;\n", + "V1=round(V*D1**.5);\n", + "P1=V1**2/R;\n", + "D2=.7;\n", + "V2=round(V*D2**.5);\n", + "P2=V2**2/R;\n", + "\n", + "#result\n", + "print \"line period is\",round(Tl*1000,2), \"ms\"\n", + "print \"half-cycle time is\",round(Th*1000,3), \"ms\"\n", + "print \"no. of cycles is\",C/1000\n", + "print \"voltage for t1 is\",round(V1,3), \"V\"\n", + "print \"power for t1 is\",round(P1,3), \"W\"\n", + "print \"voltage for t2 is\",round(V2,3), \"V\"\n", + "print \"voltage for t2 is\",round(P2,3), \"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.8,Page 427" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 42.0 V\n", + "dc voltage is 41.0 V\n", + "\n", + "the markers indicae Vp=163V Vave=41\n", + "full-wave rms voltage is 108.0 V\n", + "rms voltage is 108.0 V\n", + "\n", + "the markers indicate Vp=169V ;Vave=106V\n" + ] + } + ], + "source": [ + "#finding dc volatge,average voltage,rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=120.0;#line voltage\n", + "A=60.0;#degree\n", + "D=0.35;\n", + "\n", + "#calculation\n", + "Va=D*V;\n", + "Vd=V*2**.5*(cos(A*pi/180)+1)/2/pi;\n", + "Vr=.9*V;\n", + "Vrms=V*(2**.5)*(.5*(pi-1.047)+.25*sin(2*A*pi/180))**.5/pi**.5;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(Va,3), \"V\"\n", + "print \"dc voltage is\",round(Vd), \"V\"\n", + "print('\\nthe markers indicae Vp=163V Vave=41')\n", + "print \"full-wave rms voltage is\",round(Vr), \"V\"\n", + "print \"rms voltage is\",round(Vrms), \"V\"\n", + "print('\\nthe markers indicate Vp=169V ;Vave=106V')\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.9,Page 430" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 141.18 V\n", + "double checked value of rms voltage is 141.18 V\n" + ] + } + ], + "source": [ + "#finding rms voltage and double checked rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "P=1.3;#kW\n", + "R=15.0;#ohm\n", + "\n", + "#calculation\n", + "Vr=round((P*1000*R)**.5);\n", + "D=Vr/V;\n", + "Vr=V*2**.5*(.5*(pi-1.710)+sin(196*pi/180)/4)**.5/pi**.5;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vr,2), \"V\"\n", + "print \"double checked value of rms voltage is\",round(Vr,2), \"V\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8_1.ipynb new file mode 100644 index 00000000..7cf6b405 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8_1.ipynb @@ -0,0 +1,326 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8: Thyristors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.3,Page 397" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "inductance is 6.22 microH\n", + "load impedence at angle 90 degree is 0.00195 ohm\n" + ] + } + ], + "source": [ + "#finding inductance,load impedence\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "f=50.0;#hertz\n", + "R=80.0;#load resistance\n", + "K=50.0;#di/dt\n", + "\n", + "#calculation\n", + "L=V*2**.5/K;\n", + "Z=2*pi*f*L;\n", + "\n", + "#result\n", + "print \"inductance is\",round(L,2),\"microH\"\n", + "print \"load impedence at angle 90 degree is\",round(Z*1e-6,5), \"ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.4,Page 400" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "minimum value of capacitor is 0.067 micfoF\n", + "\n", + "choose C=.1 micoF\n", + "capacitor impedence at angle -90degree is 31.83 ohm\n", + "Load current in mA at an angle 90 degrees is 6.91\n", + "Potential drop in V at an angle 90 degrees is 0.55\n", + "Power dissipated is 3 mW\n" + ] + } + ], + "source": [ + "#finding capacitor,current\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "f=50.0;#hertz\n", + "R=80.0;#load resistance\n", + "K=75.0;#dv/dt\n", + "Vd=400.0;#DRM voltage\n", + "\n", + "\n", + "#calculation\n", + "C=Vd/R/K;\n", + "C1=.1;\n", + "Z=1/(2*pi*f*C1);\n", + "Iload=V/1000/(-Z*cos(180*pi/180)+R*round(cos(90*pi/180)));\n", + "Vload=Iload/1000*R;\n", + "P=Vload*Iload;\n", + "\n", + "#result\n", + "print \"minimum value of capacitor is\",round(C,3), \"micfoF\"\n", + "print('\\nchoose C=.1 micoF')\n", + "print \"capacitor impedence at angle -90degree is\",round(Z*1000,2), \"ohm\"\n", + "print \"Load current in mA at an angle 90 degrees is\",round(Iload,2)\n", + "print \"Potential drop in V at an angle 90 degrees is\",round(Vload,2)\n", + "print \"Power dissipated is\",int(P), \"mW\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.5,Page 402" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "snubbing resistnce is 7.39 ohm\n" + ] + } + ], + "source": [ + "#finding snubbing resistance\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220;#line voltage\n", + "f=50;#hertz\n", + "R=80;#load resistance\n", + "I=46;#TSM current\n", + "\n", + "#calculation\n", + "Rs=V*2**.5/(I-V*2**.5/R);\n", + "\n", + "#result\n", + "print \"snubbing resistnce is\",round(Rs,2), \"ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.6,Page 414" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "line period is 16.67 ms\n", + "half-cycle time is 8.333 ms\n", + "no. of cycles is 10.0\n", + "voltage for t1 is 54.0 V\n", + "power for t1 is 291.6 W\n", + "voltage for t2 is 100.0 V\n", + "voltage for t2 is 1000.0 W\n" + ] + } + ], + "source": [ + "#finding voltage , power and cycles\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "R=10.0;#load\n", + "V=120.0;#rms voltage\n", + "f=60.0;#hertz\n", + "T=83.3;#ms\n", + "t1=15;#ms\n", + "t2=55;#ms\n", + "\n", + "#calculation\n", + "Tl=1/f;\n", + "Th=Tl/2;\n", + "C=round(T/Th/100)*100;\n", + "D1=.2;\n", + "V1=round(V*D1**.5);\n", + "P1=V1**2/R;\n", + "D2=.7;\n", + "V2=round(V*D2**.5);\n", + "P2=V2**2/R;\n", + "\n", + "#result\n", + "print \"line period is\",round(Tl*1000,2), \"ms\"\n", + "print \"half-cycle time is\",round(Th*1000,3), \"ms\"\n", + "print \"no. of cycles is\",C/1000\n", + "print \"voltage for t1 is\",round(V1,3), \"V\"\n", + "print \"power for t1 is\",round(P1,3), \"W\"\n", + "print \"voltage for t2 is\",round(V2,3), \"V\"\n", + "print \"voltage for t2 is\",round(P2,3), \"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.8,Page 427" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 42.0 V\n", + "dc voltage is 41.0 V\n", + "\n", + "the markers indicae Vp=163V Vave=41\n", + "full-wave rms voltage is 108.0 V\n", + "rms voltage is 108.0 V\n", + "\n", + "the markers indicate Vp=169V ;Vave=106V\n" + ] + } + ], + "source": [ + "#finding dc volatge,average voltage,rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=120.0;#line voltage\n", + "A=60.0;#degree\n", + "D=0.35;\n", + "\n", + "#calculation\n", + "Va=D*V;\n", + "Vd=V*2**.5*(cos(A*pi/180)+1)/2/pi;\n", + "Vr=.9*V;\n", + "Vrms=V*(2**.5)*(.5*(pi-1.047)+.25*sin(2*A*pi/180))**.5/pi**.5;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(Va,3), \"V\"\n", + "print \"dc voltage is\",round(Vd), \"V\"\n", + "print('\\nthe markers indicae Vp=163V Vave=41')\n", + "print \"full-wave rms voltage is\",round(Vr), \"V\"\n", + "print \"rms voltage is\",round(Vrms), \"V\"\n", + "print('\\nthe markers indicate Vp=169V ;Vave=106V')\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 8.9,Page 430" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rms voltage is 141.18 V\n", + "double checked value of rms voltage is 141.18 V\n" + ] + } + ], + "source": [ + "#finding rms voltage and double checked rms voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=220.0;#line voltage\n", + "P=1.3;#kW\n", + "R=15.0;#ohm\n", + "\n", + "#calculation\n", + "Vr=round((P*1000*R)**.5);\n", + "D=Vr/V;\n", + "Vr=V*2**.5*(.5*(pi-1.710)+sin(196*pi/180)/4)**.5/pi**.5;\n", + "\n", + "#result\n", + "print \"rms voltage is\",round(Vr,2), \"V\"\n", + "print \"double checked value of rms voltage is\",round(Vr,2), \"V\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb new file mode 100644 index 00000000..d50d131a --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb @@ -0,0 +1,405 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9: Power Conversation and Motor Drive Operations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.1,Page 457" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "peak voltage is 37.6 V\n", + "load voltage is 35.7 V\n", + "ripple voltage is 3.96 V\n", + "approx. load voltage is 35.62 V\n" + ] + } + ], + "source": [ + "#finding peak,load,ripple voltages\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=28.0;#V\n", + "C=4700.0;#microF\n", + "R=16.0;#load\n", + "f=120.0;#hertz\n", + "\n", + "#calculation\n", + "Vp=V*2**.5-2;\n", + "Vd=0.95*Vp;\n", + "Id=Vd/R;\n", + "v=Id/f/C;\n", + "#approximation\n", + "Vd1=Vp-v*1e6/2;\n", + "\n", + "#result\n", + "print \"peak voltage is\",round(Vp,2), \"V\"\n", + "print \"load voltage is\",round(Vd,1), \"V\"\n", + "print \"ripple voltage is\",round(v*1e6,2), \"V\"\n", + "print \"approx. load voltage is\",round(Vd1,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.2,Page 459" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Zth is 1.0 + 1.0 in ohm\n", + "inductor is 2.65 mH\n" + ] + } + ], + "source": [ + "#finding inductor,Zth\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=120.0;#pri voltage\n", + "V2=28.0;#sec voltage\n", + "I=2.0;#pri current\n", + "f=60.0;#Hz\n", + "Vth=28.8;#open voltage\n", + "V3=12.1;#pri-short voltage\n", + "Is=2.0;#short current at 45 degree\n", + "\n", + "#calculation\n", + "Zi=(V2*V3)/V1/Is*cos(45*pi/180);\n", + "Zj=(V2*V3)/V1/Is*sin(45*pi/180);\n", + "L=Zi/(2*pi*f);\n", + "\n", + "#result\n", + "print'Zth is',round(Zi),'+',round(Zj),'in ohm'\n", + "print \"inductor is\",round(L*1000,2), \"mH\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.4,Page 463" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power factor is 0.32\n" + ] + } + ], + "source": [ + "#finding power factor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I1=1.8;#current\n", + "R=16.0;#resistance\n", + "I2=5.7;#A\n", + "V=28.8;#Voltage\n", + "\n", + "#calculation\n", + "P=I1**2*R;\n", + "S=I2*V;\n", + "Pf=P/S;\n", + "\n", + "#result\n", + "print \"power factor is\",round(Pf,2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.5, Page 468" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aparrent power is 8.14 kVA\n", + "dissipated power is 7.84 kW\n", + "power factor is 0.96\n" + ] + } + ], + "source": [ + "#finding power factor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=22.6;#current\n", + "I2=28.00;\n", + "V=120.0;#Voltage\n", + "V2=280.0;\n", + "\n", + "#calculation\n", + "Pt=3*I*V;\n", + "Pl=I2*V2;\n", + "Pf=Pl/Pt;\n", + "\n", + "#result\n", + "print \"aparrent power is\",round(Pt/1000,2),\"kVA\"\n", + "print \"dissipated power is\",round(Pl/1000,2),\"kW\"\n", + "print \"power factor is\",round(Pl/Pt,2)\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.6,Page 474" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio is 0.72\n", + "firing angle is 58 degrees\n", + "dc voltage is 148.85 V\n", + "time delay is 2.69 ms\n" + ] + } + ], + "source": [ + "#finding firing angle, time delay,Vd\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=208.0;#voltage\n", + "R=100.0;#load\n", + "Vd=150.0;#V\n", + "\n", + "#calculation\n", + "r=Vd/V;\n", + "a=58;#degree\n", + "Vd=3*2**.5*208*(cos(pi/3+a*pi/180)-cos(2*pi/3+a*pi/180))/pi;\n", + "t=a*16.7/360;\n", + "\n", + "#result\n", + "print \"ratio is\",round(r,2)\n", + "print('firing angle is 58 degrees');\n", + "print \"dc voltage is\",round(Vd,2), \"V\"\n", + "print \"time delay is\",round(t,2), \"ms\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.7,Page 480" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "max. current is 41.67 A\n", + "dissipated power is 8.68 W\n" + ] + } + ], + "source": [ + "#finding maximum current and power dissipated\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=150.0;#power\n", + "V=8.0;#voltage\n", + "R=.01;#resistance\n", + "D=.5;#duty cycle\n", + "\n", + "#calculation\n", + "I=P/.9/D/V;\n", + "Ir=I*D**.5;\n", + "Pq=Ir**2*R;\n", + "\n", + "#result\n", + "print \"max. current is\",round(I,2), \"A\"\n", + "print \"dissipated power is\",round(Pq,2),\"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.8,Page 489" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "pwm fundamental frequency is 30.72 kHz\n", + "output voltage is 9.46 V\n" + ] + } + ], + "source": [ + "#finding fundamental frequency and output voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "f1=60.0;#frequency\n", + "V=150.0;#voltage\n", + "f2=31.0;#kHz\n", + "\n", + "#calculation\n", + "f3=f1*4;\n", + "Vo=V*10**(-4.2);\n", + "\n", + "#result\n", + "print \"pwm fundamental frequency is\",round(f3*2**7/1000,2), \"kHz\"\n", + "print \"output voltage is\",round(Vo*1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.9,Page 491" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 127.32 V\n", + "\n", + "Va-d @ 200Vin=4.2V\n", + "\n", + "\n", + "pick R1=47kohm\n", + "current through dividers is 2.62 mA\n", + "R2 is 1.6 kohm\n", + "capacitor is 27.01 microF\n" + ] + } + ], + "source": [ + "#finding resistances,capacitor,average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=120.0;#load voltage\n", + "f=60.0;#Hz\n", + "Vp=200.0;#V\n", + "Vd=5.0;#V\n", + "\n", + "\n", + "#calculation\n", + "Vdc=2*Vp/pi;\n", + "Va=4.2;\n", + "R1=47.0;\n", + "I=(Vdc-Va)/R1;\n", + "R2=Va/I;\n", + "K=1.0/(1/R1+1/R2)# R1 \\\\ R2\n", + "C=1.0/2/pi/3.8/K;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(Vdc,2), \"V\"\n", + "print('\\nVa-d @ 200Vin=4.2V')\n", + "print('\\n\\npick R1=47kohm')\n", + "print \"current through dividers is\",round(I,2), \"mA\"\n", + "print \"R2 is\",round(R2,2), \"kohm\"\n", + "print \"capacitor is\",round(C*1000,2), \"microF\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9_1.ipynb b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9_1.ipynb new file mode 100644 index 00000000..d50d131a --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9_1.ipynb @@ -0,0 +1,405 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9: Power Conversation and Motor Drive Operations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.1,Page 457" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "peak voltage is 37.6 V\n", + "load voltage is 35.7 V\n", + "ripple voltage is 3.96 V\n", + "approx. load voltage is 35.62 V\n" + ] + } + ], + "source": [ + "#finding peak,load,ripple voltages\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=28.0;#V\n", + "C=4700.0;#microF\n", + "R=16.0;#load\n", + "f=120.0;#hertz\n", + "\n", + "#calculation\n", + "Vp=V*2**.5-2;\n", + "Vd=0.95*Vp;\n", + "Id=Vd/R;\n", + "v=Id/f/C;\n", + "#approximation\n", + "Vd1=Vp-v*1e6/2;\n", + "\n", + "#result\n", + "print \"peak voltage is\",round(Vp,2), \"V\"\n", + "print \"load voltage is\",round(Vd,1), \"V\"\n", + "print \"ripple voltage is\",round(v*1e6,2), \"V\"\n", + "print \"approx. load voltage is\",round(Vd1,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.2,Page 459" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Zth is 1.0 + 1.0 in ohm\n", + "inductor is 2.65 mH\n" + ] + } + ], + "source": [ + "#finding inductor,Zth\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V1=120.0;#pri voltage\n", + "V2=28.0;#sec voltage\n", + "I=2.0;#pri current\n", + "f=60.0;#Hz\n", + "Vth=28.8;#open voltage\n", + "V3=12.1;#pri-short voltage\n", + "Is=2.0;#short current at 45 degree\n", + "\n", + "#calculation\n", + "Zi=(V2*V3)/V1/Is*cos(45*pi/180);\n", + "Zj=(V2*V3)/V1/Is*sin(45*pi/180);\n", + "L=Zi/(2*pi*f);\n", + "\n", + "#result\n", + "print'Zth is',round(Zi),'+',round(Zj),'in ohm'\n", + "print \"inductor is\",round(L*1000,2), \"mH\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.4,Page 463" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power factor is 0.32\n" + ] + } + ], + "source": [ + "#finding power factor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I1=1.8;#current\n", + "R=16.0;#resistance\n", + "I2=5.7;#A\n", + "V=28.8;#Voltage\n", + "\n", + "#calculation\n", + "P=I1**2*R;\n", + "S=I2*V;\n", + "Pf=P/S;\n", + "\n", + "#result\n", + "print \"power factor is\",round(Pf,2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.5, Page 468" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aparrent power is 8.14 kVA\n", + "dissipated power is 7.84 kW\n", + "power factor is 0.96\n" + ] + } + ], + "source": [ + "#finding power factor\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "I=22.6;#current\n", + "I2=28.00;\n", + "V=120.0;#Voltage\n", + "V2=280.0;\n", + "\n", + "#calculation\n", + "Pt=3*I*V;\n", + "Pl=I2*V2;\n", + "Pf=Pl/Pt;\n", + "\n", + "#result\n", + "print \"aparrent power is\",round(Pt/1000,2),\"kVA\"\n", + "print \"dissipated power is\",round(Pl/1000,2),\"kW\"\n", + "print \"power factor is\",round(Pl/Pt,2)\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.6,Page 474" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio is 0.72\n", + "firing angle is 58 degrees\n", + "dc voltage is 148.85 V\n", + "time delay is 2.69 ms\n" + ] + } + ], + "source": [ + "#finding firing angle, time delay,Vd\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=208.0;#voltage\n", + "R=100.0;#load\n", + "Vd=150.0;#V\n", + "\n", + "#calculation\n", + "r=Vd/V;\n", + "a=58;#degree\n", + "Vd=3*2**.5*208*(cos(pi/3+a*pi/180)-cos(2*pi/3+a*pi/180))/pi;\n", + "t=a*16.7/360;\n", + "\n", + "#result\n", + "print \"ratio is\",round(r,2)\n", + "print('firing angle is 58 degrees');\n", + "print \"dc voltage is\",round(Vd,2), \"V\"\n", + "print \"time delay is\",round(t,2), \"ms\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.7,Page 480" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "max. current is 41.67 A\n", + "dissipated power is 8.68 W\n" + ] + } + ], + "source": [ + "#finding maximum current and power dissipated\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "P=150.0;#power\n", + "V=8.0;#voltage\n", + "R=.01;#resistance\n", + "D=.5;#duty cycle\n", + "\n", + "#calculation\n", + "I=P/.9/D/V;\n", + "Ir=I*D**.5;\n", + "Pq=Ir**2*R;\n", + "\n", + "#result\n", + "print \"max. current is\",round(I,2), \"A\"\n", + "print \"dissipated power is\",round(Pq,2),\"W\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.8,Page 489" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "pwm fundamental frequency is 30.72 kHz\n", + "output voltage is 9.46 V\n" + ] + } + ], + "source": [ + "#finding fundamental frequency and output voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "f1=60.0;#frequency\n", + "V=150.0;#voltage\n", + "f2=31.0;#kHz\n", + "\n", + "#calculation\n", + "f3=f1*4;\n", + "Vo=V*10**(-4.2);\n", + "\n", + "#result\n", + "print \"pwm fundamental frequency is\",round(f3*2**7/1000,2), \"kHz\"\n", + "print \"output voltage is\",round(Vo*1000,2), \"V\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Example 9.9,Page 491" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage is 127.32 V\n", + "\n", + "Va-d @ 200Vin=4.2V\n", + "\n", + "\n", + "pick R1=47kohm\n", + "current through dividers is 2.62 mA\n", + "R2 is 1.6 kohm\n", + "capacitor is 27.01 microF\n" + ] + } + ], + "source": [ + "#finding resistances,capacitor,average voltage\n", + "\n", + "#initialisation of variable\n", + "from math import pi,tan,sqrt,sin,cos,acos,atan\n", + "V=120.0;#load voltage\n", + "f=60.0;#Hz\n", + "Vp=200.0;#V\n", + "Vd=5.0;#V\n", + "\n", + "\n", + "#calculation\n", + "Vdc=2*Vp/pi;\n", + "Va=4.2;\n", + "R1=47.0;\n", + "I=(Vdc-Va)/R1;\n", + "R2=Va/I;\n", + "K=1.0/(1/R1+1/R2)# R1 \\\\ R2\n", + "C=1.0/2/pi/3.8/K;\n", + "\n", + "#result\n", + "print \"average voltage is\",round(Vdc,2), \"V\"\n", + "print('\\nVa-d @ 200Vin=4.2V')\n", + "print('\\n\\npick R1=47kohm')\n", + "print \"current through dividers is\",round(I,2), \"mA\"\n", + "print \"R2 is\",round(R2,2), \"kohm\"\n", + "print \"capacitor is\",round(C*1000,2), \"microF\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png Binary files differnew file mode 100644 index 00000000..5199042e --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1_1.png b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1_1.png Binary files differnew file mode 100644 index 00000000..5199042e --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1_1.png diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png Binary files differnew file mode 100644 index 00000000..76933e63 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2_1.png b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2_1.png Binary files differnew file mode 100644 index 00000000..76933e63 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2_1.png diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png Binary files differnew file mode 100644 index 00000000..607dd0a1 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png diff --git a/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3_1.png b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3_1.png Binary files differnew file mode 100644 index 00000000..607dd0a1 --- /dev/null +++ b/Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3_1.png diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_4.ipynb new file mode 100644 index 00000000..c33a83d1 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_4.ipynb @@ -0,0 +1,1298 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 10 : SINGLE STAGE TRANSISTOR AMPLIFIERS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Using matplotlib backend: Qt4Agg\n" + ] + } + ], + "source": [ + "%matplotlib " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.2 : page number 243-244" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of the emitter capacitor = 1.42 𝜇F\n" + ] + } + ], + "source": [ + "from math import pi\n", + "#Variable declaration\n", + "f_min=2.0; #Minimum frequency of operation of amplifier, kHz\n", + "f_max=10.0; #Maximum frequency of operation of amplifier, kHz\n", + "RE=560.0; #Emitter resistor, Ω\n", + "\n", + "#Calculations\n", + "#X_CE(Emitter capacitor's capacitive reactance)\n", + "#X_CE=1/(2*pi*f_min*CE)=RE/10\n", + "#From the above equation.\n", + "CE=1/(2*pi*f_min*1000*(RE/10)); #Emitter capacitor, F,\n", + "\n", + "CE=CE*10**6; #Emitter capacitor, 𝜇F\n", + "\n", + "\n", + "#Results\n", + "print('The value of the emitter capacitor = %.2f 𝜇F'%(CE));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.5: Page number 252-253" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The operating point: VCE=8.55V and IC=2.15mA.\n", + "Maximum v_CE=9.62V and maximum i_C=19.25mA\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAA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ab9sEQ31wAAAABJ\nRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f895dcab908>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage in V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=10.0; #Resistor R1, kΩ\n", + "R2=5.0; #Resistor R2, kΩ\n", + "RC=1.0; #Collector resistor, kΩ\n", + "RE=2.0; #Emitter resistor, kΩ\n", + "RL=1.0; #Load resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#For d.c load line, from the equation: VCE=VCC-IC*(RC+RE),\n", + "#VCE is maximum when IC=0 and IC is maximum when VCE=0.\n", + "VCE_max=VCC; #Maximum collector-emitter voltage, V\n", + "IC_max=VCC/(RC+RE); #Maximum collector current, mA\n", + "\n", + "\n", + "#plot\n", + "VCE_plot=[i for i in range(0,(int)(VCC+1))]; #Plot variable for V_CE\n", + "IC_plot=[((VCC-i)/(RC+RE)) for i in (VCE_plot[:])]; #Plot variable for I_C\n", + "\n", + "plt.subplot(211)\n", + "plt.xlim(0,20)\n", + "plt.ylim(0,6)\n", + "plt.plot(VCE_plot,IC_plot);\n", + "plt.xlabel(\"VCE(V)\");\n", + "plt.ylabel(\"IC(mA)\");\n", + "plt.title(\"d.c load line\");\n", + "\n", + "\n", + "\n", + "#(ii)\n", + "#For operating point:\n", + "#Assuming VCC drops almost completely across R1 and R2,\n", + "V2=VCC*R2/(R1+R2); #Voltage across resistor R2, V\n", + "IE=(V2-VBE)/RE; #Emitter current, mA\n", + "IC=IE; #Collector current, mA\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage , V\n", + "\n", + "print(\"The operating point: VCE=%.2fV and IC=%.2fmA.\"%(VCE,IC));\n", + "\n", + "\n", + "#(iii)\n", + "#For a.c load line\n", + "RAC=(RC*RL)/(RC+RL); #a.c load, kΩ\n", + "VCE_ac_max=VCE+IC*RAC; #Maximum collector-emitter voltage, V\n", + "IC_ac_max=IC+VCE/RAC; #Maximum collector current, mA\n", + "print(\"Maximum v_CE=%.2fV and maximum i_C=%.2fmA\"%(VCE_ac_max,IC_ac_max));\n", + "\n", + "#plot\n", + "vCE_plot=[0,VCE_ac_max]; #Plot variable for V_CE\n", + "iC_plot=[IC_ac_max,0]; #Plot variable for I_C\n", + "\n", + "plt.subplot(212)\n", + "plt.xlim(0,10)\n", + "plt.ylim(0,20)\n", + "plt.plot(vCE_plot,iC_plot);\n", + "plt.xlabel(\"vCE(V)\");\n", + "plt.ylabel(\"iC(mA)\");\n", + "plt.title(\"a.c load line\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.6: Page number 253-254" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEZCAYAAACU3p4jAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH5FJREFUeJzt3X2UHVWd7vHvE0ISkkCEEJOQQIIYQd4kpGXJDUirVwYR\nwaUXJejgiBe9isJcX0bF6yTguleZtUTxBWcGkUsYXkQwgiKKd0gvFiiQF4IJCQGFkPAWA4YohGBC\nfvePqqZPn5zuPtXddeqcU89nrVqcrtqn9j5F5Ve79q7aWxGBmZm1vxFFF8DMzBrDAd/MrCQc8M3M\nSsIB38ysJBzwzcxKwgHfzKwkHPCtqUm6UtJFQ9zHDEk7JQ37+S5psaSz+9g2X9LV6ef9Jf1Fkoa7\nDGb1Gll0AcwapKgXTgIgIjYAexVUBjPANXwzs9JwwLemImm2pGWStki6HhjTT9oRki6Q9Ic0/RJJ\n0+rIY6qkmyU9J+lhSf+9YtubJf1W0mZJT0r6rqSRFdvfKWlNuv27QF1NNNXNSmlT0EWS7kqben4l\naZ+K9G+Rd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otlib.figure.Figure at 0x7f895dbf5390>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as p\n", + "\n", + "#Variable declaration\n", + "RC=10; #Collector resistor, kΩ\n", + "RL=30; #Load resistor, kΩ\n", + "VCC=20; #Collector supply voltage, V\n", + "IC=1; #Collector current, mA\n", + "VCE=10; #Collector-emitter voltage, V\n", + "\n", + "\n", + "#Calculations\n", + "#For d.c load line:\n", + "#From the equation: VCE=VCC-IC*(RC+RE),\n", + "#When VCE=0, IC is maximum.\n", + "#Emitter resistor is neglected, assuming it as negligible\n", + "IC_max=VCC/RC; #Maximum collector current, mA\n", + "\n", + "#And, when IC=0, VCE is maximum\n", + "VCE_max=VCC; #Maximum collector-emitter voltage, V\n", + "\n", + "#plot\n", + "p.subplot(211)\n", + "p.xlim(0,20)\n", + "p.ylim(0,5)\n", + "VCE_plot=[0,VCE_max]; #Plot variable for V_CE\n", + "IC_plot=[IC_max,0]; #Plot variable for I_C\n", + "\n", + "p.plot(VCE_plot,IC_plot);\n", + "p.xlabel(\"VCE(V)\");\n", + "p.ylabel(\"IC(mA)\");\n", + "p.title(\"d.c load line\");\n", + "\n", + "\n", + "#For a.c load line:\n", + "RAC=(RC*RL)/(RC+RL); #a.c Load resistor, kΩ\n", + "\n", + "VCE_ac_max=VCE+IC*RAC; #Maximum collector-emitter voltage, V\n", + "IC_ac_max=IC+ VCE/RAC; #Maximum collector current, mA\n", + "\n", + "#plot\n", + "p.subplot(212)\n", + "p.xlim([0,25])\n", + "p.ylim([0,5])\n", + "vCE_plot=[0,VCE_ac_max]; #Plot variable for V_CE\n", + "iC_plot=[IC_ac_max,0]; #Plot variable for I_C\n", + "\n", + "p.plot(vCE_plot,iC_plot);\n", + "p.xlabel(\"vCE(V)\");\n", + "p.ylabel(\"iC(mA)\");\n", + "p.title(\"a.c load line\");\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.7 : Page number 254-255" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEZCAYAAACTsIJzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNhJREFUeJzt3XuUZWV55/HvT4gygtJGDSoI7Q0FI7bGhRBR2jg6ogYy\niSagURtdkRk1YuIkOkQlmJUZ+EMjKAniDTEKBDJLQY3DypIeQhzBC8UdhUGuSiuB1lHUAXzmj7OL\nXVVUV9XpU6f2uXw/a53VZ5+z99lvPau7nzrPs993p6qQJGnWg7oegCRptJgYJEnzmBgkSfOYGCRJ\n85gYJEnzmBgkSfOYGKRGkoOT3DKkz/5ukt/axnufTPK+5vlBSa4Zxhikldqx6wFII6bTiT1VdRGw\nT5djkPzGIEmax8SgsZTknUmuT/LjJFcm+Z0l9t0pyfuT3JjkriQXJnnICs7xtCQXNMdckeS357z3\nsiTfSvKjJDclOXbBsa9tzvfDJMf08XPNK2c1Jah3JLmsGccZSR485/1XJLm0ee+iJM9Y6bmkbTEx\naFxdDzyvqh4OHAf8fZLdtrHv+4FnAQcAvwr8OfDLpT48yY7AecCXgUcDbwM+k+QpzS4/AV5bVbsC\nLwf+U5JDm2P3Bf4WeA3wOOCRwO59/GwLy1mvAl4CPAF4JrCpOc+zgI8Df9T8XB8Bzk3yK32cS3oA\nE4PGUlX9Y1VtaZ6fDVwH7L9wvyQBjgTeVlW3V8/XquqeZU5xILBzVZ1QVfdW1QXAF4AjmnNeWFVX\nNc+vBM4EDm6O/T3gvKr61+Y872Gw3sWJVbWlqrbSS1Ybmtf/CDilqr7R/FyfBn5BLwFK283EoLGU\n5HVzSih3AU8HHrXIro8CHgLc0OcpHgssvELpJprf/JM8N8lXkvwgyVbgqDnnf9zcY6vqbuDf+jz/\nXFvmPL8b2KV5vhfwjiR3No+7gD2a80vbzcSgsZNkT+BU4M1V9YiqegRw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\nC147k97KwBcCl1XVD+e8t1NzjDRSLCVJPf9Ar9Tze/SSxBnAgUkOmd0hyfOT7Du7ufADqmorsENz\n35DZ124A7qC39PEZCw7ZG7hyNX8IaTWYGCSgaSo/DLi1qrZU1c+BVwBvay5XvRL4z8Dsb/wHLegx\n/G7z+vnAQQs+/gzgqfTuKDbXC+ld+SSNFO/HIK2iJM+id4nr65fZ78HAZuCgqvrlWoxNWim/MUir\nqKouBS5o5iwsZU/gXSYFjSK/MUiS5vEbgyRpHhODJGkeE4MkaR4TgyRpHhODJGme/w9CYQ9RD7Ux\nvQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f898013a748>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as p\n", + "\n", + "#Variabe declaration\n", + "VCE_Q=8.0; #Q-point collector emitter voltage, V\n", + "IC_Q=1; #Q-point collector current, mA\n", + "ic_positive_peak=1.5; #Collector current at positive peak of signal, mA\n", + "ic_negative_peak=0.5; #Collector current at negative peak of signal, mA\n", + "vce_positive_peak=7; #Collector emitter voltage at positive peak of signal, V\n", + "vce_negative_peak=9; #Collector emitter voltage at negative peak of signal, V\n", + "\n", + "#Plot\n", + "vce_plot=[vce_positive_peak,vce_negative_peak]; #Plot variable of vce\n", + "ic_plot=[ic_positive_peak,ic_negative_peak]; #Plot variable of ic\n", + "\n", + "p.xlim(0,10)\n", + "p.ylim(0,2)\n", + "p.plot(vce_plot,ic_plot);\n", + "p.xlabel(\"vCE(V)\");\n", + "p.ylabel(\"iC(mA)\");\n", + "p.title(\"a.c load line\");\n", + "p.grid();\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.8 : Page number 256" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain= 24.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "RC=2.0; #Collector resistor, kΩ\n", + "Rin=1.0; #Input resistance, kΩ\n", + "beta=60.0; #Base current amplification factor\n", + "RL=0.5; #Load resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "RAC=(RC*RL)/(RC+RL); #a.c load resistor, kΩ\n", + "Av=beta*(RAC/Rin); #Voltage gain\n", + "\n", + "#Results\n", + "print(\"Voltage gain= %d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.9 : Page number 256" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage= 200mV.\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "V_in=1.0; #Input voltage , mV\n", + "RC=10.0; #Collector resistor, kΩ\n", + "Rin=2.5; #Input resistance, kΩ\n", + "beta=100.0; #Base current amplification factor\n", + "RL=10.0; #Load resistor, kΩ\n", + "\n", + "#Calculations\n", + "RAC=(RC*RL)/(RC+RL); #Effective load, kΩ\n", + "Av=beta*(RAC/Rin); #Voltage gain\n", + "\n", + "V_out=V_in*Av; #Output voltage, V\n", + "\n", + "#Results\n", + "print(\"Output voltage= %dmV.\"%V_out);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.10 : Page number 256-257" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Beta= 100.\n", + "Input impedance=2 kΩ.\n", + "a.c load=3.3 kΩ.\n", + "Voltage gain= 165.\n", + "Power gain=16500.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "change_in_IB=10.0; #Change in base current, 𝜇A\n", + "change_in_IC=1.0; #Change in collector current, mA\n", + "change_in_VBE=0.02; #Change in Base-emitter voltage, V\n", + "RC=5.0; #Collector resistor, kΩ\n", + "RL=10.0; #Emitter resistor, kΩ\n", + "\n", + "#Calculations\n", + "#(i)\n", + "beta=(change_in_IC*1000)/change_in_IB; #Base current amplification factor\n", + "\n", + "#(ii)\n", + "Rin=(change_in_VBE/change_in_IB)*1000; #Input impedance, kΩ\n", + "\n", + "#(iii)\n", + "RAC=round((RC*RL)/(RC+RL),1); #a.c load, kΩ\n", + "\n", + "#(iv)\n", + "Av=beta*RAC/Rin; #Voltage gain\n", + "\n", + "#(v)\n", + "Ap=beta*Av; #Power gain\n", + "\n", + "\n", + "#Results\n", + "print(\"Beta= %d.\"%beta);\n", + "print(\"Input impedance=%d kΩ.\"%Rin);\n", + "print(\"a.c load=%.1f kΩ.\"%RAC);\n", + "print(\"Voltage gain= %d.\"%Av);\n", + "print(\"Power gain=%d.\"%Ap);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.11 : Page number 257" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=200mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=50.0; #Base current amplification factor\n", + "RC=3.0; #Collector resistor,kΩ\n", + "RL=6.0; #Load resistor, kΩ\n", + "Rin=0.5; #Input impedance, kΩ\n", + "Vin=1; #Input voltage, mV\n", + "\n", + "#Calculation\n", + "RAC=(RC*RL)/(RC+RL); #a.c load, kΩ\n", + "Av=beta*RAC/Rin; #Voltage gain\n", + "Vout=Vin*Av; #Output voltage, V\n", + "\n", + "#Results\n", + "print(\"Output voltage=%dmV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.12 : Page number 257-258" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The circuit is not operating properly.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VT=6.0; #Collector potential, V\n", + "R1=1.0; #Resistor R1, kΩ\n", + "R2=2.0; #Resistor R2, kΩ\n", + "VB_found=4.0; #Measured base voltage, V\n", + "\n", + "#Calculations\n", + "VB=(VT*R1)/(R1+R2); #Theoretical base voltage, V\n", + "\n", + "if(VB_found==VB):\n", + " print(\"The circuit is operating properly.\");\n", + "else:\n", + " print(\"The circuit is not operating properly.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.13 : Page number 258-259" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a.c emitter resistance= 38.46 Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "R1=40.0; #Resistor R1, kΩ\n", + "R2=10.0; #Resistor R2, kΩ\n", + "RC=6.0; #Collector resistor, kΩ\n", + "RE=2.0; #Emitter resistor, kΩ\n", + "beta=80; #Base current amplification factor\n", + "VBE=0.7; #Base emitter voltage, V\n", + "\n", + "#Calculations\n", + "V2=(VCC*R2)/(R1+R2); #Voltage across resistor R2, V\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=VE/RE; #Emitter current, mA\n", + "re=25/IE; #a.c emitter resistance, Ω\n", + "\n", + "\n", + "#Results\n", + "print(\"a.c emitter resistance= %.2f Ω.\"%re);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.14 : Page number 262-263" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i)Voltage gain= 360.\n", + "(ii)Voltage gain= 5.37.\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=150.0; #Resistor R1, kΩ\n", + "R2=20.0 #Resistor R2, kΩ\n", + "RC=12.0; #Collector resistor, kΩ\n", + "RE=2.2; #Emitter resistor, kΩ\n", + "\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),2); #Voltage across R2, V\n", + "VE=round(V2-VBE,2); #Voltage across emitter resistor, V\n", + "IE=round(VE/RE,2); #Emitter current, mA\n", + "re=round(25/IE,1); #a.c emitter resistance, Ω\n", + "\n", + "\n", + "#(i)\n", + "#CE(emitter capacitor) connected in the circuit:\n", + "Av=(RC*1000)/re; #Voltage gain for emitter capacitor connected.\n", + "\n", + "print(\"(i)Voltage gain= %d.\"%Av);\n", + "\n", + "#(ii)\n", + "#CE(emitter capacitor) removed from the circuit:\n", + "Av=(RC*1000)/(re+RE*1000); #Voltage gain for emitter capacitor removed.\n", + "\n", + "print(\"(ii)Voltage gain= %.2f.\"%Av);\n", + "\n", + "#Note: The answer in the text book has been approximated to 5.38 but it's actually coming 5.37.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.15 : Page number 263" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain= 120.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=6.0; #Collector resistor, kΩ\n", + "RL=12.0; #Load resistor, kΩ\n", + "re=33.3; #a.c emitter resistance, Ω\n", + "\n", + "\n", + "#Calculations\n", + "RAC=RC*RL/(RC+RL); #a.c effective load, kΩ\n", + "Av=RAC*1000/re; #Voltage gain\n", + "\n", + "#Result\n", + "print(\"Voltage gain= %d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.16 : Page number 263-264" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) a.c emitter resistance=250 Ω.\n", + "(ii) Voltage gain =80.\n", + "(iii) d.c voltage across input capacitor= 1V and emitter capacitor=0.3V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=9.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=240.0; #Resistor R1, kΩ\n", + "R2=30.0 #Resistor R2, kΩ\n", + "RC=20.0; #Collector resistor, kΩ\n", + "RE=3.0; #Emitter resistor, kΩ\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "V2=round(VCC*R2/(R1+R2),1); #Voltage across R2, V\n", + "VE=round(V2-VBE,1); #Voltage across emitter resistor, V\n", + "IE=round(VE/RE,1); #Emitter current, mA\n", + "re=25/IE; #a.c emitter resistance, Ω\n", + "\n", + "#(ii)\n", + "Av=RC*1000/re; #Voltage gain\n", + "\n", + "#(iii)\n", + "V_C_in=V2; #d.c voltage across input capacitor, V\n", + "V_C_E=VE; #d.c vooltage across emitter capacitor, V\n", + "\n", + "\n", + "\n", + "#Results\n", + "print(\"(i) a.c emitter resistance=%d Ω.\"%re);\n", + "print(\"(ii) Voltage gain =%d.\"%Av);\n", + "print(\"(iii) d.c voltage across input capacitor= %dV and emitter capacitor=%.1fV.\"%(V_C_in,V_C_E));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.17 : Page number 264-265" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) D.C bias levels: V2=3V, VE=2.3V, IE=2.3mA, IC=2.3mA, IB=0.023mA and VC=10.4V.\n", + "(ii) D.c voltage across: Cin=3V and CE=2.3V and CC=10.4V.\n", + "(iii) a.c emitter resistance=10.9Ω.\n", + "(iv) Voltage gain=61.2.\n", + "(v) VC>VE. Therefore, the transistor is in active state.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=40.0; #Resistor R1, kΩ\n", + "R2=10.0 #Resistor R2, kΩ\n", + "RC=2.0; #Collector resistor, kΩ\n", + "RE=1.0; #Emitter resistor, kΩ\n", + "RL=1.0; #Load resistor, kΩ\n", + "beta=100; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "#(i) D.C bias levels\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V\n", + "VE=round(V2-VBE,1); #Voltage across emitter resistor, V\n", + "IE=round(VE/RE,1); #Emitter current, mA\n", + "IC=IE; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VC=VCC-IC*RC; #Collector voltage, V\n", + "print(\"(i) D.C bias levels: V2=%dV, VE=%.1fV, IE=%.1fmA, IC=%.1fmA, IB=%.3fmA and VC=%.1fV.\"%(V2,VE,IE,IC,IB,VC));\n", + "\n", + "\n", + "#(ii)\n", + "Cin_V=V2; #Voltage across Cin capacitor, V\n", + "CE_V=VE; #Voltage across CE capacitor, V \n", + "CC_V=VC; #Voltage across CC capacitor, V\n", + "print(\"(ii) D.c voltage across: Cin=%dV and CE=%.1fV and CC=%.1fV.\"%(Cin_V,CE_V,CC_V));\n", + "\n", + "#(iii)\n", + "re=round(25/IE,1); #a.c emitter resistance, Ω\n", + "print(\"(iii) a.c emitter resistance=%.1fΩ.\"%re);\n", + "\n", + "\n", + "#(iv)\n", + "RAC=round(RC*RL/(RC+RL),3); #Total a.c collector resistance, kΩ\n", + "Av=RAC/(re/1000); #Voltage gain\n", + "print(\"(iv) Voltage gain=%.1f.\"%Av);\n", + "\n", + "#(v)\n", + "print(\"(v) VC>VE. Therefore, the transistor is in active state.\" );\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.18 : page number 265" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power gain = 26400 and output power = 1.584W.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=132.0; #Voltage gain\n", + "beta=200.0; #Base current amplification factor\n", + "P_in=60.0; #Input power, 𝜇W\n", + "\n", + "\n", + "#Calculations\n", + "Ap=beta*Av; #Power gain\n", + "P_out=Ap*(P_in/10**6); #Output power, W\n", + "\n", + "\n", + "#Results\n", + "print(\"The power gain = %d and output power = %.3fW.\"%(Ap,P_out));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.19 : page number 265-266" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Current gain=49\n", + "(ii) Voltage gain=2.14\n", + "(iii) Power gain=105.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IB=200.0; #Base current, microampere\n", + "IE=10.0; #Emitter current, mA\n", + "R1=27.0; #Resistor R1, kilo ohm\n", + "R2=13.0 #Resistor R2, kilo ohm\n", + "RC=4.7; #Collector resistor, kilo ohm\n", + "RE=2.2; #Emitter resistor, kilo ohm\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "IC=IE-(IB/1000); #Collector current, mA\n", + "beta=IC/(IB/1000); #Current gain\n", + "\n", + "print(\"(i) Current gain=%d\"%beta);\n", + "\n", + "#(ii)\n", + "#a.c emitter resistance is neglected, voltage gain=(collector resistor)/(emitter resistor)\n", + "Av=RC/RE; #Voltage gain\n", + "\n", + "print(\"(ii) Voltage gain=%.2f\"%Av);\n", + "\n", + "#(iii)\n", + "Ap=round(beta*Av,0); #Power gain\n", + "\n", + "#Results\n", + "print(\"(iii) Power gain=%d.\"%Ap);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.20 : Page number 266-267" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance of the amplifier circuit= 3.46 kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=30.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base emitter voltage, V\n", + "R1=45.0; #Resistor R1, kΩ\n", + "R2=15.0 #Resistor R2, kΩ\n", + "RC=10.0; #Collector resistor,kΩ\n", + "RE=7.5; #Emitter resistor, kΩ\n", + "beta=200.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),1); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2; #Voltage across emitter resistor(base-emitter voltage is neglected), V\n", + "IE=VE/RE; #Emitter current, mA (OHM's LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm\n", + "Zin_base=(beta*re)/1000; #input impedance of transistor base,kΩ\n", + "R1_R2=(R1*R2)/(R1+R2); #Parallel resistance between R1 and R2, kΩ\n", + "Zin=((R1_R2)*Zin_base)/(R1_R2+Zin_base); #Input impedance of the amplifier circuit, kΩ\n", + "\n", + "\n", + "#Result\n", + "print(\"The input impedance of the amplifier circuit= %.2f kΩ.\"%Zin); \n", + "\n", + "#Note: The input impedance of the amplifier circuit is approximated as 3.45 kΩ in the text book, but actually it's 3.46 kΩ.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.21 : Page Number 268-269" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the swamped amplifier= 4.67.\n", + "Input impedance of transistor base of the swamped amplifier= 48.21 kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V.\n", + "RC=1.5; #Collector resistor, kΩ.\n", + "R1=18.0; #Resistor R1, kΩ.\n", + "R2=4.7; #Resistor R2, kΩ.\n", + "RE1=300.0; #Emitter resistor 1, Ω.\n", + "RE2=900.0; #Emitter resistor 2, Ω.\n", + "VBE=0.7; #Base-emitter voltage, V.\n", + "beta=150.0; #Base current amplification factor.\n", + "\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),1); #d.c voltage across R2, V. (Voltage divider rule)\n", + "VE=round(V2-VBE,1); #d.c voltage across RE, V.\n", + "IE=round((VE/(RE1+RE2))*1000,2); #d.c emitter current, mA.(OHM'S LAW)\n", + "re=round(25/IE,1); #a.c emitter resistance, Ω.\n", + "Av=RC*1000/(re+RE1); #Voltage gain\n", + "Zin_base=(beta*(re+RE1))/1000; #Input impedance of transistor base, kΩ.\n", + "\n", + "\n", + "#Results\n", + "print(\"The voltage gain of the swamped amplifier= %.2f.\"%Av);\n", + "print(\"Input impedance of transistor base of the swamped amplifier= %.2f kΩ.\"%Zin_base);\n", + "\n", + "#Note:In the textbook Av is approximated to 4.66and Zin_base to 48.22 kilo ohm, but the actual answers come as 4.67 and 48.21 kilo ohm.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.22 : Page number 269" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The percentage change from the original value= 6.42%(decrease)\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=1.5; #Collector resistor, kΩ.\n", + "RE1=300.0; #Emitter resistor 1, Ω.\n", + "re=21.5; #a.c emitter resistance, Ω.\n", + "\n", + "#Calculations\n", + "Av=round(RC*1000/(re+RE1),2); #Voltage gain.\n", + "Av_1=round(RC*1000/(2*re+RE1),2); #Voltage gain when re doubles.\n", + "change_in_gain=round(Av-Av_1,2); #Change in voltage gain.\n", + "change_percentage=change_in_gain*100/Av; #Change percentage\n", + "\n", + "\n", + "#Results\n", + "if(change_in_gain>0):\n", + " print(\"The percentage change from the original value= %.2f%%(decrease)\"%change_percentage);\n", + "else:\n", + " print(\"The percentage change from the original value= %.2f%%(increase)\"%change_percentage);\n", + "\n", + "\n", + "#Note: The percentage has been approximated in the text book as 6.22%, but the answer comes as 6.42%.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.23 : Page number 269-270" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) input impedance of transistor base for standard amplifier= 5 kilo ohm\n", + " input impedance of transistor base for swamped amplifier= 47 kilo ohm\n", + "(ii) input impedance for standard amplifier= 1.33 kilo ohm\n", + " input impedance for swamped amplifier= 1.74 kilo ohm\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base emitter voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=2.2; #Resistor R2, kilo ohm\n", + "RC=4.0; #Collector resistor, kilo ohm\n", + "RE=1.1; #Emitter resistor, kilo ohm\n", + "beta=200.0; #Base current amplification factor\n", + "RE1=210.0; #Emitter resistor 1 of swamped amplifier, ohm.\n", + "RE2=900.0; #Emitter resistor 2 of swamped amplifier, ohm.\n", + "\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),1); #d.c voltage across R2, V. (Voltage divider rule)\n", + "VE=round(V2-VBE,1); #d.c voltage across RE, V.\n", + "IE=(VE/RE); #d.c emitter current, mA.(OHM'S LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm.\n", + "\n", + "\n", + "#(i) Zin_base:\n", + "Zin_base_standard=(beta*re)/1000; #input impedance of transistor base for standard amplifier , kilo ohm.\n", + "Zin_base_swamped=(beta*(re+RE1))/1000; #input impedance of transistor base for swamped amplifier, kilo ohm.\n", + "\n", + "\n", + "#(ii) Zin:\n", + "#input impedance for standard amplifier circuit\n", + "Zin_standard=(((R1*R2)/(R1+R2))*Zin_base_standard)/(Zin_base_standard +((R1*R2)/(R1+R2))); #kilo ohm\n", + "\n", + "#input impedance for standard amplifier circuit\n", + "Zin_swamped=(((R1*R2)/(R1+R2))*Zin_base_swamped)/(Zin_base_swamped +((R1*R2)/(R1+R2))); #kilo ohm\n", + "\n", + "\n", + "#Results\n", + "print(\"(i) input impedance of transistor base for standard amplifier= %d kilo ohm\"%Zin_base_standard);\n", + "print(\" input impedance of transistor base for swamped amplifier= %d kilo ohm\"%Zin_base_swamped);\n", + "print(\"(ii) input impedance for standard amplifier= %.2f kilo ohm\"%Zin_standard);\n", + "print(\" input impedance for swamped amplifier= %.2f kilo ohm\"%Zin_swamped);\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.24 : Page number 270-271" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of standard amplifier=160.\n", + "The voltage gain of swamped amplifier=17.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=4.0; #Collector resistor, kilo ohm\n", + "re=25.0; #a.c emitter resistance, ohm (calculated in example 10.23)\n", + "RE_1=210.0; #Emitter resistor 1 of swamped amplifier,ohm\n", + "\n", + "#Calculation\n", + "Av_standard=(RC*1000)/re; #Voltage gain of standard common emitter amplifier\n", + "Av_swamped=(RC*1000)/(re+RE_1); #Voltage gain of swamped amplifier\n", + "\n", + "#Results\n", + "print(\"The voltage gain of standard amplifier=%d.\"%Av_standard);\n", + "print(\"The voltage gain of swamped amplifier=%d.\"%Av_swamped);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.26 : Page number 273-274" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The required input signal voltage =2.5mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_0=1000.0; #Open circuit voltage gain\n", + "R_in=2.0; #Input resistance, kilo ohm\n", + "R_out=1.0; #Output resistance, ohm\n", + "RL=4; #Load resistor across the output, ohm\n", + "I_2=0.5; #Output signal current, A.\n", + "\n", + "\n", + "#Calculations\n", + "#Since A_0*(I_1*R_in) = I_2*(R_out+RL)\n", + "I_1=I_2*(R_out+RL)/(A_0*(R_in*1000)); #Input current, A\n", + "V_1=I_1*(R_in*1000); #Input signal voltage, V\n", + "V_1=V_1*1000; #Input signal voltage, mV\n", + "\n", + "print(\"The required input signal voltage =%.1fmV\"%V_1);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.27 : Page number 274" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The magnitude of output voltage = 4.9V\n", + "The power gain =98e-06.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_0=1000.0; #Open circuit voltage gain\n", + "R_in=7.0; #Input resistance, kilo ohm\n", + "R_out=15.0; #Output resistance, ohm\n", + "RL=35.0; #Load resistor across the output, ohm\n", + "R_s=3.0; #Internal resistance, kilo ohm\n", + "E_s=10.0; #Input signal voltage, mV.\n", + "\n", + "#Calculations\n", + "#(i)\n", + "I_1=E_s*(10**-3)/(R_s*1000+R_in*1000); #Input current, A\n", + "V_1=I_1*(R_in*1000); #Voltage across input resistance, V\n", + "\n", + "#Since, A_v=V_2/V_1 = A_0*RL/(R_out+RL)\n", + "A_v=A_0*RL/(R_out+RL); #Voltage gain\n", + "V_2=A_v*V_1; #Outout voltage, V\n", + "\n", + "\n", + "#(ii)\n", + "P_2=V_2**2/RL; #Output power, W\n", + "P_1=V_1**2/(R_in*1000); #Input power, W\n", + "A_p=round(P_2/P_1,-6); #Power gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The magnitude of output voltage = %.1fV\"%V_2);\n", + "print(\"The power gain =%de-06.\"%(A_p/10**6));\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.28 : Page number 274-275" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Necessary input signal voltage= 12.5mV\n", + "Input signal current =4.17 μA\n", + "Power gain = 9600.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_v=80.0; #Voltage gain\n", + "V_2=1.0; #Output voltage, V\n", + "A_i=120.0; #Current gain\n", + "RL=2; #Load resistor, kilo ohm\n", + "\n", + "#Calculation\n", + "V_1=(V_2/A_v)*1000; #Input signal voltage, mV\n", + "\n", + "#Since, A_i=A0*R_in/(R_out+RL) and A_v=A0*RL/(R_out+RL)\n", + "#So, A_v/A_i=RL/R_in\n", + "R_in=RL*A_i/A_v; #Input resistance, kilo ohm\n", + "I_1=V_1/R_in; #Input current, μA\n", + "A_p=A_i*A_v; #Power gain\n", + "\n", + "#Results\n", + "print(\"Necessary input signal voltage= %.1fmV\"%V_1);\n", + "print(\"Input signal current =%.2f μA\"%I_1);\n", + "print(\"Power gain = %d.\"%A_p);\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_5.ipynb new file mode 100644 index 00000000..c33a83d1 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_5.ipynb @@ -0,0 +1,1298 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 10 : SINGLE STAGE TRANSISTOR AMPLIFIERS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Using matplotlib backend: Qt4Agg\n" + ] + } + ], + "source": [ + "%matplotlib " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.2 : page number 243-244" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of the emitter capacitor = 1.42 𝜇F\n" + ] + } + ], + "source": [ + "from math import pi\n", + "#Variable declaration\n", + "f_min=2.0; #Minimum frequency of operation of amplifier, kHz\n", + "f_max=10.0; #Maximum frequency of operation of amplifier, kHz\n", + "RE=560.0; #Emitter resistor, Ω\n", + "\n", + "#Calculations\n", + "#X_CE(Emitter capacitor's capacitive reactance)\n", + "#X_CE=1/(2*pi*f_min*CE)=RE/10\n", + "#From the above equation.\n", + "CE=1/(2*pi*f_min*1000*(RE/10)); #Emitter capacitor, F,\n", + "\n", + "CE=CE*10**6; #Emitter capacitor, 𝜇F\n", + "\n", + "\n", + "#Results\n", + "print('The value of the emitter capacitor = %.2f 𝜇F'%(CE));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.5: Page number 252-253" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The operating point: VCE=8.55V and IC=2.15mA.\n", + "Maximum v_CE=9.62V and maximum i_C=19.25mA\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEZCAYAAAB1mUk3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmcVOWZ9vHfhagsCiKioCi4oROXqHEjbm3MuIK4Ni4T\nkzhvkskyZrI7zjtBzDuT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ob6Pan+PHCopAGSRPos6vFkevFo+WbgU9nXnwQ6/UMyl6azjrghrUDSYcC5wCOSHiIN9S6KiNvy\nrcyqwAXAtZI2BZ4GPp1zPbmIiN9Jmgk8BKzN/vvzfKvqXZKuAxqA4ZKeB6YA3wNmSDofeA5o7PR9\n3HRmZmbVeJjIzMx6mcPAzMwcBmZm5jAwMzMcBmZmhsPAzMxwGJiZGQ4Ds41I2l3S3Ow+8IslTZM0\nQtJRklZlN4Z7KPvvx7JtBkhqzuZa+JOk3Yve898kfUPS3pKuyuc7M+tY1XUgm+VF0ubAXODvIuLW\nbNmRwIhslYURcXIbm54PzIqIDZKuJ90u4zvZ9gLOAMZHxAuSdpA0OiJeqPT3Y1YOjwysLkn6rqQv\ntHo+hXSLh3taggAgIhZGRMt9f9q7U+q5FO79Mo2NJ1c5Eni21S//W6i/yVesBjgMrF5NZ+P7tTQC\newIPdLDNEUWHiXbO7g20c0Q8DxARS4D1kvbJtjmLdJfVFouBI3rsuzDrIT5MZHUpIh7OzgWMJE38\nsZIPzhZV7AOHiSSNAlYVrTcNOEvSY6QZpr7d6rX/Jd1336yqOAysns0AzgRGkkYKb5Hu/liOd4AB\nRcumke66uxD4fUSsaPXagGwbs6riw0RWz5pIh3FOJwXD9cB4SSe0rCDpCEkfanla/AYRsQrYJJt7\no2XZ08ArpNsIX1+0yThgSU9+E2Y9wWFgdSs7Mbwl8EJELI+Id4EJwAXZpaVLgM8DLX/ZH150zuC0\nbPl84PCit78e2IM081ZrR5OuWDKrKp7PwKybJO1Puhz1k52stxnQDBweERt6ozazUnlkYNZNEfEQ\nsCDrKejITsCFDgKrRh4ZmJmZRwZmZuYwMDMzHAZmZobDwMzMcBiYmRnw/wEk8Ab9sEQ31wAAAABJ\nRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f895dcab908>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage in V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=10.0; #Resistor R1, kΩ\n", + "R2=5.0; #Resistor R2, kΩ\n", + "RC=1.0; #Collector resistor, kΩ\n", + "RE=2.0; #Emitter resistor, kΩ\n", + "RL=1.0; #Load resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#For d.c load line, from the equation: VCE=VCC-IC*(RC+RE),\n", + "#VCE is maximum when IC=0 and IC is maximum when VCE=0.\n", + "VCE_max=VCC; #Maximum collector-emitter voltage, V\n", + "IC_max=VCC/(RC+RE); #Maximum collector current, mA\n", + "\n", + "\n", + "#plot\n", + "VCE_plot=[i for i in range(0,(int)(VCC+1))]; #Plot variable for V_CE\n", + "IC_plot=[((VCC-i)/(RC+RE)) for i in (VCE_plot[:])]; #Plot variable for I_C\n", + "\n", + "plt.subplot(211)\n", + "plt.xlim(0,20)\n", + "plt.ylim(0,6)\n", + "plt.plot(VCE_plot,IC_plot);\n", + "plt.xlabel(\"VCE(V)\");\n", + "plt.ylabel(\"IC(mA)\");\n", + "plt.title(\"d.c load line\");\n", + "\n", + "\n", + "\n", + "#(ii)\n", + "#For operating point:\n", + "#Assuming VCC drops almost completely across R1 and R2,\n", + "V2=VCC*R2/(R1+R2); #Voltage across resistor R2, V\n", + "IE=(V2-VBE)/RE; #Emitter current, mA\n", + "IC=IE; #Collector current, mA\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage , V\n", + "\n", + "print(\"The operating point: VCE=%.2fV and IC=%.2fmA.\"%(VCE,IC));\n", + "\n", + "\n", + "#(iii)\n", + "#For a.c load line\n", + "RAC=(RC*RL)/(RC+RL); #a.c load, kΩ\n", + "VCE_ac_max=VCE+IC*RAC; #Maximum collector-emitter voltage, V\n", + "IC_ac_max=IC+VCE/RAC; #Maximum collector current, mA\n", + "print(\"Maximum v_CE=%.2fV and maximum i_C=%.2fmA\"%(VCE_ac_max,IC_ac_max));\n", + "\n", + "#plot\n", + "vCE_plot=[0,VCE_ac_max]; #Plot variable for V_CE\n", + "iC_plot=[IC_ac_max,0]; #Plot variable for I_C\n", + "\n", + "plt.subplot(212)\n", + "plt.xlim(0,10)\n", + "plt.ylim(0,20)\n", + "plt.plot(vCE_plot,iC_plot);\n", + "plt.xlabel(\"vCE(V)\");\n", + "plt.ylabel(\"iC(mA)\");\n", + "plt.title(\"a.c load line\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.6: Page number 253-254" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEZCAYAAACU3p4jAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH5FJREFUeJzt3X2UHVWd7vHvE0ISkkCEEJOQQIIYQd4kpGXJDUirVwYR\nwaUXJejgiBe9isJcX0bF6yTguleZtUTxBWcGkUsYXkQwgiKKd0gvFiiQF4IJCQGFkPAWA4YohGBC\nfvePqqZPn5zuPtXddeqcU89nrVqcrtqn9j5F5Ve79q7aWxGBmZm1vxFFF8DMzBrDAd/MrCQc8M3M\nSsIB38ysJBzwzcxKwgHfzKwkHPCtqUm6UtJFQ9zHDEk7JQ37+S5psaSz+9g2X9LV6ef9Jf1Fkoa7\nDGb1Gll0AcwapKgXTgIgIjYAexVUBjPANXwzs9JwwLemImm2pGWStki6HhjTT9oRki6Q9Ic0/RJJ\n0+rIY6qkmyU9J+lhSf+9YtubJf1W0mZJT0r6rqSRFdvfKWlNuv27QF1NNNXNSmlT0EWS7kqben4l\naZ+K9G+RdHeaz/2STqgnH7P+OOBb05C0O7AIuArYB/gJ8P5+vvI54IPASRExATgb2FpHVj8G1gNT\ngNOB/yOpM932CvCPaf7HAm8HPpWWbyJwE3ABsC/wR2Bu3T9w12alecBHgEnAaODzaT7TgF8AF0XE\n3un6m9L8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kzHQtK1\nQCcwEdgIzAd+BvwE2B94HPhARDxfVBkbpY9j8TaSNtudwDrgE91t2O1M0lzgTmAlyb+NAC4geWP/\nBkp0bvRzLM4kw7nhF6/MzErCnbZmZiXhgG9mVhIO+GZmJeGAb2ZWEg74ZmYl4YBvZlYSDvhmZiXh\ngG+lI2mWpFvT8dSXSrpe0iRJJ0h6Ph1X/P70v29PvzNGUpekEZL+KGlW1T6/JekLkg6XdGUxv8ys\nf7lOcWjWbCSNBm4F/jEifpmueyswKU1yZ0ScWuOrZwM3RcROSdeRDAXytfT7Av4bcGxEPCFpmqTp\nEfFE3r/HLAvX8K1tSfq6pE9V/D0fOA/4bXewB4iIOyNidXeyPnb3IXrGbLmeJOB3eyuwriLA/6Jq\nu1lTcMC3dvZj4AMVf38AOIRktqC+HF/VpHOgpN2BAyNiPUBErAJekXRE+p0zgOsq9rEUOH7YfoXZ\nMHGTjrWtdDq4SemIgq8F/kzt2aQq7dKkI2kqUD041/XAGZJWk8y49M8V2/4E7DekwpvlwAHf2t1P\ngNOBKSQ1/hdJRqPM4iVgTNW664HbSUYwfCCdx6DbmPQ7Zk3FTTrW7m4gaXJ5P0nwvw44VtK7uhNI\nOl7Sod1/Vu8gHXp3t3Tehu51jwLPAt+gd3MOwBso15j11iIc8K2tpZ2xewJPRMTGiNgGnAKclz6W\nuQr4JNBdQz+uqg3/fen624HqaSevAw4Gflq1/m0kTwKZNRWPh29WB0mzSR7l/MgA6UYBXcBxEbGz\nEWUzq5dr+GZ1iIj7gcXpM/f9OQD4koO9NSPX8M3MSsI1fDOzknDANzMrCQd8M7OScMA3MysJB3wz\ns5L4/1kCJflW+/pRAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f895dbf5390>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as p\n", + "\n", + "#Variable declaration\n", + "RC=10; #Collector resistor, kΩ\n", + "RL=30; #Load resistor, kΩ\n", + "VCC=20; #Collector supply voltage, V\n", + "IC=1; #Collector current, mA\n", + "VCE=10; #Collector-emitter voltage, V\n", + "\n", + "\n", + "#Calculations\n", + "#For d.c load line:\n", + "#From the equation: VCE=VCC-IC*(RC+RE),\n", + "#When VCE=0, IC is maximum.\n", + "#Emitter resistor is neglected, assuming it as negligible\n", + "IC_max=VCC/RC; #Maximum collector current, mA\n", + "\n", + "#And, when IC=0, VCE is maximum\n", + "VCE_max=VCC; #Maximum collector-emitter voltage, V\n", + "\n", + "#plot\n", + "p.subplot(211)\n", + "p.xlim(0,20)\n", + "p.ylim(0,5)\n", + "VCE_plot=[0,VCE_max]; #Plot variable for V_CE\n", + "IC_plot=[IC_max,0]; #Plot variable for I_C\n", + "\n", + "p.plot(VCE_plot,IC_plot);\n", + "p.xlabel(\"VCE(V)\");\n", + "p.ylabel(\"IC(mA)\");\n", + "p.title(\"d.c load line\");\n", + "\n", + "\n", + "#For a.c load line:\n", + "RAC=(RC*RL)/(RC+RL); #a.c Load resistor, kΩ\n", + "\n", + "VCE_ac_max=VCE+IC*RAC; #Maximum collector-emitter voltage, V\n", + "IC_ac_max=IC+ VCE/RAC; #Maximum collector current, mA\n", + "\n", + "#plot\n", + "p.subplot(212)\n", + "p.xlim([0,25])\n", + "p.ylim([0,5])\n", + "vCE_plot=[0,VCE_ac_max]; #Plot variable for V_CE\n", + "iC_plot=[IC_ac_max,0]; #Plot variable for I_C\n", + "\n", + "p.plot(vCE_plot,iC_plot);\n", + "p.xlabel(\"vCE(V)\");\n", + "p.ylabel(\"iC(mA)\");\n", + "p.title(\"a.c load line\");\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.7 : Page number 254-255" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEZCAYAAACTsIJzAAAABHNCSVQICAgIfAhkiAAAA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wHLegx\n/G7z+vnAQQs+/gzgqfTuKDbXC+ld+SSNFO/HIK2iJM+id4nr65fZ78HAZuCgqvrlWoxNWim/MUir\nqKouBS5o5iwsZU/gXSYFjSK/MUiS5vEbgyRpHhODJGkeE4MkaR4TgyRpHhODJGme/w9CYQ9RD7Ux\nvQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f898013a748>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as p\n", + "\n", + "#Variabe declaration\n", + "VCE_Q=8.0; #Q-point collector emitter voltage, V\n", + "IC_Q=1; #Q-point collector current, mA\n", + "ic_positive_peak=1.5; #Collector current at positive peak of signal, mA\n", + "ic_negative_peak=0.5; #Collector current at negative peak of signal, mA\n", + "vce_positive_peak=7; #Collector emitter voltage at positive peak of signal, V\n", + "vce_negative_peak=9; #Collector emitter voltage at negative peak of signal, V\n", + "\n", + "#Plot\n", + "vce_plot=[vce_positive_peak,vce_negative_peak]; #Plot variable of vce\n", + "ic_plot=[ic_positive_peak,ic_negative_peak]; #Plot variable of ic\n", + "\n", + "p.xlim(0,10)\n", + "p.ylim(0,2)\n", + "p.plot(vce_plot,ic_plot);\n", + "p.xlabel(\"vCE(V)\");\n", + "p.ylabel(\"iC(mA)\");\n", + "p.title(\"a.c load line\");\n", + "p.grid();\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.8 : Page number 256" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain= 24.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "RC=2.0; #Collector resistor, kΩ\n", + "Rin=1.0; #Input resistance, kΩ\n", + "beta=60.0; #Base current amplification factor\n", + "RL=0.5; #Load resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "RAC=(RC*RL)/(RC+RL); #a.c load resistor, kΩ\n", + "Av=beta*(RAC/Rin); #Voltage gain\n", + "\n", + "#Results\n", + "print(\"Voltage gain= %d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.9 : Page number 256" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage= 200mV.\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "V_in=1.0; #Input voltage , mV\n", + "RC=10.0; #Collector resistor, kΩ\n", + "Rin=2.5; #Input resistance, kΩ\n", + "beta=100.0; #Base current amplification factor\n", + "RL=10.0; #Load resistor, kΩ\n", + "\n", + "#Calculations\n", + "RAC=(RC*RL)/(RC+RL); #Effective load, kΩ\n", + "Av=beta*(RAC/Rin); #Voltage gain\n", + "\n", + "V_out=V_in*Av; #Output voltage, V\n", + "\n", + "#Results\n", + "print(\"Output voltage= %dmV.\"%V_out);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.10 : Page number 256-257" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Beta= 100.\n", + "Input impedance=2 kΩ.\n", + "a.c load=3.3 kΩ.\n", + "Voltage gain= 165.\n", + "Power gain=16500.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "change_in_IB=10.0; #Change in base current, 𝜇A\n", + "change_in_IC=1.0; #Change in collector current, mA\n", + "change_in_VBE=0.02; #Change in Base-emitter voltage, V\n", + "RC=5.0; #Collector resistor, kΩ\n", + "RL=10.0; #Emitter resistor, kΩ\n", + "\n", + "#Calculations\n", + "#(i)\n", + "beta=(change_in_IC*1000)/change_in_IB; #Base current amplification factor\n", + "\n", + "#(ii)\n", + "Rin=(change_in_VBE/change_in_IB)*1000; #Input impedance, kΩ\n", + "\n", + "#(iii)\n", + "RAC=round((RC*RL)/(RC+RL),1); #a.c load, kΩ\n", + "\n", + "#(iv)\n", + "Av=beta*RAC/Rin; #Voltage gain\n", + "\n", + "#(v)\n", + "Ap=beta*Av; #Power gain\n", + "\n", + "\n", + "#Results\n", + "print(\"Beta= %d.\"%beta);\n", + "print(\"Input impedance=%d kΩ.\"%Rin);\n", + "print(\"a.c load=%.1f kΩ.\"%RAC);\n", + "print(\"Voltage gain= %d.\"%Av);\n", + "print(\"Power gain=%d.\"%Ap);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.11 : Page number 257" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=200mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=50.0; #Base current amplification factor\n", + "RC=3.0; #Collector resistor,kΩ\n", + "RL=6.0; #Load resistor, kΩ\n", + "Rin=0.5; #Input impedance, kΩ\n", + "Vin=1; #Input voltage, mV\n", + "\n", + "#Calculation\n", + "RAC=(RC*RL)/(RC+RL); #a.c load, kΩ\n", + "Av=beta*RAC/Rin; #Voltage gain\n", + "Vout=Vin*Av; #Output voltage, V\n", + "\n", + "#Results\n", + "print(\"Output voltage=%dmV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.12 : Page number 257-258" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The circuit is not operating properly.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VT=6.0; #Collector potential, V\n", + "R1=1.0; #Resistor R1, kΩ\n", + "R2=2.0; #Resistor R2, kΩ\n", + "VB_found=4.0; #Measured base voltage, V\n", + "\n", + "#Calculations\n", + "VB=(VT*R1)/(R1+R2); #Theoretical base voltage, V\n", + "\n", + "if(VB_found==VB):\n", + " print(\"The circuit is operating properly.\");\n", + "else:\n", + " print(\"The circuit is not operating properly.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.13 : Page number 258-259" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a.c emitter resistance= 38.46 Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "R1=40.0; #Resistor R1, kΩ\n", + "R2=10.0; #Resistor R2, kΩ\n", + "RC=6.0; #Collector resistor, kΩ\n", + "RE=2.0; #Emitter resistor, kΩ\n", + "beta=80; #Base current amplification factor\n", + "VBE=0.7; #Base emitter voltage, V\n", + "\n", + "#Calculations\n", + "V2=(VCC*R2)/(R1+R2); #Voltage across resistor R2, V\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=VE/RE; #Emitter current, mA\n", + "re=25/IE; #a.c emitter resistance, Ω\n", + "\n", + "\n", + "#Results\n", + "print(\"a.c emitter resistance= %.2f Ω.\"%re);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.14 : Page number 262-263" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i)Voltage gain= 360.\n", + "(ii)Voltage gain= 5.37.\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=150.0; #Resistor R1, kΩ\n", + "R2=20.0 #Resistor R2, kΩ\n", + "RC=12.0; #Collector resistor, kΩ\n", + "RE=2.2; #Emitter resistor, kΩ\n", + "\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),2); #Voltage across R2, V\n", + "VE=round(V2-VBE,2); #Voltage across emitter resistor, V\n", + "IE=round(VE/RE,2); #Emitter current, mA\n", + "re=round(25/IE,1); #a.c emitter resistance, Ω\n", + "\n", + "\n", + "#(i)\n", + "#CE(emitter capacitor) connected in the circuit:\n", + "Av=(RC*1000)/re; #Voltage gain for emitter capacitor connected.\n", + "\n", + "print(\"(i)Voltage gain= %d.\"%Av);\n", + "\n", + "#(ii)\n", + "#CE(emitter capacitor) removed from the circuit:\n", + "Av=(RC*1000)/(re+RE*1000); #Voltage gain for emitter capacitor removed.\n", + "\n", + "print(\"(ii)Voltage gain= %.2f.\"%Av);\n", + "\n", + "#Note: The answer in the text book has been approximated to 5.38 but it's actually coming 5.37.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.15 : Page number 263" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain= 120.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=6.0; #Collector resistor, kΩ\n", + "RL=12.0; #Load resistor, kΩ\n", + "re=33.3; #a.c emitter resistance, Ω\n", + "\n", + "\n", + "#Calculations\n", + "RAC=RC*RL/(RC+RL); #a.c effective load, kΩ\n", + "Av=RAC*1000/re; #Voltage gain\n", + "\n", + "#Result\n", + "print(\"Voltage gain= %d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.16 : Page number 263-264" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) a.c emitter resistance=250 Ω.\n", + "(ii) Voltage gain =80.\n", + "(iii) d.c voltage across input capacitor= 1V and emitter capacitor=0.3V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=9.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=240.0; #Resistor R1, kΩ\n", + "R2=30.0 #Resistor R2, kΩ\n", + "RC=20.0; #Collector resistor, kΩ\n", + "RE=3.0; #Emitter resistor, kΩ\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "V2=round(VCC*R2/(R1+R2),1); #Voltage across R2, V\n", + "VE=round(V2-VBE,1); #Voltage across emitter resistor, V\n", + "IE=round(VE/RE,1); #Emitter current, mA\n", + "re=25/IE; #a.c emitter resistance, Ω\n", + "\n", + "#(ii)\n", + "Av=RC*1000/re; #Voltage gain\n", + "\n", + "#(iii)\n", + "V_C_in=V2; #d.c voltage across input capacitor, V\n", + "V_C_E=VE; #d.c vooltage across emitter capacitor, V\n", + "\n", + "\n", + "\n", + "#Results\n", + "print(\"(i) a.c emitter resistance=%d Ω.\"%re);\n", + "print(\"(ii) Voltage gain =%d.\"%Av);\n", + "print(\"(iii) d.c voltage across input capacitor= %dV and emitter capacitor=%.1fV.\"%(V_C_in,V_C_E));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.17 : Page number 264-265" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) D.C bias levels: V2=3V, VE=2.3V, IE=2.3mA, IC=2.3mA, IB=0.023mA and VC=10.4V.\n", + "(ii) D.c voltage across: Cin=3V and CE=2.3V and CC=10.4V.\n", + "(iii) a.c emitter resistance=10.9Ω.\n", + "(iv) Voltage gain=61.2.\n", + "(v) VC>VE. Therefore, the transistor is in active state.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=40.0; #Resistor R1, kΩ\n", + "R2=10.0 #Resistor R2, kΩ\n", + "RC=2.0; #Collector resistor, kΩ\n", + "RE=1.0; #Emitter resistor, kΩ\n", + "RL=1.0; #Load resistor, kΩ\n", + "beta=100; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "#(i) D.C bias levels\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V\n", + "VE=round(V2-VBE,1); #Voltage across emitter resistor, V\n", + "IE=round(VE/RE,1); #Emitter current, mA\n", + "IC=IE; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VC=VCC-IC*RC; #Collector voltage, V\n", + "print(\"(i) D.C bias levels: V2=%dV, VE=%.1fV, IE=%.1fmA, IC=%.1fmA, IB=%.3fmA and VC=%.1fV.\"%(V2,VE,IE,IC,IB,VC));\n", + "\n", + "\n", + "#(ii)\n", + "Cin_V=V2; #Voltage across Cin capacitor, V\n", + "CE_V=VE; #Voltage across CE capacitor, V \n", + "CC_V=VC; #Voltage across CC capacitor, V\n", + "print(\"(ii) D.c voltage across: Cin=%dV and CE=%.1fV and CC=%.1fV.\"%(Cin_V,CE_V,CC_V));\n", + "\n", + "#(iii)\n", + "re=round(25/IE,1); #a.c emitter resistance, Ω\n", + "print(\"(iii) a.c emitter resistance=%.1fΩ.\"%re);\n", + "\n", + "\n", + "#(iv)\n", + "RAC=round(RC*RL/(RC+RL),3); #Total a.c collector resistance, kΩ\n", + "Av=RAC/(re/1000); #Voltage gain\n", + "print(\"(iv) Voltage gain=%.1f.\"%Av);\n", + "\n", + "#(v)\n", + "print(\"(v) VC>VE. Therefore, the transistor is in active state.\" );\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.18 : page number 265" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power gain = 26400 and output power = 1.584W.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=132.0; #Voltage gain\n", + "beta=200.0; #Base current amplification factor\n", + "P_in=60.0; #Input power, 𝜇W\n", + "\n", + "\n", + "#Calculations\n", + "Ap=beta*Av; #Power gain\n", + "P_out=Ap*(P_in/10**6); #Output power, W\n", + "\n", + "\n", + "#Results\n", + "print(\"The power gain = %d and output power = %.3fW.\"%(Ap,P_out));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.19 : page number 265-266" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Current gain=49\n", + "(ii) Voltage gain=2.14\n", + "(iii) Power gain=105.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IB=200.0; #Base current, microampere\n", + "IE=10.0; #Emitter current, mA\n", + "R1=27.0; #Resistor R1, kilo ohm\n", + "R2=13.0 #Resistor R2, kilo ohm\n", + "RC=4.7; #Collector resistor, kilo ohm\n", + "RE=2.2; #Emitter resistor, kilo ohm\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "IC=IE-(IB/1000); #Collector current, mA\n", + "beta=IC/(IB/1000); #Current gain\n", + "\n", + "print(\"(i) Current gain=%d\"%beta);\n", + "\n", + "#(ii)\n", + "#a.c emitter resistance is neglected, voltage gain=(collector resistor)/(emitter resistor)\n", + "Av=RC/RE; #Voltage gain\n", + "\n", + "print(\"(ii) Voltage gain=%.2f\"%Av);\n", + "\n", + "#(iii)\n", + "Ap=round(beta*Av,0); #Power gain\n", + "\n", + "#Results\n", + "print(\"(iii) Power gain=%d.\"%Ap);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.20 : Page number 266-267" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance of the amplifier circuit= 3.46 kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=30.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base emitter voltage, V\n", + "R1=45.0; #Resistor R1, kΩ\n", + "R2=15.0 #Resistor R2, kΩ\n", + "RC=10.0; #Collector resistor,kΩ\n", + "RE=7.5; #Emitter resistor, kΩ\n", + "beta=200.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),1); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2; #Voltage across emitter resistor(base-emitter voltage is neglected), V\n", + "IE=VE/RE; #Emitter current, mA (OHM's LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm\n", + "Zin_base=(beta*re)/1000; #input impedance of transistor base,kΩ\n", + "R1_R2=(R1*R2)/(R1+R2); #Parallel resistance between R1 and R2, kΩ\n", + "Zin=((R1_R2)*Zin_base)/(R1_R2+Zin_base); #Input impedance of the amplifier circuit, kΩ\n", + "\n", + "\n", + "#Result\n", + "print(\"The input impedance of the amplifier circuit= %.2f kΩ.\"%Zin); \n", + "\n", + "#Note: The input impedance of the amplifier circuit is approximated as 3.45 kΩ in the text book, but actually it's 3.46 kΩ.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.21 : Page Number 268-269" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the swamped amplifier= 4.67.\n", + "Input impedance of transistor base of the swamped amplifier= 48.21 kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V.\n", + "RC=1.5; #Collector resistor, kΩ.\n", + "R1=18.0; #Resistor R1, kΩ.\n", + "R2=4.7; #Resistor R2, kΩ.\n", + "RE1=300.0; #Emitter resistor 1, Ω.\n", + "RE2=900.0; #Emitter resistor 2, Ω.\n", + "VBE=0.7; #Base-emitter voltage, V.\n", + "beta=150.0; #Base current amplification factor.\n", + "\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),1); #d.c voltage across R2, V. (Voltage divider rule)\n", + "VE=round(V2-VBE,1); #d.c voltage across RE, V.\n", + "IE=round((VE/(RE1+RE2))*1000,2); #d.c emitter current, mA.(OHM'S LAW)\n", + "re=round(25/IE,1); #a.c emitter resistance, Ω.\n", + "Av=RC*1000/(re+RE1); #Voltage gain\n", + "Zin_base=(beta*(re+RE1))/1000; #Input impedance of transistor base, kΩ.\n", + "\n", + "\n", + "#Results\n", + "print(\"The voltage gain of the swamped amplifier= %.2f.\"%Av);\n", + "print(\"Input impedance of transistor base of the swamped amplifier= %.2f kΩ.\"%Zin_base);\n", + "\n", + "#Note:In the textbook Av is approximated to 4.66and Zin_base to 48.22 kilo ohm, but the actual answers come as 4.67 and 48.21 kilo ohm.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.22 : Page number 269" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The percentage change from the original value= 6.42%(decrease)\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=1.5; #Collector resistor, kΩ.\n", + "RE1=300.0; #Emitter resistor 1, Ω.\n", + "re=21.5; #a.c emitter resistance, Ω.\n", + "\n", + "#Calculations\n", + "Av=round(RC*1000/(re+RE1),2); #Voltage gain.\n", + "Av_1=round(RC*1000/(2*re+RE1),2); #Voltage gain when re doubles.\n", + "change_in_gain=round(Av-Av_1,2); #Change in voltage gain.\n", + "change_percentage=change_in_gain*100/Av; #Change percentage\n", + "\n", + "\n", + "#Results\n", + "if(change_in_gain>0):\n", + " print(\"The percentage change from the original value= %.2f%%(decrease)\"%change_percentage);\n", + "else:\n", + " print(\"The percentage change from the original value= %.2f%%(increase)\"%change_percentage);\n", + "\n", + "\n", + "#Note: The percentage has been approximated in the text book as 6.22%, but the answer comes as 6.42%.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.23 : Page number 269-270" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) input impedance of transistor base for standard amplifier= 5 kilo ohm\n", + " input impedance of transistor base for swamped amplifier= 47 kilo ohm\n", + "(ii) input impedance for standard amplifier= 1.33 kilo ohm\n", + " input impedance for swamped amplifier= 1.74 kilo ohm\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base emitter voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=2.2; #Resistor R2, kilo ohm\n", + "RC=4.0; #Collector resistor, kilo ohm\n", + "RE=1.1; #Emitter resistor, kilo ohm\n", + "beta=200.0; #Base current amplification factor\n", + "RE1=210.0; #Emitter resistor 1 of swamped amplifier, ohm.\n", + "RE2=900.0; #Emitter resistor 2 of swamped amplifier, ohm.\n", + "\n", + "\n", + "#Calculations\n", + "V2=round(VCC*R2/(R1+R2),1); #d.c voltage across R2, V. (Voltage divider rule)\n", + "VE=round(V2-VBE,1); #d.c voltage across RE, V.\n", + "IE=(VE/RE); #d.c emitter current, mA.(OHM'S LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm.\n", + "\n", + "\n", + "#(i) Zin_base:\n", + "Zin_base_standard=(beta*re)/1000; #input impedance of transistor base for standard amplifier , kilo ohm.\n", + "Zin_base_swamped=(beta*(re+RE1))/1000; #input impedance of transistor base for swamped amplifier, kilo ohm.\n", + "\n", + "\n", + "#(ii) Zin:\n", + "#input impedance for standard amplifier circuit\n", + "Zin_standard=(((R1*R2)/(R1+R2))*Zin_base_standard)/(Zin_base_standard +((R1*R2)/(R1+R2))); #kilo ohm\n", + "\n", + "#input impedance for standard amplifier circuit\n", + "Zin_swamped=(((R1*R2)/(R1+R2))*Zin_base_swamped)/(Zin_base_swamped +((R1*R2)/(R1+R2))); #kilo ohm\n", + "\n", + "\n", + "#Results\n", + "print(\"(i) input impedance of transistor base for standard amplifier= %d kilo ohm\"%Zin_base_standard);\n", + "print(\" input impedance of transistor base for swamped amplifier= %d kilo ohm\"%Zin_base_swamped);\n", + "print(\"(ii) input impedance for standard amplifier= %.2f kilo ohm\"%Zin_standard);\n", + "print(\" input impedance for swamped amplifier= %.2f kilo ohm\"%Zin_swamped);\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.24 : Page number 270-271" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of standard amplifier=160.\n", + "The voltage gain of swamped amplifier=17.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=4.0; #Collector resistor, kilo ohm\n", + "re=25.0; #a.c emitter resistance, ohm (calculated in example 10.23)\n", + "RE_1=210.0; #Emitter resistor 1 of swamped amplifier,ohm\n", + "\n", + "#Calculation\n", + "Av_standard=(RC*1000)/re; #Voltage gain of standard common emitter amplifier\n", + "Av_swamped=(RC*1000)/(re+RE_1); #Voltage gain of swamped amplifier\n", + "\n", + "#Results\n", + "print(\"The voltage gain of standard amplifier=%d.\"%Av_standard);\n", + "print(\"The voltage gain of swamped amplifier=%d.\"%Av_swamped);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.26 : Page number 273-274" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The required input signal voltage =2.5mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_0=1000.0; #Open circuit voltage gain\n", + "R_in=2.0; #Input resistance, kilo ohm\n", + "R_out=1.0; #Output resistance, ohm\n", + "RL=4; #Load resistor across the output, ohm\n", + "I_2=0.5; #Output signal current, A.\n", + "\n", + "\n", + "#Calculations\n", + "#Since A_0*(I_1*R_in) = I_2*(R_out+RL)\n", + "I_1=I_2*(R_out+RL)/(A_0*(R_in*1000)); #Input current, A\n", + "V_1=I_1*(R_in*1000); #Input signal voltage, V\n", + "V_1=V_1*1000; #Input signal voltage, mV\n", + "\n", + "print(\"The required input signal voltage =%.1fmV\"%V_1);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.27 : Page number 274" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The magnitude of output voltage = 4.9V\n", + "The power gain =98e-06.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_0=1000.0; #Open circuit voltage gain\n", + "R_in=7.0; #Input resistance, kilo ohm\n", + "R_out=15.0; #Output resistance, ohm\n", + "RL=35.0; #Load resistor across the output, ohm\n", + "R_s=3.0; #Internal resistance, kilo ohm\n", + "E_s=10.0; #Input signal voltage, mV.\n", + "\n", + "#Calculations\n", + "#(i)\n", + "I_1=E_s*(10**-3)/(R_s*1000+R_in*1000); #Input current, A\n", + "V_1=I_1*(R_in*1000); #Voltage across input resistance, V\n", + "\n", + "#Since, A_v=V_2/V_1 = A_0*RL/(R_out+RL)\n", + "A_v=A_0*RL/(R_out+RL); #Voltage gain\n", + "V_2=A_v*V_1; #Outout voltage, V\n", + "\n", + "\n", + "#(ii)\n", + "P_2=V_2**2/RL; #Output power, W\n", + "P_1=V_1**2/(R_in*1000); #Input power, W\n", + "A_p=round(P_2/P_1,-6); #Power gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The magnitude of output voltage = %.1fV\"%V_2);\n", + "print(\"The power gain =%de-06.\"%(A_p/10**6));\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.28 : Page number 274-275" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Necessary input signal voltage= 12.5mV\n", + "Input signal current =4.17 μA\n", + "Power gain = 9600.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_v=80.0; #Voltage gain\n", + "V_2=1.0; #Output voltage, V\n", + "A_i=120.0; #Current gain\n", + "RL=2; #Load resistor, kilo ohm\n", + "\n", + "#Calculation\n", + "V_1=(V_2/A_v)*1000; #Input signal voltage, mV\n", + "\n", + "#Since, A_i=A0*R_in/(R_out+RL) and A_v=A0*RL/(R_out+RL)\n", + "#So, A_v/A_i=RL/R_in\n", + "R_in=RL*A_i/A_v; #Input resistance, kilo ohm\n", + "I_1=V_1/R_in; #Input current, μA\n", + "A_p=A_i*A_v; #Power gain\n", + "\n", + "#Results\n", + "print(\"Necessary input signal voltage= %.1fmV\"%V_1);\n", + "print(\"Input signal current =%.2f μA\"%I_1);\n", + "print(\"Power gain = %d.\"%A_p);\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_4.ipynb new file mode 100644 index 00000000..6e0fb200 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_4.ipynb @@ -0,0 +1,1025 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:8e425c9c2dfbfee43b3a89e44b0fd7936ba869da73ac3c372e9b23848f1cded1" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#CHAPTER 11 : MULTISTAGE TRANSISTOR AMPLIFIERS" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 11.1 : Page number 285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import log10\n", + "#Variable declaration\n", + "#(i)\n", + "A_v=30; #Voltage gain\n", + "\n", + "#(ii)\n", + "A_p=100; #Power gain\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "A_v_dB=20*log10(A_v); #Voltage gain, dB\n", + "A_p_dB=10*log10(A_p); #Power gain, dB\n", + "\n", + "#Results\n", + "print(\"(i) Voltage gain in dB=%.2fdB\"%A_v_dB);\n", + "print(\"(ii) Power gain in dB=%ddB\"%A_p_dB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Voltage gain in dB=29.54dB\n", + "(ii) Power gain in dB=20dB\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.2 : Page number 285-286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#(i)\n", + "A_p_dB=40.0; #Power gain in dB\n", + "A_p_b=A_p_dB/10; #Power gain in bel\n", + "A_p=10**A_p_b; #Power gain in number\n", + "\n", + "#Result\n", + "print(\"(i) Power gain in number=%d\"%A_p);\n", + "\n", + "#(ii)\n", + "A_p_dB=43.0; #Power gain in dB\n", + "A_p_b=A_p_dB/10; #Power gain in bel\n", + "A_p=round(10**A_p_b,-4); #Power gain in number\n", + "\n", + "#Result\n", + "print(\"(ii) Power gain in number=%d\"%A_p);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Power gain in number=10000\n", + "(ii) Power gain in number=20000\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.3 : Page number 286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import log10\n", + "\n", + "#Variable declaration\n", + "Av_1=100.0; #Voltage gain of stage 1\n", + "Av_2=200.0; #Voltage gain of stage 2\n", + "Av_3=400.0; #Voltage gain of stage 3\n", + "\n", + "#Calculations\n", + "Av_1_dB=20*log10(Av_1); #Voltage gain of stage 1, dB\n", + "Av_2_dB=20*log10(Av_2); #Voltage gain of stage 2, dB\n", + "Av_3_dB=20*log10(Av_3); #Voltage gain of stage 3, dB\n", + "\n", + "Av_T=Av_1_dB+Av_2_dB+Av_3_dB; #Total voltage gain\n", + "\n", + "#Result\n", + "print(\"The total voltage gain=%ddB\"%Av_T);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total voltage gain=138dB\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.4 : Page number 286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_p_absolute=30.0; #Absolute gain of each stage\n", + "number_of_stages=5.0; #number of stages\n", + "negative_feedback=10.0; #negative feedback, dB\n", + "\n", + "#Calculations\n", + "#(i)\n", + "A_p_dB=round(10*log10(A_p_absolute),2); #Power gain of one stage. dB\n", + "A_p_T=number_of_stages * A_p_dB; #Total power gain, dB\n", + "\n", + "#(ii)\n", + "A_p_resultant=A_p_T-negative_feedback; #Resultant power gain with negative feedback, dB\n", + "\n", + "#Results\n", + "print(\"The total power gain = %.2fdB.\"%A_p_T);\n", + "print(\"The resultant power gain with negative feedback = %.2fdB.\"%A_p_resultant);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total power gain = 73.85dB.\n", + "The resultant power gain with negative feedback = 63.85dB.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.5 : Page number 286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "P_out_2kHz=1.5; #Output power at 2 kHz, W\n", + "P_out_20kHz=0.3; #Output power at 20 kHz, W\n", + "P_in=10.0; #Input power, mW\n", + "\n", + "#Calculations\n", + "A_p_dB_2kHz=10*log10(P_out_2kHz*1000/P_in); #dB power gain at 2 kHz\n", + "A_p_dB_20kHz=10*log10(P_out_20kHz*1000/P_in); #dB power gain at 20 kHz\n", + "Fall_in_gain=A_p_dB_2kHz-A_p_dB_20kHz; #Fall in gain from 2kHz to 20kHz\n", + "\n", + "#Results\n", + "print(\"The fall in gain from 2kHz to 20kHz=%.2fdB\"%Fall_in_gain);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The fall in gain from 2kHz to 20kHz=6.99dB\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.6 : Page number 287\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_v=15.0; #Voltage gain, dB\n", + "V_1=0.8; #Input signal voltage, V\n", + "\n", + "#Calculations\n", + "#Since, Av(in decibel)=20*log10(V_2/V_1),\n", + "V_2=V_1*(10**(A_v/20)); #Output voltage, V\n", + "\n", + "#Results\n", + "print(\"The output voltage= %.1fV.\"%V_2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output voltage= 4.5V.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.7 : Page number 287\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "A_0_dB=70.0; #Open circuit voltage gain, dB\n", + "A_v_dB=67.0; #Voltage gain, dB\n", + "R_out=1.5; #Output resistance, kilo ohm\n", + "\n", + "#Calculations\n", + "#Since, A_0_dB-A_v_dB=20*log10(A_0/A_v)\n", + "ratio_A0_Av=round(10**((A_0_dB-A_v_dB)/20),2); #Ratio of open-circuit voltage gain to normal voltage gain\n", + "\n", + "#Since, A_v/A_0 = RL/(R_out+RL)\n", + "RL=R_out/(ratio_A0_Av-1); #Load resistor, kilo ohm\n", + "\n", + "\n", + "#Results\n", + "print(\"The load resistance=%.2f kilo ohm.\"%RL);\n", + "\n", + "#Note: The value of load resistor is calculated to be 3.6585 kilo ohm and approximated to 3.66. But, in the text it has been approximated to 3.65.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The load resistance=3.66 kilo ohm.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.8 : Page number 287\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=1.0; #Load resistance, kilo ohm\n", + "A_v=40.0; #Voltage gain, dB\n", + "V_in=10.0; #Input signal voltage, mV\n", + "\n", + "#Calcultaions\n", + "#(i)\n", + "#Since, A_v=20*log10(V_out/V_in)\n", + "V_out=V_in*(10**(A_v/20))/1000; #Output voltage, V\n", + "\n", + "#(ii)\n", + "P_L=(V_out**2/RL); #The load power, mW\n", + "\n", + "\n", + "#Results\n", + "print(\"(i)The output voltage is %dV.\"%V_out);\n", + "print(\"(ii)The load poweris %dmW.\"%P_L);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The output voltage is 1V.\n", + "(ii)The load poweris 1mW.\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.9 : Page number 287-288\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import log10\n", + "\n", + "#Variable declaration\n", + "P_2=40.0; #Output power, W\n", + "R=10.0; #Resistance of speaker, ohm\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "A_p_dB=25.0; #Power gain, dB\n", + "#Since, A_p_dB=10*log10(P_2/P_1)\n", + "P_1=(P_2/10**(A_p_dB/10))*1000; #Input power, mW\n", + "\n", + "\n", + "#(ii)\n", + "A_v_dB=40.0; #Voltage gain, dB\n", + "\n", + "#Since, P=(V**2)/R,\n", + "V_2=(P_2*R)**0.5; #Output voltage, V\n", + "\n", + "#Since, A_v_dB=20*log10(V_2/V_1)\n", + "V_1=(V_2/10**(A_v_dB/20))*1000; #Input voltage, mV\n", + "\n", + "\n", + "#Results\n", + "\n", + "print(\"(i)The input power=%.1fmW.\"%P_1);\n", + "print(\"(ii)The input voltage=%dmV.\"%V_1);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The input power=126.5mW.\n", + "(ii)The input voltage=200mV.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.10 : Page number 288\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "A_v_max=2000.0; #Maximum voltage gain\n", + "f_max=2.0; #Frequency at which maximum voltage gain occurs,kHz\n", + "A_v=1414.0; #Voltage gain at 50 Hz and 10kHz\n", + "f1=50; #Lower frequency at which gain is 1414, Hz\n", + "f2=10; #Upper frequency at which gain is 1414, kHz\n", + "\n", + "#Calculation\n", + "#Since, bandwidth is the range of frequency over which gain is greater than or equal to 70.7% of maximum gain\n", + "if((A_v/A_v_max)*100 ==70.7): \n", + " print(\"(i)The bandwidth is from %dHz to %dkHz.\"%(f1,f2));\n", + " print(\"(ii)The lower cut-off frequency=%dHz.\"%f1);\n", + " print(\"(iii)The upper cut-off frequency=%dkHz.\"%f2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The bandwidth is from 50Hz to 10kHz.\n", + "(ii)The lower cut-off frequency=50Hz.\n", + "(iii)The upper cut-off frequency=10kHz.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.11 : Page number 291\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "A_v=60.0; #Voltage gain of single stage amplifier\n", + "R_C=500.0; #Collector load, ohm\n", + "R_in=1.0; #Input impedance, kilo ohm\n", + "\n", + "\n", + "#Calculation\n", + "#Since, there is no loading , second stage gain remains at A_v\n", + "#But, due to loading effect of input impedance of second stage, gain of first stage decreases\n", + "A_v_2=A_v; #Voltage gain of second stage\n", + "R_AC=round((R_C*R_in*1000)/(R_C+R_in*1000),0); #Effective load of first stage, ohm\n", + "A_v_1=A_v*R_AC/R_C; #Gain of first stage\n", + "A_v_T=A_v_1*A_v_2; #Total gain\n", + "\n", + "\n", + "#Results\n", + "print(\"The total gain=%d.\"%A_v_T);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total gain=2397.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.12 : Page number 291-292\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Rin=1.0; #Input resistance, kilo ohm\n", + "beta=100.0; #base current amplification factor\n", + "RC=2.0; #Collector load, kilo ohm\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "R_AC=(RC*Rin)/(RC+Rin); #Effective load on first stage, kilo ohm\n", + "A_v_1=round(beta*(R_AC/Rin),0); #Voltage gain of first stage\n", + "\n", + "#(ii)\n", + "A_v_2=round(beta*RC/Rin,0); #Voltage gain of second stage\n", + "\n", + "#(iii)\n", + "A_v_T=A_v_1*A_v_2; #Total voltage gain\n", + "\n", + "\n", + "#Results\n", + "print(\"(i)The voltage gain of first stage =%d.\"%A_v_1);\n", + "print(\"(ii)The voltage gain of second stage =%d.\"%A_v_2);\n", + "print(\"(iii)The total voltage gain =%d.\"%A_v_T);\n", + "\n", + "#Note: The approximation inthe text for A_v_1=66.66 is taken as 66 but here it has been taken 67 and therefore the total voltage is 13400 instead of 13200.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The voltage gain of first stage =67.\n", + "(ii)The voltage gain of second stage =200.\n", + "(iii)The total voltage gain =13400.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.13 : Page number 292\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RC=10.0; #Collector load of single stage amplifier, kilo ohm\n", + "Rin=1.0; #Input resistance, kilo ohm\n", + "beta=100.0; #base current amplification factor\n", + "RL=100.0; #Load resistor, ohm\n", + "\n", + "\n", + "#Calculations\n", + "R_AC=round((RC*1000)*RL/(RC*1000+RL),-1); #Effective collector load,\n", + "A_v=beta*R_AC/(Rin*1000); #Voltage gain\n", + "\n", + "#Results\n", + "print(\"The voltage gain=%d.\"%A_v);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The voltage gain=10.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.14 : Page number 292-293\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector suppply voltage, V\n", + "R1=10.0; #resistor R1, kilo ohm\n", + "R2=2.2; #resistor R2, kilo ohm\n", + "R3=10.0; #resistor R3, kilo ohm\n", + "R4=2.2; #resistor R4, kilo ohm\n", + "RC_1=3.6; #Collector resistor of first stage, kilo ohm\n", + "RC_2=4.0; #Collector resistor of second stage, kilo ohm\n", + "RE_1=900.0; #Emitter resistor of first stage, ohm\n", + "RE_2=1.0; #Emitter resistor of second stage, kilo ohm\n", + "\n", + "\n", + "#Calculations\n", + "#Biasing potential for the second stage is the voltage across R4 resistor,\n", + "#so, by voltage divider rule:\n", + "VB=VCC*R4/(R3+R4); #Biasing potential for second stage,(Voltage across R4), V\n", + "\n", + "print(\"The biasing voltage for the second stage=%.1fV.\"%VB);\n", + "\n", + "#If coupling capacitor C_c is replaced by a wire, RC_1 and R3 become parallel\n", + "Req=round((RC_1*R3)/(RC_1+R3),2); #Equivalent resistance of R3 parallel with RC_1, kilo ohm\n", + "VB=VCC*R4/(Req+R4); #Biasing voltage if coupling capacitor is replaced by a wire, V\n", + "\n", + "print(\"The biasing voltage after replacing coupling capacitor by wire=%.2fV.\"%VB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The biasing voltage for the second stage=3.6V.\n", + "The biasing voltage after replacing coupling capacitor by wire=9.07V.\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.15 : Page number 293-294\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return (r1*r2)/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "R1=22.0; #Resistor R1, kilo ohm\n", + "R2=3.3; #Resistor R2, kilo ohm\n", + "R3=5.0; #Resistor R3, kilo ohm\n", + "R4=1.0; #Resistor R4, kilo ohm\n", + "R5=15.0; #Resistor R5, kilo ohm\n", + "R6=2.5; #Resistor R6, kilo ohm\n", + "R7=5.0; #Resistor R7, kilo ohm\n", + "R8=1.0; #Resistor R8, kilo ohm\n", + "beta=200; #Base current amplification factor\n", + "RL=10.0; #Load resistor, kilo ohm\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculations\n", + "#for 2nd stage\n", + "V_R6=round(VCC*R6/(R5+R6),2); #Voltage across R6, V (voltage divider rule)\n", + "V_R8=round(V_R6-V_BE,2); #Voltage across R8, V\n", + "IE_2=round(V_R8/R8,2); #Emitter current through R8, mA (OHM's LAW)\n", + "re_2nd_stage=round(25/IE_2,1); #a.c emitter resistance for 2nd stage, ohm\n", + "\n", + "#For 1st stage\n", + "V_R2=round(VCC*R2/(R1+R2),2); #Voltage across R2, V (voltage divider rule)\n", + "V_R4=round(V_R2-V_BE,2); #Voltage across R4, V\n", + "IE_1=round(V_R4/R4,2); #Emitter current through R4, mA (OHM's LAW)\n", + "re_1st_stage=round(25/IE_1,1); #a.c emitter resistance for 1st stage, ohm\n", + "\n", + "#(i)\n", + "Zin_base_2nd_stage=round((beta*re_2nd_stage)/1000,2); #input resistance of transistor base of 2nd stage, kilo ohm\n", + "Zin=round(pr(pr(R5,R6),Zin_base_2nd_stage),2); #Input impedance of the 2nd stage, kilo ohm\n", + "R_AC_1st_stage=round(pr(R3,Zin),2); #Effective collector load for 1st stage, kilo ohm\n", + "A_v_1=round(R_AC_1st_stage*1000/re_1st_stage,0); #voltage gain of 1st stage\n", + "\n", + "#(ii)\n", + "R_AC_2nd_stage=round(pr(R7,RL),2); #Effective collector load for 2nd stage, kilo ohm\n", + "A_v_2=round(R_AC_2nd_stage*1000/re_2nd_stage,1); #voltage gain of 2nd stage\n", + "\n", + "#(iii)\n", + "A_v_overall=A_v_1*A_v_2; #overall voltage gain\n", + "\n", + "\n", + "#results\n", + "print(\"(i)The voltage gain of 1st stage=%.0f.\"%A_v_1);\n", + "print(\"(i)The voltage gain of 2nd stage=%.1f.\"%A_v_2);\n", + "print(\"(i)The overall voltage gain =%d.\"%A_v_overall);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The voltage gain of 1st stage=53.\n", + "(i)The voltage gain of 2nd stage=191.4.\n", + "(i)The overall voltage gain =10144.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.16 : Page number 297\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Primary_impedance=1000.0; #Primary impedance, ohm\n", + "Load_impedance=10.0; #Load impedance, ohm\n", + "\n", + "#Calculation\n", + "#since,for maximum power transfer primary impedance should be equal to output impedance\n", + "#and, impedance of secondary should be equal to load impedance\n", + "#therfore, primary_impedance/load_impedance=square of(primary to secondary turn ratio)\n", + "n=(Primary_impedance/Load_impedance)**0.5; #Primary to secondary turn ratio\n", + "\n", + "\n", + "#Result\n", + "print('The primary to secondary turn ratio for maximum power transfer=%d.'%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary to secondary turn ratio for maximum power transfer=10.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.17 : Page number 297\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=16.0; #Load resistor, ohm\n", + "R_p=10.0; #Output impedance of primary, kilo ohm\n", + "Vp=10.0; #Terminal voltage of the source, V\n", + "\n", + "#Calculation\n", + "#Since, for maximum power transfer, the impedance of the primary should be equal to output impedance of the source\n", + "n=(R_p*1000/RL)**0.5; #Primary to secondary turns ratio\n", + "\n", + "#Since, power in a transformer remains constant,\n", + "#ratio of primary to secondary voltageis equal to primary to secondary turns ratio\n", + "Vs=Vp/n; #Voltage across the external load, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The primary to secondary turns ratio=%d.\"%n);\n", + "print(\"The voltage across the external load=%.1fV.\"%Vs);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary to secondary turns ratio=25.\n", + "The voltage across the external load=0.4V.\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.18 : Page number 297-298\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Rp=300.0; #D.C resistance of primary, ohm\n", + "RL=3.0; #Load resistance, ohm\n", + "R_out=3.0; #Ouput resistance of the transistor, kilo ohm \n", + "\n", + "#Calculation\n", + "#when no signal is applied, only Rp is seen to be the load.\n", + "#But, when a.c signal is applied, RL in secondary reflects as RL*(squre of turns ratio).\n", + "#Therefore, load is seen to be Rp in series with the reflected RL in primary.\n", + "#i.e, R_out=Rp+(n**2 * RL), where n is the turns ratio\n", + "n=((R_out*1000-Rp)/RL)**0.5; #turns ratio\n", + "\n", + "#Result\n", + "print(\"Turns ratio for maximum power transfer=%d.\"%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Turns ratio for maximum power transfer=30.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.19 : Page number 298" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "f=200.0; #Frequency, Hz\n", + "Z_out=10.0; #Output impedance of the transistor, kilo ohm\n", + "Z_in=2.5; #Input impedance of the next stage, kilo ohm\n", + "\n", + "#Calculation\n", + "#For perfect impedance matching,\n", + "#Z_out should be equal to primary impedance\n", + "#Z_out=2*pi*f*(primary inductance)\n", + "Lp=(Z_out*1000)/(2*pi*f); #Primary inductance, H\n", + "\n", + "#for the secondary side,\n", + "#Z_in should be equal to impedance of secondary\n", + "Ls=(Z_in*1000)/(2*pi*f); #Secondary inductance, H\n", + "\n", + "\n", + "#result\n", + "print(\"The primary inductance=%.0fH.\"%Lp);\n", + "print(\"The secondary inductance=%.0fH.\"%Ls);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary inductance=8H.\n", + "The secondary inductance=2H.\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.20 : Page number 299\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Lp=8.0; #Primary inductance, H\n", + "Ls=2.0; #Secondary inductance, H\n", + "K=10**-5; #Inductance to turns ratio, constant\n", + "\n", + "#Calculations\n", + "Np=(Lp/K)**0.5; #Primary turns\n", + "Ns=(Ls/K)**0.5; #Secondary turns\n", + "\n", + "#Result\n", + "print(\"The primary turns=%.0f.\"%Np);\n", + "print(\"The secondary turns=%.0f.\"%Ns);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary turns=894.\n", + "The secondary turns=447.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.21 : Page number 300-301\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "R1=100.0; #Resistor R1, kilo ohm\n", + "R2=22.0; #Resistor R2, kilo ohm\n", + "R3=22.0; #Resistor R3, kilo ohm\n", + "R4=4.7; #Resistor R4, kilo ohm\n", + "R5=10.0; #Resistor R5, kilo ohm\n", + "R6=10.0; #Resistor R6, kilo ohm\n", + "beta=125; #Base current amplification factor\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i) D.C voltages\n", + "#For 1st stage:\n", + "V_B1=VCC*R2/(R1+R2); #Voltage at the base of 1st transistor, V (Voltage across R2, using voltage divider rule)\n", + "V_E1=V_B1-V_BE; #Emitter voltage of the 1st transistor, V\n", + "I_E1=round(V_E1/R4,2); #Emitter current of 1st transistor, mA (OHM's LAW)\n", + "I_C1=I_E1; #Collector current of 1st transistor, mA(approximately equals to emitter current)\n", + "V_C1=VCC-I_C1*R3; #Collector voltage of 1st transistor, V\n", + "\n", + "#For 2nd stage:\n", + "V_B2=V_C1; #Voltage at the base of 2nd transistor, V (equals to collector voltage of 1st transistor)\n", + "V_E2=V_C1-V_BE; #Emitter voltage of the 2nd transistor, V\n", + "I_E2=V_E2/R6; #Emitter current of 2nd transistor, mA (OHM's LAW)\n", + "I_C2=I_E2; #Collector current 2nd transistor, mA(approximately equals to emitter current)\n", + "V_C2=VCC-I_C2*R5; #Collector voltage of 2nd transistor, V\n", + "\n", + "print(\"(i) D.C voltages\");\n", + "print(\"First stage: VB1=%.2fV , VE1=%.2fV and VC1=%.2fV\"%(V_B1,V_E1,V_C1));\n", + "print(\"First stage: VB2=%.2fV , VE2=%.2fV and VC2=%.2fV\"%(V_B2,V_E2,V_C2));\n", + "\n", + "#(ii)Voltage gain\n", + "#First stage\n", + "re_1=25/I_E1; #a.c emitter resistance of 1st transistor, ohm\n", + "re_2=25/I_E2; #a.c emitter resistance of 2nd transistor, ohm\n", + "Zin_2nd_stage=beta*re_2/1000; #Input impedance of 2nd stage, kilo ohm\n", + "R_AC=R3*Zin_2nd_stage/(R3+Zin_2nd_stage); #Total a.c collector load, kilo ohm\n", + "A_v1=round(R_AC*1000/re_1,0); #Voltage gain of first stage\n", + "\n", + "print(\"The voltage gain of first stage=%d.\"%A_v1);\n", + "\n", + "#Second stage\n", + "R_AC=R5; #Total a.c collector load for 2nd stage, kilo ohm(Due to no loading effect, equal to R5)\n", + "A_v2=round(R5*1000/re_2,0); #Voltage gain of 2nd stage\n", + "\n", + "print(\"The voltage gain of second stage=%d.\"%A_v2);\n", + "\n", + "A_vT=A_v1*A_v2; #Overall voltage gain\n", + "\n", + "print(\"Overall voltage gain=%d.\"%A_vT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) D.C voltages\n", + "First stage: VB1=2.16V , VE1=1.46V and VC1=5.18V\n", + "First stage: VB2=5.18V , VE2=4.48V and VC2=7.52V\n", + "The voltage gain of first stage=66.\n", + "The voltage gain of second stage=179.\n", + "Overall voltage gain=11814.\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_5.ipynb new file mode 100644 index 00000000..6e0fb200 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_5.ipynb @@ -0,0 +1,1025 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:8e425c9c2dfbfee43b3a89e44b0fd7936ba869da73ac3c372e9b23848f1cded1" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#CHAPTER 11 : MULTISTAGE TRANSISTOR AMPLIFIERS" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 11.1 : Page number 285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import log10\n", + "#Variable declaration\n", + "#(i)\n", + "A_v=30; #Voltage gain\n", + "\n", + "#(ii)\n", + "A_p=100; #Power gain\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "A_v_dB=20*log10(A_v); #Voltage gain, dB\n", + "A_p_dB=10*log10(A_p); #Power gain, dB\n", + "\n", + "#Results\n", + "print(\"(i) Voltage gain in dB=%.2fdB\"%A_v_dB);\n", + "print(\"(ii) Power gain in dB=%ddB\"%A_p_dB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Voltage gain in dB=29.54dB\n", + "(ii) Power gain in dB=20dB\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.2 : Page number 285-286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#(i)\n", + "A_p_dB=40.0; #Power gain in dB\n", + "A_p_b=A_p_dB/10; #Power gain in bel\n", + "A_p=10**A_p_b; #Power gain in number\n", + "\n", + "#Result\n", + "print(\"(i) Power gain in number=%d\"%A_p);\n", + "\n", + "#(ii)\n", + "A_p_dB=43.0; #Power gain in dB\n", + "A_p_b=A_p_dB/10; #Power gain in bel\n", + "A_p=round(10**A_p_b,-4); #Power gain in number\n", + "\n", + "#Result\n", + "print(\"(ii) Power gain in number=%d\"%A_p);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Power gain in number=10000\n", + "(ii) Power gain in number=20000\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.3 : Page number 286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import log10\n", + "\n", + "#Variable declaration\n", + "Av_1=100.0; #Voltage gain of stage 1\n", + "Av_2=200.0; #Voltage gain of stage 2\n", + "Av_3=400.0; #Voltage gain of stage 3\n", + "\n", + "#Calculations\n", + "Av_1_dB=20*log10(Av_1); #Voltage gain of stage 1, dB\n", + "Av_2_dB=20*log10(Av_2); #Voltage gain of stage 2, dB\n", + "Av_3_dB=20*log10(Av_3); #Voltage gain of stage 3, dB\n", + "\n", + "Av_T=Av_1_dB+Av_2_dB+Av_3_dB; #Total voltage gain\n", + "\n", + "#Result\n", + "print(\"The total voltage gain=%ddB\"%Av_T);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total voltage gain=138dB\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.4 : Page number 286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_p_absolute=30.0; #Absolute gain of each stage\n", + "number_of_stages=5.0; #number of stages\n", + "negative_feedback=10.0; #negative feedback, dB\n", + "\n", + "#Calculations\n", + "#(i)\n", + "A_p_dB=round(10*log10(A_p_absolute),2); #Power gain of one stage. dB\n", + "A_p_T=number_of_stages * A_p_dB; #Total power gain, dB\n", + "\n", + "#(ii)\n", + "A_p_resultant=A_p_T-negative_feedback; #Resultant power gain with negative feedback, dB\n", + "\n", + "#Results\n", + "print(\"The total power gain = %.2fdB.\"%A_p_T);\n", + "print(\"The resultant power gain with negative feedback = %.2fdB.\"%A_p_resultant);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total power gain = 73.85dB.\n", + "The resultant power gain with negative feedback = 63.85dB.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.5 : Page number 286\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "P_out_2kHz=1.5; #Output power at 2 kHz, W\n", + "P_out_20kHz=0.3; #Output power at 20 kHz, W\n", + "P_in=10.0; #Input power, mW\n", + "\n", + "#Calculations\n", + "A_p_dB_2kHz=10*log10(P_out_2kHz*1000/P_in); #dB power gain at 2 kHz\n", + "A_p_dB_20kHz=10*log10(P_out_20kHz*1000/P_in); #dB power gain at 20 kHz\n", + "Fall_in_gain=A_p_dB_2kHz-A_p_dB_20kHz; #Fall in gain from 2kHz to 20kHz\n", + "\n", + "#Results\n", + "print(\"The fall in gain from 2kHz to 20kHz=%.2fdB\"%Fall_in_gain);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The fall in gain from 2kHz to 20kHz=6.99dB\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.6 : Page number 287\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_v=15.0; #Voltage gain, dB\n", + "V_1=0.8; #Input signal voltage, V\n", + "\n", + "#Calculations\n", + "#Since, Av(in decibel)=20*log10(V_2/V_1),\n", + "V_2=V_1*(10**(A_v/20)); #Output voltage, V\n", + "\n", + "#Results\n", + "print(\"The output voltage= %.1fV.\"%V_2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output voltage= 4.5V.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.7 : Page number 287\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "A_0_dB=70.0; #Open circuit voltage gain, dB\n", + "A_v_dB=67.0; #Voltage gain, dB\n", + "R_out=1.5; #Output resistance, kilo ohm\n", + "\n", + "#Calculations\n", + "#Since, A_0_dB-A_v_dB=20*log10(A_0/A_v)\n", + "ratio_A0_Av=round(10**((A_0_dB-A_v_dB)/20),2); #Ratio of open-circuit voltage gain to normal voltage gain\n", + "\n", + "#Since, A_v/A_0 = RL/(R_out+RL)\n", + "RL=R_out/(ratio_A0_Av-1); #Load resistor, kilo ohm\n", + "\n", + "\n", + "#Results\n", + "print(\"The load resistance=%.2f kilo ohm.\"%RL);\n", + "\n", + "#Note: The value of load resistor is calculated to be 3.6585 kilo ohm and approximated to 3.66. But, in the text it has been approximated to 3.65.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The load resistance=3.66 kilo ohm.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.8 : Page number 287\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=1.0; #Load resistance, kilo ohm\n", + "A_v=40.0; #Voltage gain, dB\n", + "V_in=10.0; #Input signal voltage, mV\n", + "\n", + "#Calcultaions\n", + "#(i)\n", + "#Since, A_v=20*log10(V_out/V_in)\n", + "V_out=V_in*(10**(A_v/20))/1000; #Output voltage, V\n", + "\n", + "#(ii)\n", + "P_L=(V_out**2/RL); #The load power, mW\n", + "\n", + "\n", + "#Results\n", + "print(\"(i)The output voltage is %dV.\"%V_out);\n", + "print(\"(ii)The load poweris %dmW.\"%P_L);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The output voltage is 1V.\n", + "(ii)The load poweris 1mW.\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.9 : Page number 287-288\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import log10\n", + "\n", + "#Variable declaration\n", + "P_2=40.0; #Output power, W\n", + "R=10.0; #Resistance of speaker, ohm\n", + "\n", + "\n", + "#Calculations\n", + "#(i)\n", + "A_p_dB=25.0; #Power gain, dB\n", + "#Since, A_p_dB=10*log10(P_2/P_1)\n", + "P_1=(P_2/10**(A_p_dB/10))*1000; #Input power, mW\n", + "\n", + "\n", + "#(ii)\n", + "A_v_dB=40.0; #Voltage gain, dB\n", + "\n", + "#Since, P=(V**2)/R,\n", + "V_2=(P_2*R)**0.5; #Output voltage, V\n", + "\n", + "#Since, A_v_dB=20*log10(V_2/V_1)\n", + "V_1=(V_2/10**(A_v_dB/20))*1000; #Input voltage, mV\n", + "\n", + "\n", + "#Results\n", + "\n", + "print(\"(i)The input power=%.1fmW.\"%P_1);\n", + "print(\"(ii)The input voltage=%dmV.\"%V_1);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The input power=126.5mW.\n", + "(ii)The input voltage=200mV.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.10 : Page number 288\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "A_v_max=2000.0; #Maximum voltage gain\n", + "f_max=2.0; #Frequency at which maximum voltage gain occurs,kHz\n", + "A_v=1414.0; #Voltage gain at 50 Hz and 10kHz\n", + "f1=50; #Lower frequency at which gain is 1414, Hz\n", + "f2=10; #Upper frequency at which gain is 1414, kHz\n", + "\n", + "#Calculation\n", + "#Since, bandwidth is the range of frequency over which gain is greater than or equal to 70.7% of maximum gain\n", + "if((A_v/A_v_max)*100 ==70.7): \n", + " print(\"(i)The bandwidth is from %dHz to %dkHz.\"%(f1,f2));\n", + " print(\"(ii)The lower cut-off frequency=%dHz.\"%f1);\n", + " print(\"(iii)The upper cut-off frequency=%dkHz.\"%f2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The bandwidth is from 50Hz to 10kHz.\n", + "(ii)The lower cut-off frequency=50Hz.\n", + "(iii)The upper cut-off frequency=10kHz.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.11 : Page number 291\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "A_v=60.0; #Voltage gain of single stage amplifier\n", + "R_C=500.0; #Collector load, ohm\n", + "R_in=1.0; #Input impedance, kilo ohm\n", + "\n", + "\n", + "#Calculation\n", + "#Since, there is no loading , second stage gain remains at A_v\n", + "#But, due to loading effect of input impedance of second stage, gain of first stage decreases\n", + "A_v_2=A_v; #Voltage gain of second stage\n", + "R_AC=round((R_C*R_in*1000)/(R_C+R_in*1000),0); #Effective load of first stage, ohm\n", + "A_v_1=A_v*R_AC/R_C; #Gain of first stage\n", + "A_v_T=A_v_1*A_v_2; #Total gain\n", + "\n", + "\n", + "#Results\n", + "print(\"The total gain=%d.\"%A_v_T);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total gain=2397.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.12 : Page number 291-292\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Rin=1.0; #Input resistance, kilo ohm\n", + "beta=100.0; #base current amplification factor\n", + "RC=2.0; #Collector load, kilo ohm\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "R_AC=(RC*Rin)/(RC+Rin); #Effective load on first stage, kilo ohm\n", + "A_v_1=round(beta*(R_AC/Rin),0); #Voltage gain of first stage\n", + "\n", + "#(ii)\n", + "A_v_2=round(beta*RC/Rin,0); #Voltage gain of second stage\n", + "\n", + "#(iii)\n", + "A_v_T=A_v_1*A_v_2; #Total voltage gain\n", + "\n", + "\n", + "#Results\n", + "print(\"(i)The voltage gain of first stage =%d.\"%A_v_1);\n", + "print(\"(ii)The voltage gain of second stage =%d.\"%A_v_2);\n", + "print(\"(iii)The total voltage gain =%d.\"%A_v_T);\n", + "\n", + "#Note: The approximation inthe text for A_v_1=66.66 is taken as 66 but here it has been taken 67 and therefore the total voltage is 13400 instead of 13200.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The voltage gain of first stage =67.\n", + "(ii)The voltage gain of second stage =200.\n", + "(iii)The total voltage gain =13400.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.13 : Page number 292\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RC=10.0; #Collector load of single stage amplifier, kilo ohm\n", + "Rin=1.0; #Input resistance, kilo ohm\n", + "beta=100.0; #base current amplification factor\n", + "RL=100.0; #Load resistor, ohm\n", + "\n", + "\n", + "#Calculations\n", + "R_AC=round((RC*1000)*RL/(RC*1000+RL),-1); #Effective collector load,\n", + "A_v=beta*R_AC/(Rin*1000); #Voltage gain\n", + "\n", + "#Results\n", + "print(\"The voltage gain=%d.\"%A_v);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The voltage gain=10.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.14 : Page number 292-293\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector suppply voltage, V\n", + "R1=10.0; #resistor R1, kilo ohm\n", + "R2=2.2; #resistor R2, kilo ohm\n", + "R3=10.0; #resistor R3, kilo ohm\n", + "R4=2.2; #resistor R4, kilo ohm\n", + "RC_1=3.6; #Collector resistor of first stage, kilo ohm\n", + "RC_2=4.0; #Collector resistor of second stage, kilo ohm\n", + "RE_1=900.0; #Emitter resistor of first stage, ohm\n", + "RE_2=1.0; #Emitter resistor of second stage, kilo ohm\n", + "\n", + "\n", + "#Calculations\n", + "#Biasing potential for the second stage is the voltage across R4 resistor,\n", + "#so, by voltage divider rule:\n", + "VB=VCC*R4/(R3+R4); #Biasing potential for second stage,(Voltage across R4), V\n", + "\n", + "print(\"The biasing voltage for the second stage=%.1fV.\"%VB);\n", + "\n", + "#If coupling capacitor C_c is replaced by a wire, RC_1 and R3 become parallel\n", + "Req=round((RC_1*R3)/(RC_1+R3),2); #Equivalent resistance of R3 parallel with RC_1, kilo ohm\n", + "VB=VCC*R4/(Req+R4); #Biasing voltage if coupling capacitor is replaced by a wire, V\n", + "\n", + "print(\"The biasing voltage after replacing coupling capacitor by wire=%.2fV.\"%VB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The biasing voltage for the second stage=3.6V.\n", + "The biasing voltage after replacing coupling capacitor by wire=9.07V.\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.15 : Page number 293-294\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return (r1*r2)/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "R1=22.0; #Resistor R1, kilo ohm\n", + "R2=3.3; #Resistor R2, kilo ohm\n", + "R3=5.0; #Resistor R3, kilo ohm\n", + "R4=1.0; #Resistor R4, kilo ohm\n", + "R5=15.0; #Resistor R5, kilo ohm\n", + "R6=2.5; #Resistor R6, kilo ohm\n", + "R7=5.0; #Resistor R7, kilo ohm\n", + "R8=1.0; #Resistor R8, kilo ohm\n", + "beta=200; #Base current amplification factor\n", + "RL=10.0; #Load resistor, kilo ohm\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculations\n", + "#for 2nd stage\n", + "V_R6=round(VCC*R6/(R5+R6),2); #Voltage across R6, V (voltage divider rule)\n", + "V_R8=round(V_R6-V_BE,2); #Voltage across R8, V\n", + "IE_2=round(V_R8/R8,2); #Emitter current through R8, mA (OHM's LAW)\n", + "re_2nd_stage=round(25/IE_2,1); #a.c emitter resistance for 2nd stage, ohm\n", + "\n", + "#For 1st stage\n", + "V_R2=round(VCC*R2/(R1+R2),2); #Voltage across R2, V (voltage divider rule)\n", + "V_R4=round(V_R2-V_BE,2); #Voltage across R4, V\n", + "IE_1=round(V_R4/R4,2); #Emitter current through R4, mA (OHM's LAW)\n", + "re_1st_stage=round(25/IE_1,1); #a.c emitter resistance for 1st stage, ohm\n", + "\n", + "#(i)\n", + "Zin_base_2nd_stage=round((beta*re_2nd_stage)/1000,2); #input resistance of transistor base of 2nd stage, kilo ohm\n", + "Zin=round(pr(pr(R5,R6),Zin_base_2nd_stage),2); #Input impedance of the 2nd stage, kilo ohm\n", + "R_AC_1st_stage=round(pr(R3,Zin),2); #Effective collector load for 1st stage, kilo ohm\n", + "A_v_1=round(R_AC_1st_stage*1000/re_1st_stage,0); #voltage gain of 1st stage\n", + "\n", + "#(ii)\n", + "R_AC_2nd_stage=round(pr(R7,RL),2); #Effective collector load for 2nd stage, kilo ohm\n", + "A_v_2=round(R_AC_2nd_stage*1000/re_2nd_stage,1); #voltage gain of 2nd stage\n", + "\n", + "#(iii)\n", + "A_v_overall=A_v_1*A_v_2; #overall voltage gain\n", + "\n", + "\n", + "#results\n", + "print(\"(i)The voltage gain of 1st stage=%.0f.\"%A_v_1);\n", + "print(\"(i)The voltage gain of 2nd stage=%.1f.\"%A_v_2);\n", + "print(\"(i)The overall voltage gain =%d.\"%A_v_overall);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The voltage gain of 1st stage=53.\n", + "(i)The voltage gain of 2nd stage=191.4.\n", + "(i)The overall voltage gain =10144.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.16 : Page number 297\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Primary_impedance=1000.0; #Primary impedance, ohm\n", + "Load_impedance=10.0; #Load impedance, ohm\n", + "\n", + "#Calculation\n", + "#since,for maximum power transfer primary impedance should be equal to output impedance\n", + "#and, impedance of secondary should be equal to load impedance\n", + "#therfore, primary_impedance/load_impedance=square of(primary to secondary turn ratio)\n", + "n=(Primary_impedance/Load_impedance)**0.5; #Primary to secondary turn ratio\n", + "\n", + "\n", + "#Result\n", + "print('The primary to secondary turn ratio for maximum power transfer=%d.'%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary to secondary turn ratio for maximum power transfer=10.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.17 : Page number 297\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=16.0; #Load resistor, ohm\n", + "R_p=10.0; #Output impedance of primary, kilo ohm\n", + "Vp=10.0; #Terminal voltage of the source, V\n", + "\n", + "#Calculation\n", + "#Since, for maximum power transfer, the impedance of the primary should be equal to output impedance of the source\n", + "n=(R_p*1000/RL)**0.5; #Primary to secondary turns ratio\n", + "\n", + "#Since, power in a transformer remains constant,\n", + "#ratio of primary to secondary voltageis equal to primary to secondary turns ratio\n", + "Vs=Vp/n; #Voltage across the external load, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The primary to secondary turns ratio=%d.\"%n);\n", + "print(\"The voltage across the external load=%.1fV.\"%Vs);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary to secondary turns ratio=25.\n", + "The voltage across the external load=0.4V.\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.18 : Page number 297-298\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Rp=300.0; #D.C resistance of primary, ohm\n", + "RL=3.0; #Load resistance, ohm\n", + "R_out=3.0; #Ouput resistance of the transistor, kilo ohm \n", + "\n", + "#Calculation\n", + "#when no signal is applied, only Rp is seen to be the load.\n", + "#But, when a.c signal is applied, RL in secondary reflects as RL*(squre of turns ratio).\n", + "#Therefore, load is seen to be Rp in series with the reflected RL in primary.\n", + "#i.e, R_out=Rp+(n**2 * RL), where n is the turns ratio\n", + "n=((R_out*1000-Rp)/RL)**0.5; #turns ratio\n", + "\n", + "#Result\n", + "print(\"Turns ratio for maximum power transfer=%d.\"%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Turns ratio for maximum power transfer=30.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.19 : Page number 298" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "f=200.0; #Frequency, Hz\n", + "Z_out=10.0; #Output impedance of the transistor, kilo ohm\n", + "Z_in=2.5; #Input impedance of the next stage, kilo ohm\n", + "\n", + "#Calculation\n", + "#For perfect impedance matching,\n", + "#Z_out should be equal to primary impedance\n", + "#Z_out=2*pi*f*(primary inductance)\n", + "Lp=(Z_out*1000)/(2*pi*f); #Primary inductance, H\n", + "\n", + "#for the secondary side,\n", + "#Z_in should be equal to impedance of secondary\n", + "Ls=(Z_in*1000)/(2*pi*f); #Secondary inductance, H\n", + "\n", + "\n", + "#result\n", + "print(\"The primary inductance=%.0fH.\"%Lp);\n", + "print(\"The secondary inductance=%.0fH.\"%Ls);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary inductance=8H.\n", + "The secondary inductance=2H.\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.20 : Page number 299\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Lp=8.0; #Primary inductance, H\n", + "Ls=2.0; #Secondary inductance, H\n", + "K=10**-5; #Inductance to turns ratio, constant\n", + "\n", + "#Calculations\n", + "Np=(Lp/K)**0.5; #Primary turns\n", + "Ns=(Ls/K)**0.5; #Secondary turns\n", + "\n", + "#Result\n", + "print(\"The primary turns=%.0f.\"%Np);\n", + "print(\"The secondary turns=%.0f.\"%Ns);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The primary turns=894.\n", + "The secondary turns=447.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.21 : Page number 300-301\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "R1=100.0; #Resistor R1, kilo ohm\n", + "R2=22.0; #Resistor R2, kilo ohm\n", + "R3=22.0; #Resistor R3, kilo ohm\n", + "R4=4.7; #Resistor R4, kilo ohm\n", + "R5=10.0; #Resistor R5, kilo ohm\n", + "R6=10.0; #Resistor R6, kilo ohm\n", + "beta=125; #Base current amplification factor\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i) D.C voltages\n", + "#For 1st stage:\n", + "V_B1=VCC*R2/(R1+R2); #Voltage at the base of 1st transistor, V (Voltage across R2, using voltage divider rule)\n", + "V_E1=V_B1-V_BE; #Emitter voltage of the 1st transistor, V\n", + "I_E1=round(V_E1/R4,2); #Emitter current of 1st transistor, mA (OHM's LAW)\n", + "I_C1=I_E1; #Collector current of 1st transistor, mA(approximately equals to emitter current)\n", + "V_C1=VCC-I_C1*R3; #Collector voltage of 1st transistor, V\n", + "\n", + "#For 2nd stage:\n", + "V_B2=V_C1; #Voltage at the base of 2nd transistor, V (equals to collector voltage of 1st transistor)\n", + "V_E2=V_C1-V_BE; #Emitter voltage of the 2nd transistor, V\n", + "I_E2=V_E2/R6; #Emitter current of 2nd transistor, mA (OHM's LAW)\n", + "I_C2=I_E2; #Collector current 2nd transistor, mA(approximately equals to emitter current)\n", + "V_C2=VCC-I_C2*R5; #Collector voltage of 2nd transistor, V\n", + "\n", + "print(\"(i) D.C voltages\");\n", + "print(\"First stage: VB1=%.2fV , VE1=%.2fV and VC1=%.2fV\"%(V_B1,V_E1,V_C1));\n", + "print(\"First stage: VB2=%.2fV , VE2=%.2fV and VC2=%.2fV\"%(V_B2,V_E2,V_C2));\n", + "\n", + "#(ii)Voltage gain\n", + "#First stage\n", + "re_1=25/I_E1; #a.c emitter resistance of 1st transistor, ohm\n", + "re_2=25/I_E2; #a.c emitter resistance of 2nd transistor, ohm\n", + "Zin_2nd_stage=beta*re_2/1000; #Input impedance of 2nd stage, kilo ohm\n", + "R_AC=R3*Zin_2nd_stage/(R3+Zin_2nd_stage); #Total a.c collector load, kilo ohm\n", + "A_v1=round(R_AC*1000/re_1,0); #Voltage gain of first stage\n", + "\n", + "print(\"The voltage gain of first stage=%d.\"%A_v1);\n", + "\n", + "#Second stage\n", + "R_AC=R5; #Total a.c collector load for 2nd stage, kilo ohm(Due to no loading effect, equal to R5)\n", + "A_v2=round(R5*1000/re_2,0); #Voltage gain of 2nd stage\n", + "\n", + "print(\"The voltage gain of second stage=%d.\"%A_v2);\n", + "\n", + "A_vT=A_v1*A_v2; #Overall voltage gain\n", + "\n", + "print(\"Overall voltage gain=%d.\"%A_vT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) D.C voltages\n", + "First stage: VB1=2.16V , VE1=1.46V and VC1=5.18V\n", + "First stage: VB2=5.18V , VE2=4.48V and VC2=7.52V\n", + "The voltage gain of first stage=66.\n", + "The voltage gain of second stage=179.\n", + "Overall voltage gain=11814.\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_4.ipynb new file mode 100644 index 00000000..05e3d9d8 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_4.ipynb @@ -0,0 +1,968 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:1e9209171152811793fc18d1ee8c80ddcef574d69421ec87eeaa8fb87a304f6d" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 12: TRANSISTOR AUDIO POWER AMPLIFIERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.1 : Page number 308\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=2.2; #Resistor R2, kilo ohm\n", + "RC=3.6; #Collector resistor, kilo ohm\n", + "RE=1.1; #Emitter resistor, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "I1=VCC/(R1+R2); #Current through R1 and R2, mA (OHM's LAW)\n", + "V2=I1*R2; #Voltage across R2 resistor, V (OHM's LAW)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=VE/RE; #Emitter current, mA (OHM's LAW)\n", + "IC=IE; #Collector current, mA (approximately equal to emitter current)\n", + "I_T=I1+IC; #Total current drawn from the supply, mA\n", + "P_dc=VCC*I_T; #Total power drawn from the supply, mW\n", + "\n", + "\n", + "#Results\n", + "print(\"The total power drawn from the supply=%.1fmW.\"%P_dc);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total power drawn from the supply=18.2mW.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.2 : Page number 309\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_L=10.6; #Voltage across load, V.(from a.c voltmeter, therfore r.m.s value)\n", + "R_L=200.0; #Load resistance, ohm\n", + "\n", + "#Calculation\n", + "#Since, power =V**2/R,\n", + "P_O=(V_L**2/R_L)*1000; #A.C output power, mW\n", + "\n", + "#Result\n", + "print(\"The a.c output power = %.1fmW.\"%P_O);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c output power = 561.8mW.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.3 : Page number 309\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=100.0; #Load resistance, ohm\n", + "V_PP=18.0; #Peak-to-peak a.c voltage, V\n", + "\n", + "#Calculation\n", + "#Since, V(r.m.s)=(V(peak-to-peak)/2)/sqrt(2)\n", + "VL=V_PP/(2*(2**0.5)); #r.m.s value, V\n", + "\n", + "#Since, power=(square of voltage)/resistance\n", + "P_O_max=(VL**2/RL)*1000; #Maximum possible a.c load power, mW\n", + "\n", + "#Result\n", + "print(\"The maximum possible a.c load power=%dmW.\"%P_O_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum possible a.c load power=405mW.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.4 : Page number 310\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_battery=12.0; #Battery voltage, V\n", + "P_out=2.0; #Output power, W\n", + "\n", + "#Calculation\n", + "#Since, Power=Current*Voltage\n", + "IC=(P_out/V_battery)*1000; #Maximum collector current , mA\n", + "\n", + "#Result\n", + "print(\"The maximum collector current=%.1fmA.\"%IC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector current=166.7mA.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.5 : Page number 310\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_battery=12.0; #Battery voltage, V\n", + "RL=4.0; #Collector load, kilo ohm\n", + "\n", + "#Calculation\n", + "IC_max=V_battery/RL; #Maximum collector current, mA\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum collector current=%dmA.\"%IC_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector current=3mA.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.6 : Page number 310-311\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P=50.0; #Power supplied by power amplifier, W\n", + "R=8.0; #Resistance of speaker, ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, Power=Voltage _square/Resistance,\n", + "V=(P*R)**0.5; #a.c output voltage, V\n", + "\n", + "#(ii)\n", + "I=V/R; #a.c output current, A (OHM's LAW)\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The a.c output voltage=%dV.\"%V);\n", + "print(\"(ii) The a.c output current=%.1fA.\"%I);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The a.c output voltage=20V.\n", + "(ii) The a.c output current=2.5A.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.7 : Page number 315\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "ib_peak=10.0; #Base current(peak), mA\n", + "RB=1.0; #Base resistance, kilo ohm\n", + "RC=20.0; #Collector resistance, ohm\n", + "beta=25.0; #Base current amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "IB=round(VCC-VBE/RB,1); #Base current, mA (OHM's LAW)\n", + "IC=int(beta*IB); #Collector current, mA\n", + "VCE=VCC-(IC/1000)*RC; #Collector emitter voltage, V (KVL)\n", + "\n", + "#(i)\n", + "ic_peak=beta*ib_peak; #Collector current(peak), mA\n", + "P_o_ac=(ic_peak/1000)**2*RC/2; #Output power, W\n", + "\n", + "#(ii)\n", + "P_dc=VCC*IC/1000; #Input power, W\n", + "\n", + "#(iii)\n", + "collector_efficiency=(P_o_ac/P_dc)*100; #Collector efficiency of the amplifier circuit,\n", + "\n", + "#Result\n", + "print(\"(i) The output power=%.3fW.\"%P_o_ac);\n", + "print(\"(ii) The input power=%.1fW.\"%P_dc);\n", + "print(\"(iii) The collector efficiency=%.1f%%.\"%collector_efficiency);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output power=0.625W.\n", + "(ii) The input power=9.6W.\n", + "(iii) The collector efficiency=6.5%.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.8 : Page number 317\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_dc=10.0; #zero signal power dissipation, W\n", + "P_o=4.0; #a.c output power, W\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Collector_eff=(P_o/P_dc)*100; #collector efficiency\n", + "\n", + "#(ii)\n", + "#Zero signal power is the maximum power dissipation in a transistor, therefore,\n", + "Power_rating=P_dc; #Power rating of the transistor, W\n", + "\n", + "#Result\n", + "print(\"(i) The collector efficiency=%d%%.\"%Collector_eff);\n", + "print(\"(i) The power rating of the transistor=%dW.\"%Power_rating);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The collector efficiency=40%.\n", + "(i) The power rating of the transistor=10W.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.9 : Page number 317-318\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=100.0; #Secondary load, ohm\n", + "n=10.0; #Transformer turn ratio\n", + "IC=100.0; #Zero signal collector current, mA\n", + "\n", + "#Calculation\n", + "RL_reflected=n**2*RL; #Reflected load as seen by the primary of the transformer, ohm\n", + "P_o_ac_max=(IC/1000)**2*RL_reflected/2; #Maximum a.c power output, W \n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum a.c power output=%dW.\"%P_o_ac_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum a.c power output=50W.\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.10 : Page number 318\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=5.0; #Collector supply voltage, V\n", + "IC=50.0; #Zero signal collector current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "P_o_max=VCC*IC/2; #Maximum a.c output power, mW\n", + "\n", + "#(ii)\n", + "P_dc=VCC*IC; #D.C input power, mW\n", + "#Since, maximum power is dissipated in the zero signal conditions\n", + "Power_rating=P_dc; #Power rating of transistor, mW\n", + "\n", + "#(iii)\n", + "Max_collector_eff=(P_o_max/P_dc)*100; #Maximum collector efficiency\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The maximum a.c output power=%dmW\"%P_o_max);\n", + "print(\"(ii) The power rating of the transistor=%dmW.\"%Power_rating);\n", + "print(\"(iii) The maximum collector efficiency =%d%%.\"%Max_collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The maximum a.c output power=125mW\n", + "(ii) The power rating of the transistor=250mW.\n", + "(iii) The maximum collector efficiency =50%.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.11 : Page number 318\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "ic_max=160.0; #Maximum a.c collector current, mA\n", + "ic_min=10.0; #Minimum a.c collector current, mA\n", + "vce_max=12.0; #Maximum collector-emitter voltage, V\n", + "vce_min=2.0; #Minimum collector-emitter voltage, V\n", + "\n", + "#Calculation\n", + "vce_pp=vce_max-vce_min; #peak to peak collector emitter voltage, V\n", + "ic_pp=ic_max-ic_min; #peak to peak collector current, V\n", + "P_o=(vce_pp/(2*sqrt(2)))*(ic_pp/(2*sqrt(2))); #a.c output power, mW\n", + "\n", + "\n", + "#Result\n", + "print(\"The a.c output power=%.1fmW.\"%P_o);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c output power=187.5mW.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.12 : Page number 319-320\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "\n", + "#Variable declaration\n", + "VCC=12.0; #Battey voltage, V\n", + "IC_max_change=100.0; #maximum collector current change, mA\n", + "RL=5.0; #Loudspeaker resistance, ohm\n", + "\n", + "#Calculation\n", + "VCE_max_change=VCC; #Maximum collector-emitter voltage change\n", + "#(i) Loud speaker directly connected in the collector\n", + "Vmax_speaker=(IC_max_change/1000)*RL; #Maximum voltage across the loudspeaker, V\n", + "P_speaker_directly_coupled=Vmax_speaker*IC_max_change; #Power developed in the loudspeaker,mW\n", + "\n", + "#(ii) Loudspeaker transformer coupled\n", + "Z_out=(VCE_max_change/IC_max_change)*1000; #Output impedance of transistor, ohm\n", + "\n", + "#For max power transfer, primary impedance should be Z_out\n", + "RL_reflected=Z_out; #Load resistance as seen by primary, ohm\n", + "n=sqrt(RL_reflected/RL); #Turns ratio of transformer\n", + "Vp=VCC; #Transformer primary voltage, V\n", + "Vs=Vp/n; #Transformer secondary voltage, V\n", + "IL=Vs/RL; #Load current, A\n", + "P_speaker_transformer_coupled=IL**2*RL*1000; #Power delivered to the speaker, mW\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The power transferred to the speaker when directly coupled=%dmW.\"%P_speaker_directly_coupled);\n", + "print(\"(ii) The power trasnferred to the speaker when transformer-coupled=%dmW.\"%P_speaker_transformer_coupled);\n", + "print(\" The turns ratio=%.1f.\"%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The power transferred to the speaker when directly coupled=50mW.\n", + "(ii) The power trasnferred to the speaker when transformer-coupled=1200mW.\n", + " The turns ratio=4.9.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.13 : Page number 320-321\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "beta=100.0; #Base current amplification factor\n", + "RL=81.6; #Load resistance, ohm\n", + "VCE_peak=30.0; #Peak value of collector voltage, V\n", + "IC_peak=35.0; #Peak value of collector current, mA\n", + "VCE_min=5.0; #Minimum value of collector voltage, V\n", + "IC_min=1.0; #Minimum value of collector current, mA\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IC_zero_signal=(IC_peak-IC_min)/2 +1; #Zero signal collector current, mA\n", + "\n", + "#(ii)\n", + "IB_zero_signal=IC_zero_signal/beta; #Zero signal base current, mA\n", + "\n", + "#(iii)\n", + "VCE_zero_signal=(VCE_peak-VCE_min)/2 +5; #Zero signal collector-emitter voltage, V\n", + "VCC=VCE_zero_signal; #Collector supply voltage,V (due to transformer coupling, aproximately equal to zero signal VCE)\n", + "P_dc=VCC*IC_zero_signal; #d.c input power, mW\n", + "VCE_ac=(VCE_peak-VCE_min)/(2*sqrt(2)); #a.c output voltage, V\n", + "IC_ac=(IC_peak-IC_min)/(2*sqrt(2)); #a.c output current, mA\n", + "P_ac=VCE_ac*IC_ac; #a.c output power, mW\n", + "\n", + "#(iv)\n", + "collector_eff=(P_ac/P_dc)*100; #Collector efficiency\n", + "\n", + "#(v)\n", + "#a.c resistance RL'=negative inverse of slope of the d.c load line\n", + "slope=(IC_peak-IC_min)/(VCE_min-VCE_peak); #Slope of he d.c load line, kilo mho\n", + "RL_ac=-(1/slope)*1000; #a.c resistance, ohm\n", + "n=sqrt(RL_ac/RL); #Transformer turn ratio\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The approximate value of zero signal collector current=%dmA.\"%IC_zero_signal);\n", + "print(\"(ii) The zero signal base current=%.2fmA.\"%IB_zero_signal);\n", + "print(\"(iii) The d.c input power= %dmW and a.c output power =%dmW.\"%(P_dc,P_ac));\n", + "print(\"(iv) The collector efficiency=%.1f%%.\"%collector_eff);\n", + "print(\"(v) The turn ratio of the transformer=%d.\"%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The approximate value of zero signal collector current=18mA.\n", + "(ii) The zero signal base current=0.18mA.\n", + "(iii) The d.c input power= 315mW and a.c output power =106mW.\n", + "(iv) The collector efficiency=33.7%.\n", + "(v) The turn ratio of the transformer=3.\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.14 : Page number 321-322\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "RL=13.0; #Load resistance, ohm\n", + "RL_reflected=325.0; #Load resistance, when referred to primary, ohm\n", + "VCC=20.0; #Supply voltage, V\n", + "IC=58.0; #Quiscent value of collector current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "n=sqrt(RL_reflected/RL); #Transformer turn ratio\n", + "\n", + "#(ii)\n", + "P_ac=(((IC/1000)**2)*RL_reflected/2)*1000; #A.C output power, mW\n", + "\n", + "#(iii)\n", + "P_dc=VCC*IC; #d.c input power, mW\n", + "collector_eff=(P_ac/P_dc)*100; #Collector efficiency\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Transformer turn ratio=%d.\"%n);\n", + "print(\"(ii) The a.c output power=%dmW.\"%P_ac);\n", + "print(\"(iii) The collector efficiency=%d%%.\"%collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Transformer turn ratio=5.\n", + "(ii) The a.c output power=546mW.\n", + "(iii) The collector efficiency=47%.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.15 : Page number 323\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_total=4.0; #Total power dissipated by the power transistor, W\n", + "T_j_max=90.0; #Maximum junction temperature, degree celsius\n", + "theta=10.0; #Thermal resistance, degree celsius per watt\n", + "\n", + "#Calculation\n", + "#Since, Total power dissipation=half of(max. junc. temp. - ambient temp.)\n", + "T_amb=T_j_max-(P_total*theta); #Ambient temperature, degree celsius\n", + "\n", + "#Result\n", + "print(\"The ambient temperature=%d degree celsius.\"%T_amb);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The ambient temperature=50 degree celsius.\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.16 : Page number 323-324\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "theta=300.0; #Thermal resistance, degree celsius per watt\n", + "T_j_max=90.0; #Maximum junction temperature, degree celsius\n", + "T_amb=30.0; #Ambient temperature, degree celsius\n", + "\n", + "#Calculation\n", + "#(i) Without heat sink\n", + "P_total=((T_j_max-T_amb)/theta)*1000; #Maximum permissible power dissipation without sink, mW\n", + "\n", + "print(\"(i)The maximum permissible power dissipation without heat sink=%dmW.\"%P_total);\n", + "\n", + "#(ii) With heat sink\n", + "theta=60.0; #reduced thermal resistance, degree celsius per watt\n", + "P_total=((T_j_max-T_amb)/theta)*1000; #Maximum permissible power dissipation with heat sink, mW\n", + "\n", + "print(\"(ii)The maximum permissible power dissipation with heat sink=%dmW.\"%P_total);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The maximum permissible power dissipation without heat sink=200mW.\n", + "(ii)The maximum permissible power dissipation with heat sink=1000mW.\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.17 : Page number 324\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "theta=20.0; #Thermal resistance, degree celsius per watt\n", + "T_j_max=200.0; #Maximum junction temperature, degree celsius\n", + "T_amb=25.0; #Ambient temperature, degree celsius\n", + "VCE=4.0; #Collector-emitter voltage, V\n", + "\n", + "#Calculation\n", + "P_total=(T_j_max-T_amb)/theta; #Maximum permissible power dissipation, W\n", + "\n", + "#since, the max. power dissipation=VCE_max*IC_max,therefore\n", + "IC_max=P_total/VCE; #Maximum collector current, A\n", + "\n", + "print(\"The maximum collector current that the transistor can carry without destruction=%.2fA.\"%IC_max);\n", + "\n", + "#The ambient temperature rises\n", + "T_amb=75.0; #The risen ambibent temperature, degree celsius\n", + "P_total=(T_j_max-T_amb)/theta; #Maximum permissible power dissipation, W\n", + "IC_max=P_total/VCE; #Maximum collector current, A\n", + "\n", + "print(\"The maximum collector current for the risen ambient temperature=%.2fA.\"%IC_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector current that the transistor can carry without destruction=2.19A.\n", + "The maximum collector current for the risen ambient temperature=1.56A.\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.18 : Page number 328-329\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "VCC=12.0; #Supply voltage, V\n", + "RL=8.0; #Driving load, ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IC_sat=VCC/(2*RL); #Collector saturation current, A\n", + "P_o_max=round(VCC*IC_sat*0.25,2); #Maximum load power, W\n", + "\n", + "#(ii)\n", + "P_dc=round(VCC*IC_sat/round(pi,2),2); #d.c input power, W\n", + "\n", + "#(iii)\n", + "Collector_eff=(P_o_max/P_dc)*100; #Collector efficiency\n", + "\n", + "#Result\n", + "print(\"(i) The maximum load power =%.2fW.\"%P_o_max);\n", + "print(\"(ii) The d.c input power=%.2fW.\"%P_dc);\n", + "print(\"(iii) The collector efficiency=%.1f%%.\"%Collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The maximum load power =2.25W.\n", + "(ii) The d.c input power=2.87W.\n", + "(iii) The collector efficiency=78.4%.\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.19 : Page number 329\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_T=10.0; #Power rating of each transistor, W\n", + "max_eff=0.785; #Maximum collector effciency\n", + "\n", + "#Calculation\n", + "#Since, input power=max. a.c power + Power rating of transistor\n", + "#And, max. efficiency=max. a.c power/input d.c power\n", + "P_2T=2*P_T; #Total power dissipation by two transistors\n", + "P_o_max=(max_eff*P_2T)/(1-max_eff); #Maximum output a.c power, W\n", + "\n", + "#result\n", + "print(\"The maximum output power that can be obtained=%.2fW.\"%P_o_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum output power that can be obtained=73.02W.\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.20 : Page number 329\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "eff=60.0/100; #Efficiency of the amplifier\n", + "P_T=2.5; #Power dissipated by each transistor, W\n", + "\n", + "#Calculation\n", + "#Since, input power=max. a.c power + Power rating of transistor\n", + "#And, max. efficiency=max. a.c power/input d.c power\n", + "P_2T=2*P_T; #Total power dissipated by both transistors, W\n", + "P_ac=(eff*P_2T)/(1-eff); #Output a.c power, W\n", + "P_dc=P_ac+P_2T; #Input d.c power, W\n", + "\n", + "#Result\n", + "print(\"The a.c output power= %.1fW.\"%P_ac);\n", + "print(\"The d.c input power= %.1fW.\"%P_dc);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c output power= 7.5W.\n", + "The d.c input power= 12.5W.\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.21 : Page number 329-330\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "RL=10.0; #Load resistance, ohm\n", + "\n", + "#Calculation\n", + "IC_sat=(VCC/(2*RL))*1000; #Saturated collector current, mA\n", + "VCE_off=VCC/2; #Collector-emitter voltage in off state, V\n", + "\n", + "#Result\n", + "print(\"1st end point of a.c load line, IC(sat)=%dmA.\"%IC_sat);\n", + "print(\"2nd end point of a.c load line, VCE(off)=%dV.\"%VCE_off);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "1st end point of a.c load line, IC(sat)=500mA.\n", + "2nd end point of a.c load line, VCE(off)=5V.\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_5.ipynb new file mode 100644 index 00000000..05e3d9d8 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_5.ipynb @@ -0,0 +1,968 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:1e9209171152811793fc18d1ee8c80ddcef574d69421ec87eeaa8fb87a304f6d" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 12: TRANSISTOR AUDIO POWER AMPLIFIERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.1 : Page number 308\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=2.2; #Resistor R2, kilo ohm\n", + "RC=3.6; #Collector resistor, kilo ohm\n", + "RE=1.1; #Emitter resistor, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "I1=VCC/(R1+R2); #Current through R1 and R2, mA (OHM's LAW)\n", + "V2=I1*R2; #Voltage across R2 resistor, V (OHM's LAW)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=VE/RE; #Emitter current, mA (OHM's LAW)\n", + "IC=IE; #Collector current, mA (approximately equal to emitter current)\n", + "I_T=I1+IC; #Total current drawn from the supply, mA\n", + "P_dc=VCC*I_T; #Total power drawn from the supply, mW\n", + "\n", + "\n", + "#Results\n", + "print(\"The total power drawn from the supply=%.1fmW.\"%P_dc);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total power drawn from the supply=18.2mW.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.2 : Page number 309\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_L=10.6; #Voltage across load, V.(from a.c voltmeter, therfore r.m.s value)\n", + "R_L=200.0; #Load resistance, ohm\n", + "\n", + "#Calculation\n", + "#Since, power =V**2/R,\n", + "P_O=(V_L**2/R_L)*1000; #A.C output power, mW\n", + "\n", + "#Result\n", + "print(\"The a.c output power = %.1fmW.\"%P_O);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c output power = 561.8mW.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.3 : Page number 309\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=100.0; #Load resistance, ohm\n", + "V_PP=18.0; #Peak-to-peak a.c voltage, V\n", + "\n", + "#Calculation\n", + "#Since, V(r.m.s)=(V(peak-to-peak)/2)/sqrt(2)\n", + "VL=V_PP/(2*(2**0.5)); #r.m.s value, V\n", + "\n", + "#Since, power=(square of voltage)/resistance\n", + "P_O_max=(VL**2/RL)*1000; #Maximum possible a.c load power, mW\n", + "\n", + "#Result\n", + "print(\"The maximum possible a.c load power=%dmW.\"%P_O_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum possible a.c load power=405mW.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.4 : Page number 310\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_battery=12.0; #Battery voltage, V\n", + "P_out=2.0; #Output power, W\n", + "\n", + "#Calculation\n", + "#Since, Power=Current*Voltage\n", + "IC=(P_out/V_battery)*1000; #Maximum collector current , mA\n", + "\n", + "#Result\n", + "print(\"The maximum collector current=%.1fmA.\"%IC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector current=166.7mA.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.5 : Page number 310\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_battery=12.0; #Battery voltage, V\n", + "RL=4.0; #Collector load, kilo ohm\n", + "\n", + "#Calculation\n", + "IC_max=V_battery/RL; #Maximum collector current, mA\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum collector current=%dmA.\"%IC_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector current=3mA.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.6 : Page number 310-311\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P=50.0; #Power supplied by power amplifier, W\n", + "R=8.0; #Resistance of speaker, ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, Power=Voltage _square/Resistance,\n", + "V=(P*R)**0.5; #a.c output voltage, V\n", + "\n", + "#(ii)\n", + "I=V/R; #a.c output current, A (OHM's LAW)\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The a.c output voltage=%dV.\"%V);\n", + "print(\"(ii) The a.c output current=%.1fA.\"%I);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The a.c output voltage=20V.\n", + "(ii) The a.c output current=2.5A.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.7 : Page number 315\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "ib_peak=10.0; #Base current(peak), mA\n", + "RB=1.0; #Base resistance, kilo ohm\n", + "RC=20.0; #Collector resistance, ohm\n", + "beta=25.0; #Base current amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "IB=round(VCC-VBE/RB,1); #Base current, mA (OHM's LAW)\n", + "IC=int(beta*IB); #Collector current, mA\n", + "VCE=VCC-(IC/1000)*RC; #Collector emitter voltage, V (KVL)\n", + "\n", + "#(i)\n", + "ic_peak=beta*ib_peak; #Collector current(peak), mA\n", + "P_o_ac=(ic_peak/1000)**2*RC/2; #Output power, W\n", + "\n", + "#(ii)\n", + "P_dc=VCC*IC/1000; #Input power, W\n", + "\n", + "#(iii)\n", + "collector_efficiency=(P_o_ac/P_dc)*100; #Collector efficiency of the amplifier circuit,\n", + "\n", + "#Result\n", + "print(\"(i) The output power=%.3fW.\"%P_o_ac);\n", + "print(\"(ii) The input power=%.1fW.\"%P_dc);\n", + "print(\"(iii) The collector efficiency=%.1f%%.\"%collector_efficiency);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output power=0.625W.\n", + "(ii) The input power=9.6W.\n", + "(iii) The collector efficiency=6.5%.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.8 : Page number 317\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_dc=10.0; #zero signal power dissipation, W\n", + "P_o=4.0; #a.c output power, W\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Collector_eff=(P_o/P_dc)*100; #collector efficiency\n", + "\n", + "#(ii)\n", + "#Zero signal power is the maximum power dissipation in a transistor, therefore,\n", + "Power_rating=P_dc; #Power rating of the transistor, W\n", + "\n", + "#Result\n", + "print(\"(i) The collector efficiency=%d%%.\"%Collector_eff);\n", + "print(\"(i) The power rating of the transistor=%dW.\"%Power_rating);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The collector efficiency=40%.\n", + "(i) The power rating of the transistor=10W.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.9 : Page number 317-318\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=100.0; #Secondary load, ohm\n", + "n=10.0; #Transformer turn ratio\n", + "IC=100.0; #Zero signal collector current, mA\n", + "\n", + "#Calculation\n", + "RL_reflected=n**2*RL; #Reflected load as seen by the primary of the transformer, ohm\n", + "P_o_ac_max=(IC/1000)**2*RL_reflected/2; #Maximum a.c power output, W \n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum a.c power output=%dW.\"%P_o_ac_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum a.c power output=50W.\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.10 : Page number 318\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=5.0; #Collector supply voltage, V\n", + "IC=50.0; #Zero signal collector current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "P_o_max=VCC*IC/2; #Maximum a.c output power, mW\n", + "\n", + "#(ii)\n", + "P_dc=VCC*IC; #D.C input power, mW\n", + "#Since, maximum power is dissipated in the zero signal conditions\n", + "Power_rating=P_dc; #Power rating of transistor, mW\n", + "\n", + "#(iii)\n", + "Max_collector_eff=(P_o_max/P_dc)*100; #Maximum collector efficiency\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The maximum a.c output power=%dmW\"%P_o_max);\n", + "print(\"(ii) The power rating of the transistor=%dmW.\"%Power_rating);\n", + "print(\"(iii) The maximum collector efficiency =%d%%.\"%Max_collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The maximum a.c output power=125mW\n", + "(ii) The power rating of the transistor=250mW.\n", + "(iii) The maximum collector efficiency =50%.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.11 : Page number 318\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "ic_max=160.0; #Maximum a.c collector current, mA\n", + "ic_min=10.0; #Minimum a.c collector current, mA\n", + "vce_max=12.0; #Maximum collector-emitter voltage, V\n", + "vce_min=2.0; #Minimum collector-emitter voltage, V\n", + "\n", + "#Calculation\n", + "vce_pp=vce_max-vce_min; #peak to peak collector emitter voltage, V\n", + "ic_pp=ic_max-ic_min; #peak to peak collector current, V\n", + "P_o=(vce_pp/(2*sqrt(2)))*(ic_pp/(2*sqrt(2))); #a.c output power, mW\n", + "\n", + "\n", + "#Result\n", + "print(\"The a.c output power=%.1fmW.\"%P_o);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c output power=187.5mW.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.12 : Page number 319-320\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "\n", + "#Variable declaration\n", + "VCC=12.0; #Battey voltage, V\n", + "IC_max_change=100.0; #maximum collector current change, mA\n", + "RL=5.0; #Loudspeaker resistance, ohm\n", + "\n", + "#Calculation\n", + "VCE_max_change=VCC; #Maximum collector-emitter voltage change\n", + "#(i) Loud speaker directly connected in the collector\n", + "Vmax_speaker=(IC_max_change/1000)*RL; #Maximum voltage across the loudspeaker, V\n", + "P_speaker_directly_coupled=Vmax_speaker*IC_max_change; #Power developed in the loudspeaker,mW\n", + "\n", + "#(ii) Loudspeaker transformer coupled\n", + "Z_out=(VCE_max_change/IC_max_change)*1000; #Output impedance of transistor, ohm\n", + "\n", + "#For max power transfer, primary impedance should be Z_out\n", + "RL_reflected=Z_out; #Load resistance as seen by primary, ohm\n", + "n=sqrt(RL_reflected/RL); #Turns ratio of transformer\n", + "Vp=VCC; #Transformer primary voltage, V\n", + "Vs=Vp/n; #Transformer secondary voltage, V\n", + "IL=Vs/RL; #Load current, A\n", + "P_speaker_transformer_coupled=IL**2*RL*1000; #Power delivered to the speaker, mW\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The power transferred to the speaker when directly coupled=%dmW.\"%P_speaker_directly_coupled);\n", + "print(\"(ii) The power trasnferred to the speaker when transformer-coupled=%dmW.\"%P_speaker_transformer_coupled);\n", + "print(\" The turns ratio=%.1f.\"%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The power transferred to the speaker when directly coupled=50mW.\n", + "(ii) The power trasnferred to the speaker when transformer-coupled=1200mW.\n", + " The turns ratio=4.9.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.13 : Page number 320-321\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "beta=100.0; #Base current amplification factor\n", + "RL=81.6; #Load resistance, ohm\n", + "VCE_peak=30.0; #Peak value of collector voltage, V\n", + "IC_peak=35.0; #Peak value of collector current, mA\n", + "VCE_min=5.0; #Minimum value of collector voltage, V\n", + "IC_min=1.0; #Minimum value of collector current, mA\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IC_zero_signal=(IC_peak-IC_min)/2 +1; #Zero signal collector current, mA\n", + "\n", + "#(ii)\n", + "IB_zero_signal=IC_zero_signal/beta; #Zero signal base current, mA\n", + "\n", + "#(iii)\n", + "VCE_zero_signal=(VCE_peak-VCE_min)/2 +5; #Zero signal collector-emitter voltage, V\n", + "VCC=VCE_zero_signal; #Collector supply voltage,V (due to transformer coupling, aproximately equal to zero signal VCE)\n", + "P_dc=VCC*IC_zero_signal; #d.c input power, mW\n", + "VCE_ac=(VCE_peak-VCE_min)/(2*sqrt(2)); #a.c output voltage, V\n", + "IC_ac=(IC_peak-IC_min)/(2*sqrt(2)); #a.c output current, mA\n", + "P_ac=VCE_ac*IC_ac; #a.c output power, mW\n", + "\n", + "#(iv)\n", + "collector_eff=(P_ac/P_dc)*100; #Collector efficiency\n", + "\n", + "#(v)\n", + "#a.c resistance RL'=negative inverse of slope of the d.c load line\n", + "slope=(IC_peak-IC_min)/(VCE_min-VCE_peak); #Slope of he d.c load line, kilo mho\n", + "RL_ac=-(1/slope)*1000; #a.c resistance, ohm\n", + "n=sqrt(RL_ac/RL); #Transformer turn ratio\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The approximate value of zero signal collector current=%dmA.\"%IC_zero_signal);\n", + "print(\"(ii) The zero signal base current=%.2fmA.\"%IB_zero_signal);\n", + "print(\"(iii) The d.c input power= %dmW and a.c output power =%dmW.\"%(P_dc,P_ac));\n", + "print(\"(iv) The collector efficiency=%.1f%%.\"%collector_eff);\n", + "print(\"(v) The turn ratio of the transformer=%d.\"%n);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The approximate value of zero signal collector current=18mA.\n", + "(ii) The zero signal base current=0.18mA.\n", + "(iii) The d.c input power= 315mW and a.c output power =106mW.\n", + "(iv) The collector efficiency=33.7%.\n", + "(v) The turn ratio of the transformer=3.\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.14 : Page number 321-322\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "RL=13.0; #Load resistance, ohm\n", + "RL_reflected=325.0; #Load resistance, when referred to primary, ohm\n", + "VCC=20.0; #Supply voltage, V\n", + "IC=58.0; #Quiscent value of collector current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "n=sqrt(RL_reflected/RL); #Transformer turn ratio\n", + "\n", + "#(ii)\n", + "P_ac=(((IC/1000)**2)*RL_reflected/2)*1000; #A.C output power, mW\n", + "\n", + "#(iii)\n", + "P_dc=VCC*IC; #d.c input power, mW\n", + "collector_eff=(P_ac/P_dc)*100; #Collector efficiency\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Transformer turn ratio=%d.\"%n);\n", + "print(\"(ii) The a.c output power=%dmW.\"%P_ac);\n", + "print(\"(iii) The collector efficiency=%d%%.\"%collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Transformer turn ratio=5.\n", + "(ii) The a.c output power=546mW.\n", + "(iii) The collector efficiency=47%.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.15 : Page number 323\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_total=4.0; #Total power dissipated by the power transistor, W\n", + "T_j_max=90.0; #Maximum junction temperature, degree celsius\n", + "theta=10.0; #Thermal resistance, degree celsius per watt\n", + "\n", + "#Calculation\n", + "#Since, Total power dissipation=half of(max. junc. temp. - ambient temp.)\n", + "T_amb=T_j_max-(P_total*theta); #Ambient temperature, degree celsius\n", + "\n", + "#Result\n", + "print(\"The ambient temperature=%d degree celsius.\"%T_amb);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The ambient temperature=50 degree celsius.\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.16 : Page number 323-324\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "theta=300.0; #Thermal resistance, degree celsius per watt\n", + "T_j_max=90.0; #Maximum junction temperature, degree celsius\n", + "T_amb=30.0; #Ambient temperature, degree celsius\n", + "\n", + "#Calculation\n", + "#(i) Without heat sink\n", + "P_total=((T_j_max-T_amb)/theta)*1000; #Maximum permissible power dissipation without sink, mW\n", + "\n", + "print(\"(i)The maximum permissible power dissipation without heat sink=%dmW.\"%P_total);\n", + "\n", + "#(ii) With heat sink\n", + "theta=60.0; #reduced thermal resistance, degree celsius per watt\n", + "P_total=((T_j_max-T_amb)/theta)*1000; #Maximum permissible power dissipation with heat sink, mW\n", + "\n", + "print(\"(ii)The maximum permissible power dissipation with heat sink=%dmW.\"%P_total);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)The maximum permissible power dissipation without heat sink=200mW.\n", + "(ii)The maximum permissible power dissipation with heat sink=1000mW.\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.17 : Page number 324\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "theta=20.0; #Thermal resistance, degree celsius per watt\n", + "T_j_max=200.0; #Maximum junction temperature, degree celsius\n", + "T_amb=25.0; #Ambient temperature, degree celsius\n", + "VCE=4.0; #Collector-emitter voltage, V\n", + "\n", + "#Calculation\n", + "P_total=(T_j_max-T_amb)/theta; #Maximum permissible power dissipation, W\n", + "\n", + "#since, the max. power dissipation=VCE_max*IC_max,therefore\n", + "IC_max=P_total/VCE; #Maximum collector current, A\n", + "\n", + "print(\"The maximum collector current that the transistor can carry without destruction=%.2fA.\"%IC_max);\n", + "\n", + "#The ambient temperature rises\n", + "T_amb=75.0; #The risen ambibent temperature, degree celsius\n", + "P_total=(T_j_max-T_amb)/theta; #Maximum permissible power dissipation, W\n", + "IC_max=P_total/VCE; #Maximum collector current, A\n", + "\n", + "print(\"The maximum collector current for the risen ambient temperature=%.2fA.\"%IC_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector current that the transistor can carry without destruction=2.19A.\n", + "The maximum collector current for the risen ambient temperature=1.56A.\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.18 : Page number 328-329\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "VCC=12.0; #Supply voltage, V\n", + "RL=8.0; #Driving load, ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IC_sat=VCC/(2*RL); #Collector saturation current, A\n", + "P_o_max=round(VCC*IC_sat*0.25,2); #Maximum load power, W\n", + "\n", + "#(ii)\n", + "P_dc=round(VCC*IC_sat/round(pi,2),2); #d.c input power, W\n", + "\n", + "#(iii)\n", + "Collector_eff=(P_o_max/P_dc)*100; #Collector efficiency\n", + "\n", + "#Result\n", + "print(\"(i) The maximum load power =%.2fW.\"%P_o_max);\n", + "print(\"(ii) The d.c input power=%.2fW.\"%P_dc);\n", + "print(\"(iii) The collector efficiency=%.1f%%.\"%Collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The maximum load power =2.25W.\n", + "(ii) The d.c input power=2.87W.\n", + "(iii) The collector efficiency=78.4%.\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.19 : Page number 329\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_T=10.0; #Power rating of each transistor, W\n", + "max_eff=0.785; #Maximum collector effciency\n", + "\n", + "#Calculation\n", + "#Since, input power=max. a.c power + Power rating of transistor\n", + "#And, max. efficiency=max. a.c power/input d.c power\n", + "P_2T=2*P_T; #Total power dissipation by two transistors\n", + "P_o_max=(max_eff*P_2T)/(1-max_eff); #Maximum output a.c power, W\n", + "\n", + "#result\n", + "print(\"The maximum output power that can be obtained=%.2fW.\"%P_o_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum output power that can be obtained=73.02W.\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.20 : Page number 329\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "eff=60.0/100; #Efficiency of the amplifier\n", + "P_T=2.5; #Power dissipated by each transistor, W\n", + "\n", + "#Calculation\n", + "#Since, input power=max. a.c power + Power rating of transistor\n", + "#And, max. efficiency=max. a.c power/input d.c power\n", + "P_2T=2*P_T; #Total power dissipated by both transistors, W\n", + "P_ac=(eff*P_2T)/(1-eff); #Output a.c power, W\n", + "P_dc=P_ac+P_2T; #Input d.c power, W\n", + "\n", + "#Result\n", + "print(\"The a.c output power= %.1fW.\"%P_ac);\n", + "print(\"The d.c input power= %.1fW.\"%P_dc);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c output power= 7.5W.\n", + "The d.c input power= 12.5W.\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 12.21 : Page number 329-330\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "RL=10.0; #Load resistance, ohm\n", + "\n", + "#Calculation\n", + "IC_sat=(VCC/(2*RL))*1000; #Saturated collector current, mA\n", + "VCE_off=VCC/2; #Collector-emitter voltage in off state, V\n", + "\n", + "#Result\n", + "print(\"1st end point of a.c load line, IC(sat)=%dmA.\"%IC_sat);\n", + "print(\"2nd end point of a.c load line, VCE(off)=%dV.\"%VCE_off);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "1st end point of a.c load line, IC(sat)=500mA.\n", + "2nd end point of a.c load line, VCE(off)=5V.\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_4.ipynb new file mode 100644 index 00000000..7d378f3d --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_4.ipynb @@ -0,0 +1,1148 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 13: AMPLIFIERS WITH NEGATIVE FEEDBACK" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.1 : Page number 338" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the amplifier with negative feedback=97.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=3000.0; #Voltage gain without feedback\n", + "m_v=0.01; #Feedback fraction\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=Av/(1+Av*m_v); #Voltage gain of the amplifier with negative feedback\n", + "\n", + "#Result\n", + "print(\"The voltage gain of the amplifier with negative feedback=%.0f.\"%Avf);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.2 : Page number 339" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The fraction of output fedback to the input=1/20.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=140.0; #Voltage gain\n", + "Avf=17.5; #Voltage gain with negative feedback\n", + "\n", + "#Calculation\n", + "#Since, Avf=Av/(1+Av*mv), so,\n", + "mv=(Av-Avf)/(Av*Avf); #Fraction of output fedback to the input\n", + "\n", + "\n", + "#Result\n", + "print(\"The fraction of output fedback to the input=1/%.0f.\"%(1.0/mv));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.3 : Page number 339" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The fraction of output fedback to input=0.01.\n", + "(ii) The required amplifier gain for overall gain to be 75=300.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=100.0; #Voltage gain\n", + "Avf=50.0; #Voltage gain with negative feedback\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #The fraction of output fedback to input\n", + "\n", + "#(ii) Overall gain is to be 75:\n", + "Avf=75.0; #The required overall gain\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Av=Avf/(1-Avf*mv); #The required value of amplifier gain\n", + "\n", + "#result\n", + "print(\"(i) The fraction of output fedback to input=%.2f.\"%mv);\n", + "print(\"(ii) The required amplifier gain for overall gain to be 75=%d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.4 : Page number 339-340" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The voltage gain without feedback=40.\n", + "(ii) The feedback fraction = 1/40.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vout=10.0; #output voltage , V\n", + "Vin_f=0.5; #Input votage for amplifier with feedback, V\n", + "Vin=0.25; #Input votage for amplifier without feedback, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Av=Vout/Vin; #Voltage gain without negative feedback\n", + "\n", + "#(ii)\n", + "Avf=Vout/Vin_f; #Voltage gain with negative feedback\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #Feedback fraction\n", + "\n", + "#Result\n", + "print(\"(i) The voltage gain without feedback=%d.\"%Av);\n", + "print(\"(ii) The feedback fraction = 1/%d.\"%(1/mv));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.5 : Page number 340" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The percentage of reduction in stage gain without feedback=20%.\n", + "(ii) The percentage of reduction in net gain with feedback=11.2%\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=50.0; #Gain without feedback\n", + "Avf=25.0; #Gain with negative feedback\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #Feedback fraction\n", + "\n", + "#(i)\n", + "#percentage of reduction without feedback\n", + "Av_reduced=40.0; #Reduced amplifier gain due to ageing\n", + "percentage_of_reduction=((Av-Av_reduced)/Av)*100; #Percentage of reduction in stage gain\n", + "\n", + "print(\"(i) The percentage of reduction in stage gain without feedback=%d%%.\"%percentage_of_reduction);\n", + "\n", + "#(ii)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf_reduced=round(Av_reduced/(1+mv*Av_reduced),1); #Reduced net gain with negative feedback \n", + "percentage_of_reduction_f=((Avf-Avf_reduced)/Avf)*100; #Percentage of reduction in net gain with feedback\n", + "\n", + "print(\"(ii) The percentage of reduction in net gain with feedback=%.1f%%\"%percentage_of_reduction_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.6 : Page number 340" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The percentage change in system gain=8.36%\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=100.0; #Gain\n", + "mv=0.1; #feedback fraction\n", + "Av_fall=6.0; #fall in gain, dB\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=round(Av/(1+Av*mv),2); #Total system gain with feedback\n", + "\n", + "#Since, fall in gain=20*log10(Av/Av_1)\n", + "Av1=round(Av/10**(Av_fall/20),0); #New absolute voltage gain without feedback\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf_new=round(Av1/(1+Av1*mv),2); #New net system gain with feedback\n", + "\n", + "percentage_change=((Avf-Avf_new)/Avf)*100; #Percentage change in system gain\n", + "\n", + "#Result\n", + "print(\"The percentage change in system gain=%.2f%%\"%percentage_change);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.7 : Page number 341" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The feedback fraction=0.008.\n", + "The percentage fall in system gain=4.8%.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=500.0; #Voltage gain without feedback\n", + "Avf=100.0; #Voltage gain with negative feedback\n", + "Av_fall_percentage=20.0; #Gain fall percentage due to ageing\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #Feedback fraction\n", + "Av_reduced=((100-Av_fall_percentage)/100)*Av; #Reduced voltage gain\n", + "Avf_reduced=round(Av_reduced/(1+Av_reduced*mv),1); #Reduced total gain of the system\n", + "percentage_fall=((Avf-Avf_reduced)/Avf)*100; #Percentage of fall in total system gain\n", + "\n", + "#Result\n", + "print(\"The feedback fraction=%.3f.\"%mv);\n", + "print(\"The percentage fall in system gain=%.1f%%.\"%percentage_fall);\n", + "\n", + "#Note: The percentage gain is calculated in the text as 4.7% due to approximation of Avf to 95.3 whose actual approximation will be (95.238)~95.2. So, the percentage fall calculated here is 4.8%\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.8 : Page number 341" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain with feedback=31622.\n", + "The feedback fraction=2.16e-05.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "Av=100000.0; #Open loop voltage gain\n", + "f_dB=10.0; #Negative feedback, dB\n", + "\n", + "#Calculation\n", + "Av_dB=20*log10(Av); #dB voltage gain without feedback, dB\n", + "Avf_dB=Av_dB-f_dB; #dB voltage gain with feedback, dB\n", + "Avf=10**(Avf_dB/20); #Voltage gain with feedback\n", + "\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #feedback fraction\n", + "\n", + "#Result\n", + "print(\"The voltage gain with feedback=%d.\"%Avf);\n", + "print(\"The feedback fraction=%.2e.\"%mv);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.9 : Page number 341-342" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain with feedback=47.4.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ao=1000.0; #Open circuit voltage gain\n", + "Rout=100.0; #Output resistance, ohm\n", + "RL=900.0; #Resistive load, ohm\n", + "mv=1/50; #feedback fraction\n", + "\n", + "#Calculation\n", + "#Since, Av=Ao*RL/(Rout+RL)\n", + "Av=Ao*RL/(Rout+RL); #Voltage gain without feedback\n", + "Avf=Av/(1+Av*mv); #Voltage gain with feedback\n", + "\n", + "#Result\n", + "print(\"The voltage gain with feedback=%.1f.\"%Avf);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.10 : Page number 342" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "100=Av/(1+Av*mv) ------Eq. 1\n", + "99=0.8*Av/(1+0.8*Av*mv) ------Eq. 2\n", + "99 + 79.2*Av*mv=0.8Av ------Eq. 3 from Eq. 2\n", + "79.2 + 79.2*Av*mv=0.792Av ------Eq. 4 from Eq. 1\n", + "Subtracting Eq.4 from Eq.3\n", + "19.8 = 0.008*Av\n", + "Av=2475.\n", + "mv=0.0096.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Avf=100.0; #Voltage gain with feedback\n", + "vary_f=1; #Vary percentage in voltage gain with feedback\n", + "vary_wf=20; #Vary percentage in voltage gain without feedback\n", + "\n", + "#Calculation\n", + "#Avf=Av/(1+Av*mv)\n", + "print(\"%d=Av/(1+Av*mv) ------Eq. 1\"%Avf); #Equation 1\n", + "\n", + "#considering variation in gains\n", + "Avf_vary=Avf*(1- vary_f/100.0); #Gain with feedback, considering variation\n", + "print(\"%d=%.1f*Av/(1+%.1f*Av*mv) ------Eq. 2\"%(Avf_vary,(1-vary_wf/100.0),(1-vary_wf/100.0))); #Equation 2\n", + "\n", + "#Solving the above two equations\n", + "print(\"%d + %.1f*Av*mv=%.1fAv ------Eq. 3 from Eq. 2\"%(Avf_vary,Avf_vary*(1-vary_wf/100.0),(1-vary_wf/100.0))); #Equation 3\n", + "\n", + "#multiplying Eq. 1 with (Avf_vary*(1-vary_wf/100.0))/100=0.792\n", + "print(\"%.1f + %.1f*Av*mv=%.3fAv ------Eq. 4 from Eq. 1\"%(Avf*Avf_vary*(1-vary_wf/100.0)/100.0,Avf*Avf_vary*(1-vary_wf/100.0)/100.0,Avf_vary*(1-vary_wf/100.0)/100.0)); #Equation 4\n", + "\n", + "print(\"Subtracting Eq.4 from Eq.3\" );\n", + "print(\"%.1f = %.3f*Av\"%(Avf_vary-Avf*Avf_vary*(1-vary_wf/100.0)/100.0,(1-vary_wf/100.0)-Avf_vary*(1-vary_wf/100.0)/100.0));\n", + "Av=(Avf_vary-Avf*Avf_vary*(1-vary_wf/100.0)/100.0)/((1-vary_wf/100.0)-Avf_vary*(1-vary_wf/100.0)/100.0);\n", + "print(\"Av=%.0f.\"%Av);\n", + "mv=(Av-Avf)/(Av*Avf);\n", + "print(\"mv=%.4f.\"%mv);\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.11 : Page number 345" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Feedback fraction=0.1.\n", + "(ii) Voltage gain with feedback=10.\n", + "(iii) Output voltage=10mV.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=10000.0; #Volage gain without feedback\n", + "R1=2.0; #Resistor R1, kilo ohm\n", + "R2=18.0; #Resistor R2, kilo ohm\n", + "Vin=1.0; #input voltage, mV\n", + "\n", + "#Calculation\n", + "#(i)\n", + "mv=R1/(R1+R2); #feedback fraction\n", + "\n", + "#(ii)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=round(Av/(1+Av*mv),0); #Voltage gain with feedback\n", + "\n", + "#(iii)\n", + "Vout=Avf*Vin; #Output voltage, mV\n", + "\n", + "#Result\n", + "print(\"(i) Feedback fraction=%.1f.\"%mv);\n", + "print(\"(ii) Voltage gain with feedback=%d.\"%Avf);\n", + "print(\"(iii) Output voltage=%dmV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.12 : Page number 345-346" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Feedback fraction=0.1.\n", + "(ii) The voltage gain with feedback=10.\n", + "(iii) Increased input impedance due to negative feedback=10 mega ohm\n", + "(iv) Decreased output impedance due to negative feedback=0.1 ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=10000.0; #Volateg gain without feedback\n", + "Zin=10.0; #Input impedance, kilo ohm\n", + "Zout=100.0; #Output impedance, ohm\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=90.0; #Resistor R2, kilo ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "mv=R1/(R1+R2); #Feedback fraction\n", + "\n", + "#(ii)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=round(Av/(1+Av*mv),0); #Voltage gain with feedback\n", + "\n", + "#(iii)\n", + "Zin_feedback=((1+Av*mv)*Zin)/1000; #Increased input impedance due to negative feedback, mega ohm\n", + "\n", + "#(iv)\n", + "Zout_feedback=Zout/(1+Av*mv); #Decreased output impedance due to negative feedback, ohm\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Feedback fraction=%.1f.\"%mv);\n", + "print(\"(ii) The voltage gain with feedback=%d.\"%Avf);\n", + "print(\"(iii) Increased input impedance due to negative feedback=%.0f mega ohm\"%Zin_feedback);\n", + "print(\"(iv) Decreased output impedance due to negative feedback=%.1f ohm.\"%Zout_feedback);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.13 : Page number 346" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Distortion with negative feedback=0.312%\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=150.0; #Voltage gain\n", + "D=5/100.0; #Distortion\n", + "mv=10/100.0; #Feedback fraction\n", + "\n", + "#Calculation\n", + "Dvf=round((D/(1+Av*mv))*100,3); #Distortion with negative feedback\n", + "\n", + "\n", + "#Result\n", + "print(\"Distortion with negative feedback=%.3f%%\"%Dvf);\n", + "\n", + "#Note: In the text, value of Dvf=0.3125% has been approximated to 0.313%. But, here the approximation is done to 0.312%\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.14 : Page number 346" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The new lower cut-off frequency=136.4Hz\n", + "The new upper cut-off frequency=5.52MHz\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=1000.0; #Voltage gain\n", + "f1=1.5; #Lower cut-off frequency, kHz\n", + "f2=501.5; #Upper cut-off frequency, kHz\n", + "mv=1/100.0; #Feedbcack fraction\n", + "\n", + "#Calculation\n", + "f1_f=(f1/(1+mv*Av))*1000; #New lower cut-off frequency, Hz\n", + "f2_f=(f2*(1+mv*Av))/1000; #New upper cut-off frequency, MHz\n", + "\n", + "\n", + "#Result\n", + "print(\"The new lower cut-off frequency=%.1fHz\"%f1_f);\n", + "print(\"The new upper cut-off frequency=%.2fMHz\"%f2_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.15 : Page number 348" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The effective current gain=58.82.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=200.0; #Current gain without feedback\n", + "mi=0.012; #Current attenuation\n", + "\n", + "#Calculation\n", + "Aif=Ai/(1+Ai*mi);\n", + "\n", + "#Result\n", + "print(\"The effective current gain=%.2f.\"%Aif);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.16 : Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance when negative feedback is applied=3.26 kilo ohm\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=240.0; #Current gain\n", + "Zin=15.0; #Input impedance without feedback, kilo ohm\n", + "mi=0.015; #Current feedback fraction\n", + "\n", + "#Calculations\n", + "Zin_f=Zin/(1+mi*Ai); #Input impedance with feedback, kilo ohm\n", + "\n", + "\n", + "#Result\n", + "print(\"The input impedance when negative feedback is applied=%.2f kilo ohm\"%Zin_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.17 : Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output impedance with negative feedback=9kilo ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=200.0; #Current gain without feedback\n", + "Zout=3.0; #Output impedance without feedback, kilo ohm\n", + "mi=0.01; #current feedback fraction\n", + "\n", + "#Calculation\n", + "Zout_f=Zout*(1+mi*Ai); #Output impedance with negative feedback, kilo ohm\n", + "\n", + "#Result\n", + "print(\"The output impedance with negative feedback=%dkilo ohm.\"%Zout_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.18 : Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Bandwidth when negative feedback is applied=1400kHz.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=250.0; #Current gain without feedback\n", + "BW=400.0; #Bandwidth, kHz\n", + "mi=0.01; #current feedback fraction\n", + "\n", + "#Calculation\n", + "BW_f=BW*(1+mi*Ai); #Bandwidth when negative feedback is applied, kHz\n", + "\n", + "#Result\n", + "print(\"Bandwidth when negative feedback is applied=%dkHz.\"%BW_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.19 : Page number 350-351" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Value of VE=9.72V and IE=10.68mA\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEZCAYAAAB1mUk3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XecVdXV//HPAlRUDGDFwgMSDU10VER5wB+jxG6CIYqF\nPAqWGBUF0QhiISoKJoIg9oKABQwarIiE6I0NGwLSLFGxRRELKlaU9ftjn9FhnBnmzpw75557v+/X\na17OPbet2V5mzVnr7L3N3RERkeLWIOkAREQkeUoGIiKiZCAiIkoGIiKCkoGIiKBkICIiKBlIipnZ\nrWZ2cR1fo5WZrTGz2P8tmNljZnZ8FfcNN7Pbou9bmtnnZmZxxyBSU42SDkAkDyQ12cYB3P0d4BcJ\nxSAC6MxARERQMpAUMbNdzWyumX1mZlOBxtU8toGZDTOz/0SPf97Mtq3Be2xtZveZ2cdm9qqZnVju\nvj3M7Gkz+9TM3jOz8WbWqNz9+5nZ0uj+8UCNyj4VS1VReeliM3syKh/NNLNNyz1+LzN7KnqfeWbW\noybvI1IdJQNJBTNbD5gOTAI2BaYBv6/mKWcBRwIHuntT4Hjgqxq81V3A20AL4AjgMjMrje77ARgU\nvX9XYF/g1Ci+zYB7gGHA5sDrQLca/4A/L1UdDRwHbAFsAJwdvc+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hIRkXqmZCAiIkoGIiKiZCAiIigZiIgISgYiIoKSgYiIoGQgRSha/32/CscG\nmtk1ZrajmT0UrQP/gplNNbMtzKyHma2M1tqfF/133+i5jc0sY2YNzOx1M9uxwmtfaWZ/NrOdzOzW\n+vxZRWpKyUCK0Z3A0RWOHQVMAR4CrnH3tu7embCA2hbRYx6P1trfNfrvo9Hx44F73H1N9BpHlb2o\nmRlwODDF3RcB25rZdjn7yURqSclAitE9wMHRAl+YWStga+BXwNPuPqPsge7+uLsviW5Wtd5+X35a\n+2Uq5ZIB8P+AZe7+bnT7wQr3i+QFJQMpOu7+KWHtloOiQ0cR1nHpCMyt5ql7VygTbW9m6wHbu/vb\n0WsvAn4ws07lXntKudd4Adg7xh9HJBZKBlKsyv8FX/EXdlUqloneBDYHKi4ANhU4yswaEnaYmlbu\nvg+BbeoWukj8lAykWN0H9DSzXYEN3X0esBjonOXrfA00rnBsKnAk8GtgQbSPRJnG0XNE8oqSgRQl\nd/8SyBDWgi87K7gT6GpmZeUjzGxvM+tQdrOS11kJNIz23ig79gbwETCKn59x/Aqt1S95SMlAitkU\nYOfov7j7N8ChwBnRpaWLgFOAsr/su1foGfSOjs8CKm4lOgVoC/yjwvF9CFcsieQV7WcgUkdRqWmQ\nux+3jsetTzgb6R5dhiqSN3RmIFJHUb/hsWhOQXX+BxiqRCD5SGcGIiKiMwMREVEyEBERlAxERAQl\nAxERQclARESA/w8INYcwb/NOegAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f84ace55f98>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as p\n", + "\n", + "#Variable declaration\n", + "VCC=18.0; #Supply voltage, V\n", + "R1=16.0; #Resistor R1, kilo ohm\n", + "R2=22.0; #Resistor R2, kilo ohm\n", + "RE=910.0; #Emitter resistor, ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculations\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=(VE/RE)*1000; #Emitter current, mA (OHM's LAW)\n", + "\n", + "#D.C load line\n", + "IC_sat=(VCC/RE)*1000; #Collector saturation current, mA\n", + "VCE_off=VCC; #Collector-emitter voltage in off state, V\n", + "\n", + "#Result\n", + "print(\"Value of VE=%.2fV and IE=%.2fmA\"%(VE,IE));\n", + "\n", + "#Plotting\n", + "VCE_plot=[0,VCE_off]; #Plotting variable for VCE\n", + "IC_plot=[IC_sat,0]; #Plotting variable for IC\n", + "p.plot(VCE_plot,IC_plot);\n", + "p.xlim(0,20)\n", + "p.ylim(0,25)\n", + "p.xlabel('VCE(V)');\n", + "p.ylabel('IC(mA)');\n", + "p.title('d.c load line');\n", + "p.grid();\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.20 : Page number 352" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the emitter follower circuit=0.994.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=10.0; #Resistor R2, kilo ohm\n", + "RE=5.0; #Emitter resistance, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=(VE/RE); #Emitter current, mA (OHM's LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm\n", + "Av=RE*1000/(re+RE*1000); #Voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The voltage gain of the emitter follower circuit=%.3f.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.21 : Page number 352-353" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain=0.988\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RE=5.0; #Emitter resistance, kilo ohm\n", + "re=29.1; #a.c emitter resistance, ohm\n", + "RL=5.0; #Load resistance, kilo ohm\n", + "\n", + "#Calculation\n", + "RE_ac=(RE*RL)/(RE+RL); #New effective value of emitter resistance, kilo ohm\n", + "Av=RE_ac*1000/(re+RE_ac*1000); #Voltage gain\n", + "\n", + "#Result\n", + "print(\"The voltage gain=%.3f\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.22 : Page number 354" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance of the emitter follower =4.96 kilo ohm\n", + "The approximate value of the input impedance=5 kilo ohm\n" + ] + } + ], + "source": [ + "def pr(r1,r2): #Function for calculating parallel resistance\n", + " return (r1*r2)/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=10.0; #Resistor R2, kilo ohm\n", + "RE=4.3; #Emitter resistor, kilo ohm\n", + "RL=10.0; #Load resistance, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=200.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=(VE/RE); #Emitter current, mA (OHM's LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm\n", + "RE_eff=pr(RE,RL); #Effective external emitter resistance, kilo ohm\n", + "Zin_base=beta*(re/1000+RE_eff); #Input impedance of the base of the transistor, kilo ohm\n", + "Zin=pr(pr(R1,R2),Zin_base); #Input impedance of emitter follower, kilo ohm\n", + "#Approximate value of input impedance taken as parallel resistance of R1 and R2 and ignoring Zin_base due to its relatively large value\n", + "Zin_approx=pr(R1,R2); #Approximate input impedance, kilo ohm\n", + "\n", + "#Result\n", + "print(\"The input impedance of the emitter follower =%.2f kilo ohm\"%Zin);\n", + "print(\"The approximate value of the input impedance=%d kilo ohm\"%Zin_approx);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.23 : Page number 355" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output impedance=22.3 ohm\n" + ] + } + ], + "source": [ + "def pr(r1,r2): #Function for calculating parallel resistance\n", + " return (r1*r2)/(r1+r2);\n", + "\n", + "\n", + "#Variable declaration\n", + "re=20.0; #a.c emitter resistance, ohm\n", + "R1=3.0; #Resistor R1, kilo ohm\n", + "R2=4.7; #Resistor R2, kilo ohm\n", + "RS=600.0; #Source resistance, kilo ohm\n", + "beta=200.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "Rin_ac=pr(pr(R1,R2)*1000,RS); #Input a.c resistance, ohm\n", + "Zout=re + Rin_ac/beta; #Output impedance, ohm\n", + "\n", + "#Result\n", + "print(\"The output impedance=%.1f ohm\"%Zout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.24 : Page number 358" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) d.c value of current in RE=1.09mA\n", + "(ii) Input impedance=16.17 mega ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "R1=120.0; #Resistor R1, kilo ohm\n", + "R2=120.0; #Resistor R2, kilo ohm\n", + "RE=3.3; #Emitter resistor, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta_1=70.0; #Base current amplification factor of 1st transistor\n", + "beta_2=70.0; #Base current amplification factor of 2nd transistor\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "IE_2=(V2-2*VBE)/RE; #Emitter current, mA (OHM's LAW)\n", + "\n", + "#(ii)\n", + "Zin=(beta_1*beta_2*RE)/1000; #Input impedance, mega ohm\n", + "\n", + "#Result\n", + "print(\"(i) d.c value of current in RE=%.2fmA\"%IE_2);\n", + "print(\"(ii) Input impedance=%.2f mega ohm.\"%Zin);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.25 : Page number 358-359" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) D.C Bias levels: \n", + " VB1= 4V, VE1=3.3V, VB2=3.3V, VE2=2.6V, IE2=1.3mA and IE1=0.013mA.\n", + "(ii) A.C Analysis: \n", + " re1=1923 ohm and re2=19.23 ohm \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12.0; #Supply voltage, V\n", + "R1=20.0; #Resistor R1, kilo ohm\n", + "R2=10.0; #Resistor R2, kilo ohm\n", + "RC=4.0; #Collector resistor, kilo ohm\n", + "RE=2.0; #Emitter resistor, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100.0; #Base current amplification factor of 1st transistor\n", + "\n", + "#Calculation\n", + "#(i) D.C Bias levels\n", + "VB1=VCC*R2/(R1+R2); #Base voltage of 1st transistor, V (Voltage divider rule)\n", + "VE1=VB1-VBE; #Emitter voltage of 1st transistor, V\n", + "VB2=VE1; #Base voltage of 2nd transistor, V\n", + "VE2=VB2-VBE; #Emitter voltage of 2nd transistor, V\n", + "IE2=VE2/RE; #Emitter current of 2nd transistor, mA (OHM' LAW)\n", + "IE1=IE2/beta; #Emitter current of 1st transistor, mA (IE~IC=beta*IB, here IB2=IE1)\n", + "\n", + "#(ii) A.C analysis\n", + "re1=25/IE1; #a.c emitter resistance of 1st transistor\n", + "re2=25/IE2; #a.c emitter resistance of 2nd transistor\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) D.C Bias levels: \\n VB1= %dV, VE1=%.1fV, VB2=%.1fV, VE2=%.1fV, IE2=%.1fmA and IE1=%.3fmA.\"%(VB1,VE1,VB2,VE2,IE2,IE1));\n", + "print(\"(ii) A.C Analysis: \\n re1=%d ohm and re2=%.2f ohm \"%(re1,re2));\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_5.ipynb new file mode 100644 index 00000000..7d378f3d --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_5.ipynb @@ -0,0 +1,1148 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 13: AMPLIFIERS WITH NEGATIVE FEEDBACK" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.1 : Page number 338" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the amplifier with negative feedback=97.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=3000.0; #Voltage gain without feedback\n", + "m_v=0.01; #Feedback fraction\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=Av/(1+Av*m_v); #Voltage gain of the amplifier with negative feedback\n", + "\n", + "#Result\n", + "print(\"The voltage gain of the amplifier with negative feedback=%.0f.\"%Avf);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.2 : Page number 339" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The fraction of output fedback to the input=1/20.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=140.0; #Voltage gain\n", + "Avf=17.5; #Voltage gain with negative feedback\n", + "\n", + "#Calculation\n", + "#Since, Avf=Av/(1+Av*mv), so,\n", + "mv=(Av-Avf)/(Av*Avf); #Fraction of output fedback to the input\n", + "\n", + "\n", + "#Result\n", + "print(\"The fraction of output fedback to the input=1/%.0f.\"%(1.0/mv));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.3 : Page number 339" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The fraction of output fedback to input=0.01.\n", + "(ii) The required amplifier gain for overall gain to be 75=300.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=100.0; #Voltage gain\n", + "Avf=50.0; #Voltage gain with negative feedback\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #The fraction of output fedback to input\n", + "\n", + "#(ii) Overall gain is to be 75:\n", + "Avf=75.0; #The required overall gain\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Av=Avf/(1-Avf*mv); #The required value of amplifier gain\n", + "\n", + "#result\n", + "print(\"(i) The fraction of output fedback to input=%.2f.\"%mv);\n", + "print(\"(ii) The required amplifier gain for overall gain to be 75=%d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.4 : Page number 339-340" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The voltage gain without feedback=40.\n", + "(ii) The feedback fraction = 1/40.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vout=10.0; #output voltage , V\n", + "Vin_f=0.5; #Input votage for amplifier with feedback, V\n", + "Vin=0.25; #Input votage for amplifier without feedback, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Av=Vout/Vin; #Voltage gain without negative feedback\n", + "\n", + "#(ii)\n", + "Avf=Vout/Vin_f; #Voltage gain with negative feedback\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #Feedback fraction\n", + "\n", + "#Result\n", + "print(\"(i) The voltage gain without feedback=%d.\"%Av);\n", + "print(\"(ii) The feedback fraction = 1/%d.\"%(1/mv));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.5 : Page number 340" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The percentage of reduction in stage gain without feedback=20%.\n", + "(ii) The percentage of reduction in net gain with feedback=11.2%\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=50.0; #Gain without feedback\n", + "Avf=25.0; #Gain with negative feedback\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #Feedback fraction\n", + "\n", + "#(i)\n", + "#percentage of reduction without feedback\n", + "Av_reduced=40.0; #Reduced amplifier gain due to ageing\n", + "percentage_of_reduction=((Av-Av_reduced)/Av)*100; #Percentage of reduction in stage gain\n", + "\n", + "print(\"(i) The percentage of reduction in stage gain without feedback=%d%%.\"%percentage_of_reduction);\n", + "\n", + "#(ii)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf_reduced=round(Av_reduced/(1+mv*Av_reduced),1); #Reduced net gain with negative feedback \n", + "percentage_of_reduction_f=((Avf-Avf_reduced)/Avf)*100; #Percentage of reduction in net gain with feedback\n", + "\n", + "print(\"(ii) The percentage of reduction in net gain with feedback=%.1f%%\"%percentage_of_reduction_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.6 : Page number 340" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The percentage change in system gain=8.36%\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=100.0; #Gain\n", + "mv=0.1; #feedback fraction\n", + "Av_fall=6.0; #fall in gain, dB\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=round(Av/(1+Av*mv),2); #Total system gain with feedback\n", + "\n", + "#Since, fall in gain=20*log10(Av/Av_1)\n", + "Av1=round(Av/10**(Av_fall/20),0); #New absolute voltage gain without feedback\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf_new=round(Av1/(1+Av1*mv),2); #New net system gain with feedback\n", + "\n", + "percentage_change=((Avf-Avf_new)/Avf)*100; #Percentage change in system gain\n", + "\n", + "#Result\n", + "print(\"The percentage change in system gain=%.2f%%\"%percentage_change);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.7 : Page number 341" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The feedback fraction=0.008.\n", + "The percentage fall in system gain=4.8%.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=500.0; #Voltage gain without feedback\n", + "Avf=100.0; #Voltage gain with negative feedback\n", + "Av_fall_percentage=20.0; #Gain fall percentage due to ageing\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #Feedback fraction\n", + "Av_reduced=((100-Av_fall_percentage)/100)*Av; #Reduced voltage gain\n", + "Avf_reduced=round(Av_reduced/(1+Av_reduced*mv),1); #Reduced total gain of the system\n", + "percentage_fall=((Avf-Avf_reduced)/Avf)*100; #Percentage of fall in total system gain\n", + "\n", + "#Result\n", + "print(\"The feedback fraction=%.3f.\"%mv);\n", + "print(\"The percentage fall in system gain=%.1f%%.\"%percentage_fall);\n", + "\n", + "#Note: The percentage gain is calculated in the text as 4.7% due to approximation of Avf to 95.3 whose actual approximation will be (95.238)~95.2. So, the percentage fall calculated here is 4.8%\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.8 : Page number 341" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain with feedback=31622.\n", + "The feedback fraction=2.16e-05.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "Av=100000.0; #Open loop voltage gain\n", + "f_dB=10.0; #Negative feedback, dB\n", + "\n", + "#Calculation\n", + "Av_dB=20*log10(Av); #dB voltage gain without feedback, dB\n", + "Avf_dB=Av_dB-f_dB; #dB voltage gain with feedback, dB\n", + "Avf=10**(Avf_dB/20); #Voltage gain with feedback\n", + "\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "mv=(Av-Avf)/(Av*Avf); #feedback fraction\n", + "\n", + "#Result\n", + "print(\"The voltage gain with feedback=%d.\"%Avf);\n", + "print(\"The feedback fraction=%.2e.\"%mv);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.9 : Page number 341-342" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain with feedback=47.4.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ao=1000.0; #Open circuit voltage gain\n", + "Rout=100.0; #Output resistance, ohm\n", + "RL=900.0; #Resistive load, ohm\n", + "mv=1/50; #feedback fraction\n", + "\n", + "#Calculation\n", + "#Since, Av=Ao*RL/(Rout+RL)\n", + "Av=Ao*RL/(Rout+RL); #Voltage gain without feedback\n", + "Avf=Av/(1+Av*mv); #Voltage gain with feedback\n", + "\n", + "#Result\n", + "print(\"The voltage gain with feedback=%.1f.\"%Avf);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.10 : Page number 342" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "100=Av/(1+Av*mv) ------Eq. 1\n", + "99=0.8*Av/(1+0.8*Av*mv) ------Eq. 2\n", + "99 + 79.2*Av*mv=0.8Av ------Eq. 3 from Eq. 2\n", + "79.2 + 79.2*Av*mv=0.792Av ------Eq. 4 from Eq. 1\n", + "Subtracting Eq.4 from Eq.3\n", + "19.8 = 0.008*Av\n", + "Av=2475.\n", + "mv=0.0096.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Avf=100.0; #Voltage gain with feedback\n", + "vary_f=1; #Vary percentage in voltage gain with feedback\n", + "vary_wf=20; #Vary percentage in voltage gain without feedback\n", + "\n", + "#Calculation\n", + "#Avf=Av/(1+Av*mv)\n", + "print(\"%d=Av/(1+Av*mv) ------Eq. 1\"%Avf); #Equation 1\n", + "\n", + "#considering variation in gains\n", + "Avf_vary=Avf*(1- vary_f/100.0); #Gain with feedback, considering variation\n", + "print(\"%d=%.1f*Av/(1+%.1f*Av*mv) ------Eq. 2\"%(Avf_vary,(1-vary_wf/100.0),(1-vary_wf/100.0))); #Equation 2\n", + "\n", + "#Solving the above two equations\n", + "print(\"%d + %.1f*Av*mv=%.1fAv ------Eq. 3 from Eq. 2\"%(Avf_vary,Avf_vary*(1-vary_wf/100.0),(1-vary_wf/100.0))); #Equation 3\n", + "\n", + "#multiplying Eq. 1 with (Avf_vary*(1-vary_wf/100.0))/100=0.792\n", + "print(\"%.1f + %.1f*Av*mv=%.3fAv ------Eq. 4 from Eq. 1\"%(Avf*Avf_vary*(1-vary_wf/100.0)/100.0,Avf*Avf_vary*(1-vary_wf/100.0)/100.0,Avf_vary*(1-vary_wf/100.0)/100.0)); #Equation 4\n", + "\n", + "print(\"Subtracting Eq.4 from Eq.3\" );\n", + "print(\"%.1f = %.3f*Av\"%(Avf_vary-Avf*Avf_vary*(1-vary_wf/100.0)/100.0,(1-vary_wf/100.0)-Avf_vary*(1-vary_wf/100.0)/100.0));\n", + "Av=(Avf_vary-Avf*Avf_vary*(1-vary_wf/100.0)/100.0)/((1-vary_wf/100.0)-Avf_vary*(1-vary_wf/100.0)/100.0);\n", + "print(\"Av=%.0f.\"%Av);\n", + "mv=(Av-Avf)/(Av*Avf);\n", + "print(\"mv=%.4f.\"%mv);\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.11 : Page number 345" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Feedback fraction=0.1.\n", + "(ii) Voltage gain with feedback=10.\n", + "(iii) Output voltage=10mV.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=10000.0; #Volage gain without feedback\n", + "R1=2.0; #Resistor R1, kilo ohm\n", + "R2=18.0; #Resistor R2, kilo ohm\n", + "Vin=1.0; #input voltage, mV\n", + "\n", + "#Calculation\n", + "#(i)\n", + "mv=R1/(R1+R2); #feedback fraction\n", + "\n", + "#(ii)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=round(Av/(1+Av*mv),0); #Voltage gain with feedback\n", + "\n", + "#(iii)\n", + "Vout=Avf*Vin; #Output voltage, mV\n", + "\n", + "#Result\n", + "print(\"(i) Feedback fraction=%.1f.\"%mv);\n", + "print(\"(ii) Voltage gain with feedback=%d.\"%Avf);\n", + "print(\"(iii) Output voltage=%dmV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.12 : Page number 345-346" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Feedback fraction=0.1.\n", + "(ii) The voltage gain with feedback=10.\n", + "(iii) Increased input impedance due to negative feedback=10 mega ohm\n", + "(iv) Decreased output impedance due to negative feedback=0.1 ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=10000.0; #Volateg gain without feedback\n", + "Zin=10.0; #Input impedance, kilo ohm\n", + "Zout=100.0; #Output impedance, ohm\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=90.0; #Resistor R2, kilo ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "mv=R1/(R1+R2); #Feedback fraction\n", + "\n", + "#(ii)\n", + "#Since, Gain_with_feedback= Gain_without_feedback/(1+Gain_without_feedback*feedback_fraction),\n", + "Avf=round(Av/(1+Av*mv),0); #Voltage gain with feedback\n", + "\n", + "#(iii)\n", + "Zin_feedback=((1+Av*mv)*Zin)/1000; #Increased input impedance due to negative feedback, mega ohm\n", + "\n", + "#(iv)\n", + "Zout_feedback=Zout/(1+Av*mv); #Decreased output impedance due to negative feedback, ohm\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Feedback fraction=%.1f.\"%mv);\n", + "print(\"(ii) The voltage gain with feedback=%d.\"%Avf);\n", + "print(\"(iii) Increased input impedance due to negative feedback=%.0f mega ohm\"%Zin_feedback);\n", + "print(\"(iv) Decreased output impedance due to negative feedback=%.1f ohm.\"%Zout_feedback);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.13 : Page number 346" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Distortion with negative feedback=0.312%\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=150.0; #Voltage gain\n", + "D=5/100.0; #Distortion\n", + "mv=10/100.0; #Feedback fraction\n", + "\n", + "#Calculation\n", + "Dvf=round((D/(1+Av*mv))*100,3); #Distortion with negative feedback\n", + "\n", + "\n", + "#Result\n", + "print(\"Distortion with negative feedback=%.3f%%\"%Dvf);\n", + "\n", + "#Note: In the text, value of Dvf=0.3125% has been approximated to 0.313%. But, here the approximation is done to 0.312%\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.14 : Page number 346" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The new lower cut-off frequency=136.4Hz\n", + "The new upper cut-off frequency=5.52MHz\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Av=1000.0; #Voltage gain\n", + "f1=1.5; #Lower cut-off frequency, kHz\n", + "f2=501.5; #Upper cut-off frequency, kHz\n", + "mv=1/100.0; #Feedbcack fraction\n", + "\n", + "#Calculation\n", + "f1_f=(f1/(1+mv*Av))*1000; #New lower cut-off frequency, Hz\n", + "f2_f=(f2*(1+mv*Av))/1000; #New upper cut-off frequency, MHz\n", + "\n", + "\n", + "#Result\n", + "print(\"The new lower cut-off frequency=%.1fHz\"%f1_f);\n", + "print(\"The new upper cut-off frequency=%.2fMHz\"%f2_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.15 : Page number 348" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The effective current gain=58.82.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=200.0; #Current gain without feedback\n", + "mi=0.012; #Current attenuation\n", + "\n", + "#Calculation\n", + "Aif=Ai/(1+Ai*mi);\n", + "\n", + "#Result\n", + "print(\"The effective current gain=%.2f.\"%Aif);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.16 : Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance when negative feedback is applied=3.26 kilo ohm\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=240.0; #Current gain\n", + "Zin=15.0; #Input impedance without feedback, kilo ohm\n", + "mi=0.015; #Current feedback fraction\n", + "\n", + "#Calculations\n", + "Zin_f=Zin/(1+mi*Ai); #Input impedance with feedback, kilo ohm\n", + "\n", + "\n", + "#Result\n", + "print(\"The input impedance when negative feedback is applied=%.2f kilo ohm\"%Zin_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.17 : Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output impedance with negative feedback=9kilo ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=200.0; #Current gain without feedback\n", + "Zout=3.0; #Output impedance without feedback, kilo ohm\n", + "mi=0.01; #current feedback fraction\n", + "\n", + "#Calculation\n", + "Zout_f=Zout*(1+mi*Ai); #Output impedance with negative feedback, kilo ohm\n", + "\n", + "#Result\n", + "print(\"The output impedance with negative feedback=%dkilo ohm.\"%Zout_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.18 : Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Bandwidth when negative feedback is applied=1400kHz.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Ai=250.0; #Current gain without feedback\n", + "BW=400.0; #Bandwidth, kHz\n", + "mi=0.01; #current feedback fraction\n", + "\n", + "#Calculation\n", + "BW_f=BW*(1+mi*Ai); #Bandwidth when negative feedback is applied, kHz\n", + "\n", + "#Result\n", + "print(\"Bandwidth when negative feedback is applied=%dkHz.\"%BW_f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.19 : Page number 350-351" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Value of VE=9.72V and IE=10.68mA\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEZCAYAAAB1mUk3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XecVdXV//HPAlRUDGDFwgMSDU10VER5wB+jxG6CIYqF\nPAqWGBUF0QhiISoKJoIg9oKABQwarIiE6I0NGwLSLFGxRRELKlaU9ftjn9FhnBnmzpw75557v+/X\na17OPbet2V5mzVnr7L3N3RERkeLWIOkAREQkeUoGIiKiZCAiIkoGIiKCkoGIiKBkICI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qSN3RmIFJHUb/hsWhOQXX+BxiqRCD5SGcGIiKiMwMREVEyEBERlAxERAQl\nAxERQclARESA/w8INYcwb/NOegAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f84ace55f98>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as p\n", + "\n", + "#Variable declaration\n", + "VCC=18.0; #Supply voltage, V\n", + "R1=16.0; #Resistor R1, kilo ohm\n", + "R2=22.0; #Resistor R2, kilo ohm\n", + "RE=910.0; #Emitter resistor, ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculations\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=(VE/RE)*1000; #Emitter current, mA (OHM's LAW)\n", + "\n", + "#D.C load line\n", + "IC_sat=(VCC/RE)*1000; #Collector saturation current, mA\n", + "VCE_off=VCC; #Collector-emitter voltage in off state, V\n", + "\n", + "#Result\n", + "print(\"Value of VE=%.2fV and IE=%.2fmA\"%(VE,IE));\n", + "\n", + "#Plotting\n", + "VCE_plot=[0,VCE_off]; #Plotting variable for VCE\n", + "IC_plot=[IC_sat,0]; #Plotting variable for IC\n", + "p.plot(VCE_plot,IC_plot);\n", + "p.xlim(0,20)\n", + "p.ylim(0,25)\n", + "p.xlabel('VCE(V)');\n", + "p.ylabel('IC(mA)');\n", + "p.title('d.c load line');\n", + "p.grid();\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.20 : Page number 352" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the emitter follower circuit=0.994.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=10.0; #Resistor R2, kilo ohm\n", + "RE=5.0; #Emitter resistance, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=(VE/RE); #Emitter current, mA (OHM's LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm\n", + "Av=RE*1000/(re+RE*1000); #Voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The voltage gain of the emitter follower circuit=%.3f.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.21 : Page number 352-353" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain=0.988\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RE=5.0; #Emitter resistance, kilo ohm\n", + "re=29.1; #a.c emitter resistance, ohm\n", + "RL=5.0; #Load resistance, kilo ohm\n", + "\n", + "#Calculation\n", + "RE_ac=(RE*RL)/(RE+RL); #New effective value of emitter resistance, kilo ohm\n", + "Av=RE_ac*1000/(re+RE_ac*1000); #Voltage gain\n", + "\n", + "#Result\n", + "print(\"The voltage gain=%.3f\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.22 : Page number 354" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance of the emitter follower =4.96 kilo ohm\n", + "The approximate value of the input impedance=5 kilo ohm\n" + ] + } + ], + "source": [ + "def pr(r1,r2): #Function for calculating parallel resistance\n", + " return (r1*r2)/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "R1=10.0; #Resistor R1, kilo ohm\n", + "R2=10.0; #Resistor R2, kilo ohm\n", + "RE=4.3; #Emitter resistor, kilo ohm\n", + "RL=10.0; #Load resistance, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=200.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "VE=V2-VBE; #Emitter voltage, V\n", + "IE=(VE/RE); #Emitter current, mA (OHM's LAW)\n", + "re=25/IE; #a.c emitter resistance, ohm\n", + "RE_eff=pr(RE,RL); #Effective external emitter resistance, kilo ohm\n", + "Zin_base=beta*(re/1000+RE_eff); #Input impedance of the base of the transistor, kilo ohm\n", + "Zin=pr(pr(R1,R2),Zin_base); #Input impedance of emitter follower, kilo ohm\n", + "#Approximate value of input impedance taken as parallel resistance of R1 and R2 and ignoring Zin_base due to its relatively large value\n", + "Zin_approx=pr(R1,R2); #Approximate input impedance, kilo ohm\n", + "\n", + "#Result\n", + "print(\"The input impedance of the emitter follower =%.2f kilo ohm\"%Zin);\n", + "print(\"The approximate value of the input impedance=%d kilo ohm\"%Zin_approx);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.23 : Page number 355" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output impedance=22.3 ohm\n" + ] + } + ], + "source": [ + "def pr(r1,r2): #Function for calculating parallel resistance\n", + " return (r1*r2)/(r1+r2);\n", + "\n", + "\n", + "#Variable declaration\n", + "re=20.0; #a.c emitter resistance, ohm\n", + "R1=3.0; #Resistor R1, kilo ohm\n", + "R2=4.7; #Resistor R2, kilo ohm\n", + "RS=600.0; #Source resistance, kilo ohm\n", + "beta=200.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "Rin_ac=pr(pr(R1,R2)*1000,RS); #Input a.c resistance, ohm\n", + "Zout=re + Rin_ac/beta; #Output impedance, ohm\n", + "\n", + "#Result\n", + "print(\"The output impedance=%.1f ohm\"%Zout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.24 : Page number 358" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) d.c value of current in RE=1.09mA\n", + "(ii) Input impedance=16.17 mega ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10.0; #Supply voltage, V\n", + "R1=120.0; #Resistor R1, kilo ohm\n", + "R2=120.0; #Resistor R2, kilo ohm\n", + "RE=3.3; #Emitter resistor, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta_1=70.0; #Base current amplification factor of 1st transistor\n", + "beta_2=70.0; #Base current amplification factor of 2nd transistor\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V2=VCC*R2/(R1+R2); #Voltage across R2, V (Voltage divider rule)\n", + "IE_2=(V2-2*VBE)/RE; #Emitter current, mA (OHM's LAW)\n", + "\n", + "#(ii)\n", + "Zin=(beta_1*beta_2*RE)/1000; #Input impedance, mega ohm\n", + "\n", + "#Result\n", + "print(\"(i) d.c value of current in RE=%.2fmA\"%IE_2);\n", + "print(\"(ii) Input impedance=%.2f mega ohm.\"%Zin);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13.25 : Page number 358-359" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) D.C Bias levels: \n", + " VB1= 4V, VE1=3.3V, VB2=3.3V, VE2=2.6V, IE2=1.3mA and IE1=0.013mA.\n", + "(ii) A.C Analysis: \n", + " re1=1923 ohm and re2=19.23 ohm \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12.0; #Supply voltage, V\n", + "R1=20.0; #Resistor R1, kilo ohm\n", + "R2=10.0; #Resistor R2, kilo ohm\n", + "RC=4.0; #Collector resistor, kilo ohm\n", + "RE=2.0; #Emitter resistor, kilo ohm\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100.0; #Base current amplification factor of 1st transistor\n", + "\n", + "#Calculation\n", + "#(i) D.C Bias levels\n", + "VB1=VCC*R2/(R1+R2); #Base voltage of 1st transistor, V (Voltage divider rule)\n", + "VE1=VB1-VBE; #Emitter voltage of 1st transistor, V\n", + "VB2=VE1; #Base voltage of 2nd transistor, V\n", + "VE2=VB2-VBE; #Emitter voltage of 2nd transistor, V\n", + "IE2=VE2/RE; #Emitter current of 2nd transistor, mA (OHM' LAW)\n", + "IE1=IE2/beta; #Emitter current of 1st transistor, mA (IE~IC=beta*IB, here IB2=IE1)\n", + "\n", + "#(ii) A.C analysis\n", + "re1=25/IE1; #a.c emitter resistance of 1st transistor\n", + "re2=25/IE2; #a.c emitter resistance of 2nd transistor\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) D.C Bias levels: \\n VB1= %dV, VE1=%.1fV, VB2=%.1fV, VE2=%.1fV, IE2=%.1fmA and IE1=%.3fmA.\"%(VB1,VE1,VB2,VE2,IE2,IE1));\n", + "print(\"(ii) A.C Analysis: \\n re1=%d ohm and re2=%.2f ohm \"%(re1,re2));\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_4.ipynb new file mode 100644 index 00000000..5e35882c --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_4.ipynb @@ -0,0 +1,502 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:ec0d27209d08b0b95750f66ce9ee21af5ef586e23d0bf0ea218aa20a4ce63e43" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#CHAPTER 14: SINUSOIDAL OSCILLATORS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.1 : Page number 371-372\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "L1=58.6; #Inductance, micro henry\n", + "C1=300.0; #Capacitance, pF\n", + "\n", + "#Calculation\n", + "f=(1/(2*round(pi,2)*sqrt(L1*10**-6*C1*10**-12)))/1000; #Frequency of oscillation, kHz\n", + "\n", + "\n", + "#Result\n", + "print(\"frequency of oscillation=%dkHz\"%f);\n", + "\n", + "\n", + "#Note : The frequency has been calculated in the text as 1199kHz but here the answer gets approximated to 1200kHz.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of oscillation=1200kHz\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.2 : Page number 372\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "L1=1.0; #Inductance , mH\n", + "f=1.0; #frequency of oscillation, GHz\n", + "\n", + "#Calculation\n", + "#Since, f=1/(2*pi*sqrt(L1*C1)),\n", + "C1=(1/(L1*10**-3*(f*10**12*2*pi)**2))*10**12; #Capacitance, pF\n", + "\n", + "\n", + "#Result\n", + "print(\"The Capacitance of the capacitor of the LC oscillator=%.2epF\"%C1);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The Capacitance of the capacitor of the LC oscillator=2.53e-11pF\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.3 : Page number 373-374\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "C1=0.001; #Capacitor C1, microfarad\n", + "C2=0.01; #Capacitor C2, microfarad\n", + "L=15.0; #Inductance, microhenry\n", + "\n", + "#Calculation\n", + "CT=C1*C2/(C1+C2); #Total capacitance\n", + "\n", + "#(i) Operating frequency\n", + "f=(1/(2*pi*sqrt(CT*10**-6*L*10**-6)))/1000; #Operating frequency, kHz\n", + "\n", + "#(ii) Feedback fraction\n", + "mv=C1/C2; #Feedback fraction\n", + "\n", + "#Result\n", + "print(\"(i) The operating frequency=%dkHz\"%f);\n", + "print(\"(ii) The feedback fraction=%.1f\"%mv);\n", + "\n", + "#Note : The operating frequency is calculated in the text as 1361kHz but here it has been approximated to 1362kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The operating frequency=1362kHz\n", + "(ii) The feedback fraction=0.1\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.4 : Page number 374: Page number\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "mv=0.25; #Feedback fraction\n", + "L=1.0; #Inductance, mH\n", + "f=1.0; #Operating frequeny, MHz\n", + "\n", + "#Calculation\n", + "#Since, f=1/(2*pi*sqrt(L*C))\n", + "CT=round((1/(L*10**-3*(2*pi*f*10**6)**2))*10**12,1); #Total capacitance, pF\n", + "\n", + "#Since, mv=C1/C2 and CT=C1*C2/(C1+C2) or CT=C2/(1+ (C2/C1)),\n", + "#From the above equations, substituting value of mv and calculaing value of C2,\n", + "C2=CT*(1+(1/mv)); #Capacitance of C2 capactior, pF\n", + "C1=mv*C2; #Capacitance of C1 capacitor, pF\n", + "\n", + "#Result\n", + "print(\"C1=%.1fpF and C2=%.1fpF\"%(C1,C2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C1=31.6pF and C2=126.5pF\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.5 : Page number 375-376\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable decalaration\n", + "L1=1000.0; #Inductance of L1 inductor, microhenry\n", + "L2=100.0; #Inductance of L2 inductor, microhenry\n", + "M=20.0; #Mutual inductance, microhenry\n", + "C=20.0; #Capacitance, pF\n", + "\n", + "#Calculation\n", + "LT=L1+L2+2*M; #Total inductance, microhenry\n", + "\n", + "#(i) Operating frequency\n", + "f=(1/(2*pi*sqrt(LT*10**-6*C*10**-12)))/1000; #Operating frequency, kHz\n", + "\n", + "#(ii)\n", + "mv=L2/L1; #feedback fraction\n", + "\n", + "#Result\n", + "print(\"(i) The operating frequency=%dkHz.\"%f);\n", + "print(\"(ii) The feedback fraction=%.1f.\"%mv);\n", + "\n", + "#Note : The operating frequecy has been calculated in the text as 1052kHz but here it gets approximated to 1054kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The operating frequency=1054kHz.\n", + "(ii) The feedback fraction=0.1.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.6 : Page number 376\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=1.0; #Capacitance, pF\n", + "f=1.0; #Frequency, MHz\n", + "mv=0.2; #Feedback frequency\n", + "\n", + "\n", + "#Calculation\n", + "LT=(1/(C*10**-12*(2*pi*f*10**6)**2))*1000; #Total inductance, mH\n", + "\n", + "#Since, mv=L2/L1 or L2=mv*L1 and L1+L2=LT or L1(1+mv)=LT,\n", + "L1=LT/(1+mv); #Inductance of L1 inductor, mH\n", + "L2=L1*mv; #inductance of L2 inductor, mH\n", + "\n", + "#Result\n", + "print(\"L1=%.1fmH and L2=%.2fmH.\"%(L1,L2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "L1=21.1mH and L2=4.22mH.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.7 : Page number 378\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "R1=1.0; #Resistor R1, mega ohm\n", + "R2=R1; #Resistor R2, mega ohm\n", + "R3=R1; #Resistor R3, mega ohm\n", + "C1=68.0; #Capacitor C1, pF\n", + "C2=C1; #Capacitor C2, pF\n", + "C3=C1; #Capacitor C3, pF\n", + "\n", + "\n", + "#Calculation\n", + "R=R1*10**6; #Resistance of the resistors of phase shift circuit, ohm\n", + "C=C1*10**-12; #Capacitance of the capacitors of phase shift circuit, F\n", + "fo=1/(2*pi*R*C*sqrt(6)); #Frequency of oscillation, Hz\n", + "\n", + "#Result\n", + "print(\"The frequency of oscillation=%dHz\"%fo);\n", + "\n", + "#Note: The frequency of oscillation had been calculated in the text as 954Hz, but here it gets approximated to 955 HZ.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency of oscillation=955Hz\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.8 : Page number 378\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "C=5.0; #Capacitance of the capacitors of phase shift circuit, pF\n", + "fo=800.0; #Required frequency of oscillation, kHz\n", + "\n", + "#Calculation\n", + "#Since, fo=1/(2*pi*R*C*sqrt(6))\n", + "R=(1/(2*pi*C*10**-12*fo*10**3*sqrt(6)))/1000; #Resistance of the resistors of phase shift circuit, kilo ohm\n", + "\n", + "#Result\n", + "print(\"R=%.1f kilo ohm.\"%R);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "R=16.2 kilo ohm.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.9 : Page number 380\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "#Resistance of R1 and R2 resistors of the R-C bridge circuit\n", + "R1=220.0; #kilo ohm \n", + "R2=220.0; #kilo ohm\n", + "\n", + "#Capacitance of C1 and C2 the capacitors of the R-C bridge circuit\n", + "C1=250.0; #pF\n", + "C2=250.0; #pF\n", + "\n", + "#Calculation\n", + "#Since, R1=R2 and C1=C2, R1=R2 is taken as R and C1=C2 is taken as C\n", + "#And, f=1/(2*pi*sqrt(R1*R2*C1*C2))is transformed to f=1/(2*pi*R*C).\n", + "R=R1*10**3; #kilo ohm\n", + "C=C1*10**-12; #pF\n", + "f=1/(2*pi*R*C); #Frequency of oscillation, Hz\n", + "\n", + "\n", + "#Result\n", + "print(\"The frequency of oscillation=%dHz.\"%f);\n", + "\n", + "\n", + "#Note : The frequency of oscillation is calculated in the text as 2892Hz but here it gets approximated to 2893 Hz.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency of oscillation=2893Hz.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.11 : Page number 384\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "#a.c equivalent values of the crystal:\n", + "L=1.0; #Inductance , H\n", + "C=0.01; #Capacitance , pF\n", + "R=1000.0; #Resistance , ohm\n", + "Cm=20.0; #Mounting capacitance, pF\n", + "\n", + "#Calculation\n", + "fs=(1/(2*round(pi,2)*sqrt(L*C*10**-12)))/1000; #Series resonant frrequency, kHz\n", + "CT=(C*Cm/(C+Cm)); #Total capacitance, pF\n", + "fp=(1/(2*round(pi,2)*sqrt(L*CT*10**-12)))/1000; #Prallel resonant frequency, kHz\n", + "\n", + "#Result\n", + "print(\"fs=%.0fkHz and fp=%.0fkHz.\"%(fs,fp));\n", + "\n", + "#Note: fs and fp are calculated in the text as 1589kHz and 1590kHz, but here it gets approximated to 1592kHz and 1593kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "fs=1592kHz and fp=1593kHz.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_5.ipynb new file mode 100644 index 00000000..5e35882c --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_5.ipynb @@ -0,0 +1,502 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:ec0d27209d08b0b95750f66ce9ee21af5ef586e23d0bf0ea218aa20a4ce63e43" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#CHAPTER 14: SINUSOIDAL OSCILLATORS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.1 : Page number 371-372\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "L1=58.6; #Inductance, micro henry\n", + "C1=300.0; #Capacitance, pF\n", + "\n", + "#Calculation\n", + "f=(1/(2*round(pi,2)*sqrt(L1*10**-6*C1*10**-12)))/1000; #Frequency of oscillation, kHz\n", + "\n", + "\n", + "#Result\n", + "print(\"frequency of oscillation=%dkHz\"%f);\n", + "\n", + "\n", + "#Note : The frequency has been calculated in the text as 1199kHz but here the answer gets approximated to 1200kHz.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of oscillation=1200kHz\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.2 : Page number 372\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "L1=1.0; #Inductance , mH\n", + "f=1.0; #frequency of oscillation, GHz\n", + "\n", + "#Calculation\n", + "#Since, f=1/(2*pi*sqrt(L1*C1)),\n", + "C1=(1/(L1*10**-3*(f*10**12*2*pi)**2))*10**12; #Capacitance, pF\n", + "\n", + "\n", + "#Result\n", + "print(\"The Capacitance of the capacitor of the LC oscillator=%.2epF\"%C1);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The Capacitance of the capacitor of the LC oscillator=2.53e-11pF\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.3 : Page number 373-374\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "C1=0.001; #Capacitor C1, microfarad\n", + "C2=0.01; #Capacitor C2, microfarad\n", + "L=15.0; #Inductance, microhenry\n", + "\n", + "#Calculation\n", + "CT=C1*C2/(C1+C2); #Total capacitance\n", + "\n", + "#(i) Operating frequency\n", + "f=(1/(2*pi*sqrt(CT*10**-6*L*10**-6)))/1000; #Operating frequency, kHz\n", + "\n", + "#(ii) Feedback fraction\n", + "mv=C1/C2; #Feedback fraction\n", + "\n", + "#Result\n", + "print(\"(i) The operating frequency=%dkHz\"%f);\n", + "print(\"(ii) The feedback fraction=%.1f\"%mv);\n", + "\n", + "#Note : The operating frequency is calculated in the text as 1361kHz but here it has been approximated to 1362kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The operating frequency=1362kHz\n", + "(ii) The feedback fraction=0.1\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.4 : Page number 374: Page number\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "mv=0.25; #Feedback fraction\n", + "L=1.0; #Inductance, mH\n", + "f=1.0; #Operating frequeny, MHz\n", + "\n", + "#Calculation\n", + "#Since, f=1/(2*pi*sqrt(L*C))\n", + "CT=round((1/(L*10**-3*(2*pi*f*10**6)**2))*10**12,1); #Total capacitance, pF\n", + "\n", + "#Since, mv=C1/C2 and CT=C1*C2/(C1+C2) or CT=C2/(1+ (C2/C1)),\n", + "#From the above equations, substituting value of mv and calculaing value of C2,\n", + "C2=CT*(1+(1/mv)); #Capacitance of C2 capactior, pF\n", + "C1=mv*C2; #Capacitance of C1 capacitor, pF\n", + "\n", + "#Result\n", + "print(\"C1=%.1fpF and C2=%.1fpF\"%(C1,C2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C1=31.6pF and C2=126.5pF\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.5 : Page number 375-376\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable decalaration\n", + "L1=1000.0; #Inductance of L1 inductor, microhenry\n", + "L2=100.0; #Inductance of L2 inductor, microhenry\n", + "M=20.0; #Mutual inductance, microhenry\n", + "C=20.0; #Capacitance, pF\n", + "\n", + "#Calculation\n", + "LT=L1+L2+2*M; #Total inductance, microhenry\n", + "\n", + "#(i) Operating frequency\n", + "f=(1/(2*pi*sqrt(LT*10**-6*C*10**-12)))/1000; #Operating frequency, kHz\n", + "\n", + "#(ii)\n", + "mv=L2/L1; #feedback fraction\n", + "\n", + "#Result\n", + "print(\"(i) The operating frequency=%dkHz.\"%f);\n", + "print(\"(ii) The feedback fraction=%.1f.\"%mv);\n", + "\n", + "#Note : The operating frequecy has been calculated in the text as 1052kHz but here it gets approximated to 1054kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The operating frequency=1054kHz.\n", + "(ii) The feedback fraction=0.1.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.6 : Page number 376\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=1.0; #Capacitance, pF\n", + "f=1.0; #Frequency, MHz\n", + "mv=0.2; #Feedback frequency\n", + "\n", + "\n", + "#Calculation\n", + "LT=(1/(C*10**-12*(2*pi*f*10**6)**2))*1000; #Total inductance, mH\n", + "\n", + "#Since, mv=L2/L1 or L2=mv*L1 and L1+L2=LT or L1(1+mv)=LT,\n", + "L1=LT/(1+mv); #Inductance of L1 inductor, mH\n", + "L2=L1*mv; #inductance of L2 inductor, mH\n", + "\n", + "#Result\n", + "print(\"L1=%.1fmH and L2=%.2fmH.\"%(L1,L2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "L1=21.1mH and L2=4.22mH.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.7 : Page number 378\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "R1=1.0; #Resistor R1, mega ohm\n", + "R2=R1; #Resistor R2, mega ohm\n", + "R3=R1; #Resistor R3, mega ohm\n", + "C1=68.0; #Capacitor C1, pF\n", + "C2=C1; #Capacitor C2, pF\n", + "C3=C1; #Capacitor C3, pF\n", + "\n", + "\n", + "#Calculation\n", + "R=R1*10**6; #Resistance of the resistors of phase shift circuit, ohm\n", + "C=C1*10**-12; #Capacitance of the capacitors of phase shift circuit, F\n", + "fo=1/(2*pi*R*C*sqrt(6)); #Frequency of oscillation, Hz\n", + "\n", + "#Result\n", + "print(\"The frequency of oscillation=%dHz\"%fo);\n", + "\n", + "#Note: The frequency of oscillation had been calculated in the text as 954Hz, but here it gets approximated to 955 HZ.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency of oscillation=955Hz\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.8 : Page number 378\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "C=5.0; #Capacitance of the capacitors of phase shift circuit, pF\n", + "fo=800.0; #Required frequency of oscillation, kHz\n", + "\n", + "#Calculation\n", + "#Since, fo=1/(2*pi*R*C*sqrt(6))\n", + "R=(1/(2*pi*C*10**-12*fo*10**3*sqrt(6)))/1000; #Resistance of the resistors of phase shift circuit, kilo ohm\n", + "\n", + "#Result\n", + "print(\"R=%.1f kilo ohm.\"%R);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "R=16.2 kilo ohm.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.9 : Page number 380\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "#Resistance of R1 and R2 resistors of the R-C bridge circuit\n", + "R1=220.0; #kilo ohm \n", + "R2=220.0; #kilo ohm\n", + "\n", + "#Capacitance of C1 and C2 the capacitors of the R-C bridge circuit\n", + "C1=250.0; #pF\n", + "C2=250.0; #pF\n", + "\n", + "#Calculation\n", + "#Since, R1=R2 and C1=C2, R1=R2 is taken as R and C1=C2 is taken as C\n", + "#And, f=1/(2*pi*sqrt(R1*R2*C1*C2))is transformed to f=1/(2*pi*R*C).\n", + "R=R1*10**3; #kilo ohm\n", + "C=C1*10**-12; #pF\n", + "f=1/(2*pi*R*C); #Frequency of oscillation, Hz\n", + "\n", + "\n", + "#Result\n", + "print(\"The frequency of oscillation=%dHz.\"%f);\n", + "\n", + "\n", + "#Note : The frequency of oscillation is calculated in the text as 2892Hz but here it gets approximated to 2893 Hz.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency of oscillation=2893Hz.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.11 : Page number 384\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "#a.c equivalent values of the crystal:\n", + "L=1.0; #Inductance , H\n", + "C=0.01; #Capacitance , pF\n", + "R=1000.0; #Resistance , ohm\n", + "Cm=20.0; #Mounting capacitance, pF\n", + "\n", + "#Calculation\n", + "fs=(1/(2*round(pi,2)*sqrt(L*C*10**-12)))/1000; #Series resonant frrequency, kHz\n", + "CT=(C*Cm/(C+Cm)); #Total capacitance, pF\n", + "fp=(1/(2*round(pi,2)*sqrt(L*CT*10**-12)))/1000; #Prallel resonant frequency, kHz\n", + "\n", + "#Result\n", + "print(\"fs=%.0fkHz and fp=%.0fkHz.\"%(fs,fp));\n", + "\n", + "#Note: fs and fp are calculated in the text as 1589kHz and 1590kHz, but here it gets approximated to 1592kHz and 1593kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "fs=1592kHz and fp=1593kHz.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_4.ipynb new file mode 100644 index 00000000..e649cc91 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_4.ipynb @@ -0,0 +1,482 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:034eec32676d4e7abdedfb3bf68426d81a2d1483fc668bcbfdb5be18cec2e406" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 15: TRANSISTOR TUNED AMPLIFIERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.1 : Page number 394" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=250.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "L=1.25*10**-3; #Inductor of the parallel resonant circuit, H\n", + "R=10.0; #Resistor of the parallel resonant circuit, ohm\n", + "\n", + "#Calculation\n", + "#(i) Resonant frequency\n", + "fr=((1/(2*pi))*sqrt((1/(L*C))-(R/L)**2))/1000; #Resonant frequecy, kHz\n", + "\n", + "#(ii) Impedance of the circuit at resonance\n", + "Zr=(L/(C*R))/1000; #Impedance of the circuit at resonance, kilo ohm\n", + "\n", + "#(iii) Quality factor of the circuit\n", + "Q=2*pi*(fr*10**3)*L/R; #Quality factor of the circuit\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%.1fkHz.\"%fr);\n", + "print(\"(ii) The impedance of the circuit at resonance=%d kilo ohm.\"%Zr);\n", + "print(\"(iii) The quality factor of the circuit=%.1f.\"%Q);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=284.7kHz.\n", + "(ii) The impedance of the circuit at resonance=500 kilo ohm.\n", + "(iii) The quality factor of the circuit=223.6.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.2 : Page number 394-395\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=100.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "L=100.0*10**-6; #Inductor of the parallel resonant circuit, H\n", + "R=10.0; #Resistor of the parallel resonant circuit, ohm\n", + "V=10.0; #Supply voltage, V\n", + "\n", + "#Calculation\n", + "#(i) Resonant frequency\n", + "fr=((1/(2*pi))*sqrt((1/(L*C))-(R/L)**2))/1000; #Resonant frequecy, kHz\n", + "\n", + "#(ii) Impedance of the circuit at resonance\n", + "Zr=(L/(C*R))/10**6; #Impedance of the circuit at resonance, mega ohm\n", + "\n", + "I=V/Zr; #Line current at resonance, microampere\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%.2fkHz.\"%fr);\n", + "print(\"(ii) The impedance of the circuit at resonance=%.1f mega ohm.\"%Zr);\n", + "print(\"The line current at resonance=%d micro ampere.\"%I);\n", + "\n", + "#Note : The resonant frequency in the text has been calculated as 1592.28 kHz, but here it gets approximated to 1591.47 kHz.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=1591.47kHz.\n", + "(ii) The impedance of the circuit at resonance=0.1 mega ohm.\n", + "The line current at resonance=100 micro ampere.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.3 : Page number 395\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=250.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "Zr=500.0*10**3; #Dynamic impedance, ohm\n", + "R=10.0; #Resistance of the coil, ohm\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since,Zr=L/CR,\n", + "L=(Zr*C*R)*10**3; #Inductance of the coil, mH\n", + "\n", + "#(ii) Resonant frequency\n", + "fr=((1/(2*pi))*sqrt((1/(L*10**-3*C))-(R/(L*10**-3))**2))/1000; #Resonant frequecy, kHz\n", + "\n", + "#(iii) Quality factor of the circuit\n", + "Q=2*pi*(fr*10**3)*(L*10**-3)/R; #Quality factor of the circuit\n", + "\n", + "#Result\n", + "print(\"(i) The inductance of the coil=%.2fmH.\"%L);\n", + "print(\"(ii) The resonant frequency=%.1fkHz.\"%fr);\n", + "print(\"(iii) The quality factor of the circuit=%.1f.\"%Q);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The inductance of the coil=1.25mH.\n", + "(ii) The resonant frequency=284.7kHz.\n", + "(iii) The quality factor of the circuit=223.6.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.4 : Page number 397\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Q=60.0; #Quality factor of the tuned amplifier\n", + "fr=1200.0; #Resonant frequency, kHz\n", + "\n", + "#Calculation\n", + "#(i)\n", + "BW=fr/Q; #Bandwidth, kHz\n", + "\n", + "#(ii)\n", + "f1=fr-(BW/2); #Lower cut-off frequency, kHz\n", + "f2=fr+(BW/2); #Upper cut-off frequency, kHz\n", + "\n", + "#Result\n", + "print(\"(i) The bandwidth=%dkHz\"%BW);\n", + "print(\"(ii) The lower and upper cut-off frequencies are=%dkHz and %dkHz.\"%(f1,f2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The bandwidth=20kHz\n", + "(ii) The lower and upper cut-off frequencies are=1190kHz and 1210kHz.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.5 : Page number 397\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fr=2.0; #Resonant frequency, MHz\n", + "BW=50.0; #Bandwidth, kHz\n", + "\n", + "#Calculation\n", + "#Since, bandwidth=resonant_frequency/quality_factor\n", + "Q=(fr*10**6)/(BW*10**3); #Quality factor\n", + "\n", + "#Result\n", + "print(\"The quality factor=%d\"%Q);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The quality factor=40\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.7 : Page number 400\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=0.1*10**-6; #Capacitor of parallel resonant circuit, F\n", + "L=33.0*10**-3; #Inductor of the parallel resonant circuit, H\n", + "R=25.0; #Resistor of the parallel resonant circuit, ohm\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "fr=(1/(2*pi*sqrt(L*C)))/1000; #Resonant frequency, kHz\n", + "\n", + "#(ii)\n", + "XL=2*pi*(fr*10**3)*L; #Inductive reactance, ohm\n", + "Q=round(XL/R,0); #Quality factor\n", + "\n", + "#(iii)\n", + "BW=(fr*10**3)/Q; #Bandwidth\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%.2fkHz\"%fr);\n", + "print(\"(ii) The quality factor= %d.\"%Q);\n", + "print(\"(iii) The bandwidth=%dHz.\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=2.77kHz\n", + "(ii) The quality factor= 23.\n", + "(iii) The bandwidth=120Hz.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.8 : Page number 401-402\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "BW_dt=200.0; #Bandwidth, kHz\n", + "fr=10.0; #Operating frequency, MHz\n", + "\n", + "#Calculation\n", + "#Since, BW_dt=k*fr (i.e.,co-efficient_of_coupling * operating_frequency)\n", + "k=BW_dt/(fr*10**3); #co-efficient of coupling\n", + "\n", + "#Result\n", + "print(\"The co-efficient of coupling=%.2f.\"%k);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The co-efficient of coupling=0.02.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.9 : Page number 405\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=500.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "L=50.7*10**-6; #Inductor of the parallel resonant circuit, H\n", + "R=10.0; #Resistor of the parallel resonant circuit, ohm\n", + "RL=1.0; #Load resistance, mega ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "fr=round((1/(2*pi*sqrt(L*C)))/1000); #Resonant frequency, Hz\n", + "\n", + "#(ii)\n", + "R_dc=R; #d.c load, ohm\n", + "XL=2*pi*(fr*1000)*L; #Inductive reactance, ohm\n", + "Q_coil=round(XL/R,1); #Quality factor\n", + "R_P=(Q_coil*XL)/1000 ; #Equivalent parallel resistance, kilo ohm\n", + "R_AC=(R_P*RL*10**3)/(R_P+RL*10**3); #A.C load,kilo ohm\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%dkHz\"%fr);\n", + "print(\"(ii) d.c load=%d ohm and a.c load=%d kilo ohm.\"%(R_dc,R_AC));\n", + "\n", + "#Note: In the text resonant frequency has been wrongly calculated to 106kHz but its actual value is approximately 1000kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=1000kHz\n", + "(ii) d.c load=10 ohm and a.c load=10 kilo ohm.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.10 : Page number 406-407\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=50.0; #Load resistance, ohm\n", + "n=5; #Turns ratio of the transformer\n", + "VCC=50.0; #Supply voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "R_ac=n**2*RL; #A.C load, ohm\n", + "\n", + "#(ii)\n", + "P_o_max=VCC**2/(2*R_ac); #Maximum load power, W\n", + "\n", + "#Result\n", + "print(\"(i) The a.c load=%d ohm\"%R_ac);\n", + "print(\"(ii) Maximum load power=%dW\"%P_o_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The a.c load=1250 ohm\n", + "(ii) Maximum load power=1W\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.11 : Page number 407\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_D=4.0; #Maximum power dissipation, mW\n", + "P_o_max=1.0; #Maximum load power, W\n", + "\n", + "\n", + "#Calculation\n", + "max_collector_eff=(P_o_max/(P_o_max+(P_D/1000)))*100; #Maximum collector efficiency\n", + "\n", + "#Result\n", + "print(\"The maximum collector efficiency=%.1f%%\"%max_collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector efficiency=99.6%\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_5.ipynb new file mode 100644 index 00000000..e649cc91 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_5.ipynb @@ -0,0 +1,482 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:034eec32676d4e7abdedfb3bf68426d81a2d1483fc668bcbfdb5be18cec2e406" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 15: TRANSISTOR TUNED AMPLIFIERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.1 : Page number 394" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=250.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "L=1.25*10**-3; #Inductor of the parallel resonant circuit, H\n", + "R=10.0; #Resistor of the parallel resonant circuit, ohm\n", + "\n", + "#Calculation\n", + "#(i) Resonant frequency\n", + "fr=((1/(2*pi))*sqrt((1/(L*C))-(R/L)**2))/1000; #Resonant frequecy, kHz\n", + "\n", + "#(ii) Impedance of the circuit at resonance\n", + "Zr=(L/(C*R))/1000; #Impedance of the circuit at resonance, kilo ohm\n", + "\n", + "#(iii) Quality factor of the circuit\n", + "Q=2*pi*(fr*10**3)*L/R; #Quality factor of the circuit\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%.1fkHz.\"%fr);\n", + "print(\"(ii) The impedance of the circuit at resonance=%d kilo ohm.\"%Zr);\n", + "print(\"(iii) The quality factor of the circuit=%.1f.\"%Q);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=284.7kHz.\n", + "(ii) The impedance of the circuit at resonance=500 kilo ohm.\n", + "(iii) The quality factor of the circuit=223.6.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.2 : Page number 394-395\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=100.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "L=100.0*10**-6; #Inductor of the parallel resonant circuit, H\n", + "R=10.0; #Resistor of the parallel resonant circuit, ohm\n", + "V=10.0; #Supply voltage, V\n", + "\n", + "#Calculation\n", + "#(i) Resonant frequency\n", + "fr=((1/(2*pi))*sqrt((1/(L*C))-(R/L)**2))/1000; #Resonant frequecy, kHz\n", + "\n", + "#(ii) Impedance of the circuit at resonance\n", + "Zr=(L/(C*R))/10**6; #Impedance of the circuit at resonance, mega ohm\n", + "\n", + "I=V/Zr; #Line current at resonance, microampere\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%.2fkHz.\"%fr);\n", + "print(\"(ii) The impedance of the circuit at resonance=%.1f mega ohm.\"%Zr);\n", + "print(\"The line current at resonance=%d micro ampere.\"%I);\n", + "\n", + "#Note : The resonant frequency in the text has been calculated as 1592.28 kHz, but here it gets approximated to 1591.47 kHz.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=1591.47kHz.\n", + "(ii) The impedance of the circuit at resonance=0.1 mega ohm.\n", + "The line current at resonance=100 micro ampere.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.3 : Page number 395\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=250.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "Zr=500.0*10**3; #Dynamic impedance, ohm\n", + "R=10.0; #Resistance of the coil, ohm\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since,Zr=L/CR,\n", + "L=(Zr*C*R)*10**3; #Inductance of the coil, mH\n", + "\n", + "#(ii) Resonant frequency\n", + "fr=((1/(2*pi))*sqrt((1/(L*10**-3*C))-(R/(L*10**-3))**2))/1000; #Resonant frequecy, kHz\n", + "\n", + "#(iii) Quality factor of the circuit\n", + "Q=2*pi*(fr*10**3)*(L*10**-3)/R; #Quality factor of the circuit\n", + "\n", + "#Result\n", + "print(\"(i) The inductance of the coil=%.2fmH.\"%L);\n", + "print(\"(ii) The resonant frequency=%.1fkHz.\"%fr);\n", + "print(\"(iii) The quality factor of the circuit=%.1f.\"%Q);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The inductance of the coil=1.25mH.\n", + "(ii) The resonant frequency=284.7kHz.\n", + "(iii) The quality factor of the circuit=223.6.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.4 : Page number 397\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Q=60.0; #Quality factor of the tuned amplifier\n", + "fr=1200.0; #Resonant frequency, kHz\n", + "\n", + "#Calculation\n", + "#(i)\n", + "BW=fr/Q; #Bandwidth, kHz\n", + "\n", + "#(ii)\n", + "f1=fr-(BW/2); #Lower cut-off frequency, kHz\n", + "f2=fr+(BW/2); #Upper cut-off frequency, kHz\n", + "\n", + "#Result\n", + "print(\"(i) The bandwidth=%dkHz\"%BW);\n", + "print(\"(ii) The lower and upper cut-off frequencies are=%dkHz and %dkHz.\"%(f1,f2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The bandwidth=20kHz\n", + "(ii) The lower and upper cut-off frequencies are=1190kHz and 1210kHz.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.5 : Page number 397\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fr=2.0; #Resonant frequency, MHz\n", + "BW=50.0; #Bandwidth, kHz\n", + "\n", + "#Calculation\n", + "#Since, bandwidth=resonant_frequency/quality_factor\n", + "Q=(fr*10**6)/(BW*10**3); #Quality factor\n", + "\n", + "#Result\n", + "print(\"The quality factor=%d\"%Q);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The quality factor=40\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.7 : Page number 400\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=0.1*10**-6; #Capacitor of parallel resonant circuit, F\n", + "L=33.0*10**-3; #Inductor of the parallel resonant circuit, H\n", + "R=25.0; #Resistor of the parallel resonant circuit, ohm\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "fr=(1/(2*pi*sqrt(L*C)))/1000; #Resonant frequency, kHz\n", + "\n", + "#(ii)\n", + "XL=2*pi*(fr*10**3)*L; #Inductive reactance, ohm\n", + "Q=round(XL/R,0); #Quality factor\n", + "\n", + "#(iii)\n", + "BW=(fr*10**3)/Q; #Bandwidth\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%.2fkHz\"%fr);\n", + "print(\"(ii) The quality factor= %d.\"%Q);\n", + "print(\"(iii) The bandwidth=%dHz.\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=2.77kHz\n", + "(ii) The quality factor= 23.\n", + "(iii) The bandwidth=120Hz.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.8 : Page number 401-402\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "BW_dt=200.0; #Bandwidth, kHz\n", + "fr=10.0; #Operating frequency, MHz\n", + "\n", + "#Calculation\n", + "#Since, BW_dt=k*fr (i.e.,co-efficient_of_coupling * operating_frequency)\n", + "k=BW_dt/(fr*10**3); #co-efficient of coupling\n", + "\n", + "#Result\n", + "print(\"The co-efficient of coupling=%.2f.\"%k);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The co-efficient of coupling=0.02.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.9 : Page number 405\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "C=500.0*10**-12; #Capacitor of parallel resonant circuit, F\n", + "L=50.7*10**-6; #Inductor of the parallel resonant circuit, H\n", + "R=10.0; #Resistor of the parallel resonant circuit, ohm\n", + "RL=1.0; #Load resistance, mega ohm\n", + "\n", + "#Calculation\n", + "#(i)\n", + "fr=round((1/(2*pi*sqrt(L*C)))/1000); #Resonant frequency, Hz\n", + "\n", + "#(ii)\n", + "R_dc=R; #d.c load, ohm\n", + "XL=2*pi*(fr*1000)*L; #Inductive reactance, ohm\n", + "Q_coil=round(XL/R,1); #Quality factor\n", + "R_P=(Q_coil*XL)/1000 ; #Equivalent parallel resistance, kilo ohm\n", + "R_AC=(R_P*RL*10**3)/(R_P+RL*10**3); #A.C load,kilo ohm\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The resonant frequency=%dkHz\"%fr);\n", + "print(\"(ii) d.c load=%d ohm and a.c load=%d kilo ohm.\"%(R_dc,R_AC));\n", + "\n", + "#Note: In the text resonant frequency has been wrongly calculated to 106kHz but its actual value is approximately 1000kHz\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The resonant frequency=1000kHz\n", + "(ii) d.c load=10 ohm and a.c load=10 kilo ohm.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.10 : Page number 406-407\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "RL=50.0; #Load resistance, ohm\n", + "n=5; #Turns ratio of the transformer\n", + "VCC=50.0; #Supply voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "R_ac=n**2*RL; #A.C load, ohm\n", + "\n", + "#(ii)\n", + "P_o_max=VCC**2/(2*R_ac); #Maximum load power, W\n", + "\n", + "#Result\n", + "print(\"(i) The a.c load=%d ohm\"%R_ac);\n", + "print(\"(ii) Maximum load power=%dW\"%P_o_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The a.c load=1250 ohm\n", + "(ii) Maximum load power=1W\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.11 : Page number 407\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "P_D=4.0; #Maximum power dissipation, mW\n", + "P_o_max=1.0; #Maximum load power, W\n", + "\n", + "\n", + "#Calculation\n", + "max_collector_eff=(P_o_max/(P_o_max+(P_D/1000)))*100; #Maximum collector efficiency\n", + "\n", + "#Result\n", + "print(\"The maximum collector efficiency=%.1f%%\"%max_collector_eff);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum collector efficiency=99.6%\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_4.ipynb new file mode 100644 index 00000000..b2262b8f --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_4.ipynb @@ -0,0 +1,936 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:d4ffda068787fb0974622fa8de40f7d54b5df2a00735e870e01cb9df45be78f9" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 16 : MODULATION AND DEMODULATION" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.2 : Page number 416-417\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variabledeclaration\n", + "V_pp_max=16.0; #Maximum peak-to-peak voltage of an AM wave, mV\n", + "V_pp_min=4.0; #Minimum peak-to-peak voltage of an AM wave, mV\n", + "\n", + "#Calculation\n", + "Vmax=V_pp_max/2; #Maximum voltage of AM wave, mV\n", + "Vmin=V_pp_min/2; #Minimum voltage of AM wave, mV\n", + "m=(Vmax-Vmin)/(Vmax+Vmin); #Modulation factor.\n", + "\n", + "#Result\n", + "print(\"The modulation factor=%.1f.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The modulation factor=0.6.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.3 : Page number 417\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Es=50.0; #signalvoltage amplitude, V\n", + "Ec=100.0; #Carrier voltage amplitude, V\n", + "\n", + "\n", + "#Calculation\n", + "m=Es/Ec; #Modulation factor\n", + "\n", + "#Result\n", + "print(\"Modulation factor=%.1f.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Modulation factor=0.5.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.4 : Page number 419\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fc=2500.0; #Carrier frequency, kHz\n", + "f1=50.0; #Lower frequency of the audio signal, Hz\n", + "f2=15000.0; #Upper frequency of the audio signal, Hz\n", + "\n", + "#Calculation\n", + "fl_usb=fc+(f1/1000); #Lower frequency of upper sideband, kHz\n", + "fu_usb=fc+(f2/1000); #Upper frequency of upper sideband, kHz\n", + "\n", + "fu_lsb=fc-(f1/1000); #Lower frequency of upper sideband, kHz\n", + "fl_lsb=fc-(f2/1000); #Upper frequency of upper sideband, kHz\n", + "\n", + "#Since, f1=50Hz is negligible with respect to f2=15000Hz,\n", + "BW=(fc+(f2/1000))-(fc-(f2/1000)); #Bandwidth, kHz\n", + "\n", + "#Result\n", + "print(\"The upper sideband=%.2fkHz to %dkHz.\"%(fl_usb,fu_usb));\n", + "print(\"The lower sideband=%dkHz to %.2fkHz.\"%(fl_lsb,fu_lsb));\n", + "print(\"The bandwidth=%dkHz\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The upper sideband=2500.05kHz to 2515kHz.\n", + "The lower sideband=2485kHz to 2499.95kHz.\n", + "The bandwidth=30kHz\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.5 : Page number 420\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "EC=5.0; #Carrier amplitude, V\n", + "m=0.6; #modulation factor\n", + "ws=6280.0; #angular frequency of signal, radians/s\n", + "wc=211*10**4; #angular frequency of carrier, radians/s\n", + "\n", + "#Calculation\n", + "fs=(ws/(2*pi))/1000; #Signal frequency, kHz\n", + "fc=(wc/(2*pi))/1000; #Carrier frequency, kHz\n", + "\n", + "#(i)\n", + "Max_amp=EC+m*EC; #Maximum amplitude of AM wave, V\n", + "Min_amp=EC-m*EC; #Minimum amplitude of AM wave, V\n", + "\n", + "#(ii)\n", + "frequency_components=[fc-fs,fc,fc+fs]; #frequency components, kHz\n", + "amplitudes=[m*EC/2,EC,m*EC/2]; #Corresponding amplitudes, V\n", + "\n", + "#Result\n", + "print(\"(i) The maximum and minimum amplitudes of AM wave=%dV and %dV.\"%(Max_amp,Min_amp));\n", + "print(\"(ii) The frequency components of the AM wave=%.0f,%.0f,%.0f.\"%(frequency_components[0],frequency_components[1],frequency_components[2]));\n", + "print(\" The corresponding amplitudes are =%.1fV, %dV, %.1fV.\"%(amplitudes[0],amplitudes[1],amplitudes[2]));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The maximum and minimum amplitudes of AM wave=8V and 2V.\n", + "(ii) The frequency components of the AM wave=335,336,337.\n", + " The corresponding amplitudes are =1.5V, 5V, 1.5V.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.6 : Page number 420-421\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fc=1000.0; #Carrier frequency, kHz\n", + "fs=5.0; #Signal frequency, kHz\n", + "m=0.5; #Modulation factor\n", + "EC=100.0; #Amplitude of the carrier, V\n", + "\n", + "#Calculation\n", + "f_lsb=fc-fs; #Lower sideband frequency,kHz\n", + "f_usb=fc+fs; #Upper sideband frequency, kHz\n", + "Amplitude=m*EC/2; #Amplitude of each sideband, V\n", + "\n", + "#Result\n", + "print(\"The lower and upper sideband frequencies are=%dkHz and %dkHz.\"%(f_lsb,f_usb));\n", + "print(\"The amplitude of each sideband =%dV\"%Amplitude);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The lower and upper sideband frequencies are=995kHz and 1005kHz.\n", + "The amplitude of each sideband =25V\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.7 : Page number 421\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "EC=10.0; #Carrier amplitude, V\n", + "ES=6.0; #Signal amplitude, V\n", + "fc=10.0; #Carrier frequency, MHz\n", + "fs=5/1000.0; #Signal frequency. MHz\n", + "\n", + "#Calculation\n", + "#(i)\n", + "m=ES/EC; #Modulation factor\n", + "\n", + "#(ii)\n", + "f_lsb=fc-fs; #Lower sideband frequency,MHz\n", + "f_usb=fc+fs; #Upper sideband frequency, MHz\n", + "\n", + "#(iii)\n", + "Amplitude=m*EC/2; #Amplitude of each sideband, V\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The modulation factor=%.1f.\"%m);\n", + "print(\"(ii) The lower and upper sideband frequencies are=%.3fMHz and %.3fMHz.\"%(f_lsb,f_usb));\n", + "print(\"(iii) The amplitude of each sideband =%dV\"%Amplitude);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The modulation factor=0.6.\n", + "(ii) The lower and upper sideband frequencies are=9.995MHz and 10.005MHz.\n", + "(iii) The amplitude of each sideband =3V\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.8 : Page number 423\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Pc=500.0; #Carrier power, W\n", + "m=1.0; #Modulation factor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Ps=(1/2.0)*m**2*Pc; #Sideband power, W\n", + "\n", + "#(ii)\n", + "PT=Pc+Ps; #Power of AM wave, W\n", + "\n", + "#Result\n", + "print(\"(i) The power in sidebands=%dW\"%Ps);\n", + "print(\"(ii) The power of AM wave=%dW\"%PT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The power in sidebands=250W\n", + "(ii) The power of AM wave=750W\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exmaple 16.9 : Page number 423\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Pc=50.0; #Power of carrier, kW\n", + "\n", + "#Calculation\n", + "#(i)\n", + "m=80/100.0; #Modulation factor\n", + "Ps=(1/2.0)*m**2*Pc; #Sideband Power, kW\n", + "print(\"(i) The sideband power for 80%% modulation=%dkW.\"%Ps);\n", + "\n", + "#(ii)\n", + "m=10/100.0; #Modulation factor\n", + "Ps=(1/2.0)*m**2*Pc; #Sideband Power, kW\n", + "print(\"(ii) The sideband power for 10%% modulation=%.2fkW.\"%Ps);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The sideband power for 80% modulation=16kW.\n", + "(ii) The sideband power for 10% modulation=0.25kW.\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.10 : Page number 423-424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Pc=40.0; #Carrier power, kW\n", + "m=100/100.0; #Modulation index\n", + "amplifier_eff=72/100.0; #Efficiency of modulated RF amplifier\n", + "\n", + "\n", + "#Calculation\n", + "#(i)Carrier power remains same after modulation\n", + "\n", + "#(ii)\n", + "Ps=(1/2.0)*(m**2)*Pc; #Sideband power\n", + "P_audio=Ps/amplifier_eff; #Required audio power, kW\n", + "\n", + "#Result\n", + "print(\"(i) The carrier power=%dkW.\"%Pc);\n", + "print(\"(ii) The required audio power=%.1fkW.\"%P_audio);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The carrier power=40kW.\n", + "(ii) The required audio power=27.8kW.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.11 : Page number 424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fs=1.0; #Signal frequency, kHz\n", + "fc=500.0; #Carrier frequency, kHz\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "sideband_f=[fc-fs,fc+fs]; #Sideband frequencies, kHz\n", + "\n", + "#(ii)\n", + "BW=(fc+fs)-(fc-fs); #Bandwidth required, kHz\n", + "\n", + "#Result\n", + "print(\"(i) The sideband frequencies=%dkHz and %dkHz.\"%(sideband_f[0],sideband_f[1]));\n", + "print(\"(ii) The bandwidth required=%dkHz\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The sideband frequencies=499kHz and 501kHz.\n", + "(ii) The bandwidth required=2kHz\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.12 : Page number 424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "IC=8.0; #Antenna current due to carrier,A\n", + "m=40/100.0; #Modulation index\n", + "\n", + "#Calculation\n", + "#Since, Ps=(1/2)*m\u00b2*Pc and PT=Pc+Ps (Total_power=carrier_power+signal_power)\n", + "#that implies, (PT/Pc)=1+(m\u00b2/2),\n", + "#So, square_of(Total_current/Carrier_current)=(IT/IC)\u00b2=1+(m\u00b2/2).\n", + "IT=IC*sqrt(1+(m**2/2.0)); #Total current, A\n", + "\n", + "\n", + "#Result\n", + "print(\"The total antenna current=%.2fA.\"%IT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total antenna current=8.31A.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.13 : Page number 424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "IC=8.0; #Antenna current when only carrier is sent, A\n", + "IT=8.93; #Total antenna current, A\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Ps=(1/2)*m\u00b2*Pc and PT=Pc+Ps (Total_power=carrier_power+signal_power)\n", + "#that implies, (PT/Pc)=1+(m\u00b2/2),\n", + "#So, square_of(Total_current/Carrier_current)=(IT/IC)\u00b2=1+(m\u00b2/2).\n", + "m=sqrt((((IT/IC)**2)-1)*2)*100; #The %age of modulation\n", + "\n", + "#Result\n", + "print(\"The %%age of modulation=%.1f%%.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The %age of modulation=70.1%.\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.14 : Page number 425\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "Vc=100.0; #Carrier voltage, V\n", + "V_T=110.0; #The total voltage after modulation, V\n", + "\n", + "#Calculation\n", + "#Since, Ps=(1/2)*m\u00b2*Pc and PT=Pc+Ps (Total_power=carrier_power+signal_power)\n", + "#that implies, (PT/Pc)=1+(m\u00b2/2),\n", + "#So, square_of(Total_voltage/Carrier_voltage)=(V_T/Vc)\u00b2=1+(m\u00b2/2).\n", + "m=sqrt((((V_T/Vc)**2)-1)*2); #The %age of modulation\n", + "\n", + "#Result\n", + "print(\"The modulation index =%.3f.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The modulation index =0.648.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.15 : Page number 425-426\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vc=5.0; #Carrier voltage, V\n", + "V_lsb=2.5; #Lower sideband component, V\n", + "V_usb=2.5; #Upper sideband component, V\n", + "R=2.0; #Resistor driven by AM wave, k\u03a9\n", + "\n", + "#Calculation\n", + "#Since, power=(r.m.s_voltage)\u00b2/resistance\n", + "#(i)\n", + "Pc=round((0.707*Vc)**2/R,2); #Carrier power mW\n", + "\n", + "#(ii)\n", + "P_lower=round((0.707*V_lsb)**2/R,3); #Power delivered by lower sideband, mW\n", + "\n", + "#(iii)\n", + "P_upper=round((0.707*V_usb)**2/R,3); #Power delivered by upper sideband, mW\n", + "\n", + "P_T=round(Pc+P_lower+P_upper,3); #Total power delivered by the AM wave, mW\n", + "\n", + "#Result\n", + "print(\"(i) The carrier power=%.2fmW\"%Pc);\n", + "print(\"(ii) The power delivered by lower sideband=%.3fmW\"%P_lower);\n", + "print(\"(iii) The power delivered by upper sideband=%.3fmW\"%P_upper);\n", + "print(\"The total power delivered by the AM wave=%.3fmW\"%P_T);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The carrier power=6.25mW\n", + "(ii) The power delivered by lower sideband=1.562mW\n", + "(iii) The power delivered by upper sideband=1.562mW\n", + "The total power delivered by the AM wave=9.374mW\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.16 : Page number 428\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "wc=6e08; #Carrier angular frequency, rad/s\n", + "ws=1250.0; #Signal angular frequency, rad/s\n", + "mf=5; #Modulation index\n", + "Ec=12.0; #Carrier amplitude, V\n", + "R=10.0; #Resistor, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "fc=wc/(2*pi); #Carrier frequency, Hz\n", + "\n", + "#(ii)\n", + "fs=ws/(2*pi); #Signal frequency, Hz\n", + "\n", + "#(iv)\n", + "delta_f=mf*fs; #Maximum frequency deviation, Hz\n", + "\n", + "#(v)\n", + "P=(Ec/sqrt(2))**2/R; #Power dissipated, W\n", + "\n", + "#Result\n", + "print(\"(i) The carrier frequency=%.1fe06 Hz.\"%(fc/10**6));\n", + "print(\"(ii) The signal frequency=%.0f Hz.\"%fs);\n", + "print(\"(iii) The modulation index=%d.\"%mf);\n", + "print(\"(iv) The maximum frequency deviation=%.0fHz.\"%delta_f);\n", + "print(\"(v) The power dissipated=%.1fW.\"%P);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The carrier frequency=95.5e06 Hz.\n", + "(ii) The signal frequency=199 Hz.\n", + "(iii) The modulation index=5.\n", + "(iv) The maximum frequency deviation=995Hz.\n", + "(v) The power dissipated=7.2W.\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.17 : Page number 428-429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "fc=25.0; #Carrier frequency, MHz\n", + "fs=400.0; #Signal frequency, Hz\n", + "Ec=4.0; #Carrier amplitude, V\n", + "delta_f=10.0; #Maximum frequency deviation, kHz\n", + "\n", + "#Calculation\n", + "wc=2*pi*fc*10**6; #Carrier angular frequency, rad/s\n", + "ws=2*pi*fs; #Signal angular frequency, rad/s\n", + "mf=delta_f*1000/fs; #Modulation index\n", + "\n", + "\n", + "#Result\n", + "print(\"e=%dcos(%.2et + %dsin%dt)\"%(Ec,wc,mf,ws));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e=4cos(1.57e+08t + 25sin2513t)\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.18 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "delta_f=50.0; #Maximum frequency deviation, kHz\n", + "fs=5.0; #Modulating frequency, kHz\n", + "\n", + "#Calculation\n", + "mf=delta_f/fs; #Modulation index\n", + "\n", + "#Result\n", + "print(\"The modulation index=%d\"%mf);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The modulation index=10\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.19 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fc=1000.0; #Carrier frequency, kHz\n", + "fs=15.0; #Modulating frequency, kHz\n", + "\n", + "#Calculation\n", + "first_3_usb_f=[fc+fs,fc+2*fs,fc+3*fs]; #First three upper sideband frequncies, kHz\n", + "first_3_lsb_f=[fc-fs,fc-2*fs,fc-3*fs]; #First three lowerr sideband frequncies, kHz\n", + "\n", + "\n", + "#Result\n", + "print(\"The first three upper sideband frequencies=%dkHz ,%dkHz and %dkHz.\"%(first_3_usb_f[0],first_3_usb_f[1],first_3_usb_f[2]));\n", + "print(\"The first three lower sideband frequencies=%dkHz ,%dkHz and %dkHz.\"%(first_3_lsb_f[0],first_3_lsb_f[1],first_3_lsb_f[2]));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The first three upper sideband frequencies=1015kHz ,1030kHz and 1045kHz.\n", + "The first three lower sideband frequencies=985kHz ,970kHz and 955kHz.\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.20 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fs=15.0; #Modulating frequency, kHz\n", + "delta_f=75.0; #Maximum frequency deviation, kHz\n", + "\n", + "#Calculation\n", + "BW=2*(delta_f+fs); #Bandwidth, kHz\n", + "\n", + "#Result\n", + "print(\"The bandwidth of the FM signal=%dkHz.\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The bandwidth of the FM signal=180kHz.\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.21 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "k=75.0; #Frequency deviation constant, kHz/V\n", + "Es=2.0; #Amplitude of signal, V\n", + "\n", + "\n", + "#Calculation\n", + "delta_f=k*Es; #Maximum frequency deviation, kHz\n", + "\n", + "#Result\n", + "print(\"The maximum frequency deviation=%dkHz.\"%delta_f);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum frequency deviation=150kHz.\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.22 : Page number 429-430\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fs1=500.0; #First audio frequency, Hz\n", + "fs2=200.0; #Second audio frequency (decreased), Hz\n", + "Es=2.4; #AF voltage, V\n", + "delta_f1=4.8; #Frequency deviation,kHz\n", + "\n", + "#Calculation\n", + "k=delta_f1/Es; #Frequency deviation constant, kHz/V\n", + "Es=7.2; #AF voltage, V (increased)\n", + "delta_f2=k*Es; #2nd frequency deviation, kHz\n", + "Es=10.0; #AF voltage, V (increased)\n", + "delta_f3=k*Es; #3rd frequency deviation, kHz\n", + "\n", + "mf1=delta_f1/(fs1/1000); #Modulation index in 1st case\n", + "mf2=delta_f2/(fs1/1000); #Modulation index in 2nd case\n", + "mf3=delta_f3/(fs2/1000); #Modulation index in 3rd case\n", + "\n", + "#Result\n", + "print(\"The frequency deviation in second case=%.1fkHz.\"%delta_f2);\n", + "print(\"The frequency deviation in third case=%dkHz.\"%delta_f3);\n", + "print(\"The modulation index in 1st case=%.1f\"%mf1);\n", + "print(\"The modulation index in 2nd case=%.1f\"%mf2);\n", + "print(\"The modulation index in 3rd case=%d\"%mf3);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency deviation in second case=14.4kHz.\n", + "The frequency deviation in third case=20kHz.\n", + "The modulation index in 1st case=9.6\n", + "The modulation index in 2nd case=28.8\n", + "The modulation index in 3rd case=100\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_5.ipynb new file mode 100644 index 00000000..b2262b8f --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_5.ipynb @@ -0,0 +1,936 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:d4ffda068787fb0974622fa8de40f7d54b5df2a00735e870e01cb9df45be78f9" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 16 : MODULATION AND DEMODULATION" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.2 : Page number 416-417\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variabledeclaration\n", + "V_pp_max=16.0; #Maximum peak-to-peak voltage of an AM wave, mV\n", + "V_pp_min=4.0; #Minimum peak-to-peak voltage of an AM wave, mV\n", + "\n", + "#Calculation\n", + "Vmax=V_pp_max/2; #Maximum voltage of AM wave, mV\n", + "Vmin=V_pp_min/2; #Minimum voltage of AM wave, mV\n", + "m=(Vmax-Vmin)/(Vmax+Vmin); #Modulation factor.\n", + "\n", + "#Result\n", + "print(\"The modulation factor=%.1f.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The modulation factor=0.6.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.3 : Page number 417\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Es=50.0; #signalvoltage amplitude, V\n", + "Ec=100.0; #Carrier voltage amplitude, V\n", + "\n", + "\n", + "#Calculation\n", + "m=Es/Ec; #Modulation factor\n", + "\n", + "#Result\n", + "print(\"Modulation factor=%.1f.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Modulation factor=0.5.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.4 : Page number 419\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fc=2500.0; #Carrier frequency, kHz\n", + "f1=50.0; #Lower frequency of the audio signal, Hz\n", + "f2=15000.0; #Upper frequency of the audio signal, Hz\n", + "\n", + "#Calculation\n", + "fl_usb=fc+(f1/1000); #Lower frequency of upper sideband, kHz\n", + "fu_usb=fc+(f2/1000); #Upper frequency of upper sideband, kHz\n", + "\n", + "fu_lsb=fc-(f1/1000); #Lower frequency of upper sideband, kHz\n", + "fl_lsb=fc-(f2/1000); #Upper frequency of upper sideband, kHz\n", + "\n", + "#Since, f1=50Hz is negligible with respect to f2=15000Hz,\n", + "BW=(fc+(f2/1000))-(fc-(f2/1000)); #Bandwidth, kHz\n", + "\n", + "#Result\n", + "print(\"The upper sideband=%.2fkHz to %dkHz.\"%(fl_usb,fu_usb));\n", + "print(\"The lower sideband=%dkHz to %.2fkHz.\"%(fl_lsb,fu_lsb));\n", + "print(\"The bandwidth=%dkHz\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The upper sideband=2500.05kHz to 2515kHz.\n", + "The lower sideband=2485kHz to 2499.95kHz.\n", + "The bandwidth=30kHz\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.5 : Page number 420\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "EC=5.0; #Carrier amplitude, V\n", + "m=0.6; #modulation factor\n", + "ws=6280.0; #angular frequency of signal, radians/s\n", + "wc=211*10**4; #angular frequency of carrier, radians/s\n", + "\n", + "#Calculation\n", + "fs=(ws/(2*pi))/1000; #Signal frequency, kHz\n", + "fc=(wc/(2*pi))/1000; #Carrier frequency, kHz\n", + "\n", + "#(i)\n", + "Max_amp=EC+m*EC; #Maximum amplitude of AM wave, V\n", + "Min_amp=EC-m*EC; #Minimum amplitude of AM wave, V\n", + "\n", + "#(ii)\n", + "frequency_components=[fc-fs,fc,fc+fs]; #frequency components, kHz\n", + "amplitudes=[m*EC/2,EC,m*EC/2]; #Corresponding amplitudes, V\n", + "\n", + "#Result\n", + "print(\"(i) The maximum and minimum amplitudes of AM wave=%dV and %dV.\"%(Max_amp,Min_amp));\n", + "print(\"(ii) The frequency components of the AM wave=%.0f,%.0f,%.0f.\"%(frequency_components[0],frequency_components[1],frequency_components[2]));\n", + "print(\" The corresponding amplitudes are =%.1fV, %dV, %.1fV.\"%(amplitudes[0],amplitudes[1],amplitudes[2]));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The maximum and minimum amplitudes of AM wave=8V and 2V.\n", + "(ii) The frequency components of the AM wave=335,336,337.\n", + " The corresponding amplitudes are =1.5V, 5V, 1.5V.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.6 : Page number 420-421\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fc=1000.0; #Carrier frequency, kHz\n", + "fs=5.0; #Signal frequency, kHz\n", + "m=0.5; #Modulation factor\n", + "EC=100.0; #Amplitude of the carrier, V\n", + "\n", + "#Calculation\n", + "f_lsb=fc-fs; #Lower sideband frequency,kHz\n", + "f_usb=fc+fs; #Upper sideband frequency, kHz\n", + "Amplitude=m*EC/2; #Amplitude of each sideband, V\n", + "\n", + "#Result\n", + "print(\"The lower and upper sideband frequencies are=%dkHz and %dkHz.\"%(f_lsb,f_usb));\n", + "print(\"The amplitude of each sideband =%dV\"%Amplitude);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The lower and upper sideband frequencies are=995kHz and 1005kHz.\n", + "The amplitude of each sideband =25V\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.7 : Page number 421\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "EC=10.0; #Carrier amplitude, V\n", + "ES=6.0; #Signal amplitude, V\n", + "fc=10.0; #Carrier frequency, MHz\n", + "fs=5/1000.0; #Signal frequency. MHz\n", + "\n", + "#Calculation\n", + "#(i)\n", + "m=ES/EC; #Modulation factor\n", + "\n", + "#(ii)\n", + "f_lsb=fc-fs; #Lower sideband frequency,MHz\n", + "f_usb=fc+fs; #Upper sideband frequency, MHz\n", + "\n", + "#(iii)\n", + "Amplitude=m*EC/2; #Amplitude of each sideband, V\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The modulation factor=%.1f.\"%m);\n", + "print(\"(ii) The lower and upper sideband frequencies are=%.3fMHz and %.3fMHz.\"%(f_lsb,f_usb));\n", + "print(\"(iii) The amplitude of each sideband =%dV\"%Amplitude);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The modulation factor=0.6.\n", + "(ii) The lower and upper sideband frequencies are=9.995MHz and 10.005MHz.\n", + "(iii) The amplitude of each sideband =3V\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.8 : Page number 423\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Pc=500.0; #Carrier power, W\n", + "m=1.0; #Modulation factor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Ps=(1/2.0)*m**2*Pc; #Sideband power, W\n", + "\n", + "#(ii)\n", + "PT=Pc+Ps; #Power of AM wave, W\n", + "\n", + "#Result\n", + "print(\"(i) The power in sidebands=%dW\"%Ps);\n", + "print(\"(ii) The power of AM wave=%dW\"%PT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The power in sidebands=250W\n", + "(ii) The power of AM wave=750W\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exmaple 16.9 : Page number 423\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Pc=50.0; #Power of carrier, kW\n", + "\n", + "#Calculation\n", + "#(i)\n", + "m=80/100.0; #Modulation factor\n", + "Ps=(1/2.0)*m**2*Pc; #Sideband Power, kW\n", + "print(\"(i) The sideband power for 80%% modulation=%dkW.\"%Ps);\n", + "\n", + "#(ii)\n", + "m=10/100.0; #Modulation factor\n", + "Ps=(1/2.0)*m**2*Pc; #Sideband Power, kW\n", + "print(\"(ii) The sideband power for 10%% modulation=%.2fkW.\"%Ps);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The sideband power for 80% modulation=16kW.\n", + "(ii) The sideband power for 10% modulation=0.25kW.\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.10 : Page number 423-424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Pc=40.0; #Carrier power, kW\n", + "m=100/100.0; #Modulation index\n", + "amplifier_eff=72/100.0; #Efficiency of modulated RF amplifier\n", + "\n", + "\n", + "#Calculation\n", + "#(i)Carrier power remains same after modulation\n", + "\n", + "#(ii)\n", + "Ps=(1/2.0)*(m**2)*Pc; #Sideband power\n", + "P_audio=Ps/amplifier_eff; #Required audio power, kW\n", + "\n", + "#Result\n", + "print(\"(i) The carrier power=%dkW.\"%Pc);\n", + "print(\"(ii) The required audio power=%.1fkW.\"%P_audio);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The carrier power=40kW.\n", + "(ii) The required audio power=27.8kW.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.11 : Page number 424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fs=1.0; #Signal frequency, kHz\n", + "fc=500.0; #Carrier frequency, kHz\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "sideband_f=[fc-fs,fc+fs]; #Sideband frequencies, kHz\n", + "\n", + "#(ii)\n", + "BW=(fc+fs)-(fc-fs); #Bandwidth required, kHz\n", + "\n", + "#Result\n", + "print(\"(i) The sideband frequencies=%dkHz and %dkHz.\"%(sideband_f[0],sideband_f[1]));\n", + "print(\"(ii) The bandwidth required=%dkHz\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The sideband frequencies=499kHz and 501kHz.\n", + "(ii) The bandwidth required=2kHz\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.12 : Page number 424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "IC=8.0; #Antenna current due to carrier,A\n", + "m=40/100.0; #Modulation index\n", + "\n", + "#Calculation\n", + "#Since, Ps=(1/2)*m\u00b2*Pc and PT=Pc+Ps (Total_power=carrier_power+signal_power)\n", + "#that implies, (PT/Pc)=1+(m\u00b2/2),\n", + "#So, square_of(Total_current/Carrier_current)=(IT/IC)\u00b2=1+(m\u00b2/2).\n", + "IT=IC*sqrt(1+(m**2/2.0)); #Total current, A\n", + "\n", + "\n", + "#Result\n", + "print(\"The total antenna current=%.2fA.\"%IT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The total antenna current=8.31A.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.13 : Page number 424\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "IC=8.0; #Antenna current when only carrier is sent, A\n", + "IT=8.93; #Total antenna current, A\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Ps=(1/2)*m\u00b2*Pc and PT=Pc+Ps (Total_power=carrier_power+signal_power)\n", + "#that implies, (PT/Pc)=1+(m\u00b2/2),\n", + "#So, square_of(Total_current/Carrier_current)=(IT/IC)\u00b2=1+(m\u00b2/2).\n", + "m=sqrt((((IT/IC)**2)-1)*2)*100; #The %age of modulation\n", + "\n", + "#Result\n", + "print(\"The %%age of modulation=%.1f%%.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The %age of modulation=70.1%.\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.14 : Page number 425\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "Vc=100.0; #Carrier voltage, V\n", + "V_T=110.0; #The total voltage after modulation, V\n", + "\n", + "#Calculation\n", + "#Since, Ps=(1/2)*m\u00b2*Pc and PT=Pc+Ps (Total_power=carrier_power+signal_power)\n", + "#that implies, (PT/Pc)=1+(m\u00b2/2),\n", + "#So, square_of(Total_voltage/Carrier_voltage)=(V_T/Vc)\u00b2=1+(m\u00b2/2).\n", + "m=sqrt((((V_T/Vc)**2)-1)*2); #The %age of modulation\n", + "\n", + "#Result\n", + "print(\"The modulation index =%.3f.\"%m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The modulation index =0.648.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.15 : Page number 425-426\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vc=5.0; #Carrier voltage, V\n", + "V_lsb=2.5; #Lower sideband component, V\n", + "V_usb=2.5; #Upper sideband component, V\n", + "R=2.0; #Resistor driven by AM wave, k\u03a9\n", + "\n", + "#Calculation\n", + "#Since, power=(r.m.s_voltage)\u00b2/resistance\n", + "#(i)\n", + "Pc=round((0.707*Vc)**2/R,2); #Carrier power mW\n", + "\n", + "#(ii)\n", + "P_lower=round((0.707*V_lsb)**2/R,3); #Power delivered by lower sideband, mW\n", + "\n", + "#(iii)\n", + "P_upper=round((0.707*V_usb)**2/R,3); #Power delivered by upper sideband, mW\n", + "\n", + "P_T=round(Pc+P_lower+P_upper,3); #Total power delivered by the AM wave, mW\n", + "\n", + "#Result\n", + "print(\"(i) The carrier power=%.2fmW\"%Pc);\n", + "print(\"(ii) The power delivered by lower sideband=%.3fmW\"%P_lower);\n", + "print(\"(iii) The power delivered by upper sideband=%.3fmW\"%P_upper);\n", + "print(\"The total power delivered by the AM wave=%.3fmW\"%P_T);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The carrier power=6.25mW\n", + "(ii) The power delivered by lower sideband=1.562mW\n", + "(iii) The power delivered by upper sideband=1.562mW\n", + "The total power delivered by the AM wave=9.374mW\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.16 : Page number 428\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "wc=6e08; #Carrier angular frequency, rad/s\n", + "ws=1250.0; #Signal angular frequency, rad/s\n", + "mf=5; #Modulation index\n", + "Ec=12.0; #Carrier amplitude, V\n", + "R=10.0; #Resistor, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "fc=wc/(2*pi); #Carrier frequency, Hz\n", + "\n", + "#(ii)\n", + "fs=ws/(2*pi); #Signal frequency, Hz\n", + "\n", + "#(iv)\n", + "delta_f=mf*fs; #Maximum frequency deviation, Hz\n", + "\n", + "#(v)\n", + "P=(Ec/sqrt(2))**2/R; #Power dissipated, W\n", + "\n", + "#Result\n", + "print(\"(i) The carrier frequency=%.1fe06 Hz.\"%(fc/10**6));\n", + "print(\"(ii) The signal frequency=%.0f Hz.\"%fs);\n", + "print(\"(iii) The modulation index=%d.\"%mf);\n", + "print(\"(iv) The maximum frequency deviation=%.0fHz.\"%delta_f);\n", + "print(\"(v) The power dissipated=%.1fW.\"%P);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The carrier frequency=95.5e06 Hz.\n", + "(ii) The signal frequency=199 Hz.\n", + "(iii) The modulation index=5.\n", + "(iv) The maximum frequency deviation=995Hz.\n", + "(v) The power dissipated=7.2W.\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.17 : Page number 428-429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "fc=25.0; #Carrier frequency, MHz\n", + "fs=400.0; #Signal frequency, Hz\n", + "Ec=4.0; #Carrier amplitude, V\n", + "delta_f=10.0; #Maximum frequency deviation, kHz\n", + "\n", + "#Calculation\n", + "wc=2*pi*fc*10**6; #Carrier angular frequency, rad/s\n", + "ws=2*pi*fs; #Signal angular frequency, rad/s\n", + "mf=delta_f*1000/fs; #Modulation index\n", + "\n", + "\n", + "#Result\n", + "print(\"e=%dcos(%.2et + %dsin%dt)\"%(Ec,wc,mf,ws));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e=4cos(1.57e+08t + 25sin2513t)\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.18 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "delta_f=50.0; #Maximum frequency deviation, kHz\n", + "fs=5.0; #Modulating frequency, kHz\n", + "\n", + "#Calculation\n", + "mf=delta_f/fs; #Modulation index\n", + "\n", + "#Result\n", + "print(\"The modulation index=%d\"%mf);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The modulation index=10\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.19 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fc=1000.0; #Carrier frequency, kHz\n", + "fs=15.0; #Modulating frequency, kHz\n", + "\n", + "#Calculation\n", + "first_3_usb_f=[fc+fs,fc+2*fs,fc+3*fs]; #First three upper sideband frequncies, kHz\n", + "first_3_lsb_f=[fc-fs,fc-2*fs,fc-3*fs]; #First three lowerr sideband frequncies, kHz\n", + "\n", + "\n", + "#Result\n", + "print(\"The first three upper sideband frequencies=%dkHz ,%dkHz and %dkHz.\"%(first_3_usb_f[0],first_3_usb_f[1],first_3_usb_f[2]));\n", + "print(\"The first three lower sideband frequencies=%dkHz ,%dkHz and %dkHz.\"%(first_3_lsb_f[0],first_3_lsb_f[1],first_3_lsb_f[2]));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The first three upper sideband frequencies=1015kHz ,1030kHz and 1045kHz.\n", + "The first three lower sideband frequencies=985kHz ,970kHz and 955kHz.\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.20 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fs=15.0; #Modulating frequency, kHz\n", + "delta_f=75.0; #Maximum frequency deviation, kHz\n", + "\n", + "#Calculation\n", + "BW=2*(delta_f+fs); #Bandwidth, kHz\n", + "\n", + "#Result\n", + "print(\"The bandwidth of the FM signal=%dkHz.\"%BW);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The bandwidth of the FM signal=180kHz.\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.21 : Page number 429\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "k=75.0; #Frequency deviation constant, kHz/V\n", + "Es=2.0; #Amplitude of signal, V\n", + "\n", + "\n", + "#Calculation\n", + "delta_f=k*Es; #Maximum frequency deviation, kHz\n", + "\n", + "#Result\n", + "print(\"The maximum frequency deviation=%dkHz.\"%delta_f);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum frequency deviation=150kHz.\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.22 : Page number 429-430\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "fs1=500.0; #First audio frequency, Hz\n", + "fs2=200.0; #Second audio frequency (decreased), Hz\n", + "Es=2.4; #AF voltage, V\n", + "delta_f1=4.8; #Frequency deviation,kHz\n", + "\n", + "#Calculation\n", + "k=delta_f1/Es; #Frequency deviation constant, kHz/V\n", + "Es=7.2; #AF voltage, V (increased)\n", + "delta_f2=k*Es; #2nd frequency deviation, kHz\n", + "Es=10.0; #AF voltage, V (increased)\n", + "delta_f3=k*Es; #3rd frequency deviation, kHz\n", + "\n", + "mf1=delta_f1/(fs1/1000); #Modulation index in 1st case\n", + "mf2=delta_f2/(fs1/1000); #Modulation index in 2nd case\n", + "mf3=delta_f3/(fs2/1000); #Modulation index in 3rd case\n", + "\n", + "#Result\n", + "print(\"The frequency deviation in second case=%.1fkHz.\"%delta_f2);\n", + "print(\"The frequency deviation in third case=%dkHz.\"%delta_f3);\n", + "print(\"The modulation index in 1st case=%.1f\"%mf1);\n", + "print(\"The modulation index in 2nd case=%.1f\"%mf2);\n", + "print(\"The modulation index in 3rd case=%d\"%mf3);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency deviation in second case=14.4kHz.\n", + "The frequency deviation in third case=20kHz.\n", + "The modulation index in 1st case=9.6\n", + "The modulation index in 2nd case=28.8\n", + "The modulation index in 3rd case=100\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_4.ipynb new file mode 100644 index 00000000..2c9a49a5 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_4.ipynb @@ -0,0 +1,877 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:33d9a7285654630dd24f2d6229210244e78961e0605c11041ed1b2f130cb19a1" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 17 : REGULATED D.C POWER SUPPLY" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.1 : Page number 444\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_NL=400.0; #Output voltage with no-load, V\n", + "V_FL=300.0; #Output voltage with full-load, V\n", + "\n", + "\n", + "#Calculation\n", + "percentage_voltage_regulation=((V_NL-V_FL)/V_FL)*100; #Percentage of voltage regulation\n", + "\n", + "#Result\n", + "print(\"The percentage of voltage regulation=%.2f%%.\"%percentage_voltage_regulation);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The percentage of voltage regulation=33.33%.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.2 : Page number 444\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_regulation=1.0; #%age voltage regulation\n", + "V_NL=30.0; #Output voltage with no-load,V\n", + "\n", + "#Calculation\n", + "#Since, %age_of_voltage_regulation=((V_NL-V_FL)/V_FL)*100\n", + "V_FL=V_NL/(1+(V_regulation/100)); #Output voltage with full-load, V\n", + "\n", + "#Result\n", + "print(\"The full-load voltage=%.1fV.\"%V_FL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The full-load voltage=29.7V.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.3 : Page number 445\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_NL_A=30.0; #Output voltage of supply A with no-load, V\n", + "V_FL_A=25.0; #Output voltage of supply A with full-load, V\n", + "V_NL_B=30.0; #Output voltage of supply B with no-load, V\n", + "V_FL_B=29.0; #Output voltage of supply B with full-load, V\n", + "\n", + "\n", + "#Calculation\n", + "V_regulation_A=((V_NL_A-V_FL_A)/V_FL_A)*100; #%age of voltage regulation in power supply A\n", + "V_regulation_B=((V_NL_B-V_FL_B)/V_FL_B)*100; #%age of voltage regulation in power supply B\n", + "\n", + "#Result\n", + "if(V_regulation_A<V_regulation_B):\n", + " print(\"Power supply A is better than B.\");\n", + "else :\n", + " print(\"Power supply B is better than A.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power supply B is better than A.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.4 : Page number 445\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_NL=500.0; #Output voltage with no-load, V\n", + "V_FL=300.0; #Output voltage with full-load, V\n", + "I_FL=120.0; #Output current with full-load, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Regulation=((V_NL-V_FL)/V_FL)*100; #Voltage regulation percentage\n", + "\n", + "#(ii)\n", + "RL_min=V_FL/I_FL; #Minimum load resistance, k\u03a9\n", + "\n", + "#Result\n", + "print(\"(i) The voltage regulation=%.1f%%.\"%Regulation);\n", + "print(\"(ii)The minimum load resistance=%.1fk\u03a9.\"%RL_min);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The voltage regulation=66.7%.\n", + "(ii)The minimum load resistance=2.5k\u03a9.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.5 : Page number 445\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VL_1=10.5; #Initial output voltage with load, V\n", + "VL_2=10.0; #Decreased output voltage with additional load, V\n", + "IL_1=1.0; #Initial load current, A\n", + "IL_added=1.0; #Added load current, A\n", + "\n", + "#Calculation\n", + "delta_VL=VL_1-VL_2; #Change in output voltage, V\n", + "delta_IL=IL_added; #Change in load current, A\n", + "\n", + "#(i)\n", + "Zo=delta_VL/delta_IL; #Output impedance of power supply, \u03a9 (OHM's LAW)\n", + "\n", + "#(ii)\n", + "#Since, Output_impedance=change_in_output_voltage/change_in_output_current\n", + "#Zo=(V_NL-VL_1)/delta_IL,\n", + "delta_IL=IL_1; #Change in load current, A\n", + "V_NL=VL_1+(delta_IL*Zo); #Output voltage with no load, V\n", + "\n", + "#Result\n", + "print(\"(i) The output impedance=%.1f\u03a9.\"%Zo);\n", + "print(\"(ii) The output voltage with no-load=%dV.\"%V_NL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output impedance=0.5\u03a9.\n", + "(ii) The output voltage with no-load=11V.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.6 : Page number 446\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Zo=0.01; #Output impedance, \u03a9\n", + "IL_max=1.0; #Maximum output current, A\n", + "IL_min=0.5 #Minimum output current, A\n", + "f=10.0; #Frequency, kHz\n", + "\n", + "#Calculation\n", + "#Since, Zo=delta_VL/delta_IL\n", + "delta_IL=IL_max-IL_min; #Maximum change in output current, A\n", + "delta_VL=(Zo*delta_IL)*1000; #Fluctuations in output voltage, mV\n", + "\n", + "#Result\n", + "print(\"The output voltage will have %dmV peak-to-peak fluctuation at a rate of %dkHz.\"%(delta_VL,f));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output voltage will have 5mV peak-to-peak fluctuation at a rate of 10kHz.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.7 : Page number 446\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "delta_Vout=10.0; #Change in output voltage, \u03bcV\n", + "delta_Vin=5.0; #Change in input voltage, V\n", + "\n", + "#Calculation\n", + "Line_regulation=delta_Vout/delta_Vin; #Line regulation, \u03bcV/V\n", + "\n", + "#Result\n", + "print(\"The line regulation of the voltage regulator=%d\u03bcV/V.\"%Line_regulation);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The line regulation of the voltage regulator=2\u03bcV/V.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.8 : Page number 449-450\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vin=24.0; #Input voltage, V\n", + "Vz=12.0; #Zener voltage, V\n", + "Rs=160.0; #Series resistance, \u03a9\n", + "RL_max=float('inf'); #Maximum load resistance, \u03a9\n", + "RL_min=200.0; #Minimum load resistance, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout=Vz; #Output voltage,(equal to zener regulated voltage), V\n", + "Is=((Vin-Vout)/Rs)*1000; #Current through series resistance, mA\n", + "\n", + "#(ii)\n", + "IL_min=Vout/RL_max; #Minimum load current, A\n", + "IL_max=(Vout/RL_min)*1000; #Maximum load current, mA\n", + "\n", + "#(iii)\n", + "IZ_min=Is-IL_max; #Minimum zener current, mA\n", + "IZ_max=Is-IL_min; #Maximum zener current, mA\n", + "\n", + "#Result\n", + "print(\"(i) The current through the series resistance=%dmA\"%Is);\n", + "print(\"(ii) The minimum and maximum load currents are=%dA and %dmA\"%(IL_min,IL_max));\n", + "print(\"(iii) The minimum and maximum zener currents are=%dmA and %dmA\"%(IZ_min,IZ_max));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The current through the series resistance=75mA\n", + "(ii) The minimum and maximum load currents are=0A and 60mA\n", + "(iii) The minimum and maximum zener currents are=15mA and 75mA\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.9 : Page number 450\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VZ=15.0; #Zener voltage, V\n", + "Vin_min=22.0 #Minimum input voltage, V\n", + "Vin_max=40.0 #Maximum input voltage, V\n", + "Vout=VZ; #Regulated output voltage, V\n", + "IL_max=100.0; #Maximum load current, mA\n", + "IL_min=20.0; #Minimum load current, mA\n", + "\n", + "#Calculation\n", + "RS_max=(Vin_min-Vout)/(IL_max/1000); #Maximum value of series resistance, \u03a9 (OHM'S lAW)\n", + "\n", + "#Result\n", + "print(\"The maximum load resistance to hold the voltage constant=%d\u03a9.\"%RS_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum load resistance to hold the voltage constant=70\u03a9.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.10 : Page number 450-451\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=3.3; #Zener voltage, V\n", + "Iz_min=3.0; #Minimum zener current, mA\n", + "Iz_max=100.0; #Maximum zener current, mA\n", + "RL_max=2.0; #Maximum load resistance, k\u03a9\n", + "RL_min=500.0; #Minimum load resistance, \u03a9\n", + "Vin=20.0; #Input voltage, V\n", + "\n", + "#Calculation\n", + "Rs_min=(Vin-Vz)/(Iz_max/1000); #Minimum series resistance required, \u03a9\n", + "\n", + "#Result\n", + "print(\"The minimum series resistance required to limit the zener current=%.0f\u03a9.\"%Rs_min);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The minimum series resistance required to limit the zener current=167\u03a9.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.11 : Page number 451\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=3.3; #Zener voltage, V\n", + "Iz_min=3.0; #Minimum zener current, mA\n", + "Iz_max=100.0; #Maximum zener current, mA\n", + "RL_max=2.0; #Maximum load resistance, k\u03a9\n", + "RL_min=500.0; #Minimum load resistance, \u03a9\n", + "Vin=20.0; #Input voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "IL_max=(Vz/RL_min)*1000; #Maximum load current, mA\n", + "Rs_max=((Vin-Vz)/(IL_max+Iz_min))*1000; #Maximum series resistance, \u03a9\n", + "\n", + "#Result\n", + "print(\"The maximum allowable value of series resistance=%d\u03a9.\"%Rs_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowable value of series resistance=1739\u03a9.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.12 : Page number 452\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=10.0; #Zener voltage, V\n", + "beta=100.0; #Base current amplification factor\n", + "RL=1000.0; #Load resistance, \u03a9\n", + "VBE=0.5; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "Vout=Vz-VBE; #Output voltage, V\n", + "IL=(Vout/RL)*1000; #Load current, mA\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.1fV.\"%Vout);\n", + "print(\"The load current=%.1fmA\"%IL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output voltage=9.5V.\n", + "The load current=9.5mA\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.3 : Page number 452\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "IC=1.0; #Required current(collector current), A\n", + "Vout=6.0; #Constant output voltage, V\n", + "Vin=10.0; #Supply voltage, V\n", + "beta=50.0; #Base current amplification factor\n", + "VBE=0.5; #Base-emitter voltage, V\n", + "Iz=10.0; #Minimum zener current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IB=(IC/beta)*1000; #Base current, mA\n", + "\n", + "#Since, Vout=Vz-VBE;\n", + "Vz=Vout+VBE; #Zener breakdown voltage, V\n", + "\n", + "#(ii)\n", + "V_Rs=Vin-Vz; #Voltage across series resistance Rs, V\n", + "Rs=(V_Rs/(IB+Iz))*1000; #Series resistance, \u03a9\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The zener breakdown voltage=%.1fV\"%Vz);\n", + "print(\"(ii)The series resistance=%.0f\u03a9.\"%Rs);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The zener breakdown voltage=6.5V\n", + "(ii)The series resistance=117\u03a9.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.14: Page number 452-453\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=12.0; #Zener voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "Vin=20.0; #Input voltage, V\n", + "RS=220.0; #Series resistance, \u03a9\n", + "RL=1.0; #Load resistance, k\u03a9\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout=Vz-VBE; #Output voltage, V\n", + "\n", + "#(ii)\n", + "V_RS=Vin-Vz; #Voltage across series resistance, RS, V\n", + "IR=(V_RS/RS)*1000; #Current through series resistance, mA\n", + "IL=Vout/RL; #Load current, mA\n", + "\n", + "#Since, IL is emitter current and emitter current is approx. equal to collector current,\n", + "IC=IL; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "Iz=IR-IB; #Zener current, mA\n", + "\n", + "#Result\n", + "print(\"(i) The output voltage=%.1fV.\"%Vout);\n", + "print(\"(ii) The zener current=%dmA\"%Iz);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output voltage=11.3V.\n", + "(ii) The zener current=36mA\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.15 : Page number 453-454\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import ceil\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "IL_min=0; #Minimum load current, A\n", + "IL_max=1.0; #Maximum load current, A\n", + "Vin_min=12.0; #Minimum input voltage, V\n", + "Vin_max=18.0; #Maximum input voltage, V\n", + "Iz_min=1.0; #Minimum zener current, mA\n", + "Vz=8.5; #Zener voltage, V\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculation\n", + "IB_max=(IL_max/beta)*1000; #Maximum base current, mA\n", + "I_RS=Iz_min+IB_max; #Current through the series resistance, mA\n", + "RS=((Vin_min-Vz)/I_RS)*1000; #Series resistance, \u03a9\n", + "\n", + "#(ii)\n", + "V_RS_max=Vin_max-Vz; #Maximum voltage across series resistance, V\n", + "P_max_RS=ceil((V_RS_max**2/RS)*1000)/1000; #Maximum power dissipation in series resistance RS, W\n", + "\n", + "#(iii)\n", + "I_RS_max=V_RS_max/floor(RS); #Maximum current through series resistance,mA\n", + "Iz_max=I_RS_max; #Maximum zener current, mA\n", + "P_z_max=Vz*Iz_max; #Maximum power dissipated in zener diode, W\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The series resistance=%d\u03a9.\"%RS);\n", + "print(\"(ii) The maximum power dissipated in series resistance=%.3fW.\"%P_max_RS);\n", + "print(\"(iii)The maximum power dissipated in zener diode=%.3fW.\"%P_z_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The series resistance=166\u03a9.\n", + "(ii) The maximum power dissipated in series resistance=0.542W.\n", + "(iii)The maximum power dissipated in zener diode=0.486W.\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.16 : Page number 456\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=2.0; #Resistor R1, k\u03a9\n", + "R2=1.0; #Resistor R2, k\u03a9\n", + "Vz=6.0; #Zener voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "m=R2/(R1+R2); #Feedback fraction\n", + "A_CL=1/m; #Closed-loop voltage gain\n", + "Vout=A_CL*(Vz+VBE); #Regulated output voltage, V\n", + "\n", + "#Result\n", + "print(\"The regulated output voltage=%.1fV\"%Vout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulated output voltage=20.1V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.17 : Page number 456\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=30.0; #Resistor R1, k\u03a9\n", + "R2=10.0; #Resistor R2, k\u03a9\n", + "\n", + "#Calculation\n", + "m=R2/(R1+R2); #Feedback fraction\n", + "A_CL=1/m; #Closed-loop voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The closed-loop voltage gain=%d.\"%A_CL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The closed-loop voltage gain=4.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.18 : Page number 457\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vin=22.0; #Input voltage, V\n", + "Rs=130.0; #Series resistance, \u03a9\n", + "Vz=8.3; #Zener voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "RL=100.0; #Load resistance, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout=Vz+VBE; #Output voltage, V\n", + "\n", + "#(ii)\n", + "IL=(Vout/RL)*1000; #Load current, mA (OHM's LAW)\n", + "IS=((Vin-Vout)/Rs)*1000; #Current through series resistance, mA (OHM's LAW)\n", + "IC=IS-IL; #Collector current, mA\n", + "\n", + "#Result\n", + "print(\"(i) The regulated output voltage=%dV\"%Vout);\n", + "print(\"(ii) Various currents for the shunt regulator are: IL=%dmA , IS=%dmA and IC=%dmA\"%(IL,IS,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The regulated output voltage=9V\n", + "(ii) Various currents for the shunt regulator are: IL=90mA , IS=100mA and IC=10mA\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.20 : Page number 463\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=240.0; #Resistor R1 of the regulator, \u03a9\n", + "R2=2.4; #Variable resistance R2 of the regulator, k\u03a9\n", + "\n", + "#Calculation\n", + "Vout=1.25*(R2*1000/R1 + 1); #Regulated output voltage, V\n", + "\n", + "#Result\n", + "print(\"The regulated output voltage=%.2fV.\"%Vout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulated output voltage=13.75V.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.21 : Page number 463\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vout_adj=8.0; #Output voltage (adjusted), V\n", + "Vd=40.0; #Input/output differential rating, V\n", + "\n", + "#Calculation\n", + "Vin_max=Vout_adj+Vd; #Maximum allowable input voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum allowable input voltage=%dV.\"%Vin_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowable input voltage=48V.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_5.ipynb new file mode 100644 index 00000000..2c9a49a5 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_5.ipynb @@ -0,0 +1,877 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:33d9a7285654630dd24f2d6229210244e78961e0605c11041ed1b2f130cb19a1" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 17 : REGULATED D.C POWER SUPPLY" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.1 : Page number 444\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_NL=400.0; #Output voltage with no-load, V\n", + "V_FL=300.0; #Output voltage with full-load, V\n", + "\n", + "\n", + "#Calculation\n", + "percentage_voltage_regulation=((V_NL-V_FL)/V_FL)*100; #Percentage of voltage regulation\n", + "\n", + "#Result\n", + "print(\"The percentage of voltage regulation=%.2f%%.\"%percentage_voltage_regulation);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The percentage of voltage regulation=33.33%.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.2 : Page number 444\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_regulation=1.0; #%age voltage regulation\n", + "V_NL=30.0; #Output voltage with no-load,V\n", + "\n", + "#Calculation\n", + "#Since, %age_of_voltage_regulation=((V_NL-V_FL)/V_FL)*100\n", + "V_FL=V_NL/(1+(V_regulation/100)); #Output voltage with full-load, V\n", + "\n", + "#Result\n", + "print(\"The full-load voltage=%.1fV.\"%V_FL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The full-load voltage=29.7V.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.3 : Page number 445\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_NL_A=30.0; #Output voltage of supply A with no-load, V\n", + "V_FL_A=25.0; #Output voltage of supply A with full-load, V\n", + "V_NL_B=30.0; #Output voltage of supply B with no-load, V\n", + "V_FL_B=29.0; #Output voltage of supply B with full-load, V\n", + "\n", + "\n", + "#Calculation\n", + "V_regulation_A=((V_NL_A-V_FL_A)/V_FL_A)*100; #%age of voltage regulation in power supply A\n", + "V_regulation_B=((V_NL_B-V_FL_B)/V_FL_B)*100; #%age of voltage regulation in power supply B\n", + "\n", + "#Result\n", + "if(V_regulation_A<V_regulation_B):\n", + " print(\"Power supply A is better than B.\");\n", + "else :\n", + " print(\"Power supply B is better than A.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power supply B is better than A.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.4 : Page number 445\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_NL=500.0; #Output voltage with no-load, V\n", + "V_FL=300.0; #Output voltage with full-load, V\n", + "I_FL=120.0; #Output current with full-load, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Regulation=((V_NL-V_FL)/V_FL)*100; #Voltage regulation percentage\n", + "\n", + "#(ii)\n", + "RL_min=V_FL/I_FL; #Minimum load resistance, k\u03a9\n", + "\n", + "#Result\n", + "print(\"(i) The voltage regulation=%.1f%%.\"%Regulation);\n", + "print(\"(ii)The minimum load resistance=%.1fk\u03a9.\"%RL_min);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The voltage regulation=66.7%.\n", + "(ii)The minimum load resistance=2.5k\u03a9.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.5 : Page number 445\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VL_1=10.5; #Initial output voltage with load, V\n", + "VL_2=10.0; #Decreased output voltage with additional load, V\n", + "IL_1=1.0; #Initial load current, A\n", + "IL_added=1.0; #Added load current, A\n", + "\n", + "#Calculation\n", + "delta_VL=VL_1-VL_2; #Change in output voltage, V\n", + "delta_IL=IL_added; #Change in load current, A\n", + "\n", + "#(i)\n", + "Zo=delta_VL/delta_IL; #Output impedance of power supply, \u03a9 (OHM's LAW)\n", + "\n", + "#(ii)\n", + "#Since, Output_impedance=change_in_output_voltage/change_in_output_current\n", + "#Zo=(V_NL-VL_1)/delta_IL,\n", + "delta_IL=IL_1; #Change in load current, A\n", + "V_NL=VL_1+(delta_IL*Zo); #Output voltage with no load, V\n", + "\n", + "#Result\n", + "print(\"(i) The output impedance=%.1f\u03a9.\"%Zo);\n", + "print(\"(ii) The output voltage with no-load=%dV.\"%V_NL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output impedance=0.5\u03a9.\n", + "(ii) The output voltage with no-load=11V.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.6 : Page number 446\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Zo=0.01; #Output impedance, \u03a9\n", + "IL_max=1.0; #Maximum output current, A\n", + "IL_min=0.5 #Minimum output current, A\n", + "f=10.0; #Frequency, kHz\n", + "\n", + "#Calculation\n", + "#Since, Zo=delta_VL/delta_IL\n", + "delta_IL=IL_max-IL_min; #Maximum change in output current, A\n", + "delta_VL=(Zo*delta_IL)*1000; #Fluctuations in output voltage, mV\n", + "\n", + "#Result\n", + "print(\"The output voltage will have %dmV peak-to-peak fluctuation at a rate of %dkHz.\"%(delta_VL,f));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output voltage will have 5mV peak-to-peak fluctuation at a rate of 10kHz.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.7 : Page number 446\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "delta_Vout=10.0; #Change in output voltage, \u03bcV\n", + "delta_Vin=5.0; #Change in input voltage, V\n", + "\n", + "#Calculation\n", + "Line_regulation=delta_Vout/delta_Vin; #Line regulation, \u03bcV/V\n", + "\n", + "#Result\n", + "print(\"The line regulation of the voltage regulator=%d\u03bcV/V.\"%Line_regulation);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The line regulation of the voltage regulator=2\u03bcV/V.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.8 : Page number 449-450\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vin=24.0; #Input voltage, V\n", + "Vz=12.0; #Zener voltage, V\n", + "Rs=160.0; #Series resistance, \u03a9\n", + "RL_max=float('inf'); #Maximum load resistance, \u03a9\n", + "RL_min=200.0; #Minimum load resistance, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout=Vz; #Output voltage,(equal to zener regulated voltage), V\n", + "Is=((Vin-Vout)/Rs)*1000; #Current through series resistance, mA\n", + "\n", + "#(ii)\n", + "IL_min=Vout/RL_max; #Minimum load current, A\n", + "IL_max=(Vout/RL_min)*1000; #Maximum load current, mA\n", + "\n", + "#(iii)\n", + "IZ_min=Is-IL_max; #Minimum zener current, mA\n", + "IZ_max=Is-IL_min; #Maximum zener current, mA\n", + "\n", + "#Result\n", + "print(\"(i) The current through the series resistance=%dmA\"%Is);\n", + "print(\"(ii) The minimum and maximum load currents are=%dA and %dmA\"%(IL_min,IL_max));\n", + "print(\"(iii) The minimum and maximum zener currents are=%dmA and %dmA\"%(IZ_min,IZ_max));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The current through the series resistance=75mA\n", + "(ii) The minimum and maximum load currents are=0A and 60mA\n", + "(iii) The minimum and maximum zener currents are=15mA and 75mA\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.9 : Page number 450\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VZ=15.0; #Zener voltage, V\n", + "Vin_min=22.0 #Minimum input voltage, V\n", + "Vin_max=40.0 #Maximum input voltage, V\n", + "Vout=VZ; #Regulated output voltage, V\n", + "IL_max=100.0; #Maximum load current, mA\n", + "IL_min=20.0; #Minimum load current, mA\n", + "\n", + "#Calculation\n", + "RS_max=(Vin_min-Vout)/(IL_max/1000); #Maximum value of series resistance, \u03a9 (OHM'S lAW)\n", + "\n", + "#Result\n", + "print(\"The maximum load resistance to hold the voltage constant=%d\u03a9.\"%RS_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum load resistance to hold the voltage constant=70\u03a9.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.10 : Page number 450-451\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=3.3; #Zener voltage, V\n", + "Iz_min=3.0; #Minimum zener current, mA\n", + "Iz_max=100.0; #Maximum zener current, mA\n", + "RL_max=2.0; #Maximum load resistance, k\u03a9\n", + "RL_min=500.0; #Minimum load resistance, \u03a9\n", + "Vin=20.0; #Input voltage, V\n", + "\n", + "#Calculation\n", + "Rs_min=(Vin-Vz)/(Iz_max/1000); #Minimum series resistance required, \u03a9\n", + "\n", + "#Result\n", + "print(\"The minimum series resistance required to limit the zener current=%.0f\u03a9.\"%Rs_min);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The minimum series resistance required to limit the zener current=167\u03a9.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.11 : Page number 451\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=3.3; #Zener voltage, V\n", + "Iz_min=3.0; #Minimum zener current, mA\n", + "Iz_max=100.0; #Maximum zener current, mA\n", + "RL_max=2.0; #Maximum load resistance, k\u03a9\n", + "RL_min=500.0; #Minimum load resistance, \u03a9\n", + "Vin=20.0; #Input voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "IL_max=(Vz/RL_min)*1000; #Maximum load current, mA\n", + "Rs_max=((Vin-Vz)/(IL_max+Iz_min))*1000; #Maximum series resistance, \u03a9\n", + "\n", + "#Result\n", + "print(\"The maximum allowable value of series resistance=%d\u03a9.\"%Rs_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowable value of series resistance=1739\u03a9.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.12 : Page number 452\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=10.0; #Zener voltage, V\n", + "beta=100.0; #Base current amplification factor\n", + "RL=1000.0; #Load resistance, \u03a9\n", + "VBE=0.5; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "Vout=Vz-VBE; #Output voltage, V\n", + "IL=(Vout/RL)*1000; #Load current, mA\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.1fV.\"%Vout);\n", + "print(\"The load current=%.1fmA\"%IL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output voltage=9.5V.\n", + "The load current=9.5mA\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.3 : Page number 452\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "IC=1.0; #Required current(collector current), A\n", + "Vout=6.0; #Constant output voltage, V\n", + "Vin=10.0; #Supply voltage, V\n", + "beta=50.0; #Base current amplification factor\n", + "VBE=0.5; #Base-emitter voltage, V\n", + "Iz=10.0; #Minimum zener current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IB=(IC/beta)*1000; #Base current, mA\n", + "\n", + "#Since, Vout=Vz-VBE;\n", + "Vz=Vout+VBE; #Zener breakdown voltage, V\n", + "\n", + "#(ii)\n", + "V_Rs=Vin-Vz; #Voltage across series resistance Rs, V\n", + "Rs=(V_Rs/(IB+Iz))*1000; #Series resistance, \u03a9\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The zener breakdown voltage=%.1fV\"%Vz);\n", + "print(\"(ii)The series resistance=%.0f\u03a9.\"%Rs);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The zener breakdown voltage=6.5V\n", + "(ii)The series resistance=117\u03a9.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.14: Page number 452-453\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=12.0; #Zener voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "Vin=20.0; #Input voltage, V\n", + "RS=220.0; #Series resistance, \u03a9\n", + "RL=1.0; #Load resistance, k\u03a9\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout=Vz-VBE; #Output voltage, V\n", + "\n", + "#(ii)\n", + "V_RS=Vin-Vz; #Voltage across series resistance, RS, V\n", + "IR=(V_RS/RS)*1000; #Current through series resistance, mA\n", + "IL=Vout/RL; #Load current, mA\n", + "\n", + "#Since, IL is emitter current and emitter current is approx. equal to collector current,\n", + "IC=IL; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "Iz=IR-IB; #Zener current, mA\n", + "\n", + "#Result\n", + "print(\"(i) The output voltage=%.1fV.\"%Vout);\n", + "print(\"(ii) The zener current=%dmA\"%Iz);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output voltage=11.3V.\n", + "(ii) The zener current=36mA\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.15 : Page number 453-454\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import ceil\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "IL_min=0; #Minimum load current, A\n", + "IL_max=1.0; #Maximum load current, A\n", + "Vin_min=12.0; #Minimum input voltage, V\n", + "Vin_max=18.0; #Maximum input voltage, V\n", + "Iz_min=1.0; #Minimum zener current, mA\n", + "Vz=8.5; #Zener voltage, V\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculation\n", + "IB_max=(IL_max/beta)*1000; #Maximum base current, mA\n", + "I_RS=Iz_min+IB_max; #Current through the series resistance, mA\n", + "RS=((Vin_min-Vz)/I_RS)*1000; #Series resistance, \u03a9\n", + "\n", + "#(ii)\n", + "V_RS_max=Vin_max-Vz; #Maximum voltage across series resistance, V\n", + "P_max_RS=ceil((V_RS_max**2/RS)*1000)/1000; #Maximum power dissipation in series resistance RS, W\n", + "\n", + "#(iii)\n", + "I_RS_max=V_RS_max/floor(RS); #Maximum current through series resistance,mA\n", + "Iz_max=I_RS_max; #Maximum zener current, mA\n", + "P_z_max=Vz*Iz_max; #Maximum power dissipated in zener diode, W\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The series resistance=%d\u03a9.\"%RS);\n", + "print(\"(ii) The maximum power dissipated in series resistance=%.3fW.\"%P_max_RS);\n", + "print(\"(iii)The maximum power dissipated in zener diode=%.3fW.\"%P_z_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The series resistance=166\u03a9.\n", + "(ii) The maximum power dissipated in series resistance=0.542W.\n", + "(iii)The maximum power dissipated in zener diode=0.486W.\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.16 : Page number 456\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=2.0; #Resistor R1, k\u03a9\n", + "R2=1.0; #Resistor R2, k\u03a9\n", + "Vz=6.0; #Zener voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "m=R2/(R1+R2); #Feedback fraction\n", + "A_CL=1/m; #Closed-loop voltage gain\n", + "Vout=A_CL*(Vz+VBE); #Regulated output voltage, V\n", + "\n", + "#Result\n", + "print(\"The regulated output voltage=%.1fV\"%Vout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulated output voltage=20.1V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.17 : Page number 456\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=30.0; #Resistor R1, k\u03a9\n", + "R2=10.0; #Resistor R2, k\u03a9\n", + "\n", + "#Calculation\n", + "m=R2/(R1+R2); #Feedback fraction\n", + "A_CL=1/m; #Closed-loop voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The closed-loop voltage gain=%d.\"%A_CL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The closed-loop voltage gain=4.\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.18 : Page number 457\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vin=22.0; #Input voltage, V\n", + "Rs=130.0; #Series resistance, \u03a9\n", + "Vz=8.3; #Zener voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "RL=100.0; #Load resistance, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout=Vz+VBE; #Output voltage, V\n", + "\n", + "#(ii)\n", + "IL=(Vout/RL)*1000; #Load current, mA (OHM's LAW)\n", + "IS=((Vin-Vout)/Rs)*1000; #Current through series resistance, mA (OHM's LAW)\n", + "IC=IS-IL; #Collector current, mA\n", + "\n", + "#Result\n", + "print(\"(i) The regulated output voltage=%dV\"%Vout);\n", + "print(\"(ii) Various currents for the shunt regulator are: IL=%dmA , IS=%dmA and IC=%dmA\"%(IL,IS,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The regulated output voltage=9V\n", + "(ii) Various currents for the shunt regulator are: IL=90mA , IS=100mA and IC=10mA\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.20 : Page number 463\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=240.0; #Resistor R1 of the regulator, \u03a9\n", + "R2=2.4; #Variable resistance R2 of the regulator, k\u03a9\n", + "\n", + "#Calculation\n", + "Vout=1.25*(R2*1000/R1 + 1); #Regulated output voltage, V\n", + "\n", + "#Result\n", + "print(\"The regulated output voltage=%.2fV.\"%Vout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulated output voltage=13.75V.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 17.21 : Page number 463\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vout_adj=8.0; #Output voltage (adjusted), V\n", + "Vd=40.0; #Input/output differential rating, V\n", + "\n", + "#Calculation\n", + "Vin_max=Vout_adj+Vd; #Maximum allowable input voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum allowable input voltage=%dV.\"%Vin_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowable input voltage=48V.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_4.ipynb new file mode 100644 index 00000000..5cc7f4af --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_4.ipynb @@ -0,0 +1,804 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 18 : SOLID-STATE SWITCHING CIRCUITS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.1 : Page number 472" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Input voltage required to saturate the transistor switch=5.4V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10; #Supply voltage, V\n", + "RC=1.0; #Collector resistor, kΩ\n", + "RB=47.0; #Base resistor, kΩ\n", + "beta=100.0; #Base current amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "IC_sat=VCC/RC; #Collector saturation current, mA\n", + "IB=IC_sat/beta; #Base current, mA\n", + "V=IB*RB+VBE; #Input voltage, V\n", + "\n", + "#Result\n", + "print(\"Input voltage required to saturate the transistor switch=%.1fV.\"%V);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.2 : Page number 475" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The collector emitter voltage at cut-off=9.99V.\n", + "(ii) The collector emitter voltage at saturation=0.7V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10; #Supply voltage, V\n", + "RC=1.0; #Collector resistor, kΩ\n", + "ICBO=10.0; #Collector leakage current, μA\n", + "V_knee=0.7; #Knee voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IC=ICBO; #Collector current, μA\n", + "VCE=VCC-(ICBO/1000)*RC; #Collector-emitter voltage, V\n", + "\n", + "print(\"(i) The collector emitter voltage at cut-off=%.2fV.\"%VCE);\n", + "\n", + "#(ii)\n", + "#Since, saturation current=IC_sat=(VCC-V_knee)/RC; \n", + "VCE=V_knee; #Collector-emitter voltage, V\n", + "\n", + "print(\"(ii) The collector emitter voltage at saturation=%.1fV.\"%VCE);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.3 : Page number 475-476" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Minimum β=19.4.\n", + "(ii) The transistor will not be saturated.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10; #Supply voltage, V\n", + "RC=1; #Collector resistor, kΩ\n", + "VBB=2; #Supply voltage to base, V\n", + "RB=2.7; #Base resistor, kΩ\n", + "V_knee=0.7; #Knee voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IB=round((VBB-VBE)/RB,2); #Base current, mA\n", + "Ic_sat=(VCC-V_knee)/RC; #Collector saturation current, mA\n", + "beta_min=Ic_sat/IB; #Minimum value of base current amplification factor\n", + "print(\"(i) Minimum β=%.1f.\"%beta_min);\n", + "\n", + "#(ii)\n", + "VBB=1; #Supply voltage to base(changed), V\n", + "beta=50; #Base current amplification factor\n", + "IB=(VBB-VBE)/RB; #Base current, mA\n", + "IC=beta*IB; #Collector current,mA\n", + "\n", + "if(IC<Ic_sat):\n", + " print(\"(ii) The transistor will not be saturated.\");\n", + "else:\n", + " print(\"(ii) The transistor will be saturated.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.4 : Page number 480" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Time period of the square wave=0.14 m sec.\n", + "Time frequency of the square wave=7 kHz.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R2=10; #Resistor R2, kΩ\n", + "R3=10; #Resistor R3, kΩ\n", + "C1=0.01; #Capacitor of 1st transistor, μF\n", + "C2=0.01; #Capacitor of 2nd transistor, μF\n", + "\n", + "#Calculation\n", + "R=R2*1000; #Resistance, Ω\n", + "C=C1*10**-6; #Capacitance, F\n", + "T=round((1.4*R*C)*1000,2); #Time period,m sec\n", + "f=1/(T*10**-3); #Frequency, Hz\n", + "f=f/1000; #Frequency, kHz\n", + "\n", + "#Result\n", + "print(\"Time period of the square wave=%.2f m sec.\"%T);\n", + "print(\"Time frequency of the square wave=%d kHz.\"%f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.6 : Page number 485" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output voltage=0.55V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=10; #Resistance in differentiating circuit, kΩ\n", + "C=2.2; #Capacitance in differentiating circuit, μF\n", + "d_ei=10; #Change in input voltage, V\n", + "dt=0.4; #Time in which change occurs, s\n", + "\n", + "#Calculation\n", + "eo=R*1000*C*10**-6*d_ei/dt\n", + "\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.2fV.\"%eo);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.7 : Page number 489" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The peak output voltage=11.3V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vin_peak=12; #Peak value of input voltage, V\n", + "V_D=0.7; #Forward bias voltage of diode, V\n", + "\n", + "#Calculation\n", + "Vout_peak=Vin_peak-V_D; #Peak value of output voltage, V\n", + "\n", + "#Result\n", + "print(\"The peak output voltage=%.1fV.\"%Vout_peak);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.8 : Page number 489" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The peak output voltage=8V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vin_peak=10; #Peak value of input voltage, V\n", + "R=1; #Input resistor, kΩ\n", + "RL=4; #Load resistor, kΩ\n", + "\n", + "#Calculation\n", + "Vout_peak=(Vin_peak*RL)/(R+RL); #Peak output voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The peak output voltage=%dV.\"%Vout_peak);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.9 : Page number 490" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The diode will be forward biased for the negative half-cycle of input signal.\n", + "The output voltage=-0.7V.\n", + "The voltage across R=-9.3V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vin=-10; #Input voltage, V\n", + "V_D=0.7; #Forward bias voltage of the diode, V\n", + "R=1; #Resistance, kΩ\n", + "\n", + "\n", + "print(\"The diode will be forward biased for the negative half-cycle of input signal.\");\n", + "Vout=-V_D; #Output voltage, V\n", + "V_R=Vin-(-V_D); #Voltage across resistor R, V\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.1fV.\"%Vout);\n", + "print(\"The voltage across R=%.1fV.\"%V_R);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.10 : Page number 490-491" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "During the positive half cycle, the diode is foward biased and can be replaced by battery of 0.7V.\n", + "Therefore, Vout=0.7V.\n", + "During the negative half cycle, the diode is reverse biased and hence behaves as an open circuit.\n", + "Therefore, Vout_peak=-8.33V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_F=0.7; #Forward bias voltage of diode, V\n", + "R=200.0; #Input resistor of the circuit, Ω\n", + "RL=1.0; #Load resistor, kΩ\n", + "Vin_peak=10.0; #Peak input voltage, V\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "#Positive half-cycle:\n", + "print(\"During the positive half cycle, the diode is foward biased and can be replaced by battery of %.1fV.\"%V_F);\n", + "print(\"Therefore, Vout=%.1fV.\"%V_F);\n", + "\n", + "#Negative half-cycle:\n", + "print(\"During the negative half cycle, the diode is reverse biased and hence behaves as an open circuit.\");\n", + "Vout_peak=RL*(-Vin_peak)/(R/1000+RL);\n", + "print(\"Therefore, Vout_peak=%.2fV.\"%Vout_peak);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.12 : Page number 491" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XnclXP+x/HXu01lSdlCI1nKTph+CN2UVBRjlHUkY4Yx\nBmMZMUOZsWUZ+zJjZC9kq6xF3WGILCXSYqtIkUKqoeXz++N73Rx3d93bOed7rnN/no/Hedznus51\nrutzn/vc53O+u8wM55xzbk3qxQ7AOedc4fNk4ZxzrlKe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AbCOptaRGwNHAiMgxVYX4+TfDEcCJyf2+wPDyTyggg4EpZnZDxr5UxC9pw7KeHpKaAAcB75OS\n+M3sQjPbwsy2IrzXx5jZb4CRpCB+SU2TUimS1ibUm08mPa//PGC2pLbJrs7Ae6Qk/gzHEL5slKle\n/LEbXGrRUNONMMJ7BtA/djxViHcIMAf4HpgF9AOaA88nv8coYP3Yca4m9o7ACmAi8DbwVvL6t0hJ\n/DsnMU8E3gH+muxPRfzlfpdO/NTAnYr4CXX+Ze+dyWX/r2mJP4l1V8KX1InAY0CzlMXfFPgSWDdj\nX7Xi90F5zjnnKpXWaijnnHN55MnCOedcpTxZOOecq5QnC+ecc5XyZOGcc65Sniycc85VypOFc9WU\nTFf9h9hxOJdPniycq77mwGlVOVDS+jmOxbm88GThXPVdAWyVzEA6qJJjn5D0hKSeybryzqWSj+B2\nrpoktQZGmtkuVTx+f+C3hHVYhgF3mdmHOQzRuazzkoVzOWZmL5pZX2DPZNdUSb+KGZNz1dUgdgDO\npZmkS4FDCGsB7Am8mdwfYWYDk2MaA78CTiJMQPcnwqp3zqWGV0M5V02SWhDWBWhThWMHAUcCTwF3\nmtmkXMfnXC54snCuBiTdD+xCWAv+/DUc142w/sQPeQvOuRzwZOGcc65S3sDtnHOuUp4snHPOVcqT\nhXPOuUp5snDOOVcpTxbOOecq5cnCOedcpTxZOOecq5QnC+ecc5X6f0ALRbyoguMHAAAAAElFTkSu\nQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23cd37e80>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "from math import sin\n", + "from math import pi\n", + "\n", + "V_biasing=10.0; #Biasing voltage, V\n", + "vin=[30*sin(t/10.0) for t in range(0,(int)(2*pi*10))] #input voltage waveform, V\n", + "\n", + "plt.subplot(211)\n", + "plt.plot(vin);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in vin[:]:\n", + " if(v-V_biasing)>0 : #Diode is forward biased.\n", + " vout.append(v-V_biasing);\n", + " else: #Diode is reverse biased.\n", + " vout.append(0);\n", + "\n", + "plt.subplot(212) \n", + "plt.plot(vout);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.13 : Page number 492" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAEZCAYAAACAZ8KHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm8XVV99/HPF0IAgYQEhACBADLbIliVUYgMJWAJqAhB\nKpP1sUXRhzoAahtAWwLiQxHb51UVqAwJY4WgMkUIKINgIWEKSZQpEAmGGdQQkl//WOuSzeVO+9x7\n7t778n2/XveVs4dzzjc3ufd31lp7r6WIwMzMrK9WqjqAmZk1iwuHmZmV4sJhZmaluHCYmVkpLhxm\nZlaKC4eZmZXiwmHWEJJ2lTRP0suSJladx965XDis1iQ9JmmvQXifyZIubPf79NNpwPciYkRETK86\njL1zuXCYNcc44OFWnihp5QHOYu9gLhzWGJKOkvRLSd+R9Lyk30maUDh+i6R/lfRrSS9J+omktfOx\nPSUt6PR6j0naS9J+wNeBwyS9Ium+Lt77aEnTC9vzJV1W2H5S0vb58b/l7Zck3SNp97x/A0l/7MiU\n9+0o6Q8dv9glHSvpYUnPSbpO0sZ5/2+BzYCf5q6qVfLrXZPPnSfp7wqvO1nSFZIukvQicFTed3ne\n97Kk2ZK2lHSSpEWSnpC0T7/+kewdwYXDmuZDwBxgHeA7wHmdjn8aOBoYAywDzi0c63J+nYi4AfhX\n4LKIWCsiduzitFuBNwsAsAqwS97eH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ZmpbhwmJlZKS4cZmZWiguHmZmV4sJhZmal/C+3Ngq+\n5CKPkAAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23dcfd668>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "Vin=[]; #Input voltage waveform, V\n", + "t1=50; #Assumed time interval, s\n", + "t2=100; #Assumed time interval, s\n", + "V_biasing=10; #Biasing voltage, V\n", + "for t in range(0,151): #time interval from 0s to 151s\n", + " if(t<=t1): \n", + " Vin.append(15); #Value of input voltage for time 0 to t1 seconds \n", + " elif(t<=t2 and t>t1):\n", + " Vin.append(-30); #Value of input voltage for time t1 to t2 seconds\n", + " else :\n", + " Vin.append(15); #Value of input voltage after t2 seconds\n", + "\n", + "plt.subplot(211)\n", + "plt.plot(Vin);\n", + "plt.xlim([0,160])\n", + "plt.ylim([-35,20])\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=0):\n", + " vout.append(0); #Diode reverse biased\n", + " else:\n", + " vout.append(v-V_biasing); #Diode forward biased\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout);\n", + "plt.xlim(0,160)\n", + "plt.ylim(-35,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.14 : Page number 492-493" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm4neO9//H3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SDpU8C8XMvqrQo9qO9DtiKwE/DfEbETsIjUBDHUfibWJn2bHg1sRKphfIEhdh96\n0a/P3a7B4llg04rlUXndkJCr2NcAl0TEDXn1PEnr5+0bAC8WVb4W2Q04UNIs4ApgL0mXAC8MsfsA\nqWY9NyL+mpevJQWPofYzsQ8wKyJejoilwHXARxl696FLT5/7WWCTiv369PezXYPFA8AWkkZLGg4c\nBkwquEytdAEwNSLOqlg3CTgyvz8CuKH7QYNJRHw/IjaNiDGk//87I+JLwI0MofsAkJsa5kraKq/a\nG3icIfYzQWp+2kXSyrnDdm/S4Iehch/Ee2vZPX3uScBheaTY5sAWwF9qnrxd51nkGeBnkQLe+RHx\ns4KL1BKSdgPuAR4lVSsD+D7pP/tq0jeGOcChEfFqUeVsJUl7AsdHxIGS1mEI3gdJ/0jq6P8AMAv4\nCqmzd0jdC0njSV8eFgMPAf8GrMEgvw+SLgc6gHWBecB44HpgIlU+t6STgK+R7tNxEXFbzWu0a7Aw\nM7PWaddmKDMzayEHCzMzq8nBwszManKwMDOzmhwszMysJgcLMzOrycHCrE45Hfj/LbocZq3kYGFW\nvxHA0X3ZMecrMmt7DhZm9TsVGJMzvJ5WY9/rJV0v6QBJK7SicGbN4BncZnWSNBq4MT9gpy/770FK\nrbALKf3ChRHxZBOLaDbgXLMwa7KIuCcijgD+Oa96QtLBRZbJrF4rFl0As3Ym6cfAp0gJHf8ZeDC/\nnxQRE/I+KwMHA18F1iI9+vP2Ispr1ig3Q5nVKWe2fTAiNu/DvqcBnwF+R8qO/Eizy2fWDA4WZg2Q\ndCmwPXBzRJzQy35jSc/aeKdlhTNrAgcLMzOryR3cZmZWk4OFmZnV5GBhZmY1OViYmVlNDhZmZlaT\ng4WZmdXkYGFmZjU5WJiZWU3/Hz1pk1JFdhIyAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23c928d30>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "Vin=[]; #Input voltage waveform, V\n", + "t1=50; #Assumed time interval, s\n", + "t2=100; #Assumed time interval, s\n", + "V_biasing=5; #Biasing voltage, V\n", + "for t in range(0,151): #time interval from 0s to 151s\n", + " if(t<=t1): \n", + " Vin.append(10); #Value of input voltage for time 0 to t1 seconds \n", + " elif(t<=t2 and t>t1):\n", + " Vin.append(-10); #Value of input voltage for time t1 to t2 seconds\n", + " else :\n", + " Vin.append(0);\n", + "\n", + "plt.subplot(211) \n", + "plt.plot(Vin);\n", + "plt.xlim(0,101)\n", + "plt.ylim(-20,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=0):\n", + " vout.append(v); #Diode reverse biased\n", + " else:\n", + " vout.append(v-V_biasing); #Diode forward biased\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout);\n", + "plt.xlim(0,101)\n", + "plt.ylim(-20,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.15 : Page number 493" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEZCAYAAACNebLAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmUXHWd9/H3JwRkSUhYwxII+zqDwDODIIy0LBpAEkRE\n4gKIOpxRRh4BH0CdSVCPEkUURY6igIhABBwhIEhA0qAjIsMiINkUyE6ULUBAJwnf54/f7VA0t7ur\nl6p7q+7ndU6frrvUre8vXalv/dariMDMzKy7YUUHYGZm5eQEYWZmuZwgzMwslxOEmZnlcoIwM7N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NBkjQOuDm74U0957+DtITC/qRlFq6IiD83MESzAXENwqzJIuKeiDgJ+Kds12xJ7y0yJrM8\nw4sOwKydSPoycBRpMcV/Ah7IHk+PiCnZOesC7wVOAUaRbrl5RxHxmvXGTUxmg5StMPtARGxfx7lT\ngeOAX5BWHv5Do+MzGygnCLMhIOknwF7AbRFxdi/njSfd2+J/mxac2QA5QZiZWS53UpuZWS4nCDMz\ny+UEYWZmuZwgzMwslxOEmZnlcoIwM7NcThBmZpbLCcLMzHL9f91ybafzZ7MxAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23cd370b8>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "Vin=[]; #Input voltage waveform, V\n", + "t1=50; #Assumed time interval, s\n", + "t2=100; #Assumed time interval, s\n", + "V_D1=0.6; #Forward Biasing voltage of the 1st diode, V\n", + "V_D2=0.6; #Forward Biasing voltage of the 2nd diode, V\n", + "for t in range(0,151): #time interval from 0s to 151s\n", + " if(t<=t1): \n", + " Vin.append(10); #Value of input voltage for time 0 to t1 seconds \n", + " elif(t<=t2 and t>t1):\n", + " Vin.append(-10); #Value of input voltage for time t1 to t2 seconds\n", + " else :\n", + " Vin.append(0);\n", + "\n", + "plt.subplot(211);\n", + "plt.plot(Vin);\n", + "plt.xlim(0,110)\n", + "plt.ylim(-20,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=0):\n", + " vout.append(-V_D1); #Diode D1 forward biased, \n", + " else:\n", + " vout.append(V_D2); #Diode D2 forward biased\n", + "\n", + "plt.subplot(212) \n", + "plt.plot(vout);\n", + "plt.xlim(0,110)\n", + "plt.ylim(-1,1)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.16 : Page number 493-494" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm8lnP+x/HXu1VZUqIQYaxjRIwmQlFa7AxZfyJ+Y8Yg\nhOydxpox9uU3Q0yikK0saZEThmRpo5S1ZVJURAtaPr8/vtfhdrrPcp9z7nNd1zmf5+NxHt33dd/X\ndX+6O92f+7t9vjIznHPOudLUiTsA55xzyefJwjnnXJk8WTjnnCuTJwvnnHNl8mThnHOuTJ4snHPO\nlcmThXMpIWl/SbMlfSfpqLjjcbWLJwuXaJI+l3RINbxOf0mP5Pt1KulvwF1mtomZjYw7GFe7eLJw\nLj1aAzMqcqKkulUci6tlPFm41JDUS9Lrkv4uaamkTyV1z3j8VUk3Snpb0jJJz0raNHqso6R5xa73\nuaRDJHUDrgROlPS9pMlZXvsMSSMz7n8s6YmM+3MltYlu3xHdXybpHUkHRMe3lLSyKKboWFtJXxd9\nmEvqLWmGpCWSRknaJjr+CbA98ELUDVU/ut6I6LmzJZ2dcd3+koZLGiLpW6BXdOzJ6Nh3kqZK2knS\n5ZIWSZojqUul/pFcjeXJwqVNO2AmsBnwd2BQscf/BzgDaAmsBe7OeCxrbRszGw3cCDxhZhubWdss\nT5sA/PyhD9QH9ovu7wBsaGbToudOAtoATYGhwHBJDczsS+BN4I8Z1z0ZGG5mayUdDVwOHANsDrwO\nPB7FuCMwDzg86oZaDTwBzI3+ricAN0rqlHHto4AnzWxT4LHo2BHAYGBTYAowGhCwFXAd8K9s75Fz\nnixc2swxs4csFDUbDGwpaYuMx4eY2UwzWwVcA5wgSZV9UTP7HPhe0l7AQYQP2QWSdo7uv57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LGVPavSIxpTRY/lwKR1IBQCmRk\nzDFlEr/+hjkSOCO63QsYUfyEGDwEzDCzOzOOJSpOSc2LZmlIagQcCswkYXGa2ZVmtq2Z7UD4XRxv\nZv8DPE+C4pTUOGpNImlDQj/7dJL3fi4C5knaOTrUGfiQhMWZ4WTCl4QiSYpzLtBe0gaSRHgvZ1CR\nGOMeGKrEwE13YBbwMXB53PFkxDUUWAD8GP1DnUkYXBoXxTsG2DTmGDsAa4EpwGTg/ej9bJawOPeI\nYpsCTAOuio4nKs5iMXfklwHuRMVJGAso+jefXvT/JmlxRjHtSfhSOAV4BmiS0DgbA18DG2ccS1Sc\nQH/Cl6xpwGCgfkVi9HIfzjnnypTWbijnnHPVyJOFc865MnmycM45VyZPFs4558rkycI551yZPFk4\n55wrkycL53IUlc/+S9xxOFedPFk4l7umwLnleWJUm8e51PNk4VzubgJ2iCqiDizjuc9Jek7SkZLq\nVkdwzuWDr+B2LkeSWgPPW9hMpjzPPwg4i7APy3DgYTP7NI8hOlflvGXhXJ6Z2Wtm1gv4fXToI0nH\nxhmTc7mqF3cAzqWZpOuBwwn7AfweeC+6PdLMCqLnbAAcC/QmFMQ7n7CrnnOp4d1QzuVIUjPC/gXb\nl+O5A4HjgReBQWY2Nd/xOZcPniycqwBJjwJtCHvB9yvled0J+1v8VG3BOZcHniycc86VyQe4nXPO\nlcmThXPOuTJ5snDOOVcmTxbOOefK5MnCOedcmTxZOOecK5MnC+ecc2XyZOGcc65M/w+srHpey0WF\nTQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23cac80f0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "from math import sin\n", + "from math import pi\n", + "\n", + "VZ=20; #Assumed zener voltage, V\n", + "VF=0.7; #Assumed forward biasing voltage of the zener diode, V\n", + "Vin=[]; #Input voltage waveform, V\n", + "for t in range(0,(int)(2*pi*10)): #time interval from 0s to 151s\n", + " Vin.append(30*sin(t/10.0));\n", + "\n", + "plt.subplot(211)\n", + "plt.plot(Vin);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=-VF):\n", + " vout.append(-VF); #Zener diode forward biased, \n", + " elif(v>=VZ):\n", + " vout.append(VZ); #Input voltage exceeds zener voltage\n", + " else:\n", + " vout.append(v); #Zener diode reverse biased\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout);\n", + "plt.xlim([0,80])\n", + "plt.ylim([-1,40])\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.17 : Page number 494" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XecVPX1//HXmypYsSKixC6aoGKCJlhQkaaCGkFMjCDx\nl29iosYWu2CiiVhijC3RWBGIoFGwIEWKDewoCgKigogSESsQpZzfH+eujuvC1tl77+55Ph7zYO6d\ndpjdnTOfdj4yM0IIIYR1aZB2ACGEELIvkkUIIYRyRbIIIYRQrkgWIYQQyhXJIoQQQrkiWYQQQihX\nJIsQckLSTyTNkfSZpJ5pxxPql0gWIdMkvS3pkFp4nYGS7i7261TTH4G/m9lGZjY67WBC/RLJIoT8\naAPMrMoDJTWs4VhCPRPJIuSGpH6SnpR0laSlkuZJ6lZw+yRJf5b0rKRPJT0gaZPktoMkvVvq+d6W\ndIikrsAFwHGSPpf0chmv3V/S6ILjuZLuLTheIKldcv1vyfGnkp6XtH9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wH\n2DijcTYHPgQ2LDiXqTiBgfiXrFeBu4DGVYkxFuWFEEIoV167oUIIIdSiSBYhhBDKFckihBBCuSJZ\nhBBCKFckixBCCOWKZBFCCKFckSxCqKSkfPZv0o4jhNoUySKEymsBnFKROya1eULIvUgWIVTeX4Ad\nkoqog8u574OSHpR0pKSGtRFcCMUQK7hDqCRJbYCHzDeTqcj9DwR+ie/DMhK4w8zmFTHEEGpctCxC\nKDIze8LM+gE/TE69IenoNGMKobIapR1ACHkm6TLgcHw/gB8CLybXR5vZoOQ+6wFHAwPwgnin4rvq\nhZAb0Q0VQiVJ2hTfv2D7Ctx3MHAs8Ahwm5m9Uuz4QiiGSBYhVIGke4B2+F7w567jft3w/S2+qrXg\nQiiCSBYhhBDKFQPcIYQQyhXJIoQQQrkiWYQQQihXJIsQQgjlimQRQgihXJEsQgghlCuSRQghhHJF\nsgghhFCu/w+ip4Q9s46W/wAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23c83bc50>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "from math import sin\n", + "from math import pi\n", + "\n", + "VZ1=20; #Assumed zener voltage, V\n", + "VF1=0.7; #Assumed forward biasing voltage of the zener diode, V\n", + "VZ2=20; #Assumed zener voltage, V\n", + "VF2=0.7; #Assumed forward biasing voltage of the zener diode, V\n", + "Vin=[]; #Input voltage waveform, V\n", + "for t in range(0,(int)(2*pi*10)): #time interval from 0s to 151s\n", + " Vin.append(30*sin(t/10.0));\n", + " \n", + "plt.subplot(211)\n", + "plt.plot(Vin);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=-(VZ1+VF2)):\n", + " vout.append(-(VZ1+VF2)); #Zener diode forward biased, \n", + " elif(v>=VZ2+VF1):\n", + " vout.append(VZ2+VF1); #Input voltage exceeds zener voltage\n", + " else:\n", + " vout.append(v); #Zener diode reverse biased\n", + "plt.subplot(212)\n", + "plt.plot(vout); \n", + "plt.xlim([0,80])\n", + "plt.ylim([-40,40])\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_5.ipynb new file mode 100644 index 00000000..5cc7f4af --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_5.ipynb @@ -0,0 +1,804 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 18 : SOLID-STATE SWITCHING CIRCUITS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.1 : Page number 472" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Input voltage required to saturate the transistor switch=5.4V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10; #Supply voltage, V\n", + "RC=1.0; #Collector resistor, kΩ\n", + "RB=47.0; #Base resistor, kΩ\n", + "beta=100.0; #Base current amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "IC_sat=VCC/RC; #Collector saturation current, mA\n", + "IB=IC_sat/beta; #Base current, mA\n", + "V=IB*RB+VBE; #Input voltage, V\n", + "\n", + "#Result\n", + "print(\"Input voltage required to saturate the transistor switch=%.1fV.\"%V);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.2 : Page number 475" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The collector emitter voltage at cut-off=9.99V.\n", + "(ii) The collector emitter voltage at saturation=0.7V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10; #Supply voltage, V\n", + "RC=1.0; #Collector resistor, kΩ\n", + "ICBO=10.0; #Collector leakage current, μA\n", + "V_knee=0.7; #Knee voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IC=ICBO; #Collector current, μA\n", + "VCE=VCC-(ICBO/1000)*RC; #Collector-emitter voltage, V\n", + "\n", + "print(\"(i) The collector emitter voltage at cut-off=%.2fV.\"%VCE);\n", + "\n", + "#(ii)\n", + "#Since, saturation current=IC_sat=(VCC-V_knee)/RC; \n", + "VCE=V_knee; #Collector-emitter voltage, V\n", + "\n", + "print(\"(ii) The collector emitter voltage at saturation=%.1fV.\"%VCE);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.3 : Page number 475-476" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Minimum β=19.4.\n", + "(ii) The transistor will not be saturated.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=10; #Supply voltage, V\n", + "RC=1; #Collector resistor, kΩ\n", + "VBB=2; #Supply voltage to base, V\n", + "RB=2.7; #Base resistor, kΩ\n", + "V_knee=0.7; #Knee voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IB=round((VBB-VBE)/RB,2); #Base current, mA\n", + "Ic_sat=(VCC-V_knee)/RC; #Collector saturation current, mA\n", + "beta_min=Ic_sat/IB; #Minimum value of base current amplification factor\n", + "print(\"(i) Minimum β=%.1f.\"%beta_min);\n", + "\n", + "#(ii)\n", + "VBB=1; #Supply voltage to base(changed), V\n", + "beta=50; #Base current amplification factor\n", + "IB=(VBB-VBE)/RB; #Base current, mA\n", + "IC=beta*IB; #Collector current,mA\n", + "\n", + "if(IC<Ic_sat):\n", + " print(\"(ii) The transistor will not be saturated.\");\n", + "else:\n", + " print(\"(ii) The transistor will be saturated.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.4 : Page number 480" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Time period of the square wave=0.14 m sec.\n", + "Time frequency of the square wave=7 kHz.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R2=10; #Resistor R2, kΩ\n", + "R3=10; #Resistor R3, kΩ\n", + "C1=0.01; #Capacitor of 1st transistor, μF\n", + "C2=0.01; #Capacitor of 2nd transistor, μF\n", + "\n", + "#Calculation\n", + "R=R2*1000; #Resistance, Ω\n", + "C=C1*10**-6; #Capacitance, F\n", + "T=round((1.4*R*C)*1000,2); #Time period,m sec\n", + "f=1/(T*10**-3); #Frequency, Hz\n", + "f=f/1000; #Frequency, kHz\n", + "\n", + "#Result\n", + "print(\"Time period of the square wave=%.2f m sec.\"%T);\n", + "print(\"Time frequency of the square wave=%d kHz.\"%f);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.6 : Page number 485" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output voltage=0.55V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=10; #Resistance in differentiating circuit, kΩ\n", + "C=2.2; #Capacitance in differentiating circuit, μF\n", + "d_ei=10; #Change in input voltage, V\n", + "dt=0.4; #Time in which change occurs, s\n", + "\n", + "#Calculation\n", + "eo=R*1000*C*10**-6*d_ei/dt\n", + "\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.2fV.\"%eo);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.7 : Page number 489" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The peak output voltage=11.3V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vin_peak=12; #Peak value of input voltage, V\n", + "V_D=0.7; #Forward bias voltage of diode, V\n", + "\n", + "#Calculation\n", + "Vout_peak=Vin_peak-V_D; #Peak value of output voltage, V\n", + "\n", + "#Result\n", + "print(\"The peak output voltage=%.1fV.\"%Vout_peak);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.8 : Page number 489" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The peak output voltage=8V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vin_peak=10; #Peak value of input voltage, V\n", + "R=1; #Input resistor, kΩ\n", + "RL=4; #Load resistor, kΩ\n", + "\n", + "#Calculation\n", + "Vout_peak=(Vin_peak*RL)/(R+RL); #Peak output voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The peak output voltage=%dV.\"%Vout_peak);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.9 : Page number 490" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The diode will be forward biased for the negative half-cycle of input signal.\n", + "The output voltage=-0.7V.\n", + "The voltage across R=-9.3V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Vin=-10; #Input voltage, V\n", + "V_D=0.7; #Forward bias voltage of the diode, V\n", + "R=1; #Resistance, kΩ\n", + "\n", + "\n", + "print(\"The diode will be forward biased for the negative half-cycle of input signal.\");\n", + "Vout=-V_D; #Output voltage, V\n", + "V_R=Vin-(-V_D); #Voltage across resistor R, V\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.1fV.\"%Vout);\n", + "print(\"The voltage across R=%.1fV.\"%V_R);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.10 : Page number 490-491" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "During the positive half cycle, the diode is foward biased and can be replaced by battery of 0.7V.\n", + "Therefore, Vout=0.7V.\n", + "During the negative half cycle, the diode is reverse biased and hence behaves as an open circuit.\n", + "Therefore, Vout_peak=-8.33V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_F=0.7; #Forward bias voltage of diode, V\n", + "R=200.0; #Input resistor of the circuit, Ω\n", + "RL=1.0; #Load resistor, kΩ\n", + "Vin_peak=10.0; #Peak input voltage, V\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "#Positive half-cycle:\n", + "print(\"During the positive half cycle, the diode is foward biased and can be replaced by battery of %.1fV.\"%V_F);\n", + "print(\"Therefore, Vout=%.1fV.\"%V_F);\n", + "\n", + "#Negative half-cycle:\n", + "print(\"During the negative half cycle, the diode is reverse biased and hence behaves as an open circuit.\");\n", + "Vout_peak=RL*(-Vin_peak)/(R/1000+RL);\n", + "print(\"Therefore, Vout_peak=%.2fV.\"%Vout_peak);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.12 : Page number 491" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XnclXP+x/HXu01lSdlCI1nKTph+CN2UVBRjlHUkY4Yx\nBmMZMUOZsWUZ+zJjZC9kq6xF3WGILCXSYqtIkUKqoeXz++N73Rx3d93bOed7rnN/no/Hedznus51\nrutzn/vc53O+u8wM55xzbk3qxQ7AOedc4fNk4ZxzrlKeLJxzzlXKk4VzzrlKebJwzjlXKU8Wzjnn\nKuXJwrmUkLSPpOmSvpXUK3Y8rm7xZOEKmqSPJR2Yh+sMkHRvrq9TS38HbjSz9cxsROxgXN3iycK5\n9GgNTKnJEyXVz3Isro7xZOFSQ1JfSS9JulrSAkkfSuqW8fhYSZdLek3SN5Iel7R+8lgnSbPLne9j\nSQdKOhi4EDhK0iJJb1dw7RMljcjYniHpoYztWZJ2Se5fn2x/I2mCpH2T/ZtKWlIWU7KvvaQvyz7M\nJZ0kaYqkryQ9I+kXyf4PgDbAk0k1VMPkfMOTY6dLOjnjvAMkDZN0n6Svgb7JvoeTfd9KmiRpW0n9\nJc2TNFNSl1r9kVzR8mTh0qYD8D6wAXA1cGe5x38DnAi0BFYAN2U8VuHcNmb2HHA58JCZrWtm7Ss4\nbBzw44c+0BDYO9neCljbzN5Jjn0d2AVoDgwBhklqZGafA68Av8447zHAMDNbIekwoD9wOLAR8BLw\nYBLjNsBs4JCkGmoZ8BAwK/ldewOXSyrJOHcv4GEzWx94INl3KHAPsD4wEXgOELAZ8A/g3xW9Rs55\nsnBpM9PMBluY1OweYFNJG2c8fp+ZvW9mS4GLgN6SVNuLmtnHwCJJuwH7Ez5k50hqm2y/l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wZOGcc65S3sDtnHOuUp4snHPOVcqT\nhXPOuUp5snDOOVcpTxbOOecq5cnCOedcpTxZOOecq5QnC+ecc5X6f0ALRbyoguMHAAAAAElFTkSu\nQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23cd37e80>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "from math import sin\n", + "from math import pi\n", + "\n", + "V_biasing=10.0; #Biasing voltage, V\n", + "vin=[30*sin(t/10.0) for t in range(0,(int)(2*pi*10))] #input voltage waveform, V\n", + "\n", + "plt.subplot(211)\n", + "plt.plot(vin);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in vin[:]:\n", + " if(v-V_biasing)>0 : #Diode is forward biased.\n", + " vout.append(v-V_biasing);\n", + " else: #Diode is reverse biased.\n", + " vout.append(0);\n", + "\n", + "plt.subplot(212) \n", + "plt.plot(vout);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.13 : Page number 492" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAEZCAYAAACAZ8KHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm8XVV99/HPF0IAgYQEhACBADLbIliVUYgMJWAJqAhB\nKpP1sUXRhzoAahtAWwLiQxHb51UVqAwJY4WgMkUIKINgIWEKSZQpEAmGGdQQkl//WOuSzeVO+9x7\n7t778n2/XveVs4dzzjc3ufd31lp7r6WIwMzMrK9WqjqAmZk1iwuHmZmV4sJhZmaluHCYmVkpLhxm\nZl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/FHyVVV1y0nqqroIeAD4DbBnqzk95YiZmZXS1K4qMzOriAuHmZmV4sJhZmal\nuHCYmVkpLhxmZlaKC4eZmZXiwmFWUp7q/R+qzmFWFRcOs/JGAcf15cQ8j5XZkOLCYVbe6cDmecbe\nM3o592pJV0s6UNLKgxHOrN1857hZSZLGAddGxPZ9PH8P4DPAzqQZSS+IiN+1MaJZW7nFYdZmEXFb\nRBwFfCDvekTSx6rMZNYfw6oOYNZkkr4NfJS0psUHgP/Jj6dHxCn5nNWAj5EWIxoJHA/cVEVes4Hg\nriqzkiSNBv4n0jTavZ17BnAI8DPgvIiY3e58Zu3mwmHWAkkXA9sD10XEiT2cN4G03snrgxbOrM1c\nOMzMrBQPjpuZWSkuHGZmVooLh5mZleLCYWZmpbhwmJlZKS4cZmZWiguHmZmV4sJhZmal/C+3Ngq+\n5CKPkAAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23dcfd668>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "Vin=[]; #Input voltage waveform, V\n", + "t1=50; #Assumed time interval, s\n", + "t2=100; #Assumed time interval, s\n", + "V_biasing=10; #Biasing voltage, V\n", + "for t in range(0,151): #time interval from 0s to 151s\n", + " if(t<=t1): \n", + " Vin.append(15); #Value of input voltage for time 0 to t1 seconds \n", + " elif(t<=t2 and t>t1):\n", + " Vin.append(-30); #Value of input voltage for time t1 to t2 seconds\n", + " else :\n", + " Vin.append(15); #Value of input voltage after t2 seconds\n", + "\n", + "plt.subplot(211)\n", + "plt.plot(Vin);\n", + "plt.xlim([0,160])\n", + "plt.ylim([-35,20])\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=0):\n", + " vout.append(0); #Diode reverse biased\n", + " else:\n", + " vout.append(v-V_biasing); #Diode forward biased\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout);\n", + "plt.xlim(0,160)\n", + "plt.ylim(-35,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.14 : Page number 492-493" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm4neO9//H3JzTmIWhMIaSG4vwcnHOUUnYNbWgJTqt0\nou3pcf1U+bXaoj09CR2UqtbR47qOGi7zEA6iNZdNtbQqCBJJKhExhQRBKEl8f3/c906Wbe299lp7\nr/U8a+/P67rWlfXM93qy9/6ue/o+igjMzMx6M6zoApiZWfk5WJiZWU0OFmZmVpODhZmZ1eRgYWZm\nNTlYmJlZTQ4WZm1C0kclzZD0mqQDiy6PDS0OFlZqkmZL2qsF1xkv6eJmX6efTgH+KyLWjIhJRRfG\nhhYHC7P2MRqY2siBklYY4LLYEONgYW1D0hGS/iDp55JelvSkpLEV2++S9FNJf5a0UNJ1ktbO2/aU\nNLfb+WZL2kvSJ4HvA5+T9Lqkh6pc+0hJkyqWZ0q6qmL5aUnb5/e/yssLJT0gafe8fkNJb3aVKa/b\nUdJLXX/MJX1V0lRJCyTdLGmTvP5vwObAb3Mz1Afy+W7I+86Q9G8V5x0vaaKkSyS9ChyR112d170m\n6RFJW0o6UdI8SXMk7dOv/yQbtBwsrN3sDEwD1gV+DpzfbfuXgCOBDYClwNkV26rmtomIW4GfAldF\nxBoRsWOV3e4Glv3RBz4A7JqXxwCrRcSUvO9fgO2BEcDlwERJwyPieeBPwL9WnPdwYGJELJU0DjgR\nOA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Bq4MT9gpy/770FK\nrbALKf3ChRHxZBOLaDbgXLMwa7KIuCcijgD+Oa96QtLBRZbJrF4rFl0As3Ym6cfAp0gJHf8ZeDC/\nnxQRE/I+KwMHA18F1iI9+vP2Ispr1ig3Q5nVKWe2fTAiNu/DvqcBnwF+R8qO/Eizy2fWDA4WZg2Q\ndCmwPXBzRJzQy35jSc/aeKdlhTNrAgcLMzOryR3cZmZWk4OFmZnV5GBhZmY1OViYmVlNDhZmZlaT\ng4WZmdXkYGFmZjU5WJiZWU3/Hz1pk1JFdhIyAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23c928d30>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "Vin=[]; #Input voltage waveform, V\n", + "t1=50; #Assumed time interval, s\n", + "t2=100; #Assumed time interval, s\n", + "V_biasing=5; #Biasing voltage, V\n", + "for t in range(0,151): #time interval from 0s to 151s\n", + " if(t<=t1): \n", + " Vin.append(10); #Value of input voltage for time 0 to t1 seconds \n", + " elif(t<=t2 and t>t1):\n", + " Vin.append(-10); #Value of input voltage for time t1 to t2 seconds\n", + " else :\n", + " Vin.append(0);\n", + "\n", + "plt.subplot(211) \n", + "plt.plot(Vin);\n", + "plt.xlim(0,101)\n", + "plt.ylim(-20,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=0):\n", + " vout.append(v); #Diode reverse biased\n", + " else:\n", + " vout.append(v-V_biasing); #Diode forward biased\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout);\n", + "plt.xlim(0,101)\n", + "plt.ylim(-20,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.15 : Page number 493" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEZCAYAAACNebLAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmUXHWd9/H3JwRkSUhYwxII+zqDwDODIIy0LBpAEkRE\n4gKIOpxRRh4BH0CdSVCPEkUURY6igIhABBwhIEhA0qAjIsMiINkUyE6ULUBAJwnf54/f7VA0t7ur\nl6p7q+7ndU6frrvUre8vXalv/dariMDMzKy7YUUHYGZm5eQEYWZmuZwgzMwslxOEmZnlcoIwM7Nc\nThBmZpbLCcKsBUl6u6S5kl6UNKHoeKw9OUFYy5D0pKRDmvA6kyX9uNGvM0hfBL4dERtGxPSig7H2\n5ARh1prGAY8P5ImS1hriWKxNOUFYS5J0kqRfS/q6pOck/VnS+JrjMyV9RdJ9kpZL+rmk0dmxgyUt\n7Ha9JyUdIundwOeAD0h6SdJDOa99sqTpNdvzJP20ZnuBpL2yx9/KtpdLul/SQdn+LSW90hVTtm8f\nSX/t+gCXdIqkxyU9K+k2Sdtk+/8EbA/ckjUxrZ1d76bs3LmSPl5z3cmSrpd0laQXgJOyfddl+16U\n9AdJO0s6R9IySfMlHTaoP5K1PCcIa2X7AbOATYCvA5d1O/4R4GRgC2A18J2aY7lrzETE7cBXgJ9G\nxMiI2CfntLuBNR/0wNrAAdn2DsAGEfFIdu7vgb2AjYBrgOslrRMRS4HfAu+rue4k4PqIWC1pInAO\ncAywGfBrYFoW407AQuCorIlpJfBTYEFW1vcDX5HUUXPtCcB1ETEauDrb9x7gSmA08DBwOyBgK+BL\nwKV5/0ZWHU4Q1srmR8TlkRYUuxLYUtLmNceviohZEfEq8B/A+yVpsC8aEU8CL0naG3gH6YN1iaRd\nsu1f15x7TUS8EBGvRcQ3gbcAu2aHrwU+W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aKI+FxEbBsRO5D+\npndFxEeAm2nD8nbJmhsWStol23UoaQ5QW/6dSU1L+0taN+uEPZQ0KKFdyyveWCPuqZzTgROyEV3b\nAzsBv29WkF3aYh6EpPGkkR/DgMsi4vyCQxpykg4E7iEtkx7Zz+dIb5rrSN825gPHR8QLRcXZCJIO\nJi3HMkHSxrR/ed9K6phfG3gC+CipI7ctyy1pMulLwErgIeDjwEjarLySrgE6gE2AZcBk4EbgenLK\nKelc4GOkf5fTI2JG02NuhwRhZmZDrx2amMzMrAGcIMzMLJcThJmZ5XKCMDOzXE4QZmaWywnCzMxy\nOUGYDVK2PPe/FR2H2VBzgjAbvI2AT9ZzYrb2kFlLcIIwG7yvAjtkq69O7ePcGyXdKOloSWs1Iziz\ngfJMarNBkjQOuDm74U0957+DtITC/qRlFq6IiD83MESzAXENwqzJIuKeiDgJ+Kds12xJ7y0yJrM8\nw4sOwKydSPoycBRpMcV/Ah7IHk+PiCnZOesC7wVOAUaRbrl5RxHxmvXGTUxmg5StMPtARGxfx7lT\ngeOAX5BWHv5Do+MzGygnCLMhIOknwF7AbRFxdi/njSfd2+J/mxac2QA5QZiZWS53UpuZWS4nCDMz\ny+UEYWZmuZwgzMwslxOEmZnlcoIwM7NcThBmZpbLCcLMzHL9f91ybafzZ7MxAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23cd370b8>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "Vin=[]; #Input voltage waveform, V\n", + "t1=50; #Assumed time interval, s\n", + "t2=100; #Assumed time interval, s\n", + "V_D1=0.6; #Forward Biasing voltage of the 1st diode, V\n", + "V_D2=0.6; #Forward Biasing voltage of the 2nd diode, V\n", + "for t in range(0,151): #time interval from 0s to 151s\n", + " if(t<=t1): \n", + " Vin.append(10); #Value of input voltage for time 0 to t1 seconds \n", + " elif(t<=t2 and t>t1):\n", + " Vin.append(-10); #Value of input voltage for time t1 to t2 seconds\n", + " else :\n", + " Vin.append(0);\n", + "\n", + "plt.subplot(211);\n", + "plt.plot(Vin);\n", + "plt.xlim(0,110)\n", + "plt.ylim(-20,20)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=0):\n", + " vout.append(-V_D1); #Diode D1 forward biased, \n", + " else:\n", + " vout.append(V_D2); #Diode D2 forward biased\n", + "\n", + "plt.subplot(212) \n", + "plt.plot(vout);\n", + "plt.xlim(0,110)\n", + "plt.ylim(-1,1)\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.16 : Page number 493-494" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm8lnP+x/HXu1VZUqIQYaxjRIwmQlFa7AxZfyJ+Y8Yg\nhOydxpox9uU3Q0yikK0saZEThmRpo5S1ZVJURAtaPr8/vtfhdrrPcp9z7nNd1zmf5+NxHt33dd/X\ndX+6O92f+7t9vjIznHPOudLUiTsA55xzyefJwjnnXJk8WTjnnCuTJwvnnHNl8mThnHOuTJ4snHPO\nlcmThXMpIWl/SbMlfSfpqLjjcbWLJwuXaJI+l3RINbxOf0mP5Pt1KulvwF1mtomZjYw7GFe7eLJw\nLj1aAzMqcqKkulUci6tlPFm41JDUS9Lrkv4uaamkTyV1z3j8VUk3Snpb0jJJz0raNHqso6R5xa73\nuaRDJHUDrgROlPS9pMlZXvsMSSMz7n8s6YmM+3MltYlu3xHdXyb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gReBQWY2Nd/xOZcPniycqwBJjwJtCHvB9yvled0J+1v8VG3BOZcHniycc86VyQe4nXPO\nlcmThXPOuTJ5snDOOVcmTxbOOefK5MnCOedcmTxZOOecK5MnC+ecc2XyZOGcc65M/w+srHpey0WF\nTQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23cac80f0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "from math import sin\n", + "from math import pi\n", + "\n", + "VZ=20; #Assumed zener voltage, V\n", + "VF=0.7; #Assumed forward biasing voltage of the zener diode, V\n", + "Vin=[]; #Input voltage waveform, V\n", + "for t in range(0,(int)(2*pi*10)): #time interval from 0s to 151s\n", + " Vin.append(30*sin(t/10.0));\n", + "\n", + "plt.subplot(211)\n", + "plt.plot(Vin);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=-VF):\n", + " vout.append(-VF); #Zener diode forward biased, \n", + " elif(v>=VZ):\n", + " vout.append(VZ); #Input voltage exceeds zener voltage\n", + " else:\n", + " vout.append(v); #Zener diode reverse biased\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout);\n", + "plt.xlim([0,80])\n", + "plt.ylim([-1,40])\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.17 : Page number 494" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUe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a6kb04OwI9Jb0FDAcOkTQE\n+CBjcWJm7yf/foh3P3Yge+/nQrwU0AvJ8f148shanCW6Ay+a2ZLkOEtxdgbeMrOlZrYaH1P5SVVi\nzGuyeB7YSVIbSU2AvnhfXFaIb3/DHA30T673A0aVfkAKbgdmmtl1BecyFaekzUtmaUhqhpeHmUXG\n4jSzC8xsOzPbAf9dnGhmvwAeIkNxSmqetCaRtD7ezz6D7L2fi4F3Je2SnDoUeJ2MxVngePxLQoks\nxbkA2E/SepKEv5czqUqMaQ8MVWPgphswG69Ke17a8RTENQxYBHyZ/KBOwgeXJiTxjgM2STnGjsBq\nYDrwMvBS8n5umrE4f5DENh14FbgwOZ+pOEvFfBDfDHBnKk58LKDkZz6j5O8ma3EmMe2JfymcDvwH\n2DijcTYHPgQ2LDiXqTiBgfiXrFeBu4DGVYkxFuWFEEIoV167oUIIIdSiSBYhhBDKFckihBBCuSJZ\nhBBCKFckixBCCOWKZBFCCKFckSxCqKSkfPZv0o4jhNoUySKEymsBnFKROya1eULIvUgWIVTeX4Ad\nkoqog8u574OSHpR0pKSGtRFcCMUQK7hDqCRJbYCHzDeTqcj9DwR+ie/DMhK4w8zmFTHEEGpctCxC\nKDIze8LM+gE/TE69IenoNGMKobIapR1ACHkm6TLgcHw/gB8CLybXR5vZoOQ+6wFHAwPwgnin4rvq\nhZAb0Q0VQiVJ2hTfv2D7Ctx3MHAs8Ahwm5m9Uuz4QiiGSBYhVIGke4B2+F7w567jft3w/S2+qrXg\nQiiCSBYhhBDKFQPcIYQQyhXJIoQQQrkiWYQQQihXJIsQQgjlimQRQgihXJEsQgghlCuSRQghhHJF\nsgghhFCu/w+ip4Q9s46W/wAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7fa23c83bc50>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "from math import sin\n", + "from math import pi\n", + "\n", + "VZ1=20; #Assumed zener voltage, V\n", + "VF1=0.7; #Assumed forward biasing voltage of the zener diode, V\n", + "VZ2=20; #Assumed zener voltage, V\n", + "VF2=0.7; #Assumed forward biasing voltage of the zener diode, V\n", + "Vin=[]; #Input voltage waveform, V\n", + "for t in range(0,(int)(2*pi*10)): #time interval from 0s to 151s\n", + " Vin.append(30*sin(t/10.0));\n", + " \n", + "plt.subplot(211)\n", + "plt.plot(Vin);\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vin(V)');\n", + "plt.title('Input waveform');\n", + "\n", + "\n", + "vout=[]; #Output voltage waveform, V\n", + "for v in Vin[:]: #Loop iterating input voltage \n", + " if(v<=-(VZ1+VF2)):\n", + " vout.append(-(VZ1+VF2)); #Zener diode forward biased, \n", + " elif(v>=VZ2+VF1):\n", + " vout.append(VZ2+VF1); #Input voltage exceeds zener voltage\n", + " else:\n", + " vout.append(v); #Zener diode reverse biased\n", + "plt.subplot(212)\n", + "plt.plot(vout); \n", + "plt.xlim([0,80])\n", + "plt.ylim([-40,40])\n", + "plt.xlabel('t-->');\n", + "plt.ylabel('Vout(V)');\n", + "plt.title('Output waveform');\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_4.ipynb new file mode 100644 index 00000000..65f7561a --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_4.ipynb @@ -0,0 +1,1671 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 19 : FIELD EFFECT TRANSISTORS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.1 : Page number 515" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ID=12[1 + VGS/5]²mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=12.0; #Shorted gate drain current, mA\n", + "V_GS_off=-5.0; #Gate-source cut-off voltage, V\n", + "\n", + "#Result\n", + "print(\"ID=%d[1 + VGS/%d]²mA.\"%(I_DSS,abs(V_GS_off)));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.2 : Page number 515" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain current=6.12mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=32.0; #Shorted gate drain current, mA\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "V_GS=-4.5; #Gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current mA\n", + "\n", + "#Result\n", + "print(\"The drain current=%.2fmA.\"%I_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.3 : Page number 515" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) VGS=-1.76V.\n", + "(ii) VP=6V\n" + ] + } + ], + "source": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "I_DSS=10.0; #Shorted gate drain current, mA\n", + "V_GS_off=-6.0; #Gate-source cut-off voltage, V\n", + "I_D=5.0; #Drain current mA\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, I_D=I_DSS*[1 - (V_GS/V_GS_off)]²\n", + "V_GS=V_GS_off*(1-sqrt(I_D/I_DSS)); #Gate-source voltage, V\n", + "\n", + "#(ii)\n", + "V_P=-V_GS_off; #Pinch-off voltage, V \n", + "\n", + "#Result\n", + "print(\"(i) VGS=%.2fV.\"%V_GS);\n", + "print(\"(ii) VP=%dV\"%V_P);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.4 : Page number 515-516" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The minimum value of VDD required =10.72V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS_off=-4.0; #Gate-source cut-off voltage, V\n", + "I_DSS=12.0; #Shorted gate drain current, mA\n", + "R_D=560.0; #Drain resistor, Ω\n", + "\n", + "#Calculation\n", + "V_P=-V_GS_off; #Pinch-off voltage, V\n", + "V_DS=V_P; #Minimum drain-source voltage for JFET to be in constant current region, V\n", + "I_D=I_DSS; #Maximum drain current, mA (V_GS=0)\n", + "V_RD=(I_D/1000)*R_D; #Voltage across drain resistor, V (OHM's LAW)\n", + "V_DD=V_DS+V_RD; #Minimum value of supply voltage to drain, V\n", + "\n", + "#Result\n", + "print(\"The minimum value of VDD required =%.2fV.\"%V_DD);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.5 : Page number 516" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain current=1.33mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=3.0; #Shorted gate drain current, mA\n", + "V_GS_off=-6.0; #Gate-source cut-off voltage, V\n", + "V_GS=-2.0; #Gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current mA\n", + "\n", + "#Result\n", + "print(\"The drain current=%.2fmA.\"%I_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.6 : Page number 516" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "p-channel JFET requires a positive gate-to-source voltage to pass drain current.\n", + "More positive voltage, the less the drain current. \n", + "Any further increase in VGS keeps the JFET cut-off. Therefore, ID=0A.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VGS_off=4; #Gate-source cut-off voltage, V\n", + "VGS=6; #Gate source voltage, V\n", + "\n", + "print(\"p-channel JFET requires a positive gate-to-source voltage to pass drain current.\");\n", + "print(\"More positive voltage, the less the drain current. \");\n", + "print(\"Any further increase in VGS keeps the JFET cut-off. Therefore, ID=0A.\");" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.7 : Page number 517-518" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The gate to source resistance=15000MΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS=15.0; #Gate-source voltage, V\n", + "I_G=1e-03; #Gate current, μA\n", + "\n", + "#Calculation\n", + "R_GS=(V_GS/(I_G*10**-6))/10**6; #Gate to source resistance, MΩ (OHM's LAW)\n", + "\n", + "#Result\n", + "print(\"The gate to source resistance=%dMΩ.\"%R_GS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.8 : Page number 518" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Transconductance=3000 μ mho\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "V_GS_max=-3.1; #Maximum gate to source voltage, V\n", + "V_GS_min=-3.0; #Minimum gate to source voltage, V\n", + "I_D_max=1.3; #Maximum drain current, mA\n", + "I_D_min=1.0; #Minimum drain current, mA\n", + "\n", + "\n", + "#Calculation\n", + "delta_V_GS=abs(V_GS_max-V_GS_min); #Change in gate to source voltage, V\n", + "delta_I_D=I_D_max-I_D_min; #Change in drain current, mA\n", + "g_fs=(delta_I_D/delta_V_GS)*1000; #Transconductance, μ mho\n", + "\n", + "\n", + "#Result\n", + "print(\"Transconductance=%.0f μ mho\"%g_fs);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.9 : Page number 518" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VGS= 0V 0V -0.2V\n", + "VDS= 7V 15V 15V\n", + "ID = 10V 10.25V 9.65V\n", + "(i) The a.c drain resistance=32kΩ.\n", + "(ii) The transconductance=3000 μ mho.\n", + "(iii) The amplification factor=96.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS=[0,0,-0.2]; #Readings of Gate-source voltage, V\n", + "V_DS=[7,15,15]; #Readings of Drain-source voltage, V\n", + "ID=[10,10.25,9.65]; #Readings of drain current, mA\n", + "\n", + "\n", + "#Displaying the readings:\n", + "print(\"VGS= %dV %dV %.1fV\"%(V_GS[0],V_GS[1],V_GS[2]));\n", + "print(\"VDS= %dV %dV %dV\"%(V_DS[0],V_DS[1],V_DS[2]));\n", + "print(\"ID = %dV %.2fV %.2fV\"%(ID[0],ID[1],ID[2]));\n", + "\n", + "#Calculations\n", + "#(i)\n", + "#V_GS constant at 0V,\n", + "delta_VDS=V_DS[1]-V_DS[0]; #Change in drain-source voltage, V\n", + "delta_ID=ID[1]-ID[0]; #Change in drain current, mA\n", + "rd=delta_VDS/delta_ID; #a.c drain resistance, kΩ\n", + "\n", + "#(ii)\n", + "#V_DS constant at 15V,\n", + "delta_VGS=V_GS[2]-V_GS[1]; #Change in gate-source voltage, V\n", + "delta_ID=ID[2]-ID[1]; #Change in drain current, mA\n", + "g_fs=round((delta_ID/delta_VGS)*1000,); #Transconductance, μ mho\n", + "\n", + "#(iii)\n", + "amplification_factor=rd*1000*g_fs*10**-6; #Amplification factor\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The a.c drain resistance=%dkΩ.\"%rd);\n", + "print(\"(ii) The transconductance=%d μ mho.\"%g_fs);\n", + "print(\"(iii) The amplification factor=%d.\"%amplification_factor );\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.10 : Page number 519" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The transconductance=2500 μS.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "g_mo=4000.0; #Maximum transconductance, μS\n", + "V_GS=-3.0; #Gate to source voltage, V\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "\n", + "#Calculation\n", + "g_m=g_mo*(1-(V_GS/V_GS_off)); #Transconductance, μS\n", + "\n", + "#Result\n", + "print(\"The transconductance=%d μS.\"%g_m);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.11 : Page number 519" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The transconductance=1667 μS.\n", + "The drain current=333 μA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "g_mo=5000.0; #Maximum transconductance, μS\n", + "V_GS=-4.0; #Gate to source voltage, V\n", + "V_GS_off=-6.0; #Gate-source cut-off voltage, V\n", + "I_DSS=3.0; #Shorted-gate drain current, mA\n", + "\n", + "#Calculation\n", + "g_m=g_mo*(1-(V_GS/V_GS_off)); #Transconductance, μS\n", + "I_D=(I_DSS*(1-(V_GS/V_GS_off))**2)*1000; #Drain current μA\n", + "\n", + "\n", + "#Result\n", + "print(\"The transconductance=%.0f μS.\"%g_m);\n", + "print(\"The drain current=%d μA.\"%I_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.12 : Page number 520" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The gate-source voltage=-5V.\n", + "The drain current=2.25mA.\n", + "The drain-source voltage=5.05V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "I_DSS=16.0; #Shorted-gate drain current, mA\n", + "R_D=2.2; #Drain resistor, kΩ\n", + "R_G=1.0; #Gate resistor, MΩ\n", + "V_DD=10.0; #Drain supply voltage, V\n", + "V_GG=-5.0; #Gate supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_GS=V_GG; #Gate-source voltage, V\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current μA\n", + "V_DS=V_DD-I_D*R_D; #Drain-source voltage, V (Kirchhoff's voltage law)\n", + "\n", + "#Result\n", + "print(\"The gate-source voltage=%dV.\"%V_GS);\n", + "print(\"The drain current=%.2fmA.\"%I_D);\n", + "print(\"The drain-source voltage=%.2fV.\"%V_DS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.13 : Page number 521" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain-source voltage=7.65V.\n", + "The gate-source voltage=-2.35V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_D=5.0; #Drain current mA\n", + "V_DD=15.0; #Drain supply voltage, V\n", + "V_G=0; #Gate voltage, V\n", + "R_D=1.0; #Drain resistor, kΩ\n", + "R_S=470.0; #Source resistor, Ω\n", + "\n", + "\n", + "#Calculation\n", + "V_S=(I_D/1000)*R_S; #Source voltage, V (OHM's LAW)\n", + "V_D=V_DD-I_D*R_D; #Drain voltage, V (Kirchhoff's voltage law)\n", + "V_DS=V_D-V_S; #Drain-source voltage, V\n", + "V_GS=V_G-V_S; #Gate-source voltage, V\n", + "\n", + "#Result\n", + "print(\"The drain-source voltage=%.2fV.\"%V_DS);\n", + "print(\"The gate-source voltage=%.2fV.\"%V_GS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.14 : Page number 521" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The required source resistor=800 Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS=-5.0; #Gate-source voltage, V\n", + "I_D=6.25; #Drain current mA\n", + "\n", + "\n", + "#Calculation\n", + "R_S=abs(V_GS/(I_D/1000)); #Required source resistor, Ω (OHM's LAW)\n", + "\n", + "#Result\n", + "print(\"The required source resistor=%d Ω.\"%R_S);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.15 : Page number : 521" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The source resistance=450Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=25.0; #Shorted gate drain current, mA\n", + "V_GS_off=15.0; #Gate-source cut-off voltage, V\n", + "V_GS=5.0; #Gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current mA\n", + "R_S=V_GS/(I_D/1000); #Required source resistor, Ω (OHM's LAW)\n", + "\n", + "\n", + "#Result\n", + "print(\"The source resistance=%.0fΩ.\"%R_S);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.16 : Page number 522" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " RS=313 Ω and RD=800 Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=15.0; #Shorted gate drain current, mA\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "V_DD=12.0; #Drain supply voltage,V\n", + "V_D=V_DD/2; #Drain voltage(half of V_DD), V\n", + "\n", + "#Calculation\n", + "I_D=I_DSS/2; #Drain current(approximately half of I_DSS), mA\n", + "V_GS=V_GS_off/3.4; #Gate-source voltage, V\n", + "R_S=abs(V_GS/(I_D/1000)); #Source resistor, Ω (OHM's LAW)\n", + "#Since,V_D=V_DD-I_D*R_D; \n", + "R_D=(V_DD-V_D)/(I_D/1000); #Drain resistor, Ω (OHM's LAW)\n", + "\n", + "#Result\n", + "print(\" RS=%d Ω and RD=%d Ω.\"%(R_S,R_D));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.17 : Page number 522" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The source resistance=0.6 kΩ\n", + "The drain resistance=6 kΩ.\n" + ] + } + ], + "source": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "I_DSS=5.0; #Shorted gate drain current, mA\n", + "V_GS_off=-2.0; #Gate-source cut-off voltage, V\n", + "V_DS=10.0; #Drain-source voltage,V\n", + "I_D=1.5; #Drain current, mA\n", + "V_DD=20.0; #Drain supply voltage,V\n", + "V_G=0; #Gate voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Drain current, I_D=I_DSS*(1-(V_GS/V_GS_off))**2; \n", + "V_GS=V_GS_off*(1-sqrt(I_D/I_DSS)); #Gate-source voltage, V\n", + "\n", + "#Since, V_GS=V_G-V_S,\n", + "V_S=V_G-V_GS; #Source voltage, V\n", + "\n", + "R_S=V_S/I_D; #Source resistor, kΩ\n", + "\n", + "#Since, V_DD=I_D*R_D +V_DS+ I_D*R_S,\n", + "R_D=(V_DD-I_D*R_S-V_DS)/I_D; #Drain resistor, kΩ\n", + "\n", + "#Calculation\n", + "print(\"The source resistance=%.1f kΩ\"%R_S);\n", + "print(\"The drain resistance=%d kΩ.\"%R_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.18 : Page number 522-523" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain-source voltage=17V.\n", + "The gate-source voltage=-0.5V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_DD=30.0; #Drain supply voltage, V\n", + "R_D=5.0; #Drain resistor, kΩ\n", + "I_D=2.5; #Drain current, mA\n", + "R_S=200.0; #Source resistor, Ω\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V_DS=V_DD-I_D*(R_D+(R_S/1000)); #Drain-source voltage, V\n", + "\n", + "#(ii)\n", + "V_GS=-(I_D/1000)*R_S; #Gate-source voltage, V\n", + "\n", + "#Result\n", + "print(\"The drain-source voltage=%dV.\"%V_DS);\n", + "print(\"The gate-source voltage=%.1fV.\"%V_GS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.19 : Page number 523" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "drain voltage of 1st stage=12.37V.\n", + "Source voltage of 1st stage=1.46V.\n", + "drain voltage of 2nd stage=11.7V.\n", + "Source voltage of 2nd stage=2.01V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "ID_1=2.15; #First stage drain current, mA\n", + "ID_2=9.15; #Second stage drain current, mA\n", + "VDD=30; #Drain supply voltage, V\n", + "RS_1=0.68; #Source resistance of 1st stage, kΩ\n", + "RS_2=0.22; #Source resistance of 2nd stage, kΩ\n", + "RD_1=8.2; #Drain resistor of 1st stage, kΩ\n", + "RD_2=2; #Drain resistor of 2nd stage, kΩ\n", + "\n", + "#Calculation\n", + "V_RD1=ID_1*RD_1; #Voltage drop across 8.2kΩ\n", + "VD_1=VDD-V_RD1; #Drain voltage of 1st stage, V\n", + "VS_1=ID_1*RS_1; #D.C potential of source of first stage, V\n", + "V_RD2=ID_2*RD_2; #Voltage drop across 2kΩ\n", + "VD_2=VDD-V_RD2; #Drain voltage of 2nd stage, V\n", + "VS_2=ID_2*RS_2; #D.C potential of source of 2nd stage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"drain voltage of 1st stage=%.2fV.\"%VD_1);\n", + "print(\"Source voltage of 1st stage=%.2fV.\"%VS_1);\n", + "print(\"drain voltage of 2nd stage=%.1fV.\"%VD_2);\n", + "print(\"Source voltage of 2nd stage=%.2fV.\"%VS_2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.20 : Page number 524" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=1.52mA.\n", + "Gate-source voltage=-1.2V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=12; #Drain supply voltage, V\n", + "VD=7; #Drain voltage, V\n", + "R1=6.8; #Resistor R1, MΩ\n", + "R2=1; #Resistor R2, MΩ\n", + "RS=1.8; #Source resistance, kΩ\n", + "RD=3.3; #Drain resistor, kΩ\n", + "\n", + "#Calculation\n", + "ID=(VDD-VD)/RD; #Second stage drain current, mA\n", + "VS=ID*RS; #Source voltage, V\n", + "VG=VDD*R2/(R1+R2); #Drain voltage, V\n", + "VGS=VG-VS; #Drain-source voltage, V\n", + "\n", + "#Calculation\n", + "print(\"Drain current=%.2fmA.\"%ID);\n", + "print(\"Gate-source voltage=%.1fV.\"%VGS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.21 : Page number 524-525" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Source resistor, RS=5kΩ.\n" + ] + } + ], + "source": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "VDD=30; #Drain supply voltage, V\n", + "ID=2.5; #Drain current, mA\n", + "VDS=8; #Drain-source voltage, V\n", + "VGS_off=-5; #Gate-source cutoff voltage, V\n", + "R1=1; #Resistor R1, MΩ\n", + "R2=500; #Resistor R2, kΩ\n", + "IDSS=10; #Shorted gate drain current, mA\n", + "\n", + "#Calculation\n", + "#ID=IDSS*square_of(1-(VGS/VGS_off))\n", + "VGS=VGS_off*(1-sqrt(ID/IDSS)); #Gate-source voltage, V\n", + "V2=VDD*R2/(R1*1000+R2); #Voltage across R2, V\n", + "\n", + "\n", + "#V2=VGS+ID*RS\n", + "RS=(V2-VGS)/ID; #Source resistor, kΩ\n", + "\n", + "#Result\n", + "print(\"Source resistor, RS=%dkΩ.\"%RS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.22 : Page number 528-529" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEZCAYAAABiu9n+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGL9JREFUeJzt3X2wZHV95/H3B0flQcDBWUAE8YmAWksQNy5msnqVBY1R\nweFhZ3QVH9bdWgFxB3cFs7tMhNIxqXVjTNxdV51CE4eoDAHFCCFwY4la6KCCghiSBRSGEXxM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+ "<matplotlib.figure.Figure at 0x7f70cf070f28>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline \n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VDD=20.0; #Drain supply voltage, V\n", + "RS=50.0; #Source resistor, Ω\n", + "RD=150.0; #Drain resistor, Ω\n", + "\n", + "#Calculation\n", + "VDS_max=VDD; #Maximum drain source voltage, V\n", + "ID_max=(VDD/(RD+RS))*1000; #Maximum drain current, mA\n", + "\n", + "\n", + "#plot\n", + "x=[i for i in range(0,(int)(VDS_max+1))]; #Plot variable for V_DS\n", + "y=[(i/(RD+RS))*1000 for i in reversed(x[:])]; #Plot variable for ID\n", + "\n", + "\n", + "plt.plot(x,y);\n", + "plt.xlabel(\"VDS(V)\");\n", + "plt.ylabel(\"ID(mA)\");\n", + "plt.title(\"d.c load line\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.23 : Page number 529" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEZCAYAAAB1mUk3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGlxJREFUeJzt3X20XHV97/H3B1MRj4AnaEgEDEIVlMIKcOESYpNBLopo\nwJqWgnp4bNddrViS6K0kfUhiXS3YtXIhbYUqyBLa8JimOQELiGRIFZXHBNQUL9WAeEkED2ANLhbC\nt3/sPclkMufkzJzZs/ee+bzWmpU9+2H2dyZz5jef32/vPYoIzMysv+2RdwFmZpY/NwZmZubGwMzM\n3BiYmRluDMzMDDcGZmaGGwMrMUnXSvrcBB9juqTXJHX8b0HSOkkXjLJsiaTr0+mDJP1Ckjpdg9l4\nTcq7ALMCyOtkmwCIiJ8A++RUgxngZGBmZrgxsBKRdLSkhyS9KOlG4A1jrLuHpMWSnkjXf0DSAePY\nxzRJ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TbmBWGGwPrSxGxDaiSXAu+PhXUX2P/YOBvgRXp/ZMk7ZVO7w0cCjwF/JAkMdSrAu8E/phd\nU8e78PX6rWDcGFg/uwE4ip0/rA+pHVpK8u3+8oi4Ll12LPCgpA3At0iOHnooIl4CnpB0SO1B0l/t\nuhWYHBH3Nuz3JOD2bJ6SWXv8ewZmHSDpDODYiPjL3aw3heQHhk4Zaz2zbpuUdwFmvSAi1qSDxbvz\nduDTWddj1ionAzMz85iBmZm5MTAzM9wYmJkZbgzMzAw3BmZmBvw3WQTOWIXQWhcAAAAASUVORK5C\nYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f70cf06ab38>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline \n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VDD=20; #Drain supply voltage, V\n", + "RD=500.0; #Drain resistor, Ω\n", + "\n", + "#Calculation\n", + "VDS_max=VDD; #Maximum drain source voltage, v \n", + "ID_max=(VDD/RD)*1000; #Maximum drain current, mA\n", + "\n", + "#Plot\n", + "x=[i for i in range(0,(int)(VDS_max+1))]; #Plot variable for V_DS\n", + "y=[(i/RD)*1000 for i in reversed(x[:])]; #Plot variable for ID\n", + "\n", + "plt.plot(x,y);\n", + "plt.xlabel(\"VDS(V)\");\n", + "plt.ylabel(\"ID(mA)\");\n", + "plt.title(\"d.c load line\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.24 : Page number 530-531" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain=4.8.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=20; #Drain supply voltage, V\n", + "RD=12.0; #Drain resistor, kΩ\n", + "RL=8.0; #Load resistor, kΩ\n", + "RG=1.0; #Gate resistor, MΩ\n", + "gm=1.0; #transconductance, mA/V\n", + "\n", + "#Calculation\n", + "gm=gm*10**-3; #transconductance, mho\n", + "RAC=(RD*RL)/(RD+RL); #Total a.c load, kΩ\n", + "Av=gm*RAC*1000; #Voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"Voltage gain=%.1f.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.25 : Page number 531" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain=30.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "gm=3000; #transconductance, μmho\n", + "RD=10; #Drain resistance, kΩ\n", + "\n", + "#Calculation\n", + "Av=gm*10**-6*RD*1000; #Voltage gain\n", + "\n", + "#Result\n", + "print(\"Voltage gain=%d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.26 : Page number 531" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=257mV(r.m.s).\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IDSS=8; #Shorted gate drain current, mA\n", + "VGS_off=-10; #Gate-source cut-off voltage, V\n", + "ID=1.9; #Drain current, mA\n", + "RD=3.3; #Drain resistance, kΩ\n", + "RS=2.7; #Source resistor, kΩ\n", + "vin=100; #Input voltage, mV\n", + "\n", + "#Calculation\n", + "VGS=-ID*RS; #Gate-source voltage, V\n", + "gmo=2*IDSS*10**-3/abs(VGS_off); #Maximum transconductance, S\n", + "gm=gmo*(1-(VGS/VGS_off)); #Transconductance, S\n", + "Av=gm*RD*1000; #Voltage gain\n", + "vout=Av*vin; #Output voltage, mA\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dmV(r.m.s).\"%vout);\n", + " \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.27 : Page number 531-532" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=151mV(r.m.s).\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RL=4.7; #Load resistor, Ω\n", + "RD=3.3; #Drain resistance, kΩ\n", + "gm=779*10**-6; #Transconductance, S\n", + "vin=100; #Input voltage, mV\n", + "\n", + "\n", + "#Calculation\n", + "RAC=RD*RL/(RD+RL); #Total a.c drain resistance, kΩ\n", + "Av=gm*RAC*1000; #Voltage gain\n", + "vout=Av*vin; #Output voltage, mA\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dmV(r.m.s).\"%vout);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.28 : Page number 532-533" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain=1.85.\n", + "Voltage gain, if RS resistor is bypassed=6.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RD=1.5; #Drain resistance, kΩ\n", + "gm=4; #Transconductance, mS\n", + "RS=560; #Source resistance, Ω\n", + "\n", + "#Calculation\n", + "Av=gm*10**-3*RD*1000/(1+gm*10**-3*RS);\n", + "print(\"Voltage gain=%.2f.\"%Av);\n", + "\n", + "#If RS is bypassed by a capacitor\n", + "Av=gm*10**-3*RD*1000;\n", + "print(\"Voltage gain, if RS resistor is bypassed=%d.\"%Av);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.29 : Page number 533" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Voltage gain with RS bypassed=4.155.\n", + "(ii) Voltage gain with RS unbypassed=1.35.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "from math import sqrt\n", + "\n", + "IDSS=10; #Shorted gate drain current, mA\n", + "VGS_off=-3.5; #Gate-source cut-off voltage, V\n", + "RD=1.5; #Drain resistance, kΩ\n", + "RS=750; #Source resistance, Ω\n", + "\n", + "\n", + "#Calculation\n", + "#From d.c biasing\n", + "ID=2.3; #Drain current, mA\n", + "VGS=round(VGS_off*(1-sqrt(ID/IDSS)),1); #Gate-source voltage, V\n", + "gm=round(round((2*IDSS/abs(VGS_off)),1)*round((1-(VGS/VGS_off)),3),2); #Transconductance, mS\n", + "\n", + "\n", + "#(i)\n", + "Av=gm*RD; #Voltage gain with RS resistor bypassed\n", + "print(\"(i) Voltage gain with RS bypassed=%.3f.\"%Av);\n", + "\n", + "#(ii)\n", + "Av=Av/(1+gm*(RS/1000.0));\n", + "print(\"(ii) Voltage gain with RS unbypassed=%.2f.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.30 : Page number 539-540" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) n-channel D-MOSFET\n", + "(ii) Drain current=3.91mA\n", + "(iii) Drain current=18.9mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IDSS=10.0; #Shorted gate drain current, mA\n", + "VGS_off=-8.0; #Gate-source cut-off voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "if(VGS_off<0):\n", + " print(\"(i) n-channel D-MOSFET\");\n", + "else:\n", + " print(\"(i) p-channel D-MOSFET\");\n", + " \n", + "\n", + "#(ii)\n", + "VGS=-3.0; #Gate-source voltage, V\n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"(ii) Drain current=%.2fmA\"%ID);\n", + "\n", + "#(iii)\n", + "VGS=3.0; #Gate-source voltage, V\n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"(iii) Drain current=%.1fmA\"%ID);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.31 : Page number 540" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Point 1: VGS=0V and ID=1mA.\n", + "Point 2: VGS=-6V and ID=0mA.\n", + "Point 3: VGS=-3V and ID=0.25mA.\n", + "Point 4: VGS=-1V and ID=0.694mA.\n", + "Point 5: VGS=1V and ID=1.36mA.\n", + "Point 6: VGS=3V and ID=2.25mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IDSS=1.0; #Shorted gate drain current, mA\n", + "VGS_off=-6.0; #Gate-source cut-off voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#Point 1\n", + "VGS=0; #Gate source voltage, V \n", + "ID=IDSS; #Drain current, mA\n", + "print(\"Point 1: VGS=%dV and ID=%dmA.\"%(VGS,ID));\n", + "\n", + "#Point 2\n", + "VGS=VGS_off; #Gate source voltage, V \n", + "ID=0; #Drain current, mA\n", + "print(\"Point 2: VGS=%dV and ID=%dmA.\"%(VGS,ID));\n", + "\n", + "#locating more points by changing VG values\n", + "VGS=-3; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 3: VGS=%dV and ID=%.2fmA.\"%(VGS,ID));\n", + "\n", + "VGS=-1; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 4: VGS=%dV and ID=%.3fmA.\"%(VGS,ID));\n", + "\n", + "VGS=1; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 5: VGS=%dV and ID=%.2fmA.\"%(VGS,ID));\n", + "\n", + "VGS=3; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 6: VGS=%dV and ID=%.2fmA.\"%(VGS,ID));" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.32 : Page number 541" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain source voltage=10.6V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=18; #Drain supply voltage, V\n", + "RD=620.0; #Drain resistor, Ω\n", + "IDSS=12.0; #Shorted gate drain current, mA\n", + "VGS_off=-8.0; #Gate-source cut-off voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "ID=IDSS; #Drain current, mA\n", + "VDS=VDD-IDSS*(RD/1000); #Drain source voltage, V\n", + "\n", + "#Result\n", + "print(\"Drain source voltage=%.1fV.\"%VDS);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.33 : Page number 542" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Drain source voltage=7.56V.\n", + "(ii) Output voltage=922mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=15; #Drain supply voltage\n", + "RD=620.0; #Drain resistor, Ω\n", + "RL=8.2; #Load resistor, kΩ\n", + "vin=500.0; #Input voltage, V\n", + "IDSS=12.0; #Shorted gate drain current, mA\n", + "gm=3.2; #Transconductance, mS\n", + "\n", + "#Calculation\n", + "#(i)\n", + "VDS=VDD-IDSS*(RD/1000.0); #Drain source voltage, V\n", + "\n", + "#(ii)\n", + "RAC=RD*RL*1000/(RD+RL*1000); #Total a.c drain resistace, Ω\n", + "vout=(gm/1000.0)*RAC*vin; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"(i) Drain source voltage=%.2fV.\"%VDS);\n", + "print(\"(ii) Output voltage=%dmV\"%vout);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.34 : Page number 545" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=98.7mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "ID_on=500.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=1.0; #Threshold value of gate-source voltage, V\n", + "VGS=5; #Gate-source voltage, V\n", + "\n", + "#Calculation\n", + "K=round(ID_on/(VGS_on-VGS_th)**2,2); #Constant for a E-MOSFET, mA/V²\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "\n", + "#Result\n", + "print(\"Drain current=%.1fmA\"%ID);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.35 : Page number 545" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "K=0.061e-03A/V².\n", + "For VGS=5V, Drain current=0.244mA\n", + "For VGS=8V, Drain current=1.525mA\n", + "For VGS=10V, Drain current=2mA\n", + "For VGS=12V, Drain current=4.94mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "ID_on=3.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=3.0; #Threshold value of gate-source voltage, V\n", + "\n", + "#Calculation\n", + "K=round((ID_on/(VGS_on-VGS_th)**2),3); #Constant for a E-MOSFET, mA/V²\n", + "print(\"K=%.3fe-03A/V².\"%K);\n", + "\n", + "#Determining different points for plotting\n", + "VGS=5; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=5V, Drain current=%.3fmA\"%ID);\n", + "VGS=8; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=8V, Drain current=%.3fmA\"%ID);\n", + "VGS=10; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=10V, Drain current=%.dmA\"%ID);\n", + "VGS=12; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=12V, Drain current=%.2fmA\"%ID);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.36 : Page number 546-547" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain-source voltage=10.8V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=24.0; #Drain supply voltage, V\n", + "RD=470.0; #Drain resistor, Ω\n", + "R1=100.0; #Resistor R1, kΩ\n", + "R2=15.0; #Resistor R2, kΩ\n", + "ID_on=500.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=1.0; #Threshold value of gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "VGS=VDD*R2/(R1+R2); #Gate-source voltage, V (Voltage divider rule)\n", + "K=round((ID_on/(VGS_on-VGS_th)**2),2); #Constant for a E-MOSFET, mA/V²\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "VDS=VDD-(ID/1000)*RD; #Drain-source voltage, V\n", + "\n", + "#Result\n", + "print(\"Drain-source voltage=%.1fV.\"%VDS);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.37 : Page number 547" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=10mA.\n", + "Drain-source voltage=10V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=20.0; #Drain supply voltage, V\n", + "RD=1.0; #Drain resistor, kΩ\n", + "RG=5.0; #Gate resistor , MΩ\n", + "ID_on=10.0; #Drain current for MOSFET ON, mA\n", + "\n", + "#Calculation\n", + "#since, VGS=VDS\n", + "ID=ID_on; #Drain current, mA\n", + "VDS=VDD-ID*RD; #Drain-source voltage, V\n", + "\n", + "#Result\n", + "print(\"Drain current=%dmA.\"%ID);\n", + "print(\"Drain-source voltage=%dV.\"%VDS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.38 : Page number 547-548" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=1.69mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=10.0; #Drain supply voltage, V\n", + "RD=3.0; #Drain resistor, kΩ\n", + "R1=1.0; #Resistor R1, MΩ\n", + "R2=1.0; #Resistor R2, MΩ\n", + "ID_on=10.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=1.5; #Threshold value of gate-source voltage, V\n", + "\n", + "#Calculation\n", + "K=round((ID_on/(VGS_on-VGS_th)**2),3); #Constant for a E-MOSFET, mA/V²\n", + "VGS=VDD*R2/(R1+R2); #Gate-source voltage, V (Voltage divider rule)\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "\n", + "#Result\n", + "print(\"Drain current=%.2fmA.\"%ID);\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_5.ipynb new file mode 100644 index 00000000..65f7561a --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_5.ipynb @@ -0,0 +1,1671 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 19 : FIELD EFFECT TRANSISTORS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.1 : Page number 515" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ID=12[1 + VGS/5]²mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=12.0; #Shorted gate drain current, mA\n", + "V_GS_off=-5.0; #Gate-source cut-off voltage, V\n", + "\n", + "#Result\n", + "print(\"ID=%d[1 + VGS/%d]²mA.\"%(I_DSS,abs(V_GS_off)));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.2 : Page number 515" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain current=6.12mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=32.0; #Shorted gate drain current, mA\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "V_GS=-4.5; #Gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current mA\n", + "\n", + "#Result\n", + "print(\"The drain current=%.2fmA.\"%I_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.3 : Page number 515" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) VGS=-1.76V.\n", + "(ii) VP=6V\n" + ] + } + ], + "source": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "I_DSS=10.0; #Shorted gate drain current, mA\n", + "V_GS_off=-6.0; #Gate-source cut-off voltage, V\n", + "I_D=5.0; #Drain current mA\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, I_D=I_DSS*[1 - (V_GS/V_GS_off)]²\n", + "V_GS=V_GS_off*(1-sqrt(I_D/I_DSS)); #Gate-source voltage, V\n", + "\n", + "#(ii)\n", + "V_P=-V_GS_off; #Pinch-off voltage, V \n", + "\n", + "#Result\n", + "print(\"(i) VGS=%.2fV.\"%V_GS);\n", + "print(\"(ii) VP=%dV\"%V_P);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.4 : Page number 515-516" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The minimum value of VDD required =10.72V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS_off=-4.0; #Gate-source cut-off voltage, V\n", + "I_DSS=12.0; #Shorted gate drain current, mA\n", + "R_D=560.0; #Drain resistor, Ω\n", + "\n", + "#Calculation\n", + "V_P=-V_GS_off; #Pinch-off voltage, V\n", + "V_DS=V_P; #Minimum drain-source voltage for JFET to be in constant current region, V\n", + "I_D=I_DSS; #Maximum drain current, mA (V_GS=0)\n", + "V_RD=(I_D/1000)*R_D; #Voltage across drain resistor, V (OHM's LAW)\n", + "V_DD=V_DS+V_RD; #Minimum value of supply voltage to drain, V\n", + "\n", + "#Result\n", + "print(\"The minimum value of VDD required =%.2fV.\"%V_DD);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.5 : Page number 516" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain current=1.33mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=3.0; #Shorted gate drain current, mA\n", + "V_GS_off=-6.0; #Gate-source cut-off voltage, V\n", + "V_GS=-2.0; #Gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current mA\n", + "\n", + "#Result\n", + "print(\"The drain current=%.2fmA.\"%I_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.6 : Page number 516" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "p-channel JFET requires a positive gate-to-source voltage to pass drain current.\n", + "More positive voltage, the less the drain current. \n", + "Any further increase in VGS keeps the JFET cut-off. Therefore, ID=0A.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VGS_off=4; #Gate-source cut-off voltage, V\n", + "VGS=6; #Gate source voltage, V\n", + "\n", + "print(\"p-channel JFET requires a positive gate-to-source voltage to pass drain current.\");\n", + "print(\"More positive voltage, the less the drain current. \");\n", + "print(\"Any further increase in VGS keeps the JFET cut-off. Therefore, ID=0A.\");" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.7 : Page number 517-518" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The gate to source resistance=15000MΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS=15.0; #Gate-source voltage, V\n", + "I_G=1e-03; #Gate current, μA\n", + "\n", + "#Calculation\n", + "R_GS=(V_GS/(I_G*10**-6))/10**6; #Gate to source resistance, MΩ (OHM's LAW)\n", + "\n", + "#Result\n", + "print(\"The gate to source resistance=%dMΩ.\"%R_GS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.8 : Page number 518" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Transconductance=3000 μ mho\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "V_GS_max=-3.1; #Maximum gate to source voltage, V\n", + "V_GS_min=-3.0; #Minimum gate to source voltage, V\n", + "I_D_max=1.3; #Maximum drain current, mA\n", + "I_D_min=1.0; #Minimum drain current, mA\n", + "\n", + "\n", + "#Calculation\n", + "delta_V_GS=abs(V_GS_max-V_GS_min); #Change in gate to source voltage, V\n", + "delta_I_D=I_D_max-I_D_min; #Change in drain current, mA\n", + "g_fs=(delta_I_D/delta_V_GS)*1000; #Transconductance, μ mho\n", + "\n", + "\n", + "#Result\n", + "print(\"Transconductance=%.0f μ mho\"%g_fs);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.9 : Page number 518" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VGS= 0V 0V -0.2V\n", + "VDS= 7V 15V 15V\n", + "ID = 10V 10.25V 9.65V\n", + "(i) The a.c drain resistance=32kΩ.\n", + "(ii) The transconductance=3000 μ mho.\n", + "(iii) The amplification factor=96.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS=[0,0,-0.2]; #Readings of Gate-source voltage, V\n", + "V_DS=[7,15,15]; #Readings of Drain-source voltage, V\n", + "ID=[10,10.25,9.65]; #Readings of drain current, mA\n", + "\n", + "\n", + "#Displaying the readings:\n", + "print(\"VGS= %dV %dV %.1fV\"%(V_GS[0],V_GS[1],V_GS[2]));\n", + "print(\"VDS= %dV %dV %dV\"%(V_DS[0],V_DS[1],V_DS[2]));\n", + "print(\"ID = %dV %.2fV %.2fV\"%(ID[0],ID[1],ID[2]));\n", + "\n", + "#Calculations\n", + "#(i)\n", + "#V_GS constant at 0V,\n", + "delta_VDS=V_DS[1]-V_DS[0]; #Change in drain-source voltage, V\n", + "delta_ID=ID[1]-ID[0]; #Change in drain current, mA\n", + "rd=delta_VDS/delta_ID; #a.c drain resistance, kΩ\n", + "\n", + "#(ii)\n", + "#V_DS constant at 15V,\n", + "delta_VGS=V_GS[2]-V_GS[1]; #Change in gate-source voltage, V\n", + "delta_ID=ID[2]-ID[1]; #Change in drain current, mA\n", + "g_fs=round((delta_ID/delta_VGS)*1000,); #Transconductance, μ mho\n", + "\n", + "#(iii)\n", + "amplification_factor=rd*1000*g_fs*10**-6; #Amplification factor\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The a.c drain resistance=%dkΩ.\"%rd);\n", + "print(\"(ii) The transconductance=%d μ mho.\"%g_fs);\n", + "print(\"(iii) The amplification factor=%d.\"%amplification_factor );\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.10 : Page number 519" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The transconductance=2500 μS.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "g_mo=4000.0; #Maximum transconductance, μS\n", + "V_GS=-3.0; #Gate to source voltage, V\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "\n", + "#Calculation\n", + "g_m=g_mo*(1-(V_GS/V_GS_off)); #Transconductance, μS\n", + "\n", + "#Result\n", + "print(\"The transconductance=%d μS.\"%g_m);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.11 : Page number 519" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The transconductance=1667 μS.\n", + "The drain current=333 μA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "g_mo=5000.0; #Maximum transconductance, μS\n", + "V_GS=-4.0; #Gate to source voltage, V\n", + "V_GS_off=-6.0; #Gate-source cut-off voltage, V\n", + "I_DSS=3.0; #Shorted-gate drain current, mA\n", + "\n", + "#Calculation\n", + "g_m=g_mo*(1-(V_GS/V_GS_off)); #Transconductance, μS\n", + "I_D=(I_DSS*(1-(V_GS/V_GS_off))**2)*1000; #Drain current μA\n", + "\n", + "\n", + "#Result\n", + "print(\"The transconductance=%.0f μS.\"%g_m);\n", + "print(\"The drain current=%d μA.\"%I_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.12 : Page number 520" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The gate-source voltage=-5V.\n", + "The drain current=2.25mA.\n", + "The drain-source voltage=5.05V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "I_DSS=16.0; #Shorted-gate drain current, mA\n", + "R_D=2.2; #Drain resistor, kΩ\n", + "R_G=1.0; #Gate resistor, MΩ\n", + "V_DD=10.0; #Drain supply voltage, V\n", + "V_GG=-5.0; #Gate supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_GS=V_GG; #Gate-source voltage, V\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current μA\n", + "V_DS=V_DD-I_D*R_D; #Drain-source voltage, V (Kirchhoff's voltage law)\n", + "\n", + "#Result\n", + "print(\"The gate-source voltage=%dV.\"%V_GS);\n", + "print(\"The drain current=%.2fmA.\"%I_D);\n", + "print(\"The drain-source voltage=%.2fV.\"%V_DS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.13 : Page number 521" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain-source voltage=7.65V.\n", + "The gate-source voltage=-2.35V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_D=5.0; #Drain current mA\n", + "V_DD=15.0; #Drain supply voltage, V\n", + "V_G=0; #Gate voltage, V\n", + "R_D=1.0; #Drain resistor, kΩ\n", + "R_S=470.0; #Source resistor, Ω\n", + "\n", + "\n", + "#Calculation\n", + "V_S=(I_D/1000)*R_S; #Source voltage, V (OHM's LAW)\n", + "V_D=V_DD-I_D*R_D; #Drain voltage, V (Kirchhoff's voltage law)\n", + "V_DS=V_D-V_S; #Drain-source voltage, V\n", + "V_GS=V_G-V_S; #Gate-source voltage, V\n", + "\n", + "#Result\n", + "print(\"The drain-source voltage=%.2fV.\"%V_DS);\n", + "print(\"The gate-source voltage=%.2fV.\"%V_GS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.14 : Page number 521" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The required source resistor=800 Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_GS=-5.0; #Gate-source voltage, V\n", + "I_D=6.25; #Drain current mA\n", + "\n", + "\n", + "#Calculation\n", + "R_S=abs(V_GS/(I_D/1000)); #Required source resistor, Ω (OHM's LAW)\n", + "\n", + "#Result\n", + "print(\"The required source resistor=%d Ω.\"%R_S);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.15 : Page number : 521" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The source resistance=450Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=25.0; #Shorted gate drain current, mA\n", + "V_GS_off=15.0; #Gate-source cut-off voltage, V\n", + "V_GS=5.0; #Gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_D=I_DSS*(1-(V_GS/V_GS_off))**2; #Drain current mA\n", + "R_S=V_GS/(I_D/1000); #Required source resistor, Ω (OHM's LAW)\n", + "\n", + "\n", + "#Result\n", + "print(\"The source resistance=%.0fΩ.\"%R_S);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.16 : Page number 522" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " RS=313 Ω and RD=800 Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_DSS=15.0; #Shorted gate drain current, mA\n", + "V_GS_off=-8.0; #Gate-source cut-off voltage, V\n", + "V_DD=12.0; #Drain supply voltage,V\n", + "V_D=V_DD/2; #Drain voltage(half of V_DD), V\n", + "\n", + "#Calculation\n", + "I_D=I_DSS/2; #Drain current(approximately half of I_DSS), mA\n", + "V_GS=V_GS_off/3.4; #Gate-source voltage, V\n", + "R_S=abs(V_GS/(I_D/1000)); #Source resistor, Ω (OHM's LAW)\n", + "#Since,V_D=V_DD-I_D*R_D; \n", + "R_D=(V_DD-V_D)/(I_D/1000); #Drain resistor, Ω (OHM's LAW)\n", + "\n", + "#Result\n", + "print(\" RS=%d Ω and RD=%d Ω.\"%(R_S,R_D));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.17 : Page number 522" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The source resistance=0.6 kΩ\n", + "The drain resistance=6 kΩ.\n" + ] + } + ], + "source": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "I_DSS=5.0; #Shorted gate drain current, mA\n", + "V_GS_off=-2.0; #Gate-source cut-off voltage, V\n", + "V_DS=10.0; #Drain-source voltage,V\n", + "I_D=1.5; #Drain current, mA\n", + "V_DD=20.0; #Drain supply voltage,V\n", + "V_G=0; #Gate voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Drain current, I_D=I_DSS*(1-(V_GS/V_GS_off))**2; \n", + "V_GS=V_GS_off*(1-sqrt(I_D/I_DSS)); #Gate-source voltage, V\n", + "\n", + "#Since, V_GS=V_G-V_S,\n", + "V_S=V_G-V_GS; #Source voltage, V\n", + "\n", + "R_S=V_S/I_D; #Source resistor, kΩ\n", + "\n", + "#Since, V_DD=I_D*R_D +V_DS+ I_D*R_S,\n", + "R_D=(V_DD-I_D*R_S-V_DS)/I_D; #Drain resistor, kΩ\n", + "\n", + "#Calculation\n", + "print(\"The source resistance=%.1f kΩ\"%R_S);\n", + "print(\"The drain resistance=%d kΩ.\"%R_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.18 : Page number 522-523" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The drain-source voltage=17V.\n", + "The gate-source voltage=-0.5V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_DD=30.0; #Drain supply voltage, V\n", + "R_D=5.0; #Drain resistor, kΩ\n", + "I_D=2.5; #Drain current, mA\n", + "R_S=200.0; #Source resistor, Ω\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V_DS=V_DD-I_D*(R_D+(R_S/1000)); #Drain-source voltage, V\n", + "\n", + "#(ii)\n", + "V_GS=-(I_D/1000)*R_S; #Gate-source voltage, V\n", + "\n", + "#Result\n", + "print(\"The drain-source voltage=%dV.\"%V_DS);\n", + "print(\"The gate-source voltage=%.1fV.\"%V_GS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.19 : Page number 523" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "drain voltage of 1st stage=12.37V.\n", + "Source voltage of 1st stage=1.46V.\n", + "drain voltage of 2nd stage=11.7V.\n", + "Source voltage of 2nd stage=2.01V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "ID_1=2.15; #First stage drain current, mA\n", + "ID_2=9.15; #Second stage drain current, mA\n", + "VDD=30; #Drain supply voltage, V\n", + "RS_1=0.68; #Source resistance of 1st stage, kΩ\n", + "RS_2=0.22; #Source resistance of 2nd stage, kΩ\n", + "RD_1=8.2; #Drain resistor of 1st stage, kΩ\n", + "RD_2=2; #Drain resistor of 2nd stage, kΩ\n", + "\n", + "#Calculation\n", + "V_RD1=ID_1*RD_1; #Voltage drop across 8.2kΩ\n", + "VD_1=VDD-V_RD1; #Drain voltage of 1st stage, V\n", + "VS_1=ID_1*RS_1; #D.C potential of source of first stage, V\n", + "V_RD2=ID_2*RD_2; #Voltage drop across 2kΩ\n", + "VD_2=VDD-V_RD2; #Drain voltage of 2nd stage, V\n", + "VS_2=ID_2*RS_2; #D.C potential of source of 2nd stage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"drain voltage of 1st stage=%.2fV.\"%VD_1);\n", + "print(\"Source voltage of 1st stage=%.2fV.\"%VS_1);\n", + "print(\"drain voltage of 2nd stage=%.1fV.\"%VD_2);\n", + "print(\"Source voltage of 2nd stage=%.2fV.\"%VS_2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.20 : Page number 524" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=1.52mA.\n", + "Gate-source voltage=-1.2V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=12; #Drain supply voltage, V\n", + "VD=7; #Drain voltage, V\n", + "R1=6.8; #Resistor R1, MΩ\n", + "R2=1; #Resistor R2, MΩ\n", + "RS=1.8; #Source resistance, kΩ\n", + "RD=3.3; #Drain resistor, kΩ\n", + "\n", + "#Calculation\n", + "ID=(VDD-VD)/RD; #Second stage drain current, mA\n", + "VS=ID*RS; #Source voltage, V\n", + "VG=VDD*R2/(R1+R2); #Drain voltage, V\n", + "VGS=VG-VS; #Drain-source voltage, V\n", + "\n", + "#Calculation\n", + "print(\"Drain current=%.2fmA.\"%ID);\n", + "print(\"Gate-source voltage=%.1fV.\"%VGS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.21 : Page number 524-525" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Source resistor, RS=5kΩ.\n" + ] + } + ], + "source": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "VDD=30; #Drain supply voltage, V\n", + "ID=2.5; #Drain current, mA\n", + "VDS=8; #Drain-source voltage, V\n", + "VGS_off=-5; #Gate-source cutoff voltage, V\n", + "R1=1; #Resistor R1, MΩ\n", + "R2=500; #Resistor R2, kΩ\n", + "IDSS=10; #Shorted gate drain current, mA\n", + "\n", + "#Calculation\n", + "#ID=IDSS*square_of(1-(VGS/VGS_off))\n", + "VGS=VGS_off*(1-sqrt(ID/IDSS)); #Gate-source voltage, V\n", + "V2=VDD*R2/(R1*1000+R2); #Voltage across R2, V\n", + "\n", + "\n", + "#V2=VGS+ID*RS\n", + "RS=(V2-VGS)/ID; #Source resistor, kΩ\n", + "\n", + "#Result\n", + "print(\"Source resistor, RS=%dkΩ.\"%RS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.22 : Page number 528-529" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEZCAYAAABiu9n+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\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KQhSnIK8Myq+u972O5gOhd9Ommu7aTltqLpAqRxVlVXdgep9+TxwPnDrkdaKJOEJKkvxyQk\nSX3ZSEiS+rKRkCT1ZSMhSerLRkKS1Nf/Bz7AopOp9unzAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f70cf070f28>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline \n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VDD=20.0; #Drain supply voltage, V\n", + "RS=50.0; #Source resistor, Ω\n", + "RD=150.0; #Drain resistor, Ω\n", + "\n", + "#Calculation\n", + "VDS_max=VDD; #Maximum drain source voltage, V\n", + "ID_max=(VDD/(RD+RS))*1000; #Maximum drain current, mA\n", + "\n", + "\n", + "#plot\n", + "x=[i for i in range(0,(int)(VDS_max+1))]; #Plot variable for V_DS\n", + "y=[(i/(RD+RS))*1000 for i in reversed(x[:])]; #Plot variable for ID\n", + "\n", + "\n", + "plt.plot(x,y);\n", + "plt.xlabel(\"VDS(V)\");\n", + "plt.ylabel(\"ID(mA)\");\n", + "plt.title(\"d.c load line\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.23 : Page number 529" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEZCAYAAAB1mUk3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGlxJREFUeJzt3X20XHV97/H3B1MRj4AnaEgEDEIVlMIKcOESYpNBLopo\nwJqWgnp4bNddrViS6K0kfUhiXS3YtXIhbYUqyBLa8JimOQELiGRIFZXHBNQUL9WAeEkED2ANLhbC\nt3/sPclkMufkzJzZs/ee+bzWmpU9+2H2dyZz5jef32/vPYoIzMysv+2RdwFmZpY/NwZmZubGwMzM\n3BiYmRluDMzMDDcGZ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WrG0k+pGHXD+t69UnhLuAdJJdYPhx4WNJ+JInh2br1XiG5auTvpstnsCM1QHI5\n4bd15mmYdYYbA+tXa4CTJR0N7BURj4yy3jEkPyUIQES8EBE3RsQ5wIPAbOBXQOMYQK2r6HeBNRHx\nat2yN6TbmBWGGwPrSxGxDaiSXAu+PhXUX2P/YOBvgRXp/ZMk7ZVO7w0cCjwF/JAkMdSrAu8E/phd\nU8e78PX6rWDcGFg/uwE4ip0/rA+pHVpK8u3+8oi4Ll12LPCgpA3At0iOHnooIl4CnpB0SO1B0l/t\nuhWYHBH3Nuz3JOD2bJ6SWXv8ewZmHSDpDODYiPjL3aw3heQHhk4Zaz2zbpuUdwFmvSAi1qSDxbvz\nduDTWddj1ionAzMz85iBmZm5MTAzM9wYmJkZbgzMzAw3BmZmBvw3WQTOWIXQWhcAAAAASUVORK5C\nYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f70cf06ab38>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline \n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VDD=20; #Drain supply voltage, V\n", + "RD=500.0; #Drain resistor, Ω\n", + "\n", + "#Calculation\n", + "VDS_max=VDD; #Maximum drain source voltage, v \n", + "ID_max=(VDD/RD)*1000; #Maximum drain current, mA\n", + "\n", + "#Plot\n", + "x=[i for i in range(0,(int)(VDS_max+1))]; #Plot variable for V_DS\n", + "y=[(i/RD)*1000 for i in reversed(x[:])]; #Plot variable for ID\n", + "\n", + "plt.plot(x,y);\n", + "plt.xlabel(\"VDS(V)\");\n", + "plt.ylabel(\"ID(mA)\");\n", + "plt.title(\"d.c load line\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.24 : Page number 530-531" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain=4.8.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=20; #Drain supply voltage, V\n", + "RD=12.0; #Drain resistor, kΩ\n", + "RL=8.0; #Load resistor, kΩ\n", + "RG=1.0; #Gate resistor, MΩ\n", + "gm=1.0; #transconductance, mA/V\n", + "\n", + "#Calculation\n", + "gm=gm*10**-3; #transconductance, mho\n", + "RAC=(RD*RL)/(RD+RL); #Total a.c load, kΩ\n", + "Av=gm*RAC*1000; #Voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"Voltage gain=%.1f.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.25 : Page number 531" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain=30.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "gm=3000; #transconductance, μmho\n", + "RD=10; #Drain resistance, kΩ\n", + "\n", + "#Calculation\n", + "Av=gm*10**-6*RD*1000; #Voltage gain\n", + "\n", + "#Result\n", + "print(\"Voltage gain=%d.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.26 : Page number 531" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=257mV(r.m.s).\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IDSS=8; #Shorted gate drain current, mA\n", + "VGS_off=-10; #Gate-source cut-off voltage, V\n", + "ID=1.9; #Drain current, mA\n", + "RD=3.3; #Drain resistance, kΩ\n", + "RS=2.7; #Source resistor, kΩ\n", + "vin=100; #Input voltage, mV\n", + "\n", + "#Calculation\n", + "VGS=-ID*RS; #Gate-source voltage, V\n", + "gmo=2*IDSS*10**-3/abs(VGS_off); #Maximum transconductance, S\n", + "gm=gmo*(1-(VGS/VGS_off)); #Transconductance, S\n", + "Av=gm*RD*1000; #Voltage gain\n", + "vout=Av*vin; #Output voltage, mA\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dmV(r.m.s).\"%vout);\n", + " \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.27 : Page number 531-532" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=151mV(r.m.s).\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RL=4.7; #Load resistor, Ω\n", + "RD=3.3; #Drain resistance, kΩ\n", + "gm=779*10**-6; #Transconductance, S\n", + "vin=100; #Input voltage, mV\n", + "\n", + "\n", + "#Calculation\n", + "RAC=RD*RL/(RD+RL); #Total a.c drain resistance, kΩ\n", + "Av=gm*RAC*1000; #Voltage gain\n", + "vout=Av*vin; #Output voltage, mA\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dmV(r.m.s).\"%vout);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.28 : Page number 532-533" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain=1.85.\n", + "Voltage gain, if RS resistor is bypassed=6.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RD=1.5; #Drain resistance, kΩ\n", + "gm=4; #Transconductance, mS\n", + "RS=560; #Source resistance, Ω\n", + "\n", + "#Calculation\n", + "Av=gm*10**-3*RD*1000/(1+gm*10**-3*RS);\n", + "print(\"Voltage gain=%.2f.\"%Av);\n", + "\n", + "#If RS is bypassed by a capacitor\n", + "Av=gm*10**-3*RD*1000;\n", + "print(\"Voltage gain, if RS resistor is bypassed=%d.\"%Av);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.29 : Page number 533" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Voltage gain with RS bypassed=4.155.\n", + "(ii) Voltage gain with RS unbypassed=1.35.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "from math import sqrt\n", + "\n", + "IDSS=10; #Shorted gate drain current, mA\n", + "VGS_off=-3.5; #Gate-source cut-off voltage, V\n", + "RD=1.5; #Drain resistance, kΩ\n", + "RS=750; #Source resistance, Ω\n", + "\n", + "\n", + "#Calculation\n", + "#From d.c biasing\n", + "ID=2.3; #Drain current, mA\n", + "VGS=round(VGS_off*(1-sqrt(ID/IDSS)),1); #Gate-source voltage, V\n", + "gm=round(round((2*IDSS/abs(VGS_off)),1)*round((1-(VGS/VGS_off)),3),2); #Transconductance, mS\n", + "\n", + "\n", + "#(i)\n", + "Av=gm*RD; #Voltage gain with RS resistor bypassed\n", + "print(\"(i) Voltage gain with RS bypassed=%.3f.\"%Av);\n", + "\n", + "#(ii)\n", + "Av=Av/(1+gm*(RS/1000.0));\n", + "print(\"(ii) Voltage gain with RS unbypassed=%.2f.\"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.30 : Page number 539-540" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) n-channel D-MOSFET\n", + "(ii) Drain current=3.91mA\n", + "(iii) Drain current=18.9mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IDSS=10.0; #Shorted gate drain current, mA\n", + "VGS_off=-8.0; #Gate-source cut-off voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "if(VGS_off<0):\n", + " print(\"(i) n-channel D-MOSFET\");\n", + "else:\n", + " print(\"(i) p-channel D-MOSFET\");\n", + " \n", + "\n", + "#(ii)\n", + "VGS=-3.0; #Gate-source voltage, V\n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"(ii) Drain current=%.2fmA\"%ID);\n", + "\n", + "#(iii)\n", + "VGS=3.0; #Gate-source voltage, V\n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"(iii) Drain current=%.1fmA\"%ID);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.31 : Page number 540" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Point 1: VGS=0V and ID=1mA.\n", + "Point 2: VGS=-6V and ID=0mA.\n", + "Point 3: VGS=-3V and ID=0.25mA.\n", + "Point 4: VGS=-1V and ID=0.694mA.\n", + "Point 5: VGS=1V and ID=1.36mA.\n", + "Point 6: VGS=3V and ID=2.25mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "IDSS=1.0; #Shorted gate drain current, mA\n", + "VGS_off=-6.0; #Gate-source cut-off voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#Point 1\n", + "VGS=0; #Gate source voltage, V \n", + "ID=IDSS; #Drain current, mA\n", + "print(\"Point 1: VGS=%dV and ID=%dmA.\"%(VGS,ID));\n", + "\n", + "#Point 2\n", + "VGS=VGS_off; #Gate source voltage, V \n", + "ID=0; #Drain current, mA\n", + "print(\"Point 2: VGS=%dV and ID=%dmA.\"%(VGS,ID));\n", + "\n", + "#locating more points by changing VG values\n", + "VGS=-3; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 3: VGS=%dV and ID=%.2fmA.\"%(VGS,ID));\n", + "\n", + "VGS=-1; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 4: VGS=%dV and ID=%.3fmA.\"%(VGS,ID));\n", + "\n", + "VGS=1; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 5: VGS=%dV and ID=%.2fmA.\"%(VGS,ID));\n", + "\n", + "VGS=3; #Gate source voltage, V \n", + "ID=IDSS*(1-(VGS/VGS_off))**2; #Drain current mA\n", + "print(\"Point 6: VGS=%dV and ID=%.2fmA.\"%(VGS,ID));" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.32 : Page number 541" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain source voltage=10.6V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=18; #Drain supply voltage, V\n", + "RD=620.0; #Drain resistor, Ω\n", + "IDSS=12.0; #Shorted gate drain current, mA\n", + "VGS_off=-8.0; #Gate-source cut-off voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "ID=IDSS; #Drain current, mA\n", + "VDS=VDD-IDSS*(RD/1000); #Drain source voltage, V\n", + "\n", + "#Result\n", + "print(\"Drain source voltage=%.1fV.\"%VDS);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.33 : Page number 542" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Drain source voltage=7.56V.\n", + "(ii) Output voltage=922mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=15; #Drain supply voltage\n", + "RD=620.0; #Drain resistor, Ω\n", + "RL=8.2; #Load resistor, kΩ\n", + "vin=500.0; #Input voltage, V\n", + "IDSS=12.0; #Shorted gate drain current, mA\n", + "gm=3.2; #Transconductance, mS\n", + "\n", + "#Calculation\n", + "#(i)\n", + "VDS=VDD-IDSS*(RD/1000.0); #Drain source voltage, V\n", + "\n", + "#(ii)\n", + "RAC=RD*RL*1000/(RD+RL*1000); #Total a.c drain resistace, Ω\n", + "vout=(gm/1000.0)*RAC*vin; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"(i) Drain source voltage=%.2fV.\"%VDS);\n", + "print(\"(ii) Output voltage=%dmV\"%vout);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.34 : Page number 545" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=98.7mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "ID_on=500.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=1.0; #Threshold value of gate-source voltage, V\n", + "VGS=5; #Gate-source voltage, V\n", + "\n", + "#Calculation\n", + "K=round(ID_on/(VGS_on-VGS_th)**2,2); #Constant for a E-MOSFET, mA/V²\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "\n", + "#Result\n", + "print(\"Drain current=%.1fmA\"%ID);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.35 : Page number 545" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "K=0.061e-03A/V².\n", + "For VGS=5V, Drain current=0.244mA\n", + "For VGS=8V, Drain current=1.525mA\n", + "For VGS=10V, Drain current=2mA\n", + "For VGS=12V, Drain current=4.94mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "ID_on=3.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=3.0; #Threshold value of gate-source voltage, V\n", + "\n", + "#Calculation\n", + "K=round((ID_on/(VGS_on-VGS_th)**2),3); #Constant for a E-MOSFET, mA/V²\n", + "print(\"K=%.3fe-03A/V².\"%K);\n", + "\n", + "#Determining different points for plotting\n", + "VGS=5; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=5V, Drain current=%.3fmA\"%ID);\n", + "VGS=8; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=8V, Drain current=%.3fmA\"%ID);\n", + "VGS=10; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=10V, Drain current=%.dmA\"%ID);\n", + "VGS=12; #Gate-source voltage, V\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "print(\"For VGS=12V, Drain current=%.2fmA\"%ID);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.36 : Page number 546-547" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain-source voltage=10.8V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=24.0; #Drain supply voltage, V\n", + "RD=470.0; #Drain resistor, Ω\n", + "R1=100.0; #Resistor R1, kΩ\n", + "R2=15.0; #Resistor R2, kΩ\n", + "ID_on=500.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=1.0; #Threshold value of gate-source voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "VGS=VDD*R2/(R1+R2); #Gate-source voltage, V (Voltage divider rule)\n", + "K=round((ID_on/(VGS_on-VGS_th)**2),2); #Constant for a E-MOSFET, mA/V²\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "VDS=VDD-(ID/1000)*RD; #Drain-source voltage, V\n", + "\n", + "#Result\n", + "print(\"Drain-source voltage=%.1fV.\"%VDS);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.37 : Page number 547" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=10mA.\n", + "Drain-source voltage=10V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=20.0; #Drain supply voltage, V\n", + "RD=1.0; #Drain resistor, kΩ\n", + "RG=5.0; #Gate resistor , MΩ\n", + "ID_on=10.0; #Drain current for MOSFET ON, mA\n", + "\n", + "#Calculation\n", + "#since, VGS=VDS\n", + "ID=ID_on; #Drain current, mA\n", + "VDS=VDD-ID*RD; #Drain-source voltage, V\n", + "\n", + "#Result\n", + "print(\"Drain current=%dmA.\"%ID);\n", + "print(\"Drain-source voltage=%dV.\"%VDS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.38 : Page number 547-548" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Drain current=1.69mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VDD=10.0; #Drain supply voltage, V\n", + "RD=3.0; #Drain resistor, kΩ\n", + "R1=1.0; #Resistor R1, MΩ\n", + "R2=1.0; #Resistor R2, MΩ\n", + "ID_on=10.0; #Drain current for MOSFET ON, mA\n", + "VGS_on=10.0; #Gate-source voltage for MOSFET ON, V\n", + "VGS_th=1.5; #Threshold value of gate-source voltage, V\n", + "\n", + "#Calculation\n", + "K=round((ID_on/(VGS_on-VGS_th)**2),3); #Constant for a E-MOSFET, mA/V²\n", + "VGS=VDD*R2/(R1+R2); #Gate-source voltage, V (Voltage divider rule)\n", + "ID=K*(VGS-VGS_th)**2; #Drain current, mA\n", + "\n", + "#Result\n", + "print(\"Drain current=%.2fmA.\"%ID);\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_4.ipynb new file mode 100644 index 00000000..49519941 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_4.ipynb @@ -0,0 +1,646 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0ac98582dd0b2497034e459e869a2a3bd28001d0d4c4b37a61a8ed5d05f228e3" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 1: INTRODUCTION" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 1.1: Page Number 8" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "Eg=24.0; #Generated voltage in V\n", + "Ri=0.01; #Internal Resistance in \u03a9\n", + "P=100; #Power supplied in watts\n", + "\n", + "#Calculations\n", + "# (i)\n", + "I=P/Eg; #Load current in A\n", + "V_Ri=I*Ri; #Voltage drop in internal resistance\n", + "\n", + "# (ii)\n", + "V=Eg-(I*Ri); #Terminal Voltage\n", + "\n", + "#Results\n", + "print (\"The voltage drop in internal resistance is %.4f V\"%V_Ri);\n", + "print (\"The terminal voltage is %.2f V\"%V);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The voltage drop in internal resistance is 0.0417 V\n", + "The terminal voltage is 23.96 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 1.2: Page number 10" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Eg=500.0; #Generated voltage in V\n", + "Ri=1000.0; #Internal Resistance in \u03a9\n", + "\n", + "\n", + "#Calculations\n", + "# (i)\n", + "RL=10; #Load resistance of case 1 in \u03a9 \n", + "I= Eg/(RL+Ri); #Load current in A\n", + "\n", + "print(\"The load current for RL=10\u03a9 is %.3f A\"%I);\n", + "\n", + "# (ii)\n", + "RL=50; #Load resistance of case 2 in \u03a9 \n", + "I= Eg/(RL+Ri); #Load current in A\n", + "\n", + "print(\"The load current for RL=50\u03a9 is %.3f A\"%I);\n", + "\n", + "# (iii)\n", + "RL=100; #Load resistance of case 3 in \u03a9 \n", + "I= Eg/(RL+Ri); #Load current in A\n", + "I=round(I,3);\n", + "\n", + "print(\"The load current for RL=100\u03a9 is %.3f A\"%I);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The load current for RL=10\u03a9 is 0.495 A\n", + "The load current for RL=50\u03a9 is 0.476 A\n", + "The load current for RL=100\u03a9 is 0.455 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.3: Page Number 11" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "E=10.0; #voltage of voltage source in V\n", + "Ri=10.0; #Internal Resistance of the voltage source in \u03a9\n", + "\n", + "#Calculation\n", + "Isc=E/Ri; #short circuit current in A\n", + "I=Isc; #Current value of current source in A\n", + "R=Ri; #Internal Resistence of the current source in \u03a9\n", + "\n", + "#Results\n", + "print(\"The current value of the current source= %d A\"%Isc);\n", + "print(\"The internal resistance of the current source =%d \u03a9 \"%R);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current value of the current source= 1 A\n", + "The internal resistance of the current source =10 \u03a9 \n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 1.4: Page number 11-12" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I=6.0; # current value of current source in mA\n", + "Ri=2000.0; #Internal Resistance of the current source in \u03a9\n", + "\n", + "#Calcultion\n", + "V=(I/1000)*Ri; #Voltage of voltage source in V\n", + "R=Ri; #Internal resistance of voltage source in \u03a9\n", + "\n", + "#Results\n", + "print(\"The voltage of voltage source is %d V\"%V);\n", + "print(\"The internal resistance of the voltage source is %d \u03a9\"%R);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The voltage of voltage source is 12 V\n", + "The internal resistance of the voltage source is 2000 \u03a9\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.5: Page number 13\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "E=200.0; #Generated voltage in V\n", + "Ri=100.0; #Internal Resistance of generator in \u03a9\n", + "\n", + "#Calculations\n", + "#(i)\n", + "RL=100; #Load resistance for 1st case in \u03a9\n", + "I=E/(RL+Ri); #Load current in 1st case A\n", + "P=(I*I)*RL; #Power delivered to load of 2nd case in watts\n", + "Pt=(I*I)*(Ri+RL); #Total power generated in watts\n", + "\n", + "print(\"Power delivered for RL=100\u03a9 is %d watts\"%P);\n", + "print(\"Total power generated for RL=100\u03a9 is %d watts\"%Pt);\n", + "\n", + "\n", + "#(ii)\n", + "RL=300; #Load resistance for 2nd case in \u03a9\n", + "I=E/(RL+Ri); #Load current in 2nd case in A\n", + "P=(I*I)*RL; #Power delivered to load of 2nd case in watts\n", + "Pt=(I*I)*(Ri+RL); #Total power generated in watts\n", + "\n", + "print(\"Power delivered for RL=300\u03a9 is %d watts\"%P);\n", + "print(\"Total power generated for RL=300\u03a9 is %d watts\"%Pt);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power delivered for RL=100\u03a9 is 100 watts\n", + "Total power generated for RL=100\u03a9 is 200 watts\n", + "Power delivered for RL=300\u03a9 is 75 watts\n", + "Total power generated for RL=300\u03a9 is 100 watts\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.6: Page number 14" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=12.0; #Output from amplifier in V\n", + "R_out_eq=15; #Equivalent resistance in \u03a9\n", + "\n", + "#Calculations\n", + "RL=R_out_eq; #Load resistance in \u03a9\n", + "Rt=RL+R_out_eq; #Total resistance in \u03a9\n", + "I=V/Rt; #Circuit current in A\n", + "PL=pow(I,2)*RL; #Power delivered to load in W\n", + "\n", + "#Results\n", + "print(\"Load resistance required is = %d \u03a9\"%RL);\n", + "print(\"Power delivered to load = %.1f W\"%PL);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load resistance required is = 15 \u03a9\n", + "Power delivered to load = 2.4 W\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.7, Page number 14" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=50.0; #voltage from ac generator in V\n", + "R=100.0; #Resistance of internal impedance in \u03a9\n", + "XL=50.0; #inductive reactance of internal impedance in \u03a9\n", + "\n", + "#Calculation\n", + "Zi=100+(50j); #Internal impedance in complex form (\u03a9)\n", + "ZL=conjugate(Zi); #Load impedance (conjugate of internal impedance ) in \u03a9\n", + "Zt=Zi+ZL; #Total impedance in \u03a9\n", + "I=real(V/Zt); #Circuit current in A\n", + "\n", + "Max_Power=pow(I,2)*R; #Maximum power transferred to the load in watts\n", + "\n", + "\n", + "#Results\n", + "print (\"Load impedance %d %dj \u03a9\"%(real(ZL),imag(ZL)));\n", + "print(\"Maximum power transferred to the load =%.2f W\"%Max_Power);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load impedance 100 -50j \u03a9\n", + "Maximum power transferred to the load =6.25 W\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.8: Page number 16" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Function for calculating parallel resistance\n", + "def pR(R1,R2):\n", + " return((R1*R2)/(R1+R2));\n", + "\n", + "\n", + "#Variable declaration\n", + "E=100.0; #Source voltage in V\n", + "R1=10.0; #Resistance of resistor 1 in \u03a9\n", + "R2=20.0; #Resistance of resistor 2 in \u03a9\n", + "R3=12.0; #Resistance of resistor 3 in \u03a9\n", + "R4=8.0; #Resistance of resistor 4 in \u03a9\n", + "RL=100.0; #Resistance of load in \u03a9\n", + "\n", + "#Calculation\n", + "Req=R1+pR(R3+R4,R2); #Equivalent resistance after removing RL ,in \u03a9\n", + "I=E/Req; #Total circuit current in A\n", + "I8=I*R2/(R2+R3+R4);\n", + "\n", + "#Thevenin's equivalent circuit's parameters\n", + "E0=I8*R4; #Thevenin voltage V\n", + "R0=pR(pR(R1,R2)+R3,R4); #Thevenin resistance \n", + "I_RL=E0/(R0+RL); #Load current in A \n", + "\n", + "#Result \n", + "print (\"Current through load = %.2f A.\"%I_RL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current through load = 0.19 A.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.9: Page number 17" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Function for calculating parallel resistance\n", + "def pR(R1,R2):\n", + " return((R1*R2)/(R1+R2));\n", + "\n", + "\n", + "#Variable declaration\n", + "V=20.0; #Voltage source in V\n", + "R1=1000.0; #resistance of resistor 1 in \u03a9\n", + "R2=1000.0; #resistance of resistor 2 in \u03a9\n", + "R3=1000.0; #resistance of resistor 3 in \u03a9\n", + "\n", + "#calculation\n", + "#parameter for Thevenin's equivalent circuit\n", + "E0=(V*R3)/(R1+R3); #thevenin voltage in V\n", + "R0=pR(R1,R3)+R2; #Thevenins resistance in \u03a9\n", + "\n", + "#result\n", + "print(\"The thevenin voltage = %d V\"%E0);\n", + "print(\"The thevenin resistance = %d \u03a9\"%R0);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The thevenin voltage = 10 V\n", + "The thevenin resistance = 1500 \u03a9\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.10: Page number 18" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=120.0; #Supply voltage in V\n", + "R1=40.0; #Resistor 1's resistance in \u03a9\n", + "R2=20.0; #Resistor 2's resistance in \u03a9\n", + "R3=60.0; #Resistor 3's resistance in \u03a9\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, Thevenin's voltage and resistance are calculated\n", + "E0=(V*R2)/(R1+R2); #Thevenin voltage (voltage across the load resistance RL, after removing RL)in V\n", + "R0=(R1*R2)/(R1+R2) + R3; #Thevenin's resistance (Resistance between the terminals of load RL, with RL removed and source voltage shorted)in \u03a9 \n", + "RL=R0; #Value of load resistance to be connected for maximum power transfer in \u03a9\n", + "Pmax=pow(E0,2)/(4*RL); #Maximum power transferred to load in watts\n", + "\n", + "#Results\n", + "print(\"The value of load resistance RL to which maximum power will be transferred = %.2f \u03a9.\"%RL);\n", + "print(\"The maximum power transferred to load =%.2f W.\"%Pmax);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of load resistance RL to which maximum power will be transferred = 73.33 \u03a9.\n", + "The maximum power transferred to load =5.45 W.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.11: Page number 18-19-20" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=80.0; #Supply voltage in V\n", + "R1=100.0; #Resistor 1's resistance in \u03a9\n", + "R2=100.0; #Resistor 2's resistance in \u03a9\n", + "R3=30.0; #Resistor 3's resistance in \u03a9\n", + "R4=80.0; #Resistor 4's resistance in \u03a9\n", + "R5=20.0; #Resistor 5's resistance in \u03a9\n", + "R6=60.0; #Resistor 6's resistance in \u03a9\n", + "R7=20.0; #Resistor 7's resistance in \u03a9\n", + "R8=50.0; #Resistor 8's resistance in \u03a9\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem,\n", + "E0=(V*R2)/(R1+R2); #Thevenin's voltage for the circuit containing V, R1, R2 in V.\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance for R1, R2 in \u03a9.\n", + "\n", + "#Using Thevenin's theorem again on E0, R0 and rest of the circuit resistors.\n", + "E0_1=(E0*R4)/(R0+R3+R4); #Thevenin's voltage for the cicruit containing E0, R0, R3, R4 in V\n", + "R0_1=((R0+R3)*R4)/(R0+R3+R4); #Thevenin's resistance of R0,R3,R4 (R0 and R3 in series and both in parallel with R4), in \u03a9 \n", + "\n", + "#Using Thevenin's theorem again on E0_1, R0_1, and rest of the circuit resistors.\n", + "E0_2=(E0_1*R6)/(R0_1+R5+R6); #Thevenin's voltage for the circuit containing E0_1, R0_1, R5, R6 in V\n", + "R0_2=((R0_1+R5)*R6)/(R0_1+R5+R6); #Thevenin's resistance of R0_1,R5,R6 (R0 and R3 in series and both in parallel with R4), in \u03a9\n", + "\n", + "\n", + "I_50=E0_2/(R0_2+R7+R8); #Current through the 50 \u03a9 resistor in A\n", + "\n", + "\n", + "#Results\n", + "print(\"The current through the 50 \u03a9 resistor =%.1f A.\"%I_50);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current through the 50 \u03a9 resistor =0.1 A.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.12: Page number 22\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import floor\n", + "#Variable declaration\n", + "V=40.0; #Voltage supply in V\n", + "R1=4.0; #Resistor 1's resistance in \u03a9\n", + "R2=6.0; #Resistor 2's resistance in \u03a9\n", + "R3=5.0; #Resistor 3's resistance in \u03a9\n", + "R4=8.0; #Resistor 4's resistance in \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "#Using Norton's theorem,\n", + "#calculating Norton current by removing the load resistance R4 and short circuiting those two terminals of the circuit\n", + "R=R1 + (R2*R3)/(R2+R3); #Load on source after removing R4 resistor, in \u03a9\n", + "I=V/R; #Source current in A\n", + "\n", + "#Using current dividing rule ,calculating the short circuit current.\n", + "I_N=(I*R2)/(R2+R3); #Norton's equivalent current or the short circuit current in A\n", + "\n", + "R_N=R3 + (R1*R2)/(R1+R2); #Norton's equivalent resistance in \u03a9\n", + "\n", + "I_8=(I_N*R_N)/(R_N+R4); #Current through the 8 \u03a9 resistance in A\n", + "\n", + " \n", + "\n", + "#Results\n", + "print(\"The current through the 8\u03a9 resistance =%.2f A.\"%I_8);\n", + "\n", + "#Note: The answer in the book is 1.55 A, but in the above code the approximate value is obtained, i.e not 1.55A but 1.56A\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current through the 8\u03a9 resistance =1.56 A.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.13 :Page number 23\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V1=30.0; #Voltage source 1, V\n", + "V2=18.0; #Voltage source 2, V\n", + "R1=20.0; #1st resistor, \u03a9\n", + "R2=10.0; #2nd resistor, \u03a9\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "#Finding Thevenin's Equivalent circuit\n", + "I=(V1-V2)/(R1+R2); #Current in the circuit, A\n", + "\n", + "#Applying Kirchhoff's voltage law to 1st loop of the circuit,\n", + "#V1-I*R1-E0=0, where E0 is the voltage across the points X-Y.\n", + "E0=V1-I*R1; #Thevenin's voltage source, V\n", + "\n", + "R0=R1*R2/(R1+R2); #Thevenin's resistance, \u03a9\n", + "\n", + "#Finding Norton's equivalent circuit\n", + "IN=E0/R0; #Norton's equivalent current source, A\n", + "RN=R0; #Norton's equivanlent resistance, \u03a9\n", + "\n", + "#Result\n", + "print(\"IN=%.1fA and RN=%.2f \u03a9\"%(IN,RN));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IN=3.3A and RN=6.67 \u03a9\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_5.ipynb new file mode 100644 index 00000000..49519941 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_5.ipynb @@ -0,0 +1,646 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0ac98582dd0b2497034e459e869a2a3bd28001d0d4c4b37a61a8ed5d05f228e3" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 1: INTRODUCTION" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 1.1: Page Number 8" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "Eg=24.0; #Generated voltage in V\n", + "Ri=0.01; #Internal Resistance in \u03a9\n", + "P=100; #Power supplied in watts\n", + "\n", + "#Calculations\n", + "# (i)\n", + "I=P/Eg; #Load current in A\n", + "V_Ri=I*Ri; #Voltage drop in internal resistance\n", + "\n", + "# (ii)\n", + "V=Eg-(I*Ri); #Terminal Voltage\n", + "\n", + "#Results\n", + "print (\"The voltage drop in internal resistance is %.4f V\"%V_Ri);\n", + "print (\"The terminal voltage is %.2f V\"%V);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The voltage drop in internal resistance is 0.0417 V\n", + "The terminal voltage is 23.96 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 1.2: Page number 10" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Eg=500.0; #Generated voltage in V\n", + "Ri=1000.0; #Internal Resistance in \u03a9\n", + "\n", + "\n", + "#Calculations\n", + "# (i)\n", + "RL=10; #Load resistance of case 1 in \u03a9 \n", + "I= Eg/(RL+Ri); #Load current in A\n", + "\n", + "print(\"The load current for RL=10\u03a9 is %.3f A\"%I);\n", + "\n", + "# (ii)\n", + "RL=50; #Load resistance of case 2 in \u03a9 \n", + "I= Eg/(RL+Ri); #Load current in A\n", + "\n", + "print(\"The load current for RL=50\u03a9 is %.3f A\"%I);\n", + "\n", + "# (iii)\n", + "RL=100; #Load resistance of case 3 in \u03a9 \n", + "I= Eg/(RL+Ri); #Load current in A\n", + "I=round(I,3);\n", + "\n", + "print(\"The load current for RL=100\u03a9 is %.3f A\"%I);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The load current for RL=10\u03a9 is 0.495 A\n", + "The load current for RL=50\u03a9 is 0.476 A\n", + "The load current for RL=100\u03a9 is 0.455 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.3: Page Number 11" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "E=10.0; #voltage of voltage source in V\n", + "Ri=10.0; #Internal Resistance of the voltage source in \u03a9\n", + "\n", + "#Calculation\n", + "Isc=E/Ri; #short circuit current in A\n", + "I=Isc; #Current value of current source in A\n", + "R=Ri; #Internal Resistence of the current source in \u03a9\n", + "\n", + "#Results\n", + "print(\"The current value of the current source= %d A\"%Isc);\n", + "print(\"The internal resistance of the current source =%d \u03a9 \"%R);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current value of the current source= 1 A\n", + "The internal resistance of the current source =10 \u03a9 \n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 1.4: Page number 11-12" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I=6.0; # current value of current source in mA\n", + "Ri=2000.0; #Internal Resistance of the current source in \u03a9\n", + "\n", + "#Calcultion\n", + "V=(I/1000)*Ri; #Voltage of voltage source in V\n", + "R=Ri; #Internal resistance of voltage source in \u03a9\n", + "\n", + "#Results\n", + "print(\"The voltage of voltage source is %d V\"%V);\n", + "print(\"The internal resistance of the voltage source is %d \u03a9\"%R);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The voltage of voltage source is 12 V\n", + "The internal resistance of the voltage source is 2000 \u03a9\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.5: Page number 13\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "E=200.0; #Generated voltage in V\n", + "Ri=100.0; #Internal Resistance of generator in \u03a9\n", + "\n", + "#Calculations\n", + "#(i)\n", + "RL=100; #Load resistance for 1st case in \u03a9\n", + "I=E/(RL+Ri); #Load current in 1st case A\n", + "P=(I*I)*RL; #Power delivered to load of 2nd case in watts\n", + "Pt=(I*I)*(Ri+RL); #Total power generated in watts\n", + "\n", + "print(\"Power delivered for RL=100\u03a9 is %d watts\"%P);\n", + "print(\"Total power generated for RL=100\u03a9 is %d watts\"%Pt);\n", + "\n", + "\n", + "#(ii)\n", + "RL=300; #Load resistance for 2nd case in \u03a9\n", + "I=E/(RL+Ri); #Load current in 2nd case in A\n", + "P=(I*I)*RL; #Power delivered to load of 2nd case in watts\n", + "Pt=(I*I)*(Ri+RL); #Total power generated in watts\n", + "\n", + "print(\"Power delivered for RL=300\u03a9 is %d watts\"%P);\n", + "print(\"Total power generated for RL=300\u03a9 is %d watts\"%Pt);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power delivered for RL=100\u03a9 is 100 watts\n", + "Total power generated for RL=100\u03a9 is 200 watts\n", + "Power delivered for RL=300\u03a9 is 75 watts\n", + "Total power generated for RL=300\u03a9 is 100 watts\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.6: Page number 14" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=12.0; #Output from amplifier in V\n", + "R_out_eq=15; #Equivalent resistance in \u03a9\n", + "\n", + "#Calculations\n", + "RL=R_out_eq; #Load resistance in \u03a9\n", + "Rt=RL+R_out_eq; #Total resistance in \u03a9\n", + "I=V/Rt; #Circuit current in A\n", + "PL=pow(I,2)*RL; #Power delivered to load in W\n", + "\n", + "#Results\n", + "print(\"Load resistance required is = %d \u03a9\"%RL);\n", + "print(\"Power delivered to load = %.1f W\"%PL);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load resistance required is = 15 \u03a9\n", + "Power delivered to load = 2.4 W\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.7, Page number 14" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=50.0; #voltage from ac generator in V\n", + "R=100.0; #Resistance of internal impedance in \u03a9\n", + "XL=50.0; #inductive reactance of internal impedance in \u03a9\n", + "\n", + "#Calculation\n", + "Zi=100+(50j); #Internal impedance in complex form (\u03a9)\n", + "ZL=conjugate(Zi); #Load impedance (conjugate of internal impedance ) in \u03a9\n", + "Zt=Zi+ZL; #Total impedance in \u03a9\n", + "I=real(V/Zt); #Circuit current in A\n", + "\n", + "Max_Power=pow(I,2)*R; #Maximum power transferred to the load in watts\n", + "\n", + "\n", + "#Results\n", + "print (\"Load impedance %d %dj \u03a9\"%(real(ZL),imag(ZL)));\n", + "print(\"Maximum power transferred to the load =%.2f W\"%Max_Power);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load impedance 100 -50j \u03a9\n", + "Maximum power transferred to the load =6.25 W\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.8: Page number 16" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Function for calculating parallel resistance\n", + "def pR(R1,R2):\n", + " return((R1*R2)/(R1+R2));\n", + "\n", + "\n", + "#Variable declaration\n", + "E=100.0; #Source voltage in V\n", + "R1=10.0; #Resistance of resistor 1 in \u03a9\n", + "R2=20.0; #Resistance of resistor 2 in \u03a9\n", + "R3=12.0; #Resistance of resistor 3 in \u03a9\n", + "R4=8.0; #Resistance of resistor 4 in \u03a9\n", + "RL=100.0; #Resistance of load in \u03a9\n", + "\n", + "#Calculation\n", + "Req=R1+pR(R3+R4,R2); #Equivalent resistance after removing RL ,in \u03a9\n", + "I=E/Req; #Total circuit current in A\n", + "I8=I*R2/(R2+R3+R4);\n", + "\n", + "#Thevenin's equivalent circuit's parameters\n", + "E0=I8*R4; #Thevenin voltage V\n", + "R0=pR(pR(R1,R2)+R3,R4); #Thevenin resistance \n", + "I_RL=E0/(R0+RL); #Load current in A \n", + "\n", + "#Result \n", + "print (\"Current through load = %.2f A.\"%I_RL);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current through load = 0.19 A.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.9: Page number 17" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Function for calculating parallel resistance\n", + "def pR(R1,R2):\n", + " return((R1*R2)/(R1+R2));\n", + "\n", + "\n", + "#Variable declaration\n", + "V=20.0; #Voltage source in V\n", + "R1=1000.0; #resistance of resistor 1 in \u03a9\n", + "R2=1000.0; #resistance of resistor 2 in \u03a9\n", + "R3=1000.0; #resistance of resistor 3 in \u03a9\n", + "\n", + "#calculation\n", + "#parameter for Thevenin's equivalent circuit\n", + "E0=(V*R3)/(R1+R3); #thevenin voltage in V\n", + "R0=pR(R1,R3)+R2; #Thevenins resistance in \u03a9\n", + "\n", + "#result\n", + "print(\"The thevenin voltage = %d V\"%E0);\n", + "print(\"The thevenin resistance = %d \u03a9\"%R0);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The thevenin voltage = 10 V\n", + "The thevenin resistance = 1500 \u03a9\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.10: Page number 18" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=120.0; #Supply voltage in V\n", + "R1=40.0; #Resistor 1's resistance in \u03a9\n", + "R2=20.0; #Resistor 2's resistance in \u03a9\n", + "R3=60.0; #Resistor 3's resistance in \u03a9\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, Thevenin's voltage and resistance are calculated\n", + "E0=(V*R2)/(R1+R2); #Thevenin voltage (voltage across the load resistance RL, after removing RL)in V\n", + "R0=(R1*R2)/(R1+R2) + R3; #Thevenin's resistance (Resistance between the terminals of load RL, with RL removed and source voltage shorted)in \u03a9 \n", + "RL=R0; #Value of load resistance to be connected for maximum power transfer in \u03a9\n", + "Pmax=pow(E0,2)/(4*RL); #Maximum power transferred to load in watts\n", + "\n", + "#Results\n", + "print(\"The value of load resistance RL to which maximum power will be transferred = %.2f \u03a9.\"%RL);\n", + "print(\"The maximum power transferred to load =%.2f W.\"%Pmax);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of load resistance RL to which maximum power will be transferred = 73.33 \u03a9.\n", + "The maximum power transferred to load =5.45 W.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.11: Page number 18-19-20" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=80.0; #Supply voltage in V\n", + "R1=100.0; #Resistor 1's resistance in \u03a9\n", + "R2=100.0; #Resistor 2's resistance in \u03a9\n", + "R3=30.0; #Resistor 3's resistance in \u03a9\n", + "R4=80.0; #Resistor 4's resistance in \u03a9\n", + "R5=20.0; #Resistor 5's resistance in \u03a9\n", + "R6=60.0; #Resistor 6's resistance in \u03a9\n", + "R7=20.0; #Resistor 7's resistance in \u03a9\n", + "R8=50.0; #Resistor 8's resistance in \u03a9\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem,\n", + "E0=(V*R2)/(R1+R2); #Thevenin's voltage for the circuit containing V, R1, R2 in V.\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance for R1, R2 in \u03a9.\n", + "\n", + "#Using Thevenin's theorem again on E0, R0 and rest of the circuit resistors.\n", + "E0_1=(E0*R4)/(R0+R3+R4); #Thevenin's voltage for the cicruit containing E0, R0, R3, R4 in V\n", + "R0_1=((R0+R3)*R4)/(R0+R3+R4); #Thevenin's resistance of R0,R3,R4 (R0 and R3 in series and both in parallel with R4), in \u03a9 \n", + "\n", + "#Using Thevenin's theorem again on E0_1, R0_1, and rest of the circuit resistors.\n", + "E0_2=(E0_1*R6)/(R0_1+R5+R6); #Thevenin's voltage for the circuit containing E0_1, R0_1, R5, R6 in V\n", + "R0_2=((R0_1+R5)*R6)/(R0_1+R5+R6); #Thevenin's resistance of R0_1,R5,R6 (R0 and R3 in series and both in parallel with R4), in \u03a9\n", + "\n", + "\n", + "I_50=E0_2/(R0_2+R7+R8); #Current through the 50 \u03a9 resistor in A\n", + "\n", + "\n", + "#Results\n", + "print(\"The current through the 50 \u03a9 resistor =%.1f A.\"%I_50);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current through the 50 \u03a9 resistor =0.1 A.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.12: Page number 22\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "from math import floor\n", + "#Variable declaration\n", + "V=40.0; #Voltage supply in V\n", + "R1=4.0; #Resistor 1's resistance in \u03a9\n", + "R2=6.0; #Resistor 2's resistance in \u03a9\n", + "R3=5.0; #Resistor 3's resistance in \u03a9\n", + "R4=8.0; #Resistor 4's resistance in \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "#Using Norton's theorem,\n", + "#calculating Norton current by removing the load resistance R4 and short circuiting those two terminals of the circuit\n", + "R=R1 + (R2*R3)/(R2+R3); #Load on source after removing R4 resistor, in \u03a9\n", + "I=V/R; #Source current in A\n", + "\n", + "#Using current dividing rule ,calculating the short circuit current.\n", + "I_N=(I*R2)/(R2+R3); #Norton's equivalent current or the short circuit current in A\n", + "\n", + "R_N=R3 + (R1*R2)/(R1+R2); #Norton's equivalent resistance in \u03a9\n", + "\n", + "I_8=(I_N*R_N)/(R_N+R4); #Current through the 8 \u03a9 resistance in A\n", + "\n", + " \n", + "\n", + "#Results\n", + "print(\"The current through the 8\u03a9 resistance =%.2f A.\"%I_8);\n", + "\n", + "#Note: The answer in the book is 1.55 A, but in the above code the approximate value is obtained, i.e not 1.55A but 1.56A\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current through the 8\u03a9 resistance =1.56 A.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1.13 :Page number 23\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V1=30.0; #Voltage source 1, V\n", + "V2=18.0; #Voltage source 2, V\n", + "R1=20.0; #1st resistor, \u03a9\n", + "R2=10.0; #2nd resistor, \u03a9\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "#Finding Thevenin's Equivalent circuit\n", + "I=(V1-V2)/(R1+R2); #Current in the circuit, A\n", + "\n", + "#Applying Kirchhoff's voltage law to 1st loop of the circuit,\n", + "#V1-I*R1-E0=0, where E0 is the voltage across the points X-Y.\n", + "E0=V1-I*R1; #Thevenin's voltage source, V\n", + "\n", + "R0=R1*R2/(R1+R2); #Thevenin's resistance, \u03a9\n", + "\n", + "#Finding Norton's equivalent circuit\n", + "IN=E0/R0; #Norton's equivalent current source, A\n", + "RN=R0; #Norton's equivanlent resistance, \u03a9\n", + "\n", + "#Result\n", + "print(\"IN=%.1fA and RN=%.2f \u03a9\"%(IN,RN));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IN=3.3A and RN=6.67 \u03a9\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_4.ipynb new file mode 100644 index 00000000..cad31534 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_4.ipynb @@ -0,0 +1,677 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:369e36634d005b832372dcae6796c76b979f32b499d8baadce951517f2201533" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 20 : SILICON CONTROLLED RECTIFIERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.2 : Page number 559\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I=50.0; #Surge current, A\n", + "t=12.0; #Time for which surge current lasts, ms\n", + "circuit_fusing_rating_max=90; #Maximum circuit fusing rating, A\u00b2s\n", + "\n", + "#Calculation\n", + "circuit_fusing_rating=I**2*(t*10**-3); #Circuit fusing rating, A\u00b2s\n", + "\n", + "#Result\n", + "if(circuit_fusing_rating<circuit_fusing_rating_max):\n", + " print(\"The device will not be destroyed.\");\n", + "else:\n", + " print(\"The device will be destroyed.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The device will not be destroyed.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.3 : Page number 559\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I2_t_rating=50.0; #circuit fuse rating, A\u00b2s\n", + "Is=100.0; #Surge current, A\n", + "\n", + "#Calculation\n", + "t_max=(I2_t_rating/Is**2)*1000; #Maximum allowable duration, ms\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum allowable duration =%dms\"%t_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowable duration =5ms\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.4 : Page number 559\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "R=220.0; #Gate resistor, \u03a9\n", + "I_G=7.0; #Gate current, mA\n", + "V_GK=0.7; #Junction voltage, V\n", + "\n", + "#Calculation\n", + "V_in=V_GK+(I_G/1000)*R; #Input voltage, V (Kirchhoff's voltage law)\n", + "\n", + "#Result\n", + "print(\"The required input voltage=%.2fV.\"%V_in);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required input voltage=2.24V.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.5 : Page number 564\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import asin\n", + "from math import cos\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "I_G=1.0; #Gate current, mA\n", + "V_m=200.0; #Peak value of input sinusoidal voltage, V\n", + "v=100.0; #Forward breakdown voltage of SCR, V\n", + "R_L=100.0; #Load resistance, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#v=Vm*sin(theta)\n", + "#Finding angle theta, for input voltage (v)= (V_f)forward_breakdown_voltage\n", + "theta=asin(v/V_m); #angle for input voltage = forward breakdown voltage, rad\n", + "theta=theta*180/pi; #angle for input voltage = forward breakdown voltage, degrees\n", + "\n", + "alpha=round(theta,0); #Firing angle, degrees\n", + "\n", + "#(ii)\n", + "phi=180-alpha; #Conduction angle, degrees\n", + "\n", + "#(iii)\n", + "V_avg=(V_m/(2*pi))*(1+cos(alpha*pi/180)); #Average voltage, V\n", + "I_avg=V_avg/R_L; #Average current, A\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The firing agle=%d\u00b0\"%alpha);\n", + "print(\"(ii) The conduction angle=%.0f\u00b0\"%phi);\n", + "print(\"(iii) The average current=%.4fA \"%I_avg);\n", + "\n", + "#Note: In the text book has approximated the average current to 0.5925A but in the code it gets approximated to 0.5940A.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The firing agle=30\u00b0\n", + "(ii) The conduction angle=150\u00b0\n", + "(iii) The average current=0.5940A \n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.6 : Page number 564\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import asin\n", + "from math import cos\n", + "from math import pi\n", + "from math import floor\n", + "\n", + "\n", + "#Variable declaration\n", + "I_G=1.0; #Gate current, mA\n", + "V_m=400.0; #Peak value of input sinusoidal voltage, V\n", + "v=150.0; #Forward breakdown voltage of SCR, V\n", + "R_L=200.0; #Load resistance, \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#v=Vm*sin(theta)\n", + "#Finding angle theta, for input voltage (v)= (V_f)forward_breakdown_voltage\n", + "theta=asin(v/V_m); #angle for input voltage = forward breakdown voltage, rad\n", + "theta=theta*180/pi; #angle for input voltage = forward breakdown voltage, degrees\n", + "\n", + "alpha=theta; #Firing angle, degrees\n", + "\n", + "#(ii)\n", + "V_av=floor((V_m/(2*pi))*(1+cos(alpha*pi/180))*10)/10; #Average voltage, V\n", + "\n", + "#(iii)\n", + "I_av=V_av/R_L; #Average current, A\n", + "\n", + "#(iv)\n", + "P_out=V_av*I_av; #Output power, W\n", + "\n", + "#Result\n", + "print(\"(i) The firing agle=%d\u00b0\"%alpha);\n", + "print(\"(ii) The average output voltage=%.1f V\"%V_av);\n", + "print(\"(iii) The average current=%.3fA \"%I_av);\n", + "print(\"(iv) The output power=%.2f W\"%P_out);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The firing agle=22\u00b0\n", + "(ii) The average output voltage=122.6 V\n", + "(iii) The average current=0.613A \n", + "(iv) The output power=75.15 W\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.7 : Page number 564-565\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import asin\n", + "\n", + "#Variable declaration\n", + "v=180.0; #Forward breakdown voltage, V\n", + "V_m=240.0; #Peak value of input voltage, V\n", + "w=314.0; #Angular frequency of input ,rad/s\n", + "\n", + "\n", + "#Calculation\n", + "#v=Vm*sin(w*t)\n", + "#So, t=asin(v/Vm)/w\n", + "t=(asin(v/V_m)/w)*1000; #Time for which SCR remains off, ms\n", + "\n", + "#Result\n", + "print(\"The SCR remains off for %.1f ms.\"%t);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The SCR remains off for 2.7 ms.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.8 : Page number 565\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import cos\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "I_dc=1.0; #d.c load current, A\n", + "alpha=30.0; #Firing angle, \u00b0\n", + "\n", + "\n", + "#Calculation\n", + "I_av=I_dc; #Average current(= d.c current), A\n", + "\n", + "#Since, Iav=(Vm/(2*pi*RL))*(1+cos(alpha)) and Im=Vm/RL\n", + "I_m=floor((2*pi*I_av/(1+cos(alpha*pi/180)))*100)/100; #Peak-load current, A\n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"Peak-load current=%.2f A.\"%I_m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Peak-load current=3.36 A.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.9: Page number 565\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "from math import sin\n", + "\n", + "#Variable declaration\n", + "alpha=60.0; #Firing angle, \u00b0\n", + "P=100.0; #Power rating of tungsten lamp, W\n", + "V=110.0; #Voltage rating of tungsten lamp, V\n", + "V_ac=110.0; #a.c supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_m=V_ac*sqrt(2); #Peak value of input voltage, V\n", + "\n", + "alpha=alpha*pi/180; #firing angle, rad\n", + "\n", + "#Since, E_rms\u00b2=(1/2*pi) \u222b V_m\u00b2sin\u00b2(theta) d(theta), limits: alpha to pi\n", + "# E_rms\u00b2=Vm\u00b2*((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "# E_rms=Vm*sqrt((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "E_rms=round(V_m*sqrt((2*(pi-alpha) + sin(2*alpha))/(8*pi))); #r.m.s voltage developed in the lamp, V\n", + "\n", + "\n", + "RL=V**2/P; #Load resistance, \u03a9\n", + "\n", + "I_rms=E_rms/RL; #r.m.s current developed in the lamp, A\n", + "\n", + "#Result\n", + "print(\"The r.m.s voltage developed in the lamp=%d V.\"%E_rms);\n", + "print(\"The r.m.s current developed in the lamp=%.2f A.\"%I_rms);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The r.m.s voltage developed in the lamp=70 V.\n", + "The r.m.s current developed in the lamp=0.58 A.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.10 : Page number 567\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import cos\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "RL=100.0; #Load resistance, \u03a9\n", + "V_m=200.0; #Peak a.c voltage, V\n", + "alpha=60; #firing angle, \u00b0\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V_av=(V_m/pi)*(1+cos(alpha*pi/180)); #D.C output voltage, V\n", + "\n", + "#(ii)\n", + "I_av=V_av/RL; #Load current, A\n", + "\n", + "#Result\n", + "print(\"(i) d.c output voltage=%.1f V.\"%V_av);\n", + "print(\"(ii) Load current=%.3f A\"%I_av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) d.c output voltage=95.5 V.\n", + "(ii) Load current=0.955 A\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.11: Page number 567\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "from math import sin\n", + "\n", + "#Variable declaration\n", + "alpha=60.0; #Firing angle, \u00b0\n", + "P=100.0; #Power rating of tungsten lamp, W\n", + "V=110.0; #Voltage rating of tungsten lamp, V\n", + "V_ac=110.0; #a.c supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_m=round(V_ac*sqrt(2)); #Peak value of input voltage, V\n", + "\n", + "alpha=alpha*pi/180; #firing angle, rad\n", + "\n", + "#Since, E_rms\u00b2=(1/2*pi) \u222b V_m\u00b2sin\u00b2(theta) d(theta), limits: alpha to pi\n", + "# E_rms\u00b2=Vm\u00b2*((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "# E_rms=Vm*sqrt((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "E_rms=V_m*sqrt((2*(pi-alpha) + sin(2*alpha))/(4*pi)); #r.m.s voltage developed in the lamp, V\n", + "\n", + "RL=V**2/P; #Load resistance, \u03a9\n", + "\n", + "I_rms=E_rms/RL; #r.m.s current developed in the lamp, A\n", + "\n", + "#Result\n", + "print(\"The r.m.s voltage developed in the lamp=%.1f V.\"%E_rms);\n", + "print(\"The r.m.s current developed in the lamp=%.2f A.\"%I_rms);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The r.m.s voltage developed in the lamp=98.9 V.\n", + "The r.m.s current developed in the lamp=0.82 A.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.12 : Page number 572\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=15; #Suuply voltage, V\n", + "V_T=0.7; #Gate trigger voltage, V\n", + "I_T=7.0; #Gate trigger current, mA\n", + "I_H=6.0; #Holding current. mA\n", + "R_Vin=1; #Resistance at Vin, k\u03a9\n", + "R_VCC=100; #Resistance at Vcc, \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "#(i) when SCR is off, there is no current, therefore no voltage drop across the resistor\n", + "V_out=VCC; #Output voltage, when SCR is off, V\n", + "\n", + "#(ii)\n", + "V_in=V_T+I_T*R_Vin; #Input voltage required to trigger the SCR, V\n", + "\n", + "#(iii)\n", + "#Since, I_H=(Vcc-VT)/R_Vin;\n", + "VCC_SCR_open=(I_H/1000)*R_VCC+V_T; #Decreased value of supply voltage at which SCR opens, V\n", + "\n", + "#Result\n", + "print(\"(i) The output voltage when SCR is off=%dV.\"%V_out);\n", + "print(\"(ii) The input voltage required to trigger the SCR=%.1f V.\"%V_in);\n", + "print(\"(iii) The decreased supply voltage at which SCR opens=%.1f V.\"%VCC_SCR_open);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output voltage when SCR is off=15V.\n", + "(ii) The input voltage required to trigger the SCR=7.7 V.\n", + "(iii) The decreased supply voltage at which SCR opens=1.3 V.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.13 : Page number 572-573\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=5.6; #zener voltage, V\n", + "V_T=0.7; #Trigger voltage of SCR, V\n", + "\n", + "#Calculation\n", + "VCC=Vz+V_T; #Required supply voltage to turn on the crowbar, V\n", + "\n", + "#Result\n", + "print(\"The required supply voltage to turn on the crowbar=%.1fV.\"%VCC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required supply voltage to turn on the crowbar=6.3V.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.14 : Page number 573\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=12; #Zener breakdown voltage, V\n", + "V_T=1.5; #Trigger voltage, V\n", + "tolerance_z=10.0; #Tolerance of zener diode, %\n", + "\n", + "\n", + "#Calculation\n", + "Vz_max=Vz*(1+tolerance_z/100); #Maximum value of zener breakdown, V\n", + "Vz_min=Vz*(1-tolerance_z/100); #Minimum value of zener breakdown, V\n", + "V_crowbar=Vz_max+V_T; #Maximum value of supply voltage for crowbarring, V\n", + "\n", + "#Result\n", + "print(\"The maximum value of supply voltage for crowbarring=%.1fV\"%V_crowbar);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum value of supply voltage for crowbarring=14.7V\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.15 : Page number 573\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=25.0; #Supply voltage, V\n", + "\n", + "#Calculation\n", + "#When brights light is on, LASCR conducts and thus gets short circuited to ground, hence,\n", + "V_out=0; #Output voltage, V\n", + "\n", + "print(\"Output voltage when bright light is on=%dV\"%V_out);\n", + "\n", + "\n", + "#When brights light is off, LASCR stops conducting and thus no current through resistor, hence,\n", + "V_out=VCC; #Output voltage, V\n", + "print(\"Output voltage when bright light is off=%dV\"%V_out);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output voltage when bright light is on=0V\n", + "Output voltage when bright light is off=25V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_5.ipynb new file mode 100644 index 00000000..cad31534 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_5.ipynb @@ -0,0 +1,677 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:369e36634d005b832372dcae6796c76b979f32b499d8baadce951517f2201533" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 20 : SILICON CONTROLLED RECTIFIERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.2 : Page number 559\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I=50.0; #Surge current, A\n", + "t=12.0; #Time for which surge current lasts, ms\n", + "circuit_fusing_rating_max=90; #Maximum circuit fusing rating, A\u00b2s\n", + "\n", + "#Calculation\n", + "circuit_fusing_rating=I**2*(t*10**-3); #Circuit fusing rating, A\u00b2s\n", + "\n", + "#Result\n", + "if(circuit_fusing_rating<circuit_fusing_rating_max):\n", + " print(\"The device will not be destroyed.\");\n", + "else:\n", + " print(\"The device will be destroyed.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The device will not be destroyed.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.3 : Page number 559\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I2_t_rating=50.0; #circuit fuse rating, A\u00b2s\n", + "Is=100.0; #Surge current, A\n", + "\n", + "#Calculation\n", + "t_max=(I2_t_rating/Is**2)*1000; #Maximum allowable duration, ms\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum allowable duration =%dms\"%t_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowable duration =5ms\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.4 : Page number 559\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "R=220.0; #Gate resistor, \u03a9\n", + "I_G=7.0; #Gate current, mA\n", + "V_GK=0.7; #Junction voltage, V\n", + "\n", + "#Calculation\n", + "V_in=V_GK+(I_G/1000)*R; #Input voltage, V (Kirchhoff's voltage law)\n", + "\n", + "#Result\n", + "print(\"The required input voltage=%.2fV.\"%V_in);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required input voltage=2.24V.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.5 : Page number 564\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import asin\n", + "from math import cos\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "I_G=1.0; #Gate current, mA\n", + "V_m=200.0; #Peak value of input sinusoidal voltage, V\n", + "v=100.0; #Forward breakdown voltage of SCR, V\n", + "R_L=100.0; #Load resistance, \u03a9\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#v=Vm*sin(theta)\n", + "#Finding angle theta, for input voltage (v)= (V_f)forward_breakdown_voltage\n", + "theta=asin(v/V_m); #angle for input voltage = forward breakdown voltage, rad\n", + "theta=theta*180/pi; #angle for input voltage = forward breakdown voltage, degrees\n", + "\n", + "alpha=round(theta,0); #Firing angle, degrees\n", + "\n", + "#(ii)\n", + "phi=180-alpha; #Conduction angle, degrees\n", + "\n", + "#(iii)\n", + "V_avg=(V_m/(2*pi))*(1+cos(alpha*pi/180)); #Average voltage, V\n", + "I_avg=V_avg/R_L; #Average current, A\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The firing agle=%d\u00b0\"%alpha);\n", + "print(\"(ii) The conduction angle=%.0f\u00b0\"%phi);\n", + "print(\"(iii) The average current=%.4fA \"%I_avg);\n", + "\n", + "#Note: In the text book has approximated the average current to 0.5925A but in the code it gets approximated to 0.5940A.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The firing agle=30\u00b0\n", + "(ii) The conduction angle=150\u00b0\n", + "(iii) The average current=0.5940A \n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.6 : Page number 564\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import asin\n", + "from math import cos\n", + "from math import pi\n", + "from math import floor\n", + "\n", + "\n", + "#Variable declaration\n", + "I_G=1.0; #Gate current, mA\n", + "V_m=400.0; #Peak value of input sinusoidal voltage, V\n", + "v=150.0; #Forward breakdown voltage of SCR, V\n", + "R_L=200.0; #Load resistance, \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#v=Vm*sin(theta)\n", + "#Finding angle theta, for input voltage (v)= (V_f)forward_breakdown_voltage\n", + "theta=asin(v/V_m); #angle for input voltage = forward breakdown voltage, rad\n", + "theta=theta*180/pi; #angle for input voltage = forward breakdown voltage, degrees\n", + "\n", + "alpha=theta; #Firing angle, degrees\n", + "\n", + "#(ii)\n", + "V_av=floor((V_m/(2*pi))*(1+cos(alpha*pi/180))*10)/10; #Average voltage, V\n", + "\n", + "#(iii)\n", + "I_av=V_av/R_L; #Average current, A\n", + "\n", + "#(iv)\n", + "P_out=V_av*I_av; #Output power, W\n", + "\n", + "#Result\n", + "print(\"(i) The firing agle=%d\u00b0\"%alpha);\n", + "print(\"(ii) The average output voltage=%.1f V\"%V_av);\n", + "print(\"(iii) The average current=%.3fA \"%I_av);\n", + "print(\"(iv) The output power=%.2f W\"%P_out);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The firing agle=22\u00b0\n", + "(ii) The average output voltage=122.6 V\n", + "(iii) The average current=0.613A \n", + "(iv) The output power=75.15 W\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.7 : Page number 564-565\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import asin\n", + "\n", + "#Variable declaration\n", + "v=180.0; #Forward breakdown voltage, V\n", + "V_m=240.0; #Peak value of input voltage, V\n", + "w=314.0; #Angular frequency of input ,rad/s\n", + "\n", + "\n", + "#Calculation\n", + "#v=Vm*sin(w*t)\n", + "#So, t=asin(v/Vm)/w\n", + "t=(asin(v/V_m)/w)*1000; #Time for which SCR remains off, ms\n", + "\n", + "#Result\n", + "print(\"The SCR remains off for %.1f ms.\"%t);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The SCR remains off for 2.7 ms.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.8 : Page number 565\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import cos\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "I_dc=1.0; #d.c load current, A\n", + "alpha=30.0; #Firing angle, \u00b0\n", + "\n", + "\n", + "#Calculation\n", + "I_av=I_dc; #Average current(= d.c current), A\n", + "\n", + "#Since, Iav=(Vm/(2*pi*RL))*(1+cos(alpha)) and Im=Vm/RL\n", + "I_m=floor((2*pi*I_av/(1+cos(alpha*pi/180)))*100)/100; #Peak-load current, A\n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"Peak-load current=%.2f A.\"%I_m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Peak-load current=3.36 A.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.9: Page number 565\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "from math import sin\n", + "\n", + "#Variable declaration\n", + "alpha=60.0; #Firing angle, \u00b0\n", + "P=100.0; #Power rating of tungsten lamp, W\n", + "V=110.0; #Voltage rating of tungsten lamp, V\n", + "V_ac=110.0; #a.c supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_m=V_ac*sqrt(2); #Peak value of input voltage, V\n", + "\n", + "alpha=alpha*pi/180; #firing angle, rad\n", + "\n", + "#Since, E_rms\u00b2=(1/2*pi) \u222b V_m\u00b2sin\u00b2(theta) d(theta), limits: alpha to pi\n", + "# E_rms\u00b2=Vm\u00b2*((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "# E_rms=Vm*sqrt((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "E_rms=round(V_m*sqrt((2*(pi-alpha) + sin(2*alpha))/(8*pi))); #r.m.s voltage developed in the lamp, V\n", + "\n", + "\n", + "RL=V**2/P; #Load resistance, \u03a9\n", + "\n", + "I_rms=E_rms/RL; #r.m.s current developed in the lamp, A\n", + "\n", + "#Result\n", + "print(\"The r.m.s voltage developed in the lamp=%d V.\"%E_rms);\n", + "print(\"The r.m.s current developed in the lamp=%.2f A.\"%I_rms);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The r.m.s voltage developed in the lamp=70 V.\n", + "The r.m.s current developed in the lamp=0.58 A.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.10 : Page number 567\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import cos\n", + "from math import pi\n", + "\n", + "#Variable declaration\n", + "RL=100.0; #Load resistance, \u03a9\n", + "V_m=200.0; #Peak a.c voltage, V\n", + "alpha=60; #firing angle, \u00b0\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V_av=(V_m/pi)*(1+cos(alpha*pi/180)); #D.C output voltage, V\n", + "\n", + "#(ii)\n", + "I_av=V_av/RL; #Load current, A\n", + "\n", + "#Result\n", + "print(\"(i) d.c output voltage=%.1f V.\"%V_av);\n", + "print(\"(ii) Load current=%.3f A\"%I_av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) d.c output voltage=95.5 V.\n", + "(ii) Load current=0.955 A\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.11: Page number 567\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import pi\n", + "from math import sin\n", + "\n", + "#Variable declaration\n", + "alpha=60.0; #Firing angle, \u00b0\n", + "P=100.0; #Power rating of tungsten lamp, W\n", + "V=110.0; #Voltage rating of tungsten lamp, V\n", + "V_ac=110.0; #a.c supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_m=round(V_ac*sqrt(2)); #Peak value of input voltage, V\n", + "\n", + "alpha=alpha*pi/180; #firing angle, rad\n", + "\n", + "#Since, E_rms\u00b2=(1/2*pi) \u222b V_m\u00b2sin\u00b2(theta) d(theta), limits: alpha to pi\n", + "# E_rms\u00b2=Vm\u00b2*((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "# E_rms=Vm*sqrt((2*(pi-alpha) + sin(2*alpha))/(8*pi)),\n", + "E_rms=V_m*sqrt((2*(pi-alpha) + sin(2*alpha))/(4*pi)); #r.m.s voltage developed in the lamp, V\n", + "\n", + "RL=V**2/P; #Load resistance, \u03a9\n", + "\n", + "I_rms=E_rms/RL; #r.m.s current developed in the lamp, A\n", + "\n", + "#Result\n", + "print(\"The r.m.s voltage developed in the lamp=%.1f V.\"%E_rms);\n", + "print(\"The r.m.s current developed in the lamp=%.2f A.\"%I_rms);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The r.m.s voltage developed in the lamp=98.9 V.\n", + "The r.m.s current developed in the lamp=0.82 A.\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.12 : Page number 572\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=15; #Suuply voltage, V\n", + "V_T=0.7; #Gate trigger voltage, V\n", + "I_T=7.0; #Gate trigger current, mA\n", + "I_H=6.0; #Holding current. mA\n", + "R_Vin=1; #Resistance at Vin, k\u03a9\n", + "R_VCC=100; #Resistance at Vcc, \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "#(i) when SCR is off, there is no current, therefore no voltage drop across the resistor\n", + "V_out=VCC; #Output voltage, when SCR is off, V\n", + "\n", + "#(ii)\n", + "V_in=V_T+I_T*R_Vin; #Input voltage required to trigger the SCR, V\n", + "\n", + "#(iii)\n", + "#Since, I_H=(Vcc-VT)/R_Vin;\n", + "VCC_SCR_open=(I_H/1000)*R_VCC+V_T; #Decreased value of supply voltage at which SCR opens, V\n", + "\n", + "#Result\n", + "print(\"(i) The output voltage when SCR is off=%dV.\"%V_out);\n", + "print(\"(ii) The input voltage required to trigger the SCR=%.1f V.\"%V_in);\n", + "print(\"(iii) The decreased supply voltage at which SCR opens=%.1f V.\"%VCC_SCR_open);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The output voltage when SCR is off=15V.\n", + "(ii) The input voltage required to trigger the SCR=7.7 V.\n", + "(iii) The decreased supply voltage at which SCR opens=1.3 V.\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.13 : Page number 572-573\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=5.6; #zener voltage, V\n", + "V_T=0.7; #Trigger voltage of SCR, V\n", + "\n", + "#Calculation\n", + "VCC=Vz+V_T; #Required supply voltage to turn on the crowbar, V\n", + "\n", + "#Result\n", + "print(\"The required supply voltage to turn on the crowbar=%.1fV.\"%VCC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required supply voltage to turn on the crowbar=6.3V.\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.14 : Page number 573\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=12; #Zener breakdown voltage, V\n", + "V_T=1.5; #Trigger voltage, V\n", + "tolerance_z=10.0; #Tolerance of zener diode, %\n", + "\n", + "\n", + "#Calculation\n", + "Vz_max=Vz*(1+tolerance_z/100); #Maximum value of zener breakdown, V\n", + "Vz_min=Vz*(1-tolerance_z/100); #Minimum value of zener breakdown, V\n", + "V_crowbar=Vz_max+V_T; #Maximum value of supply voltage for crowbarring, V\n", + "\n", + "#Result\n", + "print(\"The maximum value of supply voltage for crowbarring=%.1fV\"%V_crowbar);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum value of supply voltage for crowbarring=14.7V\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 20.15 : Page number 573\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=25.0; #Supply voltage, V\n", + "\n", + "#Calculation\n", + "#When brights light is on, LASCR conducts and thus gets short circuited to ground, hence,\n", + "V_out=0; #Output voltage, V\n", + "\n", + "print(\"Output voltage when bright light is on=%dV\"%V_out);\n", + "\n", + "\n", + "#When brights light is off, LASCR stops conducting and thus no current through resistor, hence,\n", + "V_out=VCC; #Output voltage, V\n", + "print(\"Output voltage when bright light is off=%dV\"%V_out);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output voltage when bright light is on=0V\n", + "Output voltage when bright light is off=25V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_4.ipynb new file mode 100644 index 00000000..acca0cfa --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_4.ipynb @@ -0,0 +1,467 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:412bf04e25192c77f9fa9664d995cc0ae6446a81f631fb5e0e755ebfa36436bf" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 21 : POWER ELECTRONICS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.3: Page number 585\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_GT=2; #Gate triggering voltage, V\n", + "V_F=0.7; #Forward voltage for diode D1\n", + "\n", + "#Calculation\n", + "#(i)Triggering only by a positive gate voltage,\n", + "#A diode is connected at the gatewith the n-side connected to thegate of the device,\n", + "V_A=V_F+V_GT; #Required voltage to trigger the device, V\n", + "\n", + "print(\"The required voltage to trigger the device only by positive voltage=%.1fV.\"%V_A);\n", + "\n", + "#(ii)\n", + "print(\"In order to trigger the triac only by negative voltage, the direction of diode D1 is reversed.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required voltage to trigger the device only by positive voltage=2.7V.\n", + "In order to trigger the triac only by negative voltage, the direction of diode D1 is reversed.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.4 : Page number 585-586\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R=50.0; #Resitor, \u03a9\n", + "V=50.0; #Supply voltage, V\n", + "V_drop=1.0; #Drop across the triac in conduction, V\n", + "\n", + "#Calculation\n", + "#(i) Ideal triac\n", + "#Since the triac is ideal, voltage drop across it is zero,\n", + "I=V/R; #Current through the 50 \u03a9 resistor, A\n", + "\n", + "print(\"(i) The cuurent through the 50 \u03a9 resistor when the triac is ideal=%dA.\"%I);\n", + "\n", + "#(ii) Triac has a drop of 1V\n", + "I=(V-V_drop)/R; #Current through the 50 \u03a9 resistor, A\n", + "\n", + "print(\"(ii) The current through the 50 \u03a9 resistor when the triac has a drop of 1V=%.2fA.\"%I);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The cuurent through the 50 \u03a9 resistor when the triac is ideal=1A.\n", + "(ii) The current through the 50 \u03a9 resistor when the triac has a drop of 1V=0.98A.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.5 : Page number 588-589\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_GT=2; #Gate triggering voltage, V\n", + "V_BO=20; #Breakover voltage,V\n", + "\n", + "#Calculation\n", + "print(\"The triggering level is raised by using a diac.\");\n", + "V_A=V_BO+V_GT; #Gate trigger signal, V\n", + "\n", + "#Result\n", + "print(\"In order to turn on the triac, the gate trigger signal=%dV.\"%V_A);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The triggering level is raised by using a diac.\n", + "In order to turn on the triac, the gate trigger signal=22V.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.6 : Page number 589\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_BO=30; #Breakover voltage of diac, V\n", + "V_GT=1; #Trigger voltage of the triac, V\n", + "I_T=10; #Trigger current, mA\n", + "\n", + "\n", + "#Calculation\n", + "V_A=V_BO+V_GT; #Voltage required for triggering the triac, V\n", + "\n", + "#Result\n", + "print(\"The minimum capacitor voltage that will trigger the triac=%d V.\"%V_A);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The minimum capacitor voltage that will trigger the triac=31 V.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.7 : Page number 593\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "eta=0.6; #Intrinsic stand-off ratio for UJT\n", + "R_BB=10; #Inter-base resistance, k\u03a9\n", + "\n", + "#Calculation\n", + "#Since, RBB=RB1+RB2 and eta=RB1/(RB1+RB2),\n", + "#eta=RB1/RBB.\n", + "R_B1=eta*R_BB; #Resistance of the bar between B1 and emitter junction, k\u03a9\n", + "R_B2=R_BB-R_B1; #Resistance of the bar between B2 and emitter junction, k\u03a9 \n", + "\n", + "#Result\n", + "print(\"Resistance of the bar between B1 and emitter junction=%d k\u03a9.\"%R_B1);\n", + "print(\"Resistance of the bar between B2 and emitter junction=%d k\u03a9.\"%R_B2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance of the bar between B1 and emitter junction=6 k\u03a9.\n", + "Resistance of the bar between B2 and emitter junction=4 k\u03a9.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.8 : Page number 593\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_BB=10; #Interbase voltage, V\n", + "eta=0.65; #Intrinsic stand-off ratio for UJT\n", + "V_D=0.7; #Voltage drop in the pn junction, V\n", + "\n", + "#Calculation\n", + "V_stand_off=eta*V_BB; #Stand off voltage, V\n", + "V_P=V_stand_off+V_D; #Peak-point voltage, V\n", + "\n", + "#Result\n", + "print(\"Stand off voltage=%.1f V.\"%V_stand_off);\n", + "print(\"Peak-point voltage=%.1f V.\"%V_P);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Stand off voltage=6.5 V.\n", + "Peak-point voltage=7.2 V.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.9 : Page number 593\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_BB=25; #Interbase voltage, V\n", + "eta_max=0.86; #Maximum intrinsic stand-off ratio for UJT\n", + "eta_min=0.74; #Minimum intrinsic stand-off ratio for UJT\n", + "V_D=0.7; #Voltage drop in the pn junction, V\n", + "\n", + "#Calculation\n", + "V_P_max=eta_max*V_BB+V_D; #Maximum peak-point, V\n", + "V_P_min=eta_min*V_BB+V_D; #Minimum peak-point, V\n", + "\n", + "#Result\n", + "print(\"Maximum peak-point voltage=%.1fV\"%V_P_max);\n", + "print(\"Minimum peak-point voltage=%.1fV\"%V_P_min);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum peak-point voltage=22.2V\n", + "Minimum peak-point voltage=19.2V\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.10 : Page number 593-594\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "eta=0.65; #Intrinsic stand-off ratio for UJT\n", + "R_BB=7.0; #Inter-base resistance, k\u03a9\n", + "R1=100.0; #Resistor R1, \u03a9\n", + "R2=400.0; #Resistor R2, \u03a9\n", + "V_S=12.0; #Source voltage, V\n", + "V_D=0.7; #Voltage drop in the pn junction, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, eta=RB1/RBB,\n", + "R_B1=eta*R_BB; #Resistance of the bar between B1 and emitter junction, k\u03a9\n", + "R_B2=R_BB-R_B1; #Resistance of the bar between B2 and emitter junction, k\u03a9 \n", + "\n", + "print(\"(i) Resistance of the bar between B1 and emitter junction=%.2f k\u03a9.\"%R_B1);\n", + "print(\" Resistance of the bar between B2 and emitter junction=%.2f k\u03a9.\"%R_B2);\n", + "\n", + "#(ii)\n", + "V_B2_B1=V_S*R_BB/(R_BB + (R1/1000) + (R2/1000)); #Voltage across B2-B1, V (voltage divider rule)\n", + "V_P=eta*V_B2_B1+V_D; #Peak-point voltage, V\n", + "\n", + "print(\"(ii) The voltage across the base B2-B1=%.1fV.\"%V_B2_B1);\n", + "print(\" Peak-point voltage=%.2fV\"%V_P);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Resistance of the bar between B1 and emitter junction=4.55 k\u03a9.\n", + " Resistance of the bar between B2 and emitter junction=2.45 k\u03a9.\n", + "(ii) The voltage across the base B2-B1=11.2V.\n", + " Peak-point voltage=7.98V\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.11 : Page number 596\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log\n", + "\n", + "#Variable declaration\n", + "RE_initial=5; #Initial value of emitter resistor, k\u03a9\n", + "RE_adjusted=10; #Adjusted value of emitter resistor, k\u03a9\n", + "C=0.2; #Capacitance, \u03bcF\n", + "eta=0.54; #intrinsic stand-off ratio\n", + "\n", + "#Calculation\n", + "#(i)\n", + "t=round((RE_initial*1000*C*10**-6*log(1/(1-eta)))*1000,2); #Time period, ms\n", + "f=(1/t)*1000; #frequency, Hz\n", + "\n", + "print(\"Frequency for 5k\u03a9 setting=%dHz.\"%f);\n", + "\n", + "#(i)\n", + "t=round((RE_adjusted*1000*C*10**-6*log(1/(1-eta)))*1000,2); #Time period, ms\n", + "f=(1/t)*1000; #frequency, Hz\n", + "\n", + "print(\"Frequency for 10k\u03a9 setting=%dHz.\"%f);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency for 5k\u03a9 setting=1282Hz.\n", + "Frequency for 10k\u03a9 setting=645Hz.\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.12 : Page number 596-597\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log\n", + "\n", + "#Variable declaration\n", + "V_S=12; #Supply voltage, V\n", + "R_BB=5; #Interbase resistance, k\u03a9\n", + "R_1=50; #Resistor R1, k\u03a9\n", + "R_2=0.1; #Resistor R2, k\u03a9\n", + "C=0.1; #Capacitance, \u03bcF\n", + "eta=0.6; #intrinsic stand-off ratio\n", + "V_D=0.7; #Voltage drop across pn junction, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, \u03b7=R_B1/R_BB,\n", + "R_B1=eta*R_BB; #Resitance between base B1 and emitter junction, k\u03a9\n", + "\n", + "#Since, R_BB=R_B1+R_B2\n", + "R_B2=R_BB-R_B1; #Resitance between base B2 and emitter junction, k\u03a9\n", + "\n", + "#(ii)\n", + "V_RB1_R2=V_S*(R_B1+R_2)/(R_BB+R_2); #Voltage drop across R_B1 and R_2 resistors, V\n", + "V_P=V_D+V_RB1_R2; #Peak-point voltage, V\n", + "\n", + "#(iii)\n", + "t=round((R_1*1000*C*10**-6*log(1/(1-eta)))*1000,2); #Time period, ms\n", + "f=(1/t)*1000; #frequency, Hz\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) R_B1=%dk\u03a9 and R_B2=%dk\u03a9\"%(R_B1,R_B2));\n", + "print(\"(ii) The peak-point voltage to turn on the UJT=%.0fV.\"%V_P);\n", + "print(\"(iii) Frequency of oscillations=%dHz.\"%f);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) R_B1=3k\u03a9 and R_B2=2k\u03a9\n", + "(ii) The peak-point voltage to turn on the UJT=8V.\n", + "(iii) Frequency of oscillations=218Hz.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_5.ipynb new file mode 100644 index 00000000..acca0cfa --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_5.ipynb @@ -0,0 +1,467 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:412bf04e25192c77f9fa9664d995cc0ae6446a81f631fb5e0e755ebfa36436bf" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 21 : POWER ELECTRONICS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.3: Page number 585\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_GT=2; #Gate triggering voltage, V\n", + "V_F=0.7; #Forward voltage for diode D1\n", + "\n", + "#Calculation\n", + "#(i)Triggering only by a positive gate voltage,\n", + "#A diode is connected at the gatewith the n-side connected to thegate of the device,\n", + "V_A=V_F+V_GT; #Required voltage to trigger the device, V\n", + "\n", + "print(\"The required voltage to trigger the device only by positive voltage=%.1fV.\"%V_A);\n", + "\n", + "#(ii)\n", + "print(\"In order to trigger the triac only by negative voltage, the direction of diode D1 is reversed.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required voltage to trigger the device only by positive voltage=2.7V.\n", + "In order to trigger the triac only by negative voltage, the direction of diode D1 is reversed.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.4 : Page number 585-586\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R=50.0; #Resitor, \u03a9\n", + "V=50.0; #Supply voltage, V\n", + "V_drop=1.0; #Drop across the triac in conduction, V\n", + "\n", + "#Calculation\n", + "#(i) Ideal triac\n", + "#Since the triac is ideal, voltage drop across it is zero,\n", + "I=V/R; #Current through the 50 \u03a9 resistor, A\n", + "\n", + "print(\"(i) The cuurent through the 50 \u03a9 resistor when the triac is ideal=%dA.\"%I);\n", + "\n", + "#(ii) Triac has a drop of 1V\n", + "I=(V-V_drop)/R; #Current through the 50 \u03a9 resistor, A\n", + "\n", + "print(\"(ii) The current through the 50 \u03a9 resistor when the triac has a drop of 1V=%.2fA.\"%I);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The cuurent through the 50 \u03a9 resistor when the triac is ideal=1A.\n", + "(ii) The current through the 50 \u03a9 resistor when the triac has a drop of 1V=0.98A.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.5 : Page number 588-589\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_GT=2; #Gate triggering voltage, V\n", + "V_BO=20; #Breakover voltage,V\n", + "\n", + "#Calculation\n", + "print(\"The triggering level is raised by using a diac.\");\n", + "V_A=V_BO+V_GT; #Gate trigger signal, V\n", + "\n", + "#Result\n", + "print(\"In order to turn on the triac, the gate trigger signal=%dV.\"%V_A);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The triggering level is raised by using a diac.\n", + "In order to turn on the triac, the gate trigger signal=22V.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.6 : Page number 589\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_BO=30; #Breakover voltage of diac, V\n", + "V_GT=1; #Trigger voltage of the triac, V\n", + "I_T=10; #Trigger current, mA\n", + "\n", + "\n", + "#Calculation\n", + "V_A=V_BO+V_GT; #Voltage required for triggering the triac, V\n", + "\n", + "#Result\n", + "print(\"The minimum capacitor voltage that will trigger the triac=%d V.\"%V_A);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The minimum capacitor voltage that will trigger the triac=31 V.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.7 : Page number 593\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "eta=0.6; #Intrinsic stand-off ratio for UJT\n", + "R_BB=10; #Inter-base resistance, k\u03a9\n", + "\n", + "#Calculation\n", + "#Since, RBB=RB1+RB2 and eta=RB1/(RB1+RB2),\n", + "#eta=RB1/RBB.\n", + "R_B1=eta*R_BB; #Resistance of the bar between B1 and emitter junction, k\u03a9\n", + "R_B2=R_BB-R_B1; #Resistance of the bar between B2 and emitter junction, k\u03a9 \n", + "\n", + "#Result\n", + "print(\"Resistance of the bar between B1 and emitter junction=%d k\u03a9.\"%R_B1);\n", + "print(\"Resistance of the bar between B2 and emitter junction=%d k\u03a9.\"%R_B2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance of the bar between B1 and emitter junction=6 k\u03a9.\n", + "Resistance of the bar between B2 and emitter junction=4 k\u03a9.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.8 : Page number 593\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_BB=10; #Interbase voltage, V\n", + "eta=0.65; #Intrinsic stand-off ratio for UJT\n", + "V_D=0.7; #Voltage drop in the pn junction, V\n", + "\n", + "#Calculation\n", + "V_stand_off=eta*V_BB; #Stand off voltage, V\n", + "V_P=V_stand_off+V_D; #Peak-point voltage, V\n", + "\n", + "#Result\n", + "print(\"Stand off voltage=%.1f V.\"%V_stand_off);\n", + "print(\"Peak-point voltage=%.1f V.\"%V_P);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Stand off voltage=6.5 V.\n", + "Peak-point voltage=7.2 V.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.9 : Page number 593\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_BB=25; #Interbase voltage, V\n", + "eta_max=0.86; #Maximum intrinsic stand-off ratio for UJT\n", + "eta_min=0.74; #Minimum intrinsic stand-off ratio for UJT\n", + "V_D=0.7; #Voltage drop in the pn junction, V\n", + "\n", + "#Calculation\n", + "V_P_max=eta_max*V_BB+V_D; #Maximum peak-point, V\n", + "V_P_min=eta_min*V_BB+V_D; #Minimum peak-point, V\n", + "\n", + "#Result\n", + "print(\"Maximum peak-point voltage=%.1fV\"%V_P_max);\n", + "print(\"Minimum peak-point voltage=%.1fV\"%V_P_min);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum peak-point voltage=22.2V\n", + "Minimum peak-point voltage=19.2V\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.10 : Page number 593-594\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "eta=0.65; #Intrinsic stand-off ratio for UJT\n", + "R_BB=7.0; #Inter-base resistance, k\u03a9\n", + "R1=100.0; #Resistor R1, \u03a9\n", + "R2=400.0; #Resistor R2, \u03a9\n", + "V_S=12.0; #Source voltage, V\n", + "V_D=0.7; #Voltage drop in the pn junction, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, eta=RB1/RBB,\n", + "R_B1=eta*R_BB; #Resistance of the bar between B1 and emitter junction, k\u03a9\n", + "R_B2=R_BB-R_B1; #Resistance of the bar between B2 and emitter junction, k\u03a9 \n", + "\n", + "print(\"(i) Resistance of the bar between B1 and emitter junction=%.2f k\u03a9.\"%R_B1);\n", + "print(\" Resistance of the bar between B2 and emitter junction=%.2f k\u03a9.\"%R_B2);\n", + "\n", + "#(ii)\n", + "V_B2_B1=V_S*R_BB/(R_BB + (R1/1000) + (R2/1000)); #Voltage across B2-B1, V (voltage divider rule)\n", + "V_P=eta*V_B2_B1+V_D; #Peak-point voltage, V\n", + "\n", + "print(\"(ii) The voltage across the base B2-B1=%.1fV.\"%V_B2_B1);\n", + "print(\" Peak-point voltage=%.2fV\"%V_P);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Resistance of the bar between B1 and emitter junction=4.55 k\u03a9.\n", + " Resistance of the bar between B2 and emitter junction=2.45 k\u03a9.\n", + "(ii) The voltage across the base B2-B1=11.2V.\n", + " Peak-point voltage=7.98V\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.11 : Page number 596\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log\n", + "\n", + "#Variable declaration\n", + "RE_initial=5; #Initial value of emitter resistor, k\u03a9\n", + "RE_adjusted=10; #Adjusted value of emitter resistor, k\u03a9\n", + "C=0.2; #Capacitance, \u03bcF\n", + "eta=0.54; #intrinsic stand-off ratio\n", + "\n", + "#Calculation\n", + "#(i)\n", + "t=round((RE_initial*1000*C*10**-6*log(1/(1-eta)))*1000,2); #Time period, ms\n", + "f=(1/t)*1000; #frequency, Hz\n", + "\n", + "print(\"Frequency for 5k\u03a9 setting=%dHz.\"%f);\n", + "\n", + "#(i)\n", + "t=round((RE_adjusted*1000*C*10**-6*log(1/(1-eta)))*1000,2); #Time period, ms\n", + "f=(1/t)*1000; #frequency, Hz\n", + "\n", + "print(\"Frequency for 10k\u03a9 setting=%dHz.\"%f);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency for 5k\u03a9 setting=1282Hz.\n", + "Frequency for 10k\u03a9 setting=645Hz.\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 21.12 : Page number 596-597\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log\n", + "\n", + "#Variable declaration\n", + "V_S=12; #Supply voltage, V\n", + "R_BB=5; #Interbase resistance, k\u03a9\n", + "R_1=50; #Resistor R1, k\u03a9\n", + "R_2=0.1; #Resistor R2, k\u03a9\n", + "C=0.1; #Capacitance, \u03bcF\n", + "eta=0.6; #intrinsic stand-off ratio\n", + "V_D=0.7; #Voltage drop across pn junction, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "#Since, \u03b7=R_B1/R_BB,\n", + "R_B1=eta*R_BB; #Resitance between base B1 and emitter junction, k\u03a9\n", + "\n", + "#Since, R_BB=R_B1+R_B2\n", + "R_B2=R_BB-R_B1; #Resitance between base B2 and emitter junction, k\u03a9\n", + "\n", + "#(ii)\n", + "V_RB1_R2=V_S*(R_B1+R_2)/(R_BB+R_2); #Voltage drop across R_B1 and R_2 resistors, V\n", + "V_P=V_D+V_RB1_R2; #Peak-point voltage, V\n", + "\n", + "#(iii)\n", + "t=round((R_1*1000*C*10**-6*log(1/(1-eta)))*1000,2); #Time period, ms\n", + "f=(1/t)*1000; #frequency, Hz\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) R_B1=%dk\u03a9 and R_B2=%dk\u03a9\"%(R_B1,R_B2));\n", + "print(\"(ii) The peak-point voltage to turn on the UJT=%.0fV.\"%V_P);\n", + "print(\"(iii) Frequency of oscillations=%dHz.\"%f);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) R_B1=3k\u03a9 and R_B2=2k\u03a9\n", + "(ii) The peak-point voltage to turn on the UJT=8V.\n", + "(iii) Frequency of oscillations=218Hz.\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_4.ipynb new file mode 100644 index 00000000..5f13ea0e --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_4.ipynb @@ -0,0 +1,668 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a688629536ad6915939234eacc1ed3eaaf36e0aaa88de5df5b6a309da4d2c64d" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 22: ELECTRONIC INSTRUMENTS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.1 : Page number 606\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I_g=1; #Full scale deflection current, mA\n", + "\n", + "#Calculation\n", + "MS=1/(I_g/1000.0); #Multimeter sensitivity, \u03a9 per volt\n", + "\n", + "#Result\n", + "print(\"The multimeter sensitivity=%d \u03a9 per volt.\"%MS);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The multimeter sensitivity=1000 \u03a9 per volt.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.2 : Page number 606-607\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "meter_sensitivity=1000.0; #Meter sensitivity, \u03a9 per volt\n", + "V_full_scale=50.0; #Full scale volts\n", + "R=50000.0; #Resistance to be measured, \u03a9\n", + "\n", + "#Calculation\n", + "meter_resistance=V_full_scale*meter_sensitivity; #Meter resistance, \u03a9\n", + "R_p=R*meter_resistance/(R+meter_resistance); #Parallel resistance, \u03a9\n", + "\n", + "#Result\n", + "print(\"When the meter is used to measure the voltage across the resistance %d\u03a9, total resistance =%d\u03a9.\"%(R,R_p));\n", + "print(\"\u2234 Meter will give highly incorrect reading.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "When the meter is used to measure the voltage across the resistance 50000\u03a9, total resistance =25000\u03a9.\n", + "\u2234 Meter will give highly incorrect reading.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.3 : Page number 607\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "meter_sensitivity=4.0; #Meter sensitivity, k\u03a9/V\n", + "R_1=10.0; #Resistance across which voltage is to be measured, k\u03a9\n", + "R_2=10.0; #Resistance, k\u03a9\n", + "range_max=10.0; #Maximum range of the meter, V\n", + "range_min=0; #Minimum range of the meter, V\n", + "V=20.0; #Battery voltage, V\n", + "\n", + "#Calculation\n", + "R_meter=meter_sensitivity*range_max; #Resistance of the meter, k\u03a9\n", + "R_T=(R_meter*R_1)/(R_1+R_meter) + R_2; #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T,2); #Circuit current, mA\n", + "V_multimeter=I_circuit*((R_meter*R_1)/(R_1+R_meter)); #Voltage read by multimeter, V\n", + "\n", + "\n", + "#Result\n", + "print(\"Voltage read by multimeter=%.2fV.\"%V_multimeter);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage read by multimeter=8.88V.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.4 : Page number 607-608\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "meter_sensitivity=20.0; #Meter sensitivity, k\u03a9/V\n", + "R_1=10.0; #Resistance across which voltage is to be measured, k\u03a9\n", + "R_2=10.0; #Resistance, k\u03a9\n", + "range_max=10.0; #Maximum range of the meter, V\n", + "range_min=0; #Minimum range of the meter, V\n", + "V=20.0; #Battery voltage, V\n", + "\n", + "#Calculation\n", + "R_meter=meter_sensitivity*range_max; #Resistance of the meter, k\u03a9\n", + "R_T=round((R_meter*R_1)/(R_1+R_meter) + R_2,1); #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T,2); #Circuit current, mA\n", + "V_multimeter=I_circuit*((R_meter*R_1)/(R_1+R_meter)); #Voltage read by multimeter, V\n", + "\n", + "\n", + "#Result\n", + "print(\"Voltage read by multimeter=%.2fV.\"%V_multimeter);\n", + "\n", + "\n", + "#Note: The circuit current=1.0256mA, has been approximated in the text as 1.04mA. But, in the code 1.03 mA has been used. Therefore, the final answer is obtained as 9.81V and not 9.88V.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage read by multimeter=9.81V.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.5 : Page number 608-609\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import floor\n", + "\n", + "#Variable declaration\n", + "R_A=20.0; #Resistance after point A, k\u03a9\n", + "R_B=20.0; #Resistance after point B, k\u03a9\n", + "R_C=30.0; #Resistance after point C, k\u03a9\n", + "R_D=30.0; #Resistance after point D, k\u03a9\n", + "R_meter=60.0; #Resistance of the meter, k\u03a9\n", + "V=100.0; #Battery voltage, V\n", + "\n", + "#Calculation\n", + "#(i) When meter is not connected:\n", + "R_T=R_A+R_B+R_C+R_D; #Total circuit resistance, k\u03a9\n", + "I_circuit=V/R_T; #Circuit current, mA\n", + "V_A=V; #Voltage at point A, V\n", + "V_B=V-(I_circuit*R_A); #Voltage at point B, V\n", + "V_C=V-(I_circuit*(R_A+R_B)); #Voltage at point C, V\n", + "V_D=V-(I_circuit*(R_T-R_D)); #Voltage at point D, V\n", + "\n", + "print(\"(i) When meter is not connected:\");\n", + "print(\" Voltage at point A=%dV.\"%V_A);\n", + "print(\" Voltage at point B=%dV.\"%V_B);\n", + "print(\" Voltage at point C=%dV.\"%V_C);\n", + "print(\" Voltage at point D=%dV.\"%V_D);\n", + "\n", + "\n", + "#(ii) When meter is connected:\n", + "#(a) Since, point A is directly connected to the source, voltage at point A is equal to source voltage.\n", + "V_A=V; #Voltage at point A, V\n", + "\n", + "#(b)\n", + "R_T_B=R_A + round((R_T-R_A)*R_meter/(R_meter + (R_T-R_A)),2); #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T_B,2); #Circuit current, mA\n", + "V_B=I_circuit*(R_T-R_A)*R_meter/(R_meter + (R_T-R_A)); #Voltage at point B, V\n", + "\n", + "\n", + "#(c)\n", + "R_T_C=(R_A+R_B) + (R_T-R_A-R_B)*R_meter/(R_meter + (R_T-R_A-R_B)); #Total circuit resistance, k\u03a9\n", + "I_circuit=V/R_T_C; #Circuit current, mA\n", + "V_C=floor((I_circuit*(R_T-R_A-R_B)*R_meter/(R_meter + (R_T-R_A-R_B)))*10)/10; #Voltage at point C, V\n", + "\n", + "\n", + "\n", + "#(c)\n", + "R_T_D=(R_T-R_D) + R_D*R_meter/(R_meter + R_D); #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T_D,2); #Circuit current, mA\n", + "V_D=I_circuit*(R_D*R_meter)/(R_meter + R_D); #Voltage at point D, V\n", + "\n", + "\n", + "print(\"(ii) When meter is connected:\");\n", + "print(\" Voltage at point A=%dV.\"%V_A);\n", + "print(\" Voltage at point B=%dV.\"%V_B);\n", + "print(\" Voltage at point C=%.1fV.\"%V_C);\n", + "print(\" Voltage at point D=%.1fV.\"%V_D);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) When meter is not connected:\n", + " Voltage at point A=100V.\n", + " Voltage at point B=80V.\n", + " Voltage at point C=60V.\n", + " Voltage at point D=30V.\n", + "(ii) When meter is connected:\n", + " Voltage at point A=100V.\n", + " Voltage at point B=63V.\n", + " Voltage at point C=42.8V.\n", + " Voltage at point D=22.2V.\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.6 : Page number 614\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Supply voltage, V\n", + "R_m=1.0; #Meter resistance, k\u03a9\n", + "I_m_fsd=2.0; #Full scale deflection of meter current, mA\n", + "beta=80.0; #Base current amplification factor\n", + "E=5.0; #Voltage to be measured, V\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_E=E-V_BE; #Emitter voltage, V\n", + "\n", + "#(i)\n", + "#I_m_fsd=V_E/(R_s+R_m), (OHM's LAW)\n", + "R_s=((V_E/I_m_fsd)-R_m)*1000; #Multiplier resistor, \u03a9\n", + "\n", + "#(ii)\n", + "IB=I_m_fsd/beta; \t\t\t\t#Base current, mA\n", + "R_i=E/IB; \t\t\t#Input resistance of voltmeter, k\u03a9\n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The multiplier resistor=%d\u03a9.\"%R_s);\n", + "print(\"(ii) The voltmeter input resistance=%dk\u03a9\"%R_i);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The multiplier resistor=1150\u03a9.\n", + "(ii) The voltmeter input resistance=200k\u03a9\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.7 : Page number 614\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20; #Supply voltage, V\n", + "Rs_Rm=9.3; #Sum of multipier resistance and meter resistance, k\u03a9\n", + "I_m=1; #Meter current, mA\n", + "beta=100; #Base current amplification factor\n", + "E=10; #Voltage to be measured, V\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V_E=E-V_BE; #Emitter voltage, V\n", + "I_m=V_E/Rs_Rm; #Meter current, mA\n", + "\n", + "#(ii)\n", + "I_B=I_m/beta; #Base current, mA\n", + "R_i_T=(E/I_B)/1000; #Input resistance of voltmeter, with transistor, M\u03a9\n", + "R_i_WT=Rs_Rm; #Input resistance of voltmeter, without transistor, k\u03a9\n", + "\n", + "#Result\n", + "print(\"(i) The meter current=%dmA\"%I_m);\n", + "print(\"(ii) The input resistance of voltmeter with transistor=%dM\u03a9.\"%R_i_T);\n", + "print(\" The input resistance of voltmeter without transistor=%.1fk\u03a9.\"%R_i_WT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The meter current=1mA\n", + "(ii) The input resistance of voltmeter with transistor=1M\u03a9.\n", + " The input resistance of voltmeter without transistor=9.3k\u03a9.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.8 : Page number 614-615\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20; #Supply voltage, V\n", + "Rs_Rm=9.3; #Sum of multipier resistance and meter resistance, k\u03a9\n", + "I_m=1; #Meter current, mA\n", + "beta=100; #Base current amplification factor\n", + "E=5; #Voltage to be measured, V\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_m=(E-V_BE)/Rs_Rm; #Meter current, mA\n", + "\n", + "#Result\n", + "print(\"The meter current=%.2fmA\"%I_m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The meter current=0.46mA\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.9 : Page number 616\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "I_m_fsd=100.0; #Full scale deflection of meter current, \u03bcA\n", + "R_m=1.0; #Meter resistance, k\u03a9\n", + "V_rms=100.0; #r.m.s voltage to be measured, V\n", + "V_F=0.7; #Forward voltage drop of rectifier diode, V \n", + "\n", + "#Calculation\n", + "V_m=round(sqrt(2)*V_rms,1); #Peak value of applied voltage, V\n", + "V_rectifier_drop=2*V_F; #Total rectifier drop, V\n", + "I_peak=round(I_m_fsd/0.637,2); #Peak f.s.d current, \u03bcA\n", + "R_s=floor(((((V_m-V_rectifier_drop)/(I_peak*10**-6))-(R_m*1000))/1000)*10)/10; #Multiplier resistance, k\u03a9 (OHM's LAW)\n", + "\n", + "\n", + "#Result\n", + "print(\"The multiplier resistance=%.1fk\u03a9.\"%R_s);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The multiplier resistance=890.7k\u03a9.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.10 : Page number 616\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "I_av=75; #Full scale deflection of meter current, \u03bcA\n", + "R_s=708; #Multiplier resistor, k\u03a9\n", + "R_m=900; #Meter coil resistor, \u03a9\n", + "\n", + "#Calculation\n", + "I_peak=I_av*10**-6/0.637; #Peak f.s.d meter current, A\n", + "R_T=R_s*1000+R_m; #Total circuit resistance, \u03a9\n", + "\n", + "#I_peak=(Vm-V_drop)/R_T; (OHM's LAW)\n", + "#And, Vm=sqrt(2)*Vrms\n", + "V_rms=(I_peak*R_T+(2*0.7))/sqrt(2) ; #applied r.m.s voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The applied r.m.s voltage=%dV\"%V_rms);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The applied r.m.s voltage=60V\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.11 : Page number 618\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "deflection_sensitivity=0.01; #Deflection sensitivity, mm/V\n", + "V=400; #Applied voltage, V\n", + "\n", + "#Calculation\n", + "spot_shift=V*deflection_sensitivity; #Spot shift produced, mm\n", + "\n", + "\n", + "#Result\n", + "print(\"The shift produced in the spot=%dmm.\"%spot_shift);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The shift produced in the spot=4mm.\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.12 : Page number 618-619\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "deflection_sensitivity=0.03; #Deflection sensitivity, mm/V\n", + "spot_shift=3; #Spot shift produced, mm\n", + "\n", + "\n", + "#Calculation\n", + "#Since, spot_shift=Applied_Voltage*deflection_sensitivity,\n", + "V=spot_shift/deflection_sensitivity; #Applied voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"Applied voltage=%dV.\"%V);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Applied voltage=100V.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.13 : Page number 622\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "deflection=2; #Deflection produced by applied voltage, cm\n", + "V=200; #Applied voltage, V\n", + "deflection_by_another_voltage=3; #Deflection by another voltage, cm\n", + "\n", + "#Calculation\n", + "deflection_sensitivity=V/deflection; #deflection sensitivity, V/cm\n", + "V_unknown=deflection_sensitivity*deflection_by_another_voltage; #Unknown voltage, V\n", + "\n", + "#Result\n", + "print(\"The unknown voltage=%dV.\"%V_unknown);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The unknown voltage=300V.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.14 : Page number 622\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "f_H=1000; #Frequency applied to horizontal plates, Hz\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Loops_H=1; #Number of loops cut by horizontal line\n", + "Loops_V=1; #Number of loops cut by vertical line\n", + "f_V=f_H*(Loops_H/Loops_V); #Unknown frequency, Hz\n", + "\n", + "print(\"(i) Unknown frequency=%dHz.\"%f_V);\n", + "\n", + "#(ii)\n", + "Loops_H=2; #Number of loops cut by horizontal line\n", + "Loops_V=1; #Number of loops cut by vertical line\n", + "f_V=f_H*(Loops_H/Loops_V); #Unknown frequency, Hz\n", + "\n", + "print(\"(ii) Unknown frequency=%dHz.\"%f_V);\n", + "\n", + "#(iii)\n", + "Loops_H=6; #Number of loops cut by horizontal line\n", + "Loops_V=1; #Number of loops cut by vertical line\n", + "f_V=f_H*(Loops_H/Loops_V); #Unknown frequency, Hz\n", + "\n", + "print(\"(iii) Unknown frequency=%dHz.\"%f_V);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Unknown frequency=1000Hz.\n", + "(ii) Unknown frequency=2000Hz.\n", + "(iii) Unknown frequency=6000Hz.\n" + ] + } + ], + "prompt_number": 21 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_5.ipynb new file mode 100644 index 00000000..5f13ea0e --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_5.ipynb @@ -0,0 +1,668 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a688629536ad6915939234eacc1ed3eaaf36e0aaa88de5df5b6a309da4d2c64d" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 22: ELECTRONIC INSTRUMENTS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.1 : Page number 606\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "I_g=1; #Full scale deflection current, mA\n", + "\n", + "#Calculation\n", + "MS=1/(I_g/1000.0); #Multimeter sensitivity, \u03a9 per volt\n", + "\n", + "#Result\n", + "print(\"The multimeter sensitivity=%d \u03a9 per volt.\"%MS);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The multimeter sensitivity=1000 \u03a9 per volt.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.2 : Page number 606-607\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "meter_sensitivity=1000.0; #Meter sensitivity, \u03a9 per volt\n", + "V_full_scale=50.0; #Full scale volts\n", + "R=50000.0; #Resistance to be measured, \u03a9\n", + "\n", + "#Calculation\n", + "meter_resistance=V_full_scale*meter_sensitivity; #Meter resistance, \u03a9\n", + "R_p=R*meter_resistance/(R+meter_resistance); #Parallel resistance, \u03a9\n", + "\n", + "#Result\n", + "print(\"When the meter is used to measure the voltage across the resistance %d\u03a9, total resistance =%d\u03a9.\"%(R,R_p));\n", + "print(\"\u2234 Meter will give highly incorrect reading.\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "When the meter is used to measure the voltage across the resistance 50000\u03a9, total resistance =25000\u03a9.\n", + "\u2234 Meter will give highly incorrect reading.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.3 : Page number 607\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "meter_sensitivity=4.0; #Meter sensitivity, k\u03a9/V\n", + "R_1=10.0; #Resistance across which voltage is to be measured, k\u03a9\n", + "R_2=10.0; #Resistance, k\u03a9\n", + "range_max=10.0; #Maximum range of the meter, V\n", + "range_min=0; #Minimum range of the meter, V\n", + "V=20.0; #Battery voltage, V\n", + "\n", + "#Calculation\n", + "R_meter=meter_sensitivity*range_max; #Resistance of the meter, k\u03a9\n", + "R_T=(R_meter*R_1)/(R_1+R_meter) + R_2; #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T,2); #Circuit current, mA\n", + "V_multimeter=I_circuit*((R_meter*R_1)/(R_1+R_meter)); #Voltage read by multimeter, V\n", + "\n", + "\n", + "#Result\n", + "print(\"Voltage read by multimeter=%.2fV.\"%V_multimeter);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage read by multimeter=8.88V.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.4 : Page number 607-608\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "meter_sensitivity=20.0; #Meter sensitivity, k\u03a9/V\n", + "R_1=10.0; #Resistance across which voltage is to be measured, k\u03a9\n", + "R_2=10.0; #Resistance, k\u03a9\n", + "range_max=10.0; #Maximum range of the meter, V\n", + "range_min=0; #Minimum range of the meter, V\n", + "V=20.0; #Battery voltage, V\n", + "\n", + "#Calculation\n", + "R_meter=meter_sensitivity*range_max; #Resistance of the meter, k\u03a9\n", + "R_T=round((R_meter*R_1)/(R_1+R_meter) + R_2,1); #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T,2); #Circuit current, mA\n", + "V_multimeter=I_circuit*((R_meter*R_1)/(R_1+R_meter)); #Voltage read by multimeter, V\n", + "\n", + "\n", + "#Result\n", + "print(\"Voltage read by multimeter=%.2fV.\"%V_multimeter);\n", + "\n", + "\n", + "#Note: The circuit current=1.0256mA, has been approximated in the text as 1.04mA. But, in the code 1.03 mA has been used. Therefore, the final answer is obtained as 9.81V and not 9.88V.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage read by multimeter=9.81V.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.5 : Page number 608-609\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import floor\n", + "\n", + "#Variable declaration\n", + "R_A=20.0; #Resistance after point A, k\u03a9\n", + "R_B=20.0; #Resistance after point B, k\u03a9\n", + "R_C=30.0; #Resistance after point C, k\u03a9\n", + "R_D=30.0; #Resistance after point D, k\u03a9\n", + "R_meter=60.0; #Resistance of the meter, k\u03a9\n", + "V=100.0; #Battery voltage, V\n", + "\n", + "#Calculation\n", + "#(i) When meter is not connected:\n", + "R_T=R_A+R_B+R_C+R_D; #Total circuit resistance, k\u03a9\n", + "I_circuit=V/R_T; #Circuit current, mA\n", + "V_A=V; #Voltage at point A, V\n", + "V_B=V-(I_circuit*R_A); #Voltage at point B, V\n", + "V_C=V-(I_circuit*(R_A+R_B)); #Voltage at point C, V\n", + "V_D=V-(I_circuit*(R_T-R_D)); #Voltage at point D, V\n", + "\n", + "print(\"(i) When meter is not connected:\");\n", + "print(\" Voltage at point A=%dV.\"%V_A);\n", + "print(\" Voltage at point B=%dV.\"%V_B);\n", + "print(\" Voltage at point C=%dV.\"%V_C);\n", + "print(\" Voltage at point D=%dV.\"%V_D);\n", + "\n", + "\n", + "#(ii) When meter is connected:\n", + "#(a) Since, point A is directly connected to the source, voltage at point A is equal to source voltage.\n", + "V_A=V; #Voltage at point A, V\n", + "\n", + "#(b)\n", + "R_T_B=R_A + round((R_T-R_A)*R_meter/(R_meter + (R_T-R_A)),2); #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T_B,2); #Circuit current, mA\n", + "V_B=I_circuit*(R_T-R_A)*R_meter/(R_meter + (R_T-R_A)); #Voltage at point B, V\n", + "\n", + "\n", + "#(c)\n", + "R_T_C=(R_A+R_B) + (R_T-R_A-R_B)*R_meter/(R_meter + (R_T-R_A-R_B)); #Total circuit resistance, k\u03a9\n", + "I_circuit=V/R_T_C; #Circuit current, mA\n", + "V_C=floor((I_circuit*(R_T-R_A-R_B)*R_meter/(R_meter + (R_T-R_A-R_B)))*10)/10; #Voltage at point C, V\n", + "\n", + "\n", + "\n", + "#(c)\n", + "R_T_D=(R_T-R_D) + R_D*R_meter/(R_meter + R_D); #Total circuit resistance, k\u03a9\n", + "I_circuit=round(V/R_T_D,2); #Circuit current, mA\n", + "V_D=I_circuit*(R_D*R_meter)/(R_meter + R_D); #Voltage at point D, V\n", + "\n", + "\n", + "print(\"(ii) When meter is connected:\");\n", + "print(\" Voltage at point A=%dV.\"%V_A);\n", + "print(\" Voltage at point B=%dV.\"%V_B);\n", + "print(\" Voltage at point C=%.1fV.\"%V_C);\n", + "print(\" Voltage at point D=%.1fV.\"%V_D);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) When meter is not connected:\n", + " Voltage at point A=100V.\n", + " Voltage at point B=80V.\n", + " Voltage at point C=60V.\n", + " Voltage at point D=30V.\n", + "(ii) When meter is connected:\n", + " Voltage at point A=100V.\n", + " Voltage at point B=63V.\n", + " Voltage at point C=42.8V.\n", + " Voltage at point D=22.2V.\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.6 : Page number 614\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Supply voltage, V\n", + "R_m=1.0; #Meter resistance, k\u03a9\n", + "I_m_fsd=2.0; #Full scale deflection of meter current, mA\n", + "beta=80.0; #Base current amplification factor\n", + "E=5.0; #Voltage to be measured, V\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_E=E-V_BE; #Emitter voltage, V\n", + "\n", + "#(i)\n", + "#I_m_fsd=V_E/(R_s+R_m), (OHM's LAW)\n", + "R_s=((V_E/I_m_fsd)-R_m)*1000; #Multiplier resistor, \u03a9\n", + "\n", + "#(ii)\n", + "IB=I_m_fsd/beta; \t\t\t\t#Base current, mA\n", + "R_i=E/IB; \t\t\t#Input resistance of voltmeter, k\u03a9\n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The multiplier resistor=%d\u03a9.\"%R_s);\n", + "print(\"(ii) The voltmeter input resistance=%dk\u03a9\"%R_i);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The multiplier resistor=1150\u03a9.\n", + "(ii) The voltmeter input resistance=200k\u03a9\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.7 : Page number 614\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20; #Supply voltage, V\n", + "Rs_Rm=9.3; #Sum of multipier resistance and meter resistance, k\u03a9\n", + "I_m=1; #Meter current, mA\n", + "beta=100; #Base current amplification factor\n", + "E=10; #Voltage to be measured, V\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "V_E=E-V_BE; #Emitter voltage, V\n", + "I_m=V_E/Rs_Rm; #Meter current, mA\n", + "\n", + "#(ii)\n", + "I_B=I_m/beta; #Base current, mA\n", + "R_i_T=(E/I_B)/1000; #Input resistance of voltmeter, with transistor, M\u03a9\n", + "R_i_WT=Rs_Rm; #Input resistance of voltmeter, without transistor, k\u03a9\n", + "\n", + "#Result\n", + "print(\"(i) The meter current=%dmA\"%I_m);\n", + "print(\"(ii) The input resistance of voltmeter with transistor=%dM\u03a9.\"%R_i_T);\n", + "print(\" The input resistance of voltmeter without transistor=%.1fk\u03a9.\"%R_i_WT);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The meter current=1mA\n", + "(ii) The input resistance of voltmeter with transistor=1M\u03a9.\n", + " The input resistance of voltmeter without transistor=9.3k\u03a9.\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.8 : Page number 614-615\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20; #Supply voltage, V\n", + "Rs_Rm=9.3; #Sum of multipier resistance and meter resistance, k\u03a9\n", + "I_m=1; #Meter current, mA\n", + "beta=100; #Base current amplification factor\n", + "E=5; #Voltage to be measured, V\n", + "V_BE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "I_m=(E-V_BE)/Rs_Rm; #Meter current, mA\n", + "\n", + "#Result\n", + "print(\"The meter current=%.2fmA\"%I_m);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The meter current=0.46mA\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.9 : Page number 616\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "I_m_fsd=100.0; #Full scale deflection of meter current, \u03bcA\n", + "R_m=1.0; #Meter resistance, k\u03a9\n", + "V_rms=100.0; #r.m.s voltage to be measured, V\n", + "V_F=0.7; #Forward voltage drop of rectifier diode, V \n", + "\n", + "#Calculation\n", + "V_m=round(sqrt(2)*V_rms,1); #Peak value of applied voltage, V\n", + "V_rectifier_drop=2*V_F; #Total rectifier drop, V\n", + "I_peak=round(I_m_fsd/0.637,2); #Peak f.s.d current, \u03bcA\n", + "R_s=floor(((((V_m-V_rectifier_drop)/(I_peak*10**-6))-(R_m*1000))/1000)*10)/10; #Multiplier resistance, k\u03a9 (OHM's LAW)\n", + "\n", + "\n", + "#Result\n", + "print(\"The multiplier resistance=%.1fk\u03a9.\"%R_s);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The multiplier resistance=890.7k\u03a9.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.10 : Page number 616\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "I_av=75; #Full scale deflection of meter current, \u03bcA\n", + "R_s=708; #Multiplier resistor, k\u03a9\n", + "R_m=900; #Meter coil resistor, \u03a9\n", + "\n", + "#Calculation\n", + "I_peak=I_av*10**-6/0.637; #Peak f.s.d meter current, A\n", + "R_T=R_s*1000+R_m; #Total circuit resistance, \u03a9\n", + "\n", + "#I_peak=(Vm-V_drop)/R_T; (OHM's LAW)\n", + "#And, Vm=sqrt(2)*Vrms\n", + "V_rms=(I_peak*R_T+(2*0.7))/sqrt(2) ; #applied r.m.s voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"The applied r.m.s voltage=%dV\"%V_rms);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The applied r.m.s voltage=60V\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.11 : Page number 618\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "deflection_sensitivity=0.01; #Deflection sensitivity, mm/V\n", + "V=400; #Applied voltage, V\n", + "\n", + "#Calculation\n", + "spot_shift=V*deflection_sensitivity; #Spot shift produced, mm\n", + "\n", + "\n", + "#Result\n", + "print(\"The shift produced in the spot=%dmm.\"%spot_shift);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The shift produced in the spot=4mm.\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.12 : Page number 618-619\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "deflection_sensitivity=0.03; #Deflection sensitivity, mm/V\n", + "spot_shift=3; #Spot shift produced, mm\n", + "\n", + "\n", + "#Calculation\n", + "#Since, spot_shift=Applied_Voltage*deflection_sensitivity,\n", + "V=spot_shift/deflection_sensitivity; #Applied voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"Applied voltage=%dV.\"%V);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Applied voltage=100V.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.13 : Page number 622\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "deflection=2; #Deflection produced by applied voltage, cm\n", + "V=200; #Applied voltage, V\n", + "deflection_by_another_voltage=3; #Deflection by another voltage, cm\n", + "\n", + "#Calculation\n", + "deflection_sensitivity=V/deflection; #deflection sensitivity, V/cm\n", + "V_unknown=deflection_sensitivity*deflection_by_another_voltage; #Unknown voltage, V\n", + "\n", + "#Result\n", + "print(\"The unknown voltage=%dV.\"%V_unknown);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The unknown voltage=300V.\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 22.14 : Page number 622\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "f_H=1000; #Frequency applied to horizontal plates, Hz\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Loops_H=1; #Number of loops cut by horizontal line\n", + "Loops_V=1; #Number of loops cut by vertical line\n", + "f_V=f_H*(Loops_H/Loops_V); #Unknown frequency, Hz\n", + "\n", + "print(\"(i) Unknown frequency=%dHz.\"%f_V);\n", + "\n", + "#(ii)\n", + "Loops_H=2; #Number of loops cut by horizontal line\n", + "Loops_V=1; #Number of loops cut by vertical line\n", + "f_V=f_H*(Loops_H/Loops_V); #Unknown frequency, Hz\n", + "\n", + "print(\"(ii) Unknown frequency=%dHz.\"%f_V);\n", + "\n", + "#(iii)\n", + "Loops_H=6; #Number of loops cut by horizontal line\n", + "Loops_V=1; #Number of loops cut by vertical line\n", + "f_V=f_H*(Loops_H/Loops_V); #Unknown frequency, Hz\n", + "\n", + "print(\"(iii) Unknown frequency=%dHz.\"%f_V);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Unknown frequency=1000Hz.\n", + "(ii) Unknown frequency=2000Hz.\n", + "(iii) Unknown frequency=6000Hz.\n" + ] + } + ], + "prompt_number": 21 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_4.ipynb new file mode 100644 index 00000000..19741354 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_4.ipynb @@ -0,0 +1,133 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:87bd5c8d9448f5bb2e75909f89934a6fb2b64e65e6ea37b085ce080a58026071" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 23 : INTEGRATED CIRCUITS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 23.1: Page number 637" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=240; #Adjusted resistance of R2 resistor of LM317 voltage regulator, in kilo ohm\n", + "R2=2.4; #Fixed value of R1 resistor of LM317 voltage regulator, in ohm\n", + "\n", + "#Calculations\n", + "#Output voltage of LM317 voltage regulator IC = 1.25(R2/R1 +1)\n", + "Vout=1.25*((R2*1000)/R1 + 1); #Regulated d.c output voltage for the circuit in V\n", + "\n", + "#Results\n", + "print(\"The regulated d.c output voltage = %.2fV\"%Vout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulated d.c output voltage = 13.75V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 23.2 : Page number 638" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R=1.2; #Value of resistance of monostable multivibrator in kilo ohm\n", + "C=0.1; #Value of capacitance of monostable multivibrator in microfarad\n", + "\n", + "#Calculations\n", + "T=1.1*(R*1000)*C; #Time for which the circuit is ON, in microseconds\n", + "\n", + "#Results\n", + "print(\"Time for which the circuit is ON = %d microseconds.\"%T); \n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Time for which the circuit is ON = 132 microseconds.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 23.3 : Page number 639\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=3.0; #Resistance of R1 resistor of 555 timer circuit in kilo ohm\n", + "R2=2.7; #Resistance of R2 resistor of 555 timer circuit in kilo ohm\n", + "C=0.033; #Capacitance of the capacitor of 555 timer circuit in microfarad\n", + "\n", + "#Calculations\n", + "f=1.44/(((R1*1000) + 2*(R2*1000))*(C*pow(10,-6))); #Frequency of the circuit in Hz\n", + "f=f/1000; #Frequency of the circuit in kHz\n", + "\n", + "#Results\n", + "print(\"The frequency of the circuit = %.2fkHz\"%f);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency of the circuit = 5.19kHz\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_5.ipynb new file mode 100644 index 00000000..19741354 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_5.ipynb @@ -0,0 +1,133 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:87bd5c8d9448f5bb2e75909f89934a6fb2b64e65e6ea37b085ce080a58026071" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 23 : INTEGRATED CIRCUITS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 23.1: Page number 637" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=240; #Adjusted resistance of R2 resistor of LM317 voltage regulator, in kilo ohm\n", + "R2=2.4; #Fixed value of R1 resistor of LM317 voltage regulator, in ohm\n", + "\n", + "#Calculations\n", + "#Output voltage of LM317 voltage regulator IC = 1.25(R2/R1 +1)\n", + "Vout=1.25*((R2*1000)/R1 + 1); #Regulated d.c output voltage for the circuit in V\n", + "\n", + "#Results\n", + "print(\"The regulated d.c output voltage = %.2fV\"%Vout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulated d.c output voltage = 13.75V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 23.2 : Page number 638" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R=1.2; #Value of resistance of monostable multivibrator in kilo ohm\n", + "C=0.1; #Value of capacitance of monostable multivibrator in microfarad\n", + "\n", + "#Calculations\n", + "T=1.1*(R*1000)*C; #Time for which the circuit is ON, in microseconds\n", + "\n", + "#Results\n", + "print(\"Time for which the circuit is ON = %d microseconds.\"%T); \n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Time for which the circuit is ON = 132 microseconds.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 23.3 : Page number 639\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=3.0; #Resistance of R1 resistor of 555 timer circuit in kilo ohm\n", + "R2=2.7; #Resistance of R2 resistor of 555 timer circuit in kilo ohm\n", + "C=0.033; #Capacitance of the capacitor of 555 timer circuit in microfarad\n", + "\n", + "#Calculations\n", + "f=1.44/(((R1*1000) + 2*(R2*1000))*(C*pow(10,-6))); #Frequency of the circuit in Hz\n", + "f=f/1000; #Frequency of the circuit in kHz\n", + "\n", + "#Results\n", + "print(\"The frequency of the circuit = %.2fkHz\"%f);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The frequency of the circuit = 5.19kHz\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_4.ipynb new file mode 100644 index 00000000..e63c17a6 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_4.ipynb @@ -0,0 +1,604 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:947f358cf49d029c94d008f72a340051744678cf2e36ecc199100b78d31fcba5" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 24 : HYBRID PARAMETERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.1 : Page number 644-645\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=10.0; #1st resistor, \u03a9\n", + "R2=5.0; #2nd resistor, \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "print(\"To find h11 and h21, output terminals are shorted.\");\n", + "h11=R1; #Input impedance with output shorted, \u03a9\n", + "\n", + "print(\"h11=%d\u03a9.\"%h11);\n", + "\n", + "print(\"Output current flowing into the box= input current flowing out of the box.\");\n", + "print(\"i2=-i1\"); #Output current flowing into the box= input current flowing out of the box.\n", + "print(\"h21=i2/i1 = -i1/i1= -1.\"); #Current gain with output shorted.\n", + "\n", + "\n", + "print(\"For finding h22 and h12, voltage source is connected at the output\");\n", + "#As, there will be no current through 10k\u03a9 resistor due to open circuited input,\n", + "print(\"v1=v2\"); #Output voltage is equal to input voltage(equal to voltage drop across 5k\u03a9 resistor)\n", + "print(\"h12=v1/v2 = v2/v2 = 1\"); #Voltage feedback ratio with input terminals open\n", + "\n", + "h22=1/R2; #Output admittance, mho\n", + "print(\"h22=%.1f mho\"%h22);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "To find h11 and h21, output terminals are shorted.\n", + "h11=10\u03a9.\n", + "Output current flowing into the box= input current flowing out of the box.\n", + "i2=-i1\n", + "h21=i2/i1 = -i1/i1= -1.\n", + "For finding h22 and h12, voltage source is connected at the output\n", + "v1=v2\n", + "h12=v1/v2 = v2/v2 = 1\n", + "h22=0.2 mho\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.2 : Page number 645-646\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=4.0; #1st resistor(at the input side), \u03a9\n", + "R2=4.0; #2nd resistor(at the middle), \u03a9\n", + "R3=4.0; #3rd resistor(at the output side), \u03a9\n", + "\n", + "#Calculation\n", + "print(\"To find h11 and h21, output terminals are shorted.\");\n", + "h11=R1 + (R2*R3/(R2+R3)); #Input impedance with output shorted, \u03a9\n", + "print(\"h11=%d\u03a9.\"%h11);\n", + "\n", + "#As the input current gets divided in half due to R2=R3.\n", + "print(\"Output current flowing into the box=negative of half of input current flowing out of the box.\");\n", + "print(\"i2=-i1/2 = -0.5i1\"); \n", + "print(\"h21=i2/i1 = -0.5i1/i1= -0.5.\"); #Current gain with output shorted.\n", + "\n", + "print(\"For finding h22 and h12, voltage source is connected at the output\");\n", + "#As, there will be no current through the 1st 4k\u03a9 resistor due to open circuited input,\n", + "#Voltage gets equally divided across R2 and R3 resistor\n", + "print(\"v1=v2/2 = 0.5v2\"); #Input voltage is equal to half of input voltage\n", + "print(\"h12=v1/v2 = 0.5v2/v2 = 0.5\"); #Voltage feedback ratio with input terminals open\n", + "\n", + "h22=1/(R2+R3); #Output admittance, mho\n", + "print(\"h22=%.3f mho\"%h22);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "To find h11 and h21, output terminals are shorted.\n", + "h11=6\u03a9.\n", + "Output current flowing into the box=negative of half of input current flowing out of the box.\n", + "i2=-i1/2 = -0.5i1\n", + "h21=i2/i1 = -0.5i1/i1= -0.5.\n", + "For finding h22 and h12, voltage source is connected at the output\n", + "v1=v2/2 = 0.5v2\n", + "h12=v1/v2 = 0.5v2/v2 = 0.5\n", + "h22=0.125 mho\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.3 ; Page number 649-650\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=10.0; #Resistor at the input side, \u03a9\n", + "R2=5.0; #Resistor at the middle, \u03a9\n", + "rL=5.0; #Load resistor, \u03a9\n", + "\n", + "#h-parameter values from 24.1\n", + "h11=10.0; #Input impedance with output shorted, \u03a9\n", + "h21=-1.0; #Current gain with output shorted\n", + "h12=1.0; #Voltage feedback ratio with input terminal open\n", + "h22=0.2; #Output admittance, mho\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Zin=h11-(h12*h21/(h22+(1/rL))); #Input impedance, \u03a9\n", + "\n", + "#(ii)\n", + "Av=-h21/(Zin*(h22+(1/rL))); #voltage gain,\n", + "\n", + "#Result\n", + "print(\"(i) The input impedance=%.1f\u03a9.\"%Zin );\n", + "print(\"(ii) The voltage gain=1/%d.\"%(1/Av));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The input impedance=12.5\u03a9.\n", + "(ii) The voltage gain=1/5.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.4 : Page number 652-653\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE=10.0; #Collector-emitter voltage, V\n", + "IC=1.0; #Collector current, mA\n", + "rL=600.0; #a.c load seen by the transistor,\u03a9\n", + "\n", + "#h-parameters\n", + "hie=2000.0; #Input impedance with output shorted, \u03a9\n", + "hoe=10**-4; #Output impedance, mho\n", + "hre=10**-3; #Voltage feedback ratio with input terminal open\n", + "hfe=50.0; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Zin=hie - (hre*hfe/(hoe+(1/rL))); #Input impedance, \u03a9\n", + "print(\"Input impedance=%.0f \u03a9. \\n As second term in the expression of Zin is small compared to first, Zin~hie=%d\u03a9.\"%(Zin,hie));\n", + "\n", + "#(ii)\n", + "Ai=hfe/(1+hoe*rL); #Current gain\n", + "print(\"Current gain=%d\"%Ai);\n", + "print(\"if hoe*rL<<1, then Ai~hfe=%d.\"%hfe);\n", + "\n", + "#(iii)\n", + "Av=-hfe/(Zin*(hoe+(1/rL))); #Voltage gain\n", + "print(\"Voltage gain=%.1f\"%Av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Input impedance=1972 \u03a9. \n", + " As second term in the expression of Zin is small compared to first, Zin~hie=2000\u03a9.\n", + "Current gain=47\n", + "if hoe*rL<<1, then Ai~hfe=50.\n", + "Voltage gain=-14.4\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.5 : Page number 653\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import ceil\n", + "\n", + "#Variable declaration\n", + "VCE=5.0; #Collector-emitter voltage, V\n", + "IC=1.0; #Collector current, mA\n", + "rL=2.0; #a.c load seen by the transistor,\u03a9\n", + "\n", + "\n", + "#h-parameters\n", + "hie=1700.0; #Input impedance with output shorted, \u03a9\n", + "hoe=6*10**-6; #Output impedance, mho\n", + "hre=1.3*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=38.0; #Current gain with output shorted\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Zin=hie - (hre*hfe/(hoe+(1/(rL*1000)))); #Input impedance, \u03a9\n", + "print(\"Input impedance=%.0f \u03a9.\"%Zin);\n", + "\n", + "#(ii)\n", + "Ai=ceil((hfe/round((1+hoe*rL*1000),3))*10)/10; #Current gain\n", + "print(\"Current gain=%.1f\"%Ai);\n", + "\n", + "#(iii)\n", + "Av=-hfe/(Zin*(hoe+(1/(rL*1000)))); #Voltage gain\n", + "print(\"Voltage gain=%.1f\"%abs(Av));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Input impedance=1690 \u03a9.\n", + "Current gain=37.6\n", + "Voltage gain=44.4\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.6 : Page number 653-654\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return r1*r2/(r1+r2);\n", + "\n", + "\n", + "#Variable declaration\n", + "RC=10.0; #Collector resistance, k\u03a9\n", + "RL=30.0; #Load resistance, k\u03a9\n", + "R1=80.0; #Resistor R1, k\u03a9\n", + "R2=40.0; #Resistor R2, k\u03a9\n", + "\n", + "#h-parameters\n", + "hie=1500.0; #Input impedance with output shorted, \u03a9\n", + "hoe=5*10**-5; #Output impedance, mho\n", + "hre=4*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=50.0; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "rL=((RC*RL)/(RC+RL))*1000; #a.c load as seen by resistance, \u03a9\n", + "\n", + "#(i)\n", + "Zin=round(hie - (hre*hfe/(hoe+(1/rL))),-1); #Input impedance, \u03a9\n", + "print(\"Input impedance=%.0f \u03a9.\"%Zin);\n", + "\n", + "#Input impedance of stage=input impedance || bias resistors\n", + "Zin_stage=round(pr(pr(R1,R2)*1000,Zin),-1); #\u03a9\n", + "print(\"Input impedance of the stage=%.0f \u03a9.\"%Zin_stage);\n", + "\n", + "#(ii)\n", + "Av=-hfe/(Zin*(hoe+(1/rL))); #Voltage gain\n", + "print(\"Voltage gain=%d\"%Av);\n", + "print(\"The negative sign represents phase reversal.\");\n", + "\n", + "\n", + "#(iii)\n", + "Zout=(1/(hoe-(hfe*hre/hie)))/1000; #Output impedance of transistor, k\u03a9\n", + "Zout_stage=pr(Zout,pr(RL,RC)); #Output impedance of the stage, k\u03a9\n", + "print(\"Output impedance=%.2f k\u03a9.\"%Zout);\n", + "print(\"Output impedance of the stage=%.2f k\u03a9.\"%Zout_stage);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Input impedance=1390 \u03a9.\n", + "Input impedance of the stage=1320 \u03a9.\n", + "Voltage gain=-196\n", + "The negative sign represents phase reversal.\n", + "Output impedance=27.27 k\u03a9.\n", + "Output impedance of the stage=5.88 k\u03a9.\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.7 : Page number 654\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return r1*r2/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "RC=4.7; #Collector resistance, k\u03a9\n", + "RL=10.0; #Load resistance, k\u03a9\n", + "R1=33.0; #Resistor R1, k\u03a9\n", + "R2=10.0; #Resistor R2, k\u03a9\n", + "\n", + "#h-parameters\n", + "hie=1; #Input impedance with output shorted, k\u03a9\n", + "hoe=25; #Output impedance, \u03bcS\n", + "hre=2.5*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=50; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "rL=(RC*RL)/(RC+RL); #a.c load as seen by resistance, k\u03a9\n", + "\n", + "Ai=hfe/(1+hoe*10**-6*rL*1000); #Current gain\n", + "print(\"Current gain=%.1f\"%Ai);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current gain=46.3\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.8 : Page number 654-655\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R_S=100.0; #Series resistance, \u03a9 \n", + "\n", + "#h-parameters\n", + "hie=1.0; #Input impedance with output shorted, k\u03a9\n", + "hoe=25.0; #Output impedance, \u03bcS\n", + "hre=2.5*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=50.0; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "Zout=(1/(hoe*10**-6-(hfe*hre/(hie*1000+R_S))))/1000; #Output impedance of transistor, k\u03a9\n", + "print(\"Output impedance=%.1f k\u03a9.\"%Zout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output impedance=73.3 k\u03a9.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.9 : Page number 656\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import floor\n", + "\n", + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return r1*r2/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "RC=12.0; #Collector resistance, k\u03a9\n", + "RL=15.0; #Load resistance, k\u03a9\n", + "R1=50.0; #Resistor R1, k\u03a9\n", + "R2=5.0; #Resistor R2, k\u03a9\n", + "hie=1.94; #Input impedance with output shorted, k\u03a9\n", + "hfe=71.0; #Current gain with output shorted\n", + "\n", + "\n", + "\n", + "#Calculation\n", + "rL=(RC*RL)/(RC+RL); #a.c load as seen by resistance, \u03a9\n", + "\n", + "#(i)\n", + "Zin_base=hie; #Transistor input impedance, k\u03a9\n", + "Zin_circuit=floor(pr(Zin_base,pr(R1,R2))*100)/100; #Circuit input impedance, k\u03a9\n", + "print(\"Circuit input impedance=%.2fk\u03a9\"%Zin_circuit);\n", + "\n", + "\n", + "#(ii)\n", + "Av=hfe*rL/hie; #Voltage gain\n", + "print(\"Voltage gain=%.0f\"%Av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Circuit input impedance=1.35k\u03a9\n", + "Voltage gain=244\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.10 : Page number 656\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "hie_min=600; #Minimum input impedance with output shorted, \u03a9\n", + "hfe_min=110; #Minimum current gain with output shorted\n", + "hie_max=800; #Maximum input impedance with output shorted, \u03a9\n", + "hfe_max=140; #Maximum current gain with output shorted\n", + "rL=460; #a.c collector load, \u03a9\n", + "\n", + "#Calculation\n", + "hie=round(sqrt(hie_min*hie_max)); #Input impedance with output shorted, \u03a9\n", + "hfe=round(sqrt(hfe_min*hfe_max)); #Current gain with output shorted\n", + "Av=hfe*rL/hie; #Voltage gain\n", + "\n", + "#Result\n", + "print(\"Voltage gain=%.1f\"%Av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage gain=82.3\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.11 : Page number 658-659\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#(a)Variable declaration\n", + "Ib=10; #Base current, \u03bcA\n", + "Ic=1; #Collector current, mA\n", + "Vbe=10; #Base-emitter voltage, mV\n", + "\n", + "#Calculation\n", + "hie=Vbe*10**-3/(Ib*10**-6); #Input impedance with output shorted, \u03a9\n", + "hfe=Ic*10**-3/(Ib*10**-6); #Current gain with output shorted\n", + "\n", + "#(b) Variable declaration\n", + "Vbe=0.65; #Base-emitter voltage, mV\n", + "Ic=60; #Collector current, \u03bcA\n", + "Vce=1; #Collector-emitter voltage, V\n", + "\n", + "#Calculation\n", + "hre=Vbe*10**-3/Vce; #Voltage feedback ratio with input terminal open\n", + "hoe=Ic/Vce; #Output impedance, \u03bcmho\n", + "\n", + "\n", + "#Result\n", + "print(\"hie=%d\u03a9\"%hie);\n", + "print(\"hfe=%d\"%hfe);\n", + "print(\"hre=%.2fe\u201303\"%(hre*1000));\n", + "print(\"hoe=%d\u03bcmho\"%hoe);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hie=1000\u03a9\n", + "hfe=100\n", + "hre=0.65e\u201303\n", + "hoe=60\u03bcmho\n" + ] + } + ], + "prompt_number": 20 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_5.ipynb new file mode 100644 index 00000000..e63c17a6 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_5.ipynb @@ -0,0 +1,604 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:947f358cf49d029c94d008f72a340051744678cf2e36ecc199100b78d31fcba5" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 24 : HYBRID PARAMETERS" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.1 : Page number 644-645\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=10.0; #1st resistor, \u03a9\n", + "R2=5.0; #2nd resistor, \u03a9\n", + "\n", + "\n", + "#Calculation\n", + "print(\"To find h11 and h21, output terminals are shorted.\");\n", + "h11=R1; #Input impedance with output shorted, \u03a9\n", + "\n", + "print(\"h11=%d\u03a9.\"%h11);\n", + "\n", + "print(\"Output current flowing into the box= input current flowing out of the box.\");\n", + "print(\"i2=-i1\"); #Output current flowing into the box= input current flowing out of the box.\n", + "print(\"h21=i2/i1 = -i1/i1= -1.\"); #Current gain with output shorted.\n", + "\n", + "\n", + "print(\"For finding h22 and h12, voltage source is connected at the output\");\n", + "#As, there will be no current through 10k\u03a9 resistor due to open circuited input,\n", + "print(\"v1=v2\"); #Output voltage is equal to input voltage(equal to voltage drop across 5k\u03a9 resistor)\n", + "print(\"h12=v1/v2 = v2/v2 = 1\"); #Voltage feedback ratio with input terminals open\n", + "\n", + "h22=1/R2; #Output admittance, mho\n", + "print(\"h22=%.1f mho\"%h22);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "To find h11 and h21, output terminals are shorted.\n", + "h11=10\u03a9.\n", + "Output current flowing into the box= input current flowing out of the box.\n", + "i2=-i1\n", + "h21=i2/i1 = -i1/i1= -1.\n", + "For finding h22 and h12, voltage source is connected at the output\n", + "v1=v2\n", + "h12=v1/v2 = v2/v2 = 1\n", + "h22=0.2 mho\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.2 : Page number 645-646\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=4.0; #1st resistor(at the input side), \u03a9\n", + "R2=4.0; #2nd resistor(at the middle), \u03a9\n", + "R3=4.0; #3rd resistor(at the output side), \u03a9\n", + "\n", + "#Calculation\n", + "print(\"To find h11 and h21, output terminals are shorted.\");\n", + "h11=R1 + (R2*R3/(R2+R3)); #Input impedance with output shorted, \u03a9\n", + "print(\"h11=%d\u03a9.\"%h11);\n", + "\n", + "#As the input current gets divided in half due to R2=R3.\n", + "print(\"Output current flowing into the box=negative of half of input current flowing out of the box.\");\n", + "print(\"i2=-i1/2 = -0.5i1\"); \n", + "print(\"h21=i2/i1 = -0.5i1/i1= -0.5.\"); #Current gain with output shorted.\n", + "\n", + "print(\"For finding h22 and h12, voltage source is connected at the output\");\n", + "#As, there will be no current through the 1st 4k\u03a9 resistor due to open circuited input,\n", + "#Voltage gets equally divided across R2 and R3 resistor\n", + "print(\"v1=v2/2 = 0.5v2\"); #Input voltage is equal to half of input voltage\n", + "print(\"h12=v1/v2 = 0.5v2/v2 = 0.5\"); #Voltage feedback ratio with input terminals open\n", + "\n", + "h22=1/(R2+R3); #Output admittance, mho\n", + "print(\"h22=%.3f mho\"%h22);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "To find h11 and h21, output terminals are shorted.\n", + "h11=6\u03a9.\n", + "Output current flowing into the box=negative of half of input current flowing out of the box.\n", + "i2=-i1/2 = -0.5i1\n", + "h21=i2/i1 = -0.5i1/i1= -0.5.\n", + "For finding h22 and h12, voltage source is connected at the output\n", + "v1=v2/2 = 0.5v2\n", + "h12=v1/v2 = 0.5v2/v2 = 0.5\n", + "h22=0.125 mho\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.3 ; Page number 649-650\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R1=10.0; #Resistor at the input side, \u03a9\n", + "R2=5.0; #Resistor at the middle, \u03a9\n", + "rL=5.0; #Load resistor, \u03a9\n", + "\n", + "#h-parameter values from 24.1\n", + "h11=10.0; #Input impedance with output shorted, \u03a9\n", + "h21=-1.0; #Current gain with output shorted\n", + "h12=1.0; #Voltage feedback ratio with input terminal open\n", + "h22=0.2; #Output admittance, mho\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Zin=h11-(h12*h21/(h22+(1/rL))); #Input impedance, \u03a9\n", + "\n", + "#(ii)\n", + "Av=-h21/(Zin*(h22+(1/rL))); #voltage gain,\n", + "\n", + "#Result\n", + "print(\"(i) The input impedance=%.1f\u03a9.\"%Zin );\n", + "print(\"(ii) The voltage gain=1/%d.\"%(1/Av));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The input impedance=12.5\u03a9.\n", + "(ii) The voltage gain=1/5.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.4 : Page number 652-653\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE=10.0; #Collector-emitter voltage, V\n", + "IC=1.0; #Collector current, mA\n", + "rL=600.0; #a.c load seen by the transistor,\u03a9\n", + "\n", + "#h-parameters\n", + "hie=2000.0; #Input impedance with output shorted, \u03a9\n", + "hoe=10**-4; #Output impedance, mho\n", + "hre=10**-3; #Voltage feedback ratio with input terminal open\n", + "hfe=50.0; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Zin=hie - (hre*hfe/(hoe+(1/rL))); #Input impedance, \u03a9\n", + "print(\"Input impedance=%.0f \u03a9. \\n As second term in the expression of Zin is small compared to first, Zin~hie=%d\u03a9.\"%(Zin,hie));\n", + "\n", + "#(ii)\n", + "Ai=hfe/(1+hoe*rL); #Current gain\n", + "print(\"Current gain=%d\"%Ai);\n", + "print(\"if hoe*rL<<1, then Ai~hfe=%d.\"%hfe);\n", + "\n", + "#(iii)\n", + "Av=-hfe/(Zin*(hoe+(1/rL))); #Voltage gain\n", + "print(\"Voltage gain=%.1f\"%Av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Input impedance=1972 \u03a9. \n", + " As second term in the expression of Zin is small compared to first, Zin~hie=2000\u03a9.\n", + "Current gain=47\n", + "if hoe*rL<<1, then Ai~hfe=50.\n", + "Voltage gain=-14.4\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.5 : Page number 653\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import ceil\n", + "\n", + "#Variable declaration\n", + "VCE=5.0; #Collector-emitter voltage, V\n", + "IC=1.0; #Collector current, mA\n", + "rL=2.0; #a.c load seen by the transistor,\u03a9\n", + "\n", + "\n", + "#h-parameters\n", + "hie=1700.0; #Input impedance with output shorted, \u03a9\n", + "hoe=6*10**-6; #Output impedance, mho\n", + "hre=1.3*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=38.0; #Current gain with output shorted\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Zin=hie - (hre*hfe/(hoe+(1/(rL*1000)))); #Input impedance, \u03a9\n", + "print(\"Input impedance=%.0f \u03a9.\"%Zin);\n", + "\n", + "#(ii)\n", + "Ai=ceil((hfe/round((1+hoe*rL*1000),3))*10)/10; #Current gain\n", + "print(\"Current gain=%.1f\"%Ai);\n", + "\n", + "#(iii)\n", + "Av=-hfe/(Zin*(hoe+(1/(rL*1000)))); #Voltage gain\n", + "print(\"Voltage gain=%.1f\"%abs(Av));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Input impedance=1690 \u03a9.\n", + "Current gain=37.6\n", + "Voltage gain=44.4\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.6 : Page number 653-654\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return r1*r2/(r1+r2);\n", + "\n", + "\n", + "#Variable declaration\n", + "RC=10.0; #Collector resistance, k\u03a9\n", + "RL=30.0; #Load resistance, k\u03a9\n", + "R1=80.0; #Resistor R1, k\u03a9\n", + "R2=40.0; #Resistor R2, k\u03a9\n", + "\n", + "#h-parameters\n", + "hie=1500.0; #Input impedance with output shorted, \u03a9\n", + "hoe=5*10**-5; #Output impedance, mho\n", + "hre=4*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=50.0; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "rL=((RC*RL)/(RC+RL))*1000; #a.c load as seen by resistance, \u03a9\n", + "\n", + "#(i)\n", + "Zin=round(hie - (hre*hfe/(hoe+(1/rL))),-1); #Input impedance, \u03a9\n", + "print(\"Input impedance=%.0f \u03a9.\"%Zin);\n", + "\n", + "#Input impedance of stage=input impedance || bias resistors\n", + "Zin_stage=round(pr(pr(R1,R2)*1000,Zin),-1); #\u03a9\n", + "print(\"Input impedance of the stage=%.0f \u03a9.\"%Zin_stage);\n", + "\n", + "#(ii)\n", + "Av=-hfe/(Zin*(hoe+(1/rL))); #Voltage gain\n", + "print(\"Voltage gain=%d\"%Av);\n", + "print(\"The negative sign represents phase reversal.\");\n", + "\n", + "\n", + "#(iii)\n", + "Zout=(1/(hoe-(hfe*hre/hie)))/1000; #Output impedance of transistor, k\u03a9\n", + "Zout_stage=pr(Zout,pr(RL,RC)); #Output impedance of the stage, k\u03a9\n", + "print(\"Output impedance=%.2f k\u03a9.\"%Zout);\n", + "print(\"Output impedance of the stage=%.2f k\u03a9.\"%Zout_stage);\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Input impedance=1390 \u03a9.\n", + "Input impedance of the stage=1320 \u03a9.\n", + "Voltage gain=-196\n", + "The negative sign represents phase reversal.\n", + "Output impedance=27.27 k\u03a9.\n", + "Output impedance of the stage=5.88 k\u03a9.\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.7 : Page number 654\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return r1*r2/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "RC=4.7; #Collector resistance, k\u03a9\n", + "RL=10.0; #Load resistance, k\u03a9\n", + "R1=33.0; #Resistor R1, k\u03a9\n", + "R2=10.0; #Resistor R2, k\u03a9\n", + "\n", + "#h-parameters\n", + "hie=1; #Input impedance with output shorted, k\u03a9\n", + "hoe=25; #Output impedance, \u03bcS\n", + "hre=2.5*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=50; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "rL=(RC*RL)/(RC+RL); #a.c load as seen by resistance, k\u03a9\n", + "\n", + "Ai=hfe/(1+hoe*10**-6*rL*1000); #Current gain\n", + "print(\"Current gain=%.1f\"%Ai);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current gain=46.3\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.8 : Page number 654-655\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "R_S=100.0; #Series resistance, \u03a9 \n", + "\n", + "#h-parameters\n", + "hie=1.0; #Input impedance with output shorted, k\u03a9\n", + "hoe=25.0; #Output impedance, \u03bcS\n", + "hre=2.5*10**-4; #Voltage feedback ratio with input terminal open\n", + "hfe=50.0; #Current gain with output shorted\n", + "\n", + "\n", + "#Calculation\n", + "Zout=(1/(hoe*10**-6-(hfe*hre/(hie*1000+R_S))))/1000; #Output impedance of transistor, k\u03a9\n", + "print(\"Output impedance=%.1f k\u03a9.\"%Zout);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output impedance=73.3 k\u03a9.\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.9 : Page number 656\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import floor\n", + "\n", + "#Function for calculating parallel resistance\n", + "def pr(r1,r2):\n", + " return r1*r2/(r1+r2);\n", + "\n", + "#Variable declaration\n", + "RC=12.0; #Collector resistance, k\u03a9\n", + "RL=15.0; #Load resistance, k\u03a9\n", + "R1=50.0; #Resistor R1, k\u03a9\n", + "R2=5.0; #Resistor R2, k\u03a9\n", + "hie=1.94; #Input impedance with output shorted, k\u03a9\n", + "hfe=71.0; #Current gain with output shorted\n", + "\n", + "\n", + "\n", + "#Calculation\n", + "rL=(RC*RL)/(RC+RL); #a.c load as seen by resistance, \u03a9\n", + "\n", + "#(i)\n", + "Zin_base=hie; #Transistor input impedance, k\u03a9\n", + "Zin_circuit=floor(pr(Zin_base,pr(R1,R2))*100)/100; #Circuit input impedance, k\u03a9\n", + "print(\"Circuit input impedance=%.2fk\u03a9\"%Zin_circuit);\n", + "\n", + "\n", + "#(ii)\n", + "Av=hfe*rL/hie; #Voltage gain\n", + "print(\"Voltage gain=%.0f\"%Av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Circuit input impedance=1.35k\u03a9\n", + "Voltage gain=244\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.10 : Page number 656\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "hie_min=600; #Minimum input impedance with output shorted, \u03a9\n", + "hfe_min=110; #Minimum current gain with output shorted\n", + "hie_max=800; #Maximum input impedance with output shorted, \u03a9\n", + "hfe_max=140; #Maximum current gain with output shorted\n", + "rL=460; #a.c collector load, \u03a9\n", + "\n", + "#Calculation\n", + "hie=round(sqrt(hie_min*hie_max)); #Input impedance with output shorted, \u03a9\n", + "hfe=round(sqrt(hfe_min*hfe_max)); #Current gain with output shorted\n", + "Av=hfe*rL/hie; #Voltage gain\n", + "\n", + "#Result\n", + "print(\"Voltage gain=%.1f\"%Av);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage gain=82.3\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 24.11 : Page number 658-659\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#(a)Variable declaration\n", + "Ib=10; #Base current, \u03bcA\n", + "Ic=1; #Collector current, mA\n", + "Vbe=10; #Base-emitter voltage, mV\n", + "\n", + "#Calculation\n", + "hie=Vbe*10**-3/(Ib*10**-6); #Input impedance with output shorted, \u03a9\n", + "hfe=Ic*10**-3/(Ib*10**-6); #Current gain with output shorted\n", + "\n", + "#(b) Variable declaration\n", + "Vbe=0.65; #Base-emitter voltage, mV\n", + "Ic=60; #Collector current, \u03bcA\n", + "Vce=1; #Collector-emitter voltage, V\n", + "\n", + "#Calculation\n", + "hre=Vbe*10**-3/Vce; #Voltage feedback ratio with input terminal open\n", + "hoe=Ic/Vce; #Output impedance, \u03bcmho\n", + "\n", + "\n", + "#Result\n", + "print(\"hie=%d\u03a9\"%hie);\n", + "print(\"hfe=%d\"%hfe);\n", + "print(\"hre=%.2fe\u201303\"%(hre*1000));\n", + "print(\"hoe=%d\u03bcmho\"%hoe);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hie=1000\u03a9\n", + "hfe=100\n", + "hre=0.65e\u201303\n", + "hoe=60\u03bcmho\n" + ] + } + ], + "prompt_number": 20 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_4.ipynb new file mode 100644 index 00000000..92d6f1ec --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_4.ipynb @@ -0,0 +1,2522 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 25 : OPERATIONAL AMPLIFIERS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.1: Page number 664" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output voltage of the differential amplifier = 10V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A=100.0; #Open-circuit voltage gain of differential amplifier\n", + "V1=3.25; #Input voltage to terminal 1 in V\n", + "V2=3.15; #Input voltage to terminal 2 in V\n", + "\n", + "#Calculations\n", + "V0=A*(V1-V2); #Output voltage in V\n", + "\n", + "#Results\n", + "print(\"The output voltage of the differential amplifier = %dV\"%V0);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.2: Page number 672" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The common mode rejection ratio = 10000.\n", + "The common mode rejection ratio in decibels= 80dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_DM=2000.0; #Differential mode voltage gain\n", + "A_CM=0.2; #Common mode voltage gain\n", + "\n", + "#Calculations\n", + "CMRR=A_DM/A_CM; #Common mode rejection ratio\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in dB\n", + "\n", + "\n", + "#Results\n", + "print(\"The common mode rejection ratio = %d.\"%CMRR);\n", + "print(\"The common mode rejection ratio in decibels= %ddB.\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.3: Page number 672" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The common mode rejection ratio in decibels= 46dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "VD_in=10.0; #Differential mode input in mV\n", + "VD_out=1.0; #Output for differential mode input in V\n", + "VC_in=10.0; #Common mode input in mV\n", + "VC_out=5.0; #Output for common mode input in mV\\\n", + "\n", + "#Calculations\n", + "A_DM=(VD_out*1000)/VD_in; #Differntial mode voltage gain\n", + "A_CM=VC_out/VC_in; #Common mode voltage gain\n", + "CMRR=A_DM/A_CM; #Common mode rejection ratio\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in dB\n", + "\n", + "#Results\n", + "print(\"The common mode rejection ratio in decibels= %ddB.\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.4: Page number 672" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage =7.5V\n", + "Noise on output = 4.7x10^-6V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_DM=150.0; #Differential mode voltage gain\n", + "CMRR_dB=90.0; #Common mode rejection ratio\n", + "V1=100.0; #Input voltage for terminal 1 in mV\n", + "V2=50.0; #Input voltage for terminal 2 in mV\n", + "V_noise=1.0; #Voltage of noise signal in mV\n", + "\n", + "#Calculation\n", + "\n", + "#Case(i)\n", + "V_out=A_DM*(V1-V2)/1000.0; #Output voltage for differntial mode input, in V\n", + "\n", + "#Since CMRR_dB=20*log10(differential mode gain/common mode gain),\n", + "A_CM=A_DM/pow(10,(CMRR_dB/20)); #Common mode gain\n", + "V_OUT_noise=A_CM*(V_noise/1000); #Noise on output in V\n", + "\n", + "\n", + "#Results\n", + "print(\"Output voltage =%.1fV\"%V_out);\n", + "print(\"Noise on output = %.1fx10^-6V\"%(V_OUT_noise*pow(10,6)));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.5 : Page number 672-673" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Common mode gain =0.083\n", + "Common mode rejection ratio in decibels=89.5dB\n", + "r.m.s output signal =1.25V\n", + "r.m.s interfernce output voltage = 83mV\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_DM=2500.0; #Differential mode voltage gain\n", + "CMRR=30000.0; #Common mode rejection ratio\n", + "Input_signal=500.0; #Single ended input r.m.s signal in microvolts\n", + "Interference=1.0; #Interference signal, in V\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "A_CM=A_DM/CMRR; #Common mode gain\n", + "\n", + "#(ii)\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in decibels\n", + "\n", + "#(iii)\n", + "V_out=A_DM*(Input_signal/pow(10,6)-0); #r.m.s output signal in V\n", + "\n", + "#(iv)\n", + "Interference_out=A_CM*Interference; #r.m.s interference output in V\n", + "Interference_out=Interference_out*1000; #r.m.s interference output in mV\n", + "\n", + "\n", + "#Results\n", + "print(\"Common mode gain =%.3f\"%A_CM);\n", + "print(\"Common mode rejection ratio in decibels=%.1fdB\"%CMRR_dB);\n", + "print(\"r.m.s output signal =%.2fV\"%V_out);\n", + "print(\"r.m.s interfernce output voltage = %dmV\"%Interference_out);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.6 : Page number 674-675" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VE=-0.7V\n", + "IE=0.452mA\n", + "IE1=0.226mA\n", + "IE2=0.226mA\n", + "IC1=0.226mA\n", + "IC2=0.226mA\n", + "IB1=2.26μA\n", + "IB2=2.26μA\n", + "VC1=12V\n", + "VC2=9.7V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RB=10; #Base resistor, kΩ\n", + "RC2=10; #Collector resistor, kΩ\n", + "RE=25; #Emitter resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100; #Base amplification factor\n", + "\n", + "#Calculation\n", + "VE=-VBE; #Emitter voltage, V (Ignoring the base current)\n", + "IE=(VEE-VBE)/RE; #Tail current, mA\n", + "IE1=IE/2; #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "IC1=IE1; #Collector current(= emitter current) of 1st transistor, mA\n", + "IC2=IC1; #Collector current of 2nd transistor, mA\n", + "IB1=(IC1/beta)*1000; #Base current of 1st transistor, μA\n", + "IB2=IB1; #Base current of 2nd transistor, μA\n", + "VC1=VCC; #Collector voltage of 1st transistor, V\n", + "VC2=VCC-IC2*RC2; #Collector voltage of 2nd transistor, V\n", + "\n", + "#Result\n", + "print(\"VE=%.1fV\"%VE);\n", + "print(\"IE=%.3fmA\"%IE);\n", + "print(\"IE1=%.3fmA\"%IE1);\n", + "print(\"IE2=%.3fmA\"%IE2);\n", + "print(\"IC1=%.3fmA\"%IC1);\n", + "print(\"IC2=%.3fmA\"%IC2);\n", + "print(\"IB1=%.2fμA\"%IB1);\n", + "print(\"IB2=%.2fμA\"%IB2);\n", + "print(\"VC1=%dV\"%VC1);\n", + "print(\"VC2=%.1fV\"%VC2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.7 : Page number 675" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output voltage=7.85V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15; #Collector supply voltage, V\n", + "VEE=15; #Emitter supply voltage, V\n", + "RB=33; #Base resistor, kΩ\n", + "RC=15; #Collector resistor, kΩ\n", + "RE=15; #Emitter resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "IE_tail=(VEE-VBE)/RE; #Tail current, mA\n", + "IE=round(IE_tail/2,3); #Emitter current in each transistor, mA\n", + "IC=IE; #Collector current(=emitter current), mA\n", + "Vout=VCC-IC*RC; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.2fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.8 : Page number 675" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) IB1=5.56μA\n", + " IB2=4.55μA\n", + "(ii) VB1=-0.183V\n", + " VB2=-0.15V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VEE=15.0; #Emitter supply voltage, V\n", + "RB=33.0; #Base resistor, kΩ\n", + "RC=15.0; #Collector resistor, kΩ\n", + "RE=15.0; #Emitter resistor, kΩ\n", + "VBE=0; #Base-emitter voltage, V\n", + "beta_dc_l=90.0; #base current amplification factor for left transistor\n", + "beta_dc_r=110.0; #base current amplification factor for right transistor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IE_tail=(VEE-VBE)/RE; #Tail current, mA\n", + "IE=IE_tail/2; #Emitter current in each transistor, mA\n", + "IB1=(IE/beta_dc_l)*1000; #Base current of 1st transistor, μA\n", + "IB2=(IE/beta_dc_r)*1000; #Base current of 2nd transistor, μA\n", + "\n", + "#(ii)\n", + "VB1=-IB1/1000*RB; #Base voltage of 1st transistor, V\n", + "VB2=-IB2/1000*RB; #Base voltage of 1st transistor, V\n", + "\n", + "#Result\n", + "print(\"(i) IB1=%.2fμA\"%IB1);\n", + "print(\" IB2=%.2fμA\"%IB2);\n", + "print(\"(ii) VB1=%.3fV\"%VB1);\n", + "print(\" VB2=%.2fV\"%VB2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.9 : Page number 675-676" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VE=-0.7V\n", + "Emitter current in each transistor=0.5mA.\n", + "IC1~IE1=0.5mA and IC2~IE2=0.5mA\n", + "VC1=VC2=10V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VEE=15.0; #Emitter supply voltage, V\n", + "RB=10.0; #Base resistor, kΩ\n", + "RC1=10.0; #Collector resistor of 1st transistor, kΩ\n", + "RC2=10.0; #Collector resistor of 2nd transistor, kΩ\n", + "IE=1.0; #Tail current, mA\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "VE=-VBE; #Emitter voltage, V (Ignoring the base current)\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "IC1=IE1; #Collector current(= emitter current) of 1st transistor, mA\n", + "IC2=IE2; #Collector current of 2nd transistor, mA\n", + "VC1=VCC-IC1*RC1; #Collector voltage of 1st transistor, V\n", + "VC2=VCC-IC2*RC2; #Collector voltage of 2nd transistor, V\n", + "\n", + "\n", + "#Result\n", + "print(\"VE=%.1fV\"%VE);\n", + "print(\"Emitter current in each transistor=%.1fmA.\"%(IE/2.0));\n", + "print(\"IC1~IE1=%.1fmA and IC2~IE2=%.1fmA\"%(IE1,IE2));\n", + "print(\"VC1=VC2=%dV.\"%VC2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.10 : Page number 676-677" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VE=0.7V\n", + "Tail current=0.452mA.\n", + "Emitter current in each transistor=0.226mA.\n", + "IC1~IE1=0.226mA and IC2~IE2=0.226mA\n", + "VC1=-12V\n", + "VC2=-9.74V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "VEE=12.0; #Emitter supply voltage, V\n", + "RC2=10.0; #Collector resistor of 2nd transistor, kΩ\n", + "RE=25.0; #Emitter current, kΩ\n", + "VBE=-0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "VE=-VBE; #Emitter voltage, V (Ignoring the base current)\n", + "IE=(VCC-VE)/RE; #Tail current, mA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "IC1=IE1; #Collector current(= emitter current) of 1st transistor, mA\n", + "IC2=IE2; #Collector current of 2nd transistor, mA\n", + "VC1=-VEE; #Collector voltage of 1st transistor, V\n", + "VC2=-VEE+IC2*RC2; #Collector voltage of 2nd transistor, V\n", + "\n", + "\n", + "#Result\n", + "print(\"VE=%.1fV\"%VE);\n", + "print(\"Tail current=%.3fmA.\"%IE);\n", + "print(\"Emitter current in each transistor=%.3fmA.\"%(IE/2.0));\n", + "print(\"IC1~IE1=%.3fmA and IC2~IE2=%.3fmA\"%(IC1,IC2));\n", + "print(\"VC1=%dV\"%VC1);\n", + "print(\"VC2=%.2fV\"%VC2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.11 : Page number 679" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The input offset current=15.1nA\n", + "(ii) The input bias current=75.8nA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15; #Collector supply voltage, V\n", + "VEE=15; #Emitter supply voltage, V\n", + "RB=1; #Base resistor, MΩ\n", + "RC2=1; #Collector resistor, MΩ\n", + "RE=1; #Emitter resistor, MΩ\n", + "VBE=0; #Base-emitter voltage, V (Neglected)\n", + "beta_dc_l=90.0; #base current amplification factor for left transistor\n", + "beta_dc_r=110.0; #base current amplification factor for right transistor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IE=(VEE-VBE)/RE; #Tail current, μA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, μA\n", + "IE2=IE1; #Emitter current of 2nd transistor, μA\n", + "IB1=round((IE1/beta_dc_l)*1000,1); #Base current of 1st transistor, nA\n", + "IB2=round((IE2/beta_dc_r)*1000,1); #Base current of 2nd transistor, nA\n", + "I_in_offset=IB1-IB2; #Input offset current, nA\n", + "\n", + "#(ii)\n", + "I_in_bias=(IB1+IB2)/2; #Input bias current, nA\n", + "\n", + "#Result\n", + "print(\"(i) The input offset current=%.1fnA\"%I_in_offset);\n", + "print(\"(ii) The input bias current=%.1fnA\"%I_in_bias);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.12 : Page number 679" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The two base currents are: IB1=90nA and IB2=70nA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_in_offset=20; #Input offset current, nA\n", + "I_in_bias=80; #Input bias current, nA\n", + "\n", + "#Calculation\n", + "IB1=I_in_bias+I_in_offset/2; #Base current in 1st transistor, nA\n", + "IB2=I_in_bias-I_in_offset/2; #Base current in 2nd transistor, nA\n", + "\n", + "\n", + "#Result\n", + "print(\"The two base currents are: IB1=%dnA and IB2=%dnA.\"%(IB1,IB2));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.13 : Page number 679-680" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input offset voltage=2mV.\n", + "The output offset voltage=0.3V.\n" + ] + } + ], + "source": [ + "#Variable declration\n", + "I_in_offset=20; #Input offset current, nA\n", + "I_in_bias=80; #Input bias current, nA\n", + "A=150; #Voltage gain\n", + "RB=100; #Base resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "V_io=(I_in_offset*10**-9*RB*1000)*1000; #Input offset voltage, mV\n", + "V_out_offset=(A*V_io)/1000; #Output offset voltage, V\n", + "\n", + "#Result\n", + "print(\"The input offset voltage=%dmV.\"%V_io);\n", + "print(\"The output offset voltage=%.1fV.\"%V_out_offset);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.14 : Page number 682" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Output voltage=0.15V.\n", + "(ii) Output voltage=-0.15V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15; #Collector supply voltage, V\n", + "VEE=15; #Emitter supply voltage, V\n", + "RE=1; #Emitter resistor, MΩ\n", + "RC=1; #Collector resistor, MΩ\n", + "\n", + "\n", + "#Calculation\n", + "IE=VEE/RE; #Tail current, μA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, μA\n", + "IE2=IE1; #Emitter current of 2nd transistor, μA\n", + "re=25/IE1; #a.c emitter resistance, kΩ\n", + "A_DM=RC/(2.0*re); #Differential voltage gain,\n", + "\n", + "#(i)\n", + "vin=1; #Input voltage, V\n", + "Vout=A_DM*vin; #Output voltage, V\n", + "\n", + "print(\"(i) Output voltage=%.2fV.\"%Vout);\n", + "\n", + "#(ii)\n", + "vin=-1; #Input voltage, V\n", + "Vout=A_DM*vin; #Output voltage, V;\n", + "print(\"(ii) Output voltage=%.2fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.15 : Page number 682-683" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The input impedance=194kΩ.\n", + "(ii) The differential voltage gain=136.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RE=100; #Emitter resistor, kΩ\n", + "RC1=120; #Collector resistor of 1st transistor, kΩ\n", + "RC2=120; #Collector resistor of 2nd transistor, kΩ\n", + "beta=220; #Base amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calcualtion\n", + "IE=((VEE-VBE)/RE)*1000; #Tail current, μA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, μA\n", + "IE2=IE1; #Emitter current of 2nd transistor, μA\n", + "re=(25/IE1)*1000; #a.c emitter resistance, Ω\n", + "Zin=2*beta*re/1000; #Input impedance, kΩ\n", + "A_DM=RC1*1000/(2.0*re); #Differential voltage gain,\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The input impedance=%dkΩ.\"%Zin);\n", + "print(\"(ii) The differential voltage gain=%.0f.\"%A_DM);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.16: Page number 683-684" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Differential voltage gain=56.6.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RE=200; #Emitter resistor, kΩ\n", + "RC=100; #Collector resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "IE=round((VEE-VBE)/RE,4); #Tail current, mA\n", + "IE1=round(IE/2,4); #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "re=round(25/IE1,1); #a.c emitter resistance, Ω\n", + "A_DM=RC*1000/(2*re); #Differential voltage gain,\n", + "\n", + "#Result\n", + "print(\"Differential voltage gain=%.1f.\"%A_DM);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.17 : Page number 685-686" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Common mode rejection ratio=666.7.\n", + "Common mode rejection ratio in decibel=56.48dB\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "v1=0.5; #Voltage in terminal 1, mV\n", + "v2=-0.5; #Voltage in terminal 2, mV\n", + "vo=8.0; #Output voltage, V\n", + "vo_cm=12.0; #Common mode output, mV\n", + "\n", + "#Calculation\n", + "vin=v1-v2; #Differential input, mV\n", + "A_DM=vo/(vin/1000.0); #Differential mode gain,\n", + "vin_cm=1; #Common mode input, mV\n", + "A_CM=vo_cm/vin_cm; #Common mode gain\n", + "CMRR=A_DM/A_CM; #Common mode rejection ratio\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in dB\n", + "\n", + "#Result\n", + "print(\"Common mode rejection ratio=%.1f.\"%CMRR)\n", + "print(\"Common mode rejection ratio in decibel=%.2fdB\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.18 : Page number 686" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Common mode voltage gain=6.32.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_DM=200000; #Differential mode gain\n", + "CMRR_dB=90; #Common mode rejection ratio, dB\n", + "\n", + "#Calculation\n", + "CMRR=10**(CMRR_dB/20.0); #Common mode rejection ratio\n", + "A_CM=A_DM/CMRR; #Common mode gain\n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"Common mode voltage gain=%.2f.\"%A_CM);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.19 : Page number 686" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The Common mode gain=0.0081\n", + "(ii) The common mode rejection ratio=81.8dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "vin_cm=3.2; #Common input voltage, V\n", + "vout=26; #Output voltage, V\n", + "A_DM=100; #Open-circuit voltage gain\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CM=vout*10**-3/vin_cm; #Common mode gain\n", + "\n", + "#(ii)\n", + "CMRR_dB=20*log10(A_DM/A_CM); #Common mode rejection ratio, dB\n", + "\n", + "#Result\n", + "print(\"(i) The Common mode gain=%.4f\"%A_CM);\n", + "print(\"(ii) The common mode rejection ratio=%.1fdB.\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.20 : Page number 686-687" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Common mode gain=0.25\n", + "(ii)Common mode rejection ratio=47.09dB\n" + ] + } + ], + "source": [ + "from math import log10\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RE=200.0; #Emitter resistor, kΩ\n", + "RC=100.0; #Collector resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CM=round(RC/(2*RE),2); #Common mode voltage gain\n", + "\n", + "#(ii)\n", + "IE=round((VEE-VBE)/RE,4); #Tail current, mA\n", + "IE1=round(IE/2,4); #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "re=round(25/IE1,1); #a.c emitter resistance, Ω\n", + "A_DM=RC*1000/(2*re); #Differential voltage gain,\n", + "CMRR_dB=floor(20*log10(A_DM/A_CM)*100)/100; #Common mode rejection ratio, dB\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Common mode gain=%.2f\"%A_CM);\n", + "print(\"(ii)Common mode rejection ratio=%.2fdB\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.21 : Page number 691" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "f2=30kHz\n", + "ACL=75 or 37.5dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "ACL=500; #closed loop gain\n", + "f_unity=15; #frequency with cloased-loop unity gain, MHz\n", + "\n", + "\n", + "#Calculation\n", + "f2=f_unity*1000/500 #Upper frequency of bandwidth,kHz\n", + "BW=f2-0; #Bandwidth, kHz\n", + "A_CL=f_unity*1000/200; #Maximum value of A_CL when f2=200kHz\n", + "A_CL_dB=20*log10(A_CL); #Maximum value of A_CL in decibel\n", + "\n", + "\n", + "#Result\n", + "print(\"f2=%dkHz\"%f2);\n", + "print(\"ACL=%d or %.1fdB.\"%(A_CL,A_CL_dB));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.22 : Page number 691-692" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Operating Bandwidth=1.5MHz.\n", + "(ii) Operating Bandwidth=150kHz.\n", + "(iii) Operating Bandwidth=15kHz.\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "GBW=1.5; #Gain-bandwidth, MHz\n", + "\n", + "#Calculation\n", + "#(i) For A_CL=1;\n", + "A_CL=1; #Closed loop gain\n", + "BW=GBW/A_CL; #Bandwidth, MHz\n", + "\n", + "print(\"(i) Operating Bandwidth=%.1fMHz.\"%BW);\n", + "\n", + "#(ii) For A_CL=10;\n", + "A_CL=10; #Closed loop gain\n", + "BW=(GBW/A_CL)*1000; #Bandwidth, kHz\n", + "\n", + "print(\"(ii) Operating Bandwidth=%dkHz.\"%BW);\n", + "\n", + "#(iii) For A_CL=100;\n", + "A_CL=100; #Closed loop gain\n", + "BW=(GBW/A_CL)*1000; #Bandwidth, kHz\n", + "\n", + "print(\"(iii) Operating Bandwidth=%dkHz.\"%BW);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.23 : Page number 692" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum operating frequency=9.95kHz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "V_supply=10; #Supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_sat=V_supply-2; #Saturation voltage, V\n", + "V_pk=V_sat; #Maximum peak-output voltage, V\n", + "f_max=((slew_rate*10**6)/(2*pi*V_pk))/1000; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"Maximum operating frequency=%.2fkHz.\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.24 : Page number 692" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum operating frequency=796kHz\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "V_pk=100.0; #Peak-output voltage, mV\n", + "\n", + "\n", + "#Calculation\n", + "V_pk=V_pk/1000.0; #Peak-output voltage, V\n", + "f_max=(slew_rate*10**6/(2*pi*V_pk))/1000.0; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"Maximum operating frequency=%.0fkHz\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.25 : Page number 695-696" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Feedback resistor=220kΩ\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_CL=-100; #Closed-loop voltage gain\n", + "Ri=2.2; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "#Since, A_CL=-(Rf/Ri)\n", + "Rf=-A_CL*Ri; #Feedback resistor, kΩ\n", + "\n", + "#Result\n", + "print(\"Feedback resistor=%dkΩ\"%Rf);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.26 : Page number 696" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-0.25V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "vin=2.5; #Input voltage, mV\n", + "Rf=200; #Feedback resistor, kΩ\n", + "Ri=2; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "vout=A_CL*vin/1000; #Output voltage,V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.2fV\"%vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.27 : Page number 696" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed-loop voltage gain=-1\n", + "Therefore, output will have same amplitude but 180° phase inversion.\n" + ] + } + ], + "source": [ + "#Varaiable declaration\n", + "Rf=1.0; #Feedback resistor, kΩ\n", + "Ri=1.0; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "\n", + "#Result\n", + "print(\"Closed-loop voltage gain=%d\"%A_CL);\n", + "print(\"Therefore, output will have same amplitude but 180° phase inversion.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.28 : Page number 696-697" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed-loop voltage gain=-40\n", + "Supply voltage=±15V, saturation voltage=±13V. Since gain=-40, op-Amp will be driven to saturation.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=40; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"Closed-loop voltage gain=%d\"%A_CL);\n", + "print(\"Supply voltage=±15V, saturation voltage=±13V. Since gain=-40, op-Amp will be driven to saturation.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.29 : Page number 697" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) A_CL=-10.\n", + "(ii) Zi=10kΩ\n", + "(iii) Maximum operating frequency=15.9kHz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=10; #Input resistor, kΩ\n", + "Vpp=1; #Input peak-peak voltage, V\n", + "slew_rate=0.5; #Slew rate, V//μs\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "\n", + "#(ii)\n", + "Zi=Ri; #Input impedance(~ Input resistor), kΩ\n", + "\n", + "#(iii)\n", + "Vout=A_CL*Vpp; #Peak-to-peak voltage, V\n", + "Vpk=Vout/2; #Peak output voltage, V\n", + "f_max=(slew_rate*10**6/(2*pi*abs(Vpk)))/1000; #Maximum operating frequency, kHz\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) A_CL=%d.\"%A_CL);\n", + "print(\"(ii) Zi=%dkΩ\"%Zi);\n", + "print(\"(iii) Maximum operating frequency=%.1fkHz.\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.30 : Page number 697" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rf=20kΩ and Ri=5kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_CL=-4; #Closed loop voltage gain\n", + "R=[1.0,5.0,10.0,20.0]; #List of available resistors, kΩ\n", + "\n", + "#Calculation\n", + "for i in R[:]:\n", + " for j in R[:]:\n", + " if -(i/j)==A_CL :\n", + " print(\"Rf=%dkΩ and Ri=%dkΩ.\"%(i,j));\n", + " break;\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.31 : Page number 697-698" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Closed loop voltage gain=-100.\n", + "(ii) Closed loop voltage gain=-50.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "R_source=0; #Source resistor, kΩ\n", + "A_CL=-Rf/(R_source+Ri); #Closed-loop voltage gain\n", + "\n", + "print(\"(i) Closed loop voltage gain=%d.\"%A_CL);\n", + "\n", + "#(ii)\n", + "R_source=1; #Source resistor, kΩ\n", + "A_CL=-Rf/(R_source+Ri); #Closed-loop voltage gain\n", + "\n", + "print(\"(ii) Closed loop voltage gain=%d.\"%A_CL);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.32 : Page number 699-700" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=12.12mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=240; #Feedback resistor, kΩ\n", + "Ri=2.4; #Input resistor, kΩ\n", + "Vin=120; #Input voltage, μV\n", + "\n", + "\n", + "#Calculation\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "Vout=(A_CL*Vin)/1000; #Output voltage, mV\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.2fmV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.33 : Page number 700" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Output voltage=11V\n", + "(ii) Output voltage=-11V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=10; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "#(i)\n", + "Vin=1; #Input voltage, V\n", + "Vout=A_CL*Vin; #Output voltage, V\n", + "\n", + "print(\"(i) Output voltage=%dV\"%Vout);\n", + "\n", + "\n", + "#(ii)\n", + "Vin=-1; #Input voltage, V\n", + "Vout=A_CL*Vin; #Output voltage, V\n", + "\n", + "print(\"(ii) Output voltage=%dV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.34 : Page number 700" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Peak to peak output voltage=12V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=5; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "Vin_max=1; #Maximum input voltage, V\n", + "Vin_min=-1; #Minimum input voltage, V\n", + "\n", + "#Calculation\n", + "V_inpp=Vin_max-Vin_min; #Peak-peak input voltage, V\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "Vout_pp=A_CL*V_inpp; #Peak-peak output voltage, V\n", + "\n", + "#Result\n", + "print(\"Peak to peak output voltage=%dV\"%Vout_pp);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.35 : Page number 700-701" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Closed-loop voltage gain=11\n", + "(ii) Maximum operating frequency=14.47kHz\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=10; #Input resistor, kΩ\n", + "Vpp=1; #Input peak-peak voltage, V\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "\n", + "#(ii)\n", + "Vout_pp=A_CL*Vpp; #Peak-peak output voltage, V\n", + "Vpk=Vout_pp/2.0; #Peak output voltage, V\n", + "f_max=((slew_rate*10**6)/(2*pi*Vpk))/1000.0; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"(i) Closed-loop voltage gain=%d\"%A_CL);\n", + "\n", + "print(\"(ii) Maximum operating frequency=%.2fkHz\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.36 : Page number 701" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Bandwidth=44.3kHz.\n", + "(ii) Bandwidth=63.8kHz.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=220; #Feedback resistor, kΩ\n", + "Ri=3.3; #Input resistor, kΩ\n", + "unity_gain_BW=3; #Unity gain bandwidth, MHz\n", + "\n", + "#Calculation\n", + "#(i) For non-inverting amplifier\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "BW=unity_gain_BW*1000.0/A_CL; #Bandwidth, kHz\n", + "\n", + "print(\"(i) Bandwidth=%.1fkHz.\"%BW);\n", + "\n", + "#(ii) For inverting amplifier\n", + "Rf=47; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "A_CL=-(Rf/Ri); #Closed loop voltage gain\n", + "BW=unity_gain_BW*1000.0/abs(A_CL); #Bandwidth, kHz\n", + "\n", + "print(\"(ii) Bandwidth=%.1fkHz.\"%BW);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.37 : Page number 701-702" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) For voltage follower A_CL=1.\n", + "(ii) The maximum output frequency=26.53kHz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#(i)\n", + "A_CL=1; #Closed loop voltage gain for voltage follower\n", + "print(\"(i) For voltage follower A_CL=1.\");\n", + "\n", + "\n", + "#(ii)\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "V_inpp=6; #peak-peak input voltage, V\n", + "Vout=A_CL*V_inpp; #Peak-peak output voltage, V\n", + "Vpk=Vout/2; #Peak output voltage, V\n", + "\n", + "f_max=(slew_rate*10**6/(2*pi*Vpk))/1000; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"(ii) The maximum output frequency=%.2fkHz.\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.38 : Page number 702" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=1.78V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=470.0; #Feedback resistor, kΩ\n", + "R1=4.3; #Input resistor of 1st op-Amp, kΩ\n", + "R2=33.0; #Input resistor of 2nd op-Amp, kΩ\n", + "R3=33.0; #Input resistor of 3rd op-Amp, kΩ\n", + "Vin=80.0; #Input voltage, μV.\n", + "\n", + "#Calculation\n", + "A1=1+Rf/R1; #Gain of first op-Amp\n", + "A2=-round(Rf/R2,1); #Gain of second op-Amp\n", + "A3=-round(Rf/R3,1); #Gain of third op-Amp\n", + "A=A1*A2*A3; #Overall gain\n", + "Vout=A*Vin*10**-6; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.2fV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.39 : Page number 702-703" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R1=30kΩ, R2=15kΩ and R3=10kΩ.\n", + "Output voltage=0.729V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A1=10; #Voltage gain of 1st op-Amp\n", + "A2=-18; #Voltage gain of 2nd op-Amp\n", + "A3=-27; #Voltage gain of 3rd op-Amp\n", + "Rf=270; #Feedback resistor, kΩ\n", + "Vin=150; #Input voltage, μV \n", + "\n", + "\n", + "#Calculation\n", + "R1=Rf/(A1-1); #Input resistor of 1st op-Amp, kΩ\n", + "R2=-Rf/A2; #Input resistr of 2nd op-Amp, kΩ\n", + "R3=-Rf/A3; #Input resistor of 3rd op-Amp, kΩ\n", + "\n", + "A=A1*A2*A3; #overall gain,\n", + "Vout=Vin*10**-6*A; #Output voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"R1=%dkΩ, R2=%dkΩ and R3=%dkΩ.\"%(R1,R2,R3));\n", + "print(\"Output voltage=%.3fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.40 : Page number 703-704" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R1=50kΩ, R2=25kΩ and R3=10kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=500; #Feedback resistor, kΩ\n", + "A1=-10; #Gain of 1st op-Amp\n", + "A2=-20; #Gain of 2nd op-Amp\n", + "A3=-50; #Gain of 3rd op-Amp\n", + "\n", + "#Calculation\n", + "R1=-Rf/A1; #Input resistor of 1st op-Amp, kΩ\n", + "R2=-Rf/A2; #Input resistor of 2nd op-Amp, kΩ\n", + "R3=-Rf/A3; #Input resistor of 3rd op-Amp, kΩ\n", + "\n", + "\n", + "#Result\n", + "print(\"R1=%dkΩ, R2=%dkΩ and R3=%dkΩ.\"%(R1,R2,R3));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.41 : Page number 705" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The input impedance=17202MΩ and output impedance=8.7e-03Ω.\n", + "(ii) The closed loop voltage gain=23.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Zin=2.0; #Input impedance of op-Amp, MΩ\n", + "Zout=75.0; #Output impedance of op-Amp, Ω\n", + "A_OL=200000.0; #Open-loop voltage gain\n", + "Rf=220.0; #Feedback resistor, kΩ\n", + "Ri=10.0; #Input resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "mv=round(Ri/(Ri+Rf),3); #Feedback fraction\n", + "Zin_NI=Zin*(1+(A_OL*mv)); #Input impedance, MΩ\n", + "Zout_NI=Zout/(1+A_OL*mv); #Output impedance, Ω\n", + "\n", + "#(ii)\n", + "A_CL=1+Rf/Ri; #Closed loop voltage gain\n", + "\n", + "#Result\n", + "print(\"(i) The input impedance=%dMΩ and output impedance=%.1eΩ.\"%(Zin_NI,Zout_NI));\n", + "print(\"(ii) The closed loop voltage gain=%d.\"%A_CL);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.42 : Page number 705-706" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance=400002MΩ and output impedance=0.38e-03Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "#For voltage follower,\n", + "mv=1.0; #Feedback fraction\n", + "A_OL=200000.0; #Open-loop voltage gain\n", + "Zin=2.0; #Input impedance of op-Amp, MΩ\n", + "Zout=75.0; #Output impedance of op-Amp, Ω\n", + "\n", + "\n", + "#Calculation\n", + "Zin_VF=Zin*(1+(A_OL*mv)); #Input impedance, MΩ\n", + "Zout_VF=round(round(Zout/(1+A_OL*mv),6),5); #Output impedance, Ω\n", + "\n", + "#Result\n", + "print(\"The input impedance=%dMΩ and output impedance=%.2fe-03Ω.\"%(Zin_VF,Zout_VF*1000));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.43 : Page number 706" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance=1kΩ and output impedance=50Ω.\n", + "Closed-loop voltage gain=-100\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=1.0; #Input resistor, kΩ\n", + "Zin=4; #Input impedance of op-Amp, MΩ\n", + "Zout=50; #Output impedance of op-Amp, Ω\n", + "\n", + "\n", + "#Calculation\n", + "Zin_I=Ri; #Input impedance, kΩ\n", + "Zout_I=Zout; #Output impedance, Ω\n", + "A_CL=-(Rf/Ri); #Closed loop voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The input impedance=%dkΩ and output impedance=%dΩ.\"%(Zin_I,Zout_I));\n", + "print(\"Closed-loop voltage gain=%d\"%A_CL);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.44 : Page number 709" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-12V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=10; #Feedback resistor, kΩ\n", + "Ri=10; #Input resistor, kΩ\n", + "V1=3; #Input voltage 1st, V\n", + "V2=1; #Input voltage 2nd, V\n", + "V3=8; #Input voltage 3rd, V\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Rf=Ri, Vout=-(Rf/Ri)*(V1+V2+V3)= -(V1+V2+V3);\n", + "Vout=-(V1+V2+V3); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.45 : Page number 709" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-7V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=10; #Feedback resistor, kΩ\n", + "R1=1; #Input resistor for input 1, kΩ\n", + "R2=1; #Input resistor for input 2, kΩ\n", + "V1=0.2; #Input voltage 1st, V\n", + "V2=0.5; #Input voltage 2nd, V\n", + "\n", + "\n", + "#Calculation\n", + "R=R1; #Input resistor(=R1 or R2), kΩ\n", + "Vout=-(Rf/R)*(V1+V2); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.46 : Page number 709-710" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-2.5V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=1; #Feedback resistor, kΩ\n", + "Ri=10.0; #Input resistor, kΩ\n", + "V1=10; #Input voltage 1st, V\n", + "V2=8.0; #Input voltage 2nd, V\n", + "V3=7.0; #Input voltage 3rd, V\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Vout=-(Rf/Ri)*(V1+V2+V3);\n", + "Vout=-(Rf/Ri)*(V1+V2+V3); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.1fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.47 : Page number 710" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=2.5V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V1=0.6; #Input voltage to 1st input resistor, V\n", + "V2=-1.4; #Input voltage to 2nd input resistor, V\n", + "Rf=200; #Feedback resistor, kΩ\n", + "R1=400; #Input resistor 1, kΩ\n", + "R2=100.0; #Input resistor 2, kΩ\n", + "\n", + "#Calculation\n", + "Vout=-Rf*(V1/R1 +V2/R2); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.1fV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.48 : Page number 710-711" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The output voltage=-12.5V\n", + "(ii) The output voltage=-7.5V\n", + "(iii) The output voltage=-17.5V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=1.0; #Feedback resistor, kΩ\n", + "R1=1.0; #Input resistor 1, kΩ\n", + "R2=2.0; #Input resistor 2, kΩ\n", + "R3=4.0; #Input resistor 3, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "Rf_R1=Rf/R1; #Ratio of feedback resistor and 1st input resistor\n", + "Rf_R2=Rf/R2; #Ratio of feedback resistor and 2nd input resistor\n", + "Rf_R3=Rf/R3; #Ratio of feedback resistor and 3rd input resistor\n", + "\n", + "#(i) First input combination\n", + "V1=10; #Input voltage to 1st input resistor, V\n", + "V2=0; #Input voltage to 2nd input resistor, V\n", + "V3=10; #Input voltage to 3rd input resistor, V\n", + "Vout=-(V1*Rf_R1 +V2*Rf_R2 +V3*Rf_R3); #Output voltage, V\n", + "print(\"(i) The output voltage=%.1fV\"%Vout);\n", + "\n", + "#(i) First input combination\n", + "V1=0; #Input voltage to 1st input resistor, V\n", + "V2=10; #Input voltage to 2nd input resistor, V\n", + "V3=10; #Input voltage to 3rd input resistor, V\n", + "Vout=-(V1*Rf_R1 +V2*Rf_R2 +V3*Rf_R3); #Output voltage, V\n", + "print(\"(ii) The output voltage=%.1fV\"%Vout);\n", + "\n", + "\n", + "#(i) First input combination\n", + "V1=10; #Input voltage to 1st input resistor, V\n", + "V2=10; #Input voltage to 2nd input resistor, V\n", + "V3=10; #Input voltage to 3rd input resistor, V\n", + "Vout=-(V1*Rf_R1 +V2*Rf_R2 +V3*Rf_R3); #Output voltage, V\n", + "print(\"(iii) The output voltage=%.1fV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.49 : Page number 711" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vout=-[0.5sin(1000t)+0.33sin(3000t)]V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=330; #Feedback resistor, kΩ\n", + "R1=33.0; #Input resistor 1, kΩ\n", + "R2=10.0; #Input resistor 2, kΩ\n", + "V1_m=50; #Peak voltage of 1st input, mV\n", + "V2_m=10; #Peak voltage of 2nd input, mV\n", + "\n", + "#Calculation\n", + "#Since, Vout=-((Rf/R1)*V1 + (Rf/R2)*V2)\n", + "print(\"Vout=-[%.1fsin(1000t)+%.2fsin(3000t)]V\"%((V1_m/1000.0)*(Rf/R1),(V2_m/1000.0)*(Rf/R2)));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.50 : Page number 715" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vo=-1*(1/RC)∫vi dt.\n", + "=>Vo=-1*(1/1)∫vi dt\n", + "=>Vo=∫vi dt\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=100; #Input resistor, kΩ\n", + "C=10; #Feedback capacitor, μF\n", + "\n", + "#Calculation\n", + "RC=R*10**3*C*10**-6; #product of input resistance and feedback capacitance, s\n", + "\n", + "\n", + "#Result\n", + "print(\"Vo=-1*(1/RC)∫vi dt.\");\n", + "print(\"=>Vo=-1*(1/%d)∫vi dt\"%RC);\n", + "print(\"=>Vo=∫vi dt\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.51 : Page number 715-716" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The critical frequency=159Hz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "C=0.01; #Feedback capacitor, μF\n", + "\n", + "\n", + "#Calculation\n", + "fc=1/(2*pi*Rf*1000*C*10**-6); #Crictical frequency, Hz\n", + "\n", + "#Result\n", + "print(\"The critical frequency=%dHz.\"%fc);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.52 : Page number 716" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Vout=-1*(1/RC)∫vi dt.\n", + " ΔVout/dt = -vin/RC = -50mV/μs.\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgA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NwOHAtRHxDUkCxkp6K/A1YJ+IWC7pK8Dx+QO+\n1rGOA1ZGxI6SdgCul/S2HMO7c1leA+blpqQVwPQcX2X0znuqyn83sCfwu2H+fc3exAnCymoz4Kk+\n634daYatZZKeA/47r59DGtis2g7AExFxD6yacYz0Wc8NEfF83m4ycGne5klJvcDfkkYbnpETzcyI\nuC/XAN4O3J6TxprAbwc41mRy0oqIeZIWAtvn4/6qars/kKbe3TiX8dm8/idAJaFAGtZ5h6H88cyG\nwgnCymo5MKbPulernkfV8kpqv9drTTsJ8PIAxxVARNyqNNnT+4Ef51rKc8D1EfHRN/2C9M4BjtVf\nPNVlqY5/oP2MIf1dzJrCfRBWJi8Cb8nPF5CGTx+uecCmkv4a0qxj/XRK3wp8RGlqx41JTTh3StoS\neDIizgfOB3YhTde5h6S/zPscm5uM+jvWrcBH87rtSZO5zBsg5juAvSSNzzWXg/u8vj1vzG1g1jDX\nIKw0IuLZ3AF8P6lz+o+Sto2Ih2pt3t9u8r5ek/QR4Lt5spVlwL41jnmVpN2A+0jf5E/ITU1HAidI\neo2UuI6MiKclHQ1cKmntfKyvRcSCfo71PeC8XJ7XgKNyXP3FvFjSdFIiWkqaB6DaHsC0fsptVjfP\nB2GlJWkq8NcR8b+LjqVoknYCvhgRRxUdi3UP1yCstCJiZr5yyOCtwNeLDsK6i2sQZmZWkzupzcys\nJicIMzOryQnCzMxqcoIwM7OanCDMzKym/w8k8vXiwodbzwAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f8b042c6b70>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "R=10.0; #Input resistor, kΩ\n", + "C=0.01; #Feedback capacitor, μF\n", + "vin=5; #Input voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout_change_rate=-vin/(R*C); #Rate of change of output voltage, V/μs \n", + "print(\"(i) Vout=-1*(1/RC)∫vi dt.\");\n", + "print(\" ΔVout/dt = -vin/RC = %dmV/μs.\"%Vout_change_rate);\n", + "\n", + "#(ii) Plotting the output waveform\n", + "vin_plot=[]; #Plotting variable for input waveform, V\n", + "dt=100; #time between edges, μs\n", + "for i in range(0,3*dt+1):\n", + " if i<dt or i>2*dt :\n", + " vin_plot.append(0);\n", + " else:\n", + " vin_plot.append(5); \n", + "\n", + "plt.subplot(211);\n", + "plt.plot(vin_plot);\n", + "plt.xlim([0,300])\n", + "plt.ylim([-5,10])\n", + "plt.xlabel(\"t(microsecond)\");\n", + "plt.ylabel(\"Vin(V)\");\n", + "plt.title(\"Input waveform\");\n", + "\n", + " \n", + "vout_plot=[]; #Plotting variable for output waveform, V\n", + "t=[i for i in range(0,301)]; #Time scale, μs\n", + "for i in t[:] :\n", + " if i<dt:\n", + " vout_plot.append(0);\n", + " elif i>2*dt:\n", + " vout_plot.append((Vout_change_rate/1000.0)*dt);\n", + " else :\n", + " vout_plot.append((-vin_plot[i]/(R*C))/1000*(i-dt));\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout_plot);\n", + "plt.xlim([0,300])\n", + "plt.ylim([-5,5]);\n", + "plt.xlabel('t(microsecond)');\n", + "plt.ylabel(\"Vout(V)\");\n", + "plt.title(\"output waveform\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.53 : Page number 716-717" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vout=-1*(1/RC)∫vi dt.\n", + "Vout=-5*t volts\n", + "Time required=2.6seconds.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_supply=15; #Supply voltage, V\n", + "R=10; #Input resistor, kΩ\n", + "C=0.2; #Feedback capacitor, μF\n", + "vin=10; #Input voltage, mV\n", + "\n", + "\n", + "#Calculation\n", + "Vs=-V_supply+2; #Saturation voltage, V\n", + "print(\"Vout=-1*(1/RC)∫vi dt.\");\n", + "print(\"Vout=%d*t volts\"%(-vin/(R*C)));\n", + "t=Vs/(-vin/(R*C)); #Time required, seconds\n", + "print(\"Time required=%.1fseconds.\"%t);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.54 : Page number 717-718" + ] + }, + { + "cell_type": "code", + "execution_count": 55, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vo=-5V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=1; #Feedback resistor, kΩ\n", + "C=0.1; #Input capacitor, μF\n", + "Vin_change=5; #Change in input voltage, V\n", + "t=0.1; #Time taken for change in input voltage, ms\n", + "\n", + "#Calcualtion\n", + "dvi_dt=Vin_change/(t/1000); #Rate of change of input voltage, V/s\n", + "RC=R*1000*C*10**-6; #Product of feedback resistance and input capacitance, s\n", + "#Since, Vo=-R*C*(dvi/dt);\n", + "Vo=-RC*dvi_dt; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Vo=%dV.\"%Vo);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.55 : Page number 718" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vo=-0.55V.\n", + "The output voltage stays constant at -0.55V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=10; #Feedback resistor, kΩ\n", + "C=2.2; #Input capacitor, μF\n", + "Vin_change=10; #Change in input voltage, V\n", + "t=0.4; #Time taken for change in input voltage, s\n", + "\n", + "#Calcualtin\n", + "dvi_dt=Vin_change/t; #Rate of change of input voltage, V/s\n", + "RC=R*1000*C*10**-6; #Product of feedback resistance and input capacitance, s\n", + "#Since, Vo=-R*C*(dvi/dt);\n", + "Vo=-RC*dvi_dt; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Vo=%.2fV.\"%Vo);\n", + "print(\"The output voltage stays constant at %.2fV.\"%Vo);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.56 : Page number 718-719" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vo=-1*(dvi/dt).\n", + "vo=-5V.\n", + "Therefore, between 0 to 0.2s, the output voltage is constant at -5V.\n", + "For t>0.2s, the input is constant so that output voltage is zero.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=100; #Feedback resistor, kΩ\n", + "C=10; #Input capacitor, μF\n", + "Vin_change=1; #Change in input voltage, V\n", + "t=0.2; #Time taken for change in input voltage, s\n", + "\n", + "\n", + "#Calculation\n", + "RC=R*1000*C*10**-6; #Product of feedback resistor and input capacitance, s\n", + "#(i)\n", + "print(\"vo=-%d*(dvi/dt).\"%RC);\n", + "\n", + "#(ii)\n", + "dvi_dt=Vin_change/t; #Rate of change of input voltage, V\n", + "vo=-dvi_dt; #Output voltage, V\n", + "print(\"vo=%dV.\"%vo);\n", + "\n", + "print(\"Therefore, between 0 to 0.2s, the output voltage is constant at %dV.\"%vo);\n", + "print(\"For t>0.2s, the input is constant so that output voltage is zero.\");\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_5.ipynb new file mode 100644 index 00000000..92d6f1ec --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_5.ipynb @@ -0,0 +1,2522 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 25 : OPERATIONAL AMPLIFIERS" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.1: Page number 664" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output voltage of the differential amplifier = 10V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A=100.0; #Open-circuit voltage gain of differential amplifier\n", + "V1=3.25; #Input voltage to terminal 1 in V\n", + "V2=3.15; #Input voltage to terminal 2 in V\n", + "\n", + "#Calculations\n", + "V0=A*(V1-V2); #Output voltage in V\n", + "\n", + "#Results\n", + "print(\"The output voltage of the differential amplifier = %dV\"%V0);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.2: Page number 672" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The common mode rejection ratio = 10000.\n", + "The common mode rejection ratio in decibels= 80dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_DM=2000.0; #Differential mode voltage gain\n", + "A_CM=0.2; #Common mode voltage gain\n", + "\n", + "#Calculations\n", + "CMRR=A_DM/A_CM; #Common mode rejection ratio\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in dB\n", + "\n", + "\n", + "#Results\n", + "print(\"The common mode rejection ratio = %d.\"%CMRR);\n", + "print(\"The common mode rejection ratio in decibels= %ddB.\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.3: Page number 672" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The common mode rejection ratio in decibels= 46dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "VD_in=10.0; #Differential mode input in mV\n", + "VD_out=1.0; #Output for differential mode input in V\n", + "VC_in=10.0; #Common mode input in mV\n", + "VC_out=5.0; #Output for common mode input in mV\\\n", + "\n", + "#Calculations\n", + "A_DM=(VD_out*1000)/VD_in; #Differntial mode voltage gain\n", + "A_CM=VC_out/VC_in; #Common mode voltage gain\n", + "CMRR=A_DM/A_CM; #Common mode rejection ratio\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in dB\n", + "\n", + "#Results\n", + "print(\"The common mode rejection ratio in decibels= %ddB.\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.4: Page number 672" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage =7.5V\n", + "Noise on output = 4.7x10^-6V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_DM=150.0; #Differential mode voltage gain\n", + "CMRR_dB=90.0; #Common mode rejection ratio\n", + "V1=100.0; #Input voltage for terminal 1 in mV\n", + "V2=50.0; #Input voltage for terminal 2 in mV\n", + "V_noise=1.0; #Voltage of noise signal in mV\n", + "\n", + "#Calculation\n", + "\n", + "#Case(i)\n", + "V_out=A_DM*(V1-V2)/1000.0; #Output voltage for differntial mode input, in V\n", + "\n", + "#Since CMRR_dB=20*log10(differential mode gain/common mode gain),\n", + "A_CM=A_DM/pow(10,(CMRR_dB/20)); #Common mode gain\n", + "V_OUT_noise=A_CM*(V_noise/1000); #Noise on output in V\n", + "\n", + "\n", + "#Results\n", + "print(\"Output voltage =%.1fV\"%V_out);\n", + "print(\"Noise on output = %.1fx10^-6V\"%(V_OUT_noise*pow(10,6)));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.5 : Page number 672-673" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Common mode gain =0.083\n", + "Common mode rejection ratio in decibels=89.5dB\n", + "r.m.s output signal =1.25V\n", + "r.m.s interfernce output voltage = 83mV\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "A_DM=2500.0; #Differential mode voltage gain\n", + "CMRR=30000.0; #Common mode rejection ratio\n", + "Input_signal=500.0; #Single ended input r.m.s signal in microvolts\n", + "Interference=1.0; #Interference signal, in V\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "A_CM=A_DM/CMRR; #Common mode gain\n", + "\n", + "#(ii)\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in decibels\n", + "\n", + "#(iii)\n", + "V_out=A_DM*(Input_signal/pow(10,6)-0); #r.m.s output signal in V\n", + "\n", + "#(iv)\n", + "Interference_out=A_CM*Interference; #r.m.s interference output in V\n", + "Interference_out=Interference_out*1000; #r.m.s interference output in mV\n", + "\n", + "\n", + "#Results\n", + "print(\"Common mode gain =%.3f\"%A_CM);\n", + "print(\"Common mode rejection ratio in decibels=%.1fdB\"%CMRR_dB);\n", + "print(\"r.m.s output signal =%.2fV\"%V_out);\n", + "print(\"r.m.s interfernce output voltage = %dmV\"%Interference_out);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.6 : Page number 674-675" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VE=-0.7V\n", + "IE=0.452mA\n", + "IE1=0.226mA\n", + "IE2=0.226mA\n", + "IC1=0.226mA\n", + "IC2=0.226mA\n", + "IB1=2.26μA\n", + "IB2=2.26μA\n", + "VC1=12V\n", + "VC2=9.7V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RB=10; #Base resistor, kΩ\n", + "RC2=10; #Collector resistor, kΩ\n", + "RE=25; #Emitter resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100; #Base amplification factor\n", + "\n", + "#Calculation\n", + "VE=-VBE; #Emitter voltage, V (Ignoring the base current)\n", + "IE=(VEE-VBE)/RE; #Tail current, mA\n", + "IE1=IE/2; #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "IC1=IE1; #Collector current(= emitter current) of 1st transistor, mA\n", + "IC2=IC1; #Collector current of 2nd transistor, mA\n", + "IB1=(IC1/beta)*1000; #Base current of 1st transistor, μA\n", + "IB2=IB1; #Base current of 2nd transistor, μA\n", + "VC1=VCC; #Collector voltage of 1st transistor, V\n", + "VC2=VCC-IC2*RC2; #Collector voltage of 2nd transistor, V\n", + "\n", + "#Result\n", + "print(\"VE=%.1fV\"%VE);\n", + "print(\"IE=%.3fmA\"%IE);\n", + "print(\"IE1=%.3fmA\"%IE1);\n", + "print(\"IE2=%.3fmA\"%IE2);\n", + "print(\"IC1=%.3fmA\"%IC1);\n", + "print(\"IC2=%.3fmA\"%IC2);\n", + "print(\"IB1=%.2fμA\"%IB1);\n", + "print(\"IB2=%.2fμA\"%IB2);\n", + "print(\"VC1=%dV\"%VC1);\n", + "print(\"VC2=%.1fV\"%VC2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.7 : Page number 675" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output voltage=7.85V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15; #Collector supply voltage, V\n", + "VEE=15; #Emitter supply voltage, V\n", + "RB=33; #Base resistor, kΩ\n", + "RC=15; #Collector resistor, kΩ\n", + "RE=15; #Emitter resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "IE_tail=(VEE-VBE)/RE; #Tail current, mA\n", + "IE=round(IE_tail/2,3); #Emitter current in each transistor, mA\n", + "IC=IE; #Collector current(=emitter current), mA\n", + "Vout=VCC-IC*RC; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"The output voltage=%.2fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.8 : Page number 675" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) IB1=5.56μA\n", + " IB2=4.55μA\n", + "(ii) VB1=-0.183V\n", + " VB2=-0.15V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VEE=15.0; #Emitter supply voltage, V\n", + "RB=33.0; #Base resistor, kΩ\n", + "RC=15.0; #Collector resistor, kΩ\n", + "RE=15.0; #Emitter resistor, kΩ\n", + "VBE=0; #Base-emitter voltage, V\n", + "beta_dc_l=90.0; #base current amplification factor for left transistor\n", + "beta_dc_r=110.0; #base current amplification factor for right transistor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IE_tail=(VEE-VBE)/RE; #Tail current, mA\n", + "IE=IE_tail/2; #Emitter current in each transistor, mA\n", + "IB1=(IE/beta_dc_l)*1000; #Base current of 1st transistor, μA\n", + "IB2=(IE/beta_dc_r)*1000; #Base current of 2nd transistor, μA\n", + "\n", + "#(ii)\n", + "VB1=-IB1/1000*RB; #Base voltage of 1st transistor, V\n", + "VB2=-IB2/1000*RB; #Base voltage of 1st transistor, V\n", + "\n", + "#Result\n", + "print(\"(i) IB1=%.2fμA\"%IB1);\n", + "print(\" IB2=%.2fμA\"%IB2);\n", + "print(\"(ii) VB1=%.3fV\"%VB1);\n", + "print(\" VB2=%.2fV\"%VB2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.9 : Page number 675-676" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VE=-0.7V\n", + "Emitter current in each transistor=0.5mA.\n", + "IC1~IE1=0.5mA and IC2~IE2=0.5mA\n", + "VC1=VC2=10V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VEE=15.0; #Emitter supply voltage, V\n", + "RB=10.0; #Base resistor, kΩ\n", + "RC1=10.0; #Collector resistor of 1st transistor, kΩ\n", + "RC2=10.0; #Collector resistor of 2nd transistor, kΩ\n", + "IE=1.0; #Tail current, mA\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "VE=-VBE; #Emitter voltage, V (Ignoring the base current)\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "IC1=IE1; #Collector current(= emitter current) of 1st transistor, mA\n", + "IC2=IE2; #Collector current of 2nd transistor, mA\n", + "VC1=VCC-IC1*RC1; #Collector voltage of 1st transistor, V\n", + "VC2=VCC-IC2*RC2; #Collector voltage of 2nd transistor, V\n", + "\n", + "\n", + "#Result\n", + "print(\"VE=%.1fV\"%VE);\n", + "print(\"Emitter current in each transistor=%.1fmA.\"%(IE/2.0));\n", + "print(\"IC1~IE1=%.1fmA and IC2~IE2=%.1fmA\"%(IE1,IE2));\n", + "print(\"VC1=VC2=%dV.\"%VC2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.10 : Page number 676-677" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VE=0.7V\n", + "Tail current=0.452mA.\n", + "Emitter current in each transistor=0.226mA.\n", + "IC1~IE1=0.226mA and IC2~IE2=0.226mA\n", + "VC1=-12V\n", + "VC2=-9.74V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "VEE=12.0; #Emitter supply voltage, V\n", + "RC2=10.0; #Collector resistor of 2nd transistor, kΩ\n", + "RE=25.0; #Emitter current, kΩ\n", + "VBE=-0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "VE=-VBE; #Emitter voltage, V (Ignoring the base current)\n", + "IE=(VCC-VE)/RE; #Tail current, mA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "IC1=IE1; #Collector current(= emitter current) of 1st transistor, mA\n", + "IC2=IE2; #Collector current of 2nd transistor, mA\n", + "VC1=-VEE; #Collector voltage of 1st transistor, V\n", + "VC2=-VEE+IC2*RC2; #Collector voltage of 2nd transistor, V\n", + "\n", + "\n", + "#Result\n", + "print(\"VE=%.1fV\"%VE);\n", + "print(\"Tail current=%.3fmA.\"%IE);\n", + "print(\"Emitter current in each transistor=%.3fmA.\"%(IE/2.0));\n", + "print(\"IC1~IE1=%.3fmA and IC2~IE2=%.3fmA\"%(IC1,IC2));\n", + "print(\"VC1=%dV\"%VC1);\n", + "print(\"VC2=%.2fV\"%VC2);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.11 : Page number 679" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The input offset current=15.1nA\n", + "(ii) The input bias current=75.8nA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15; #Collector supply voltage, V\n", + "VEE=15; #Emitter supply voltage, V\n", + "RB=1; #Base resistor, MΩ\n", + "RC2=1; #Collector resistor, MΩ\n", + "RE=1; #Emitter resistor, MΩ\n", + "VBE=0; #Base-emitter voltage, V (Neglected)\n", + "beta_dc_l=90.0; #base current amplification factor for left transistor\n", + "beta_dc_r=110.0; #base current amplification factor for right transistor\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "IE=(VEE-VBE)/RE; #Tail current, μA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, μA\n", + "IE2=IE1; #Emitter current of 2nd transistor, μA\n", + "IB1=round((IE1/beta_dc_l)*1000,1); #Base current of 1st transistor, nA\n", + "IB2=round((IE2/beta_dc_r)*1000,1); #Base current of 2nd transistor, nA\n", + "I_in_offset=IB1-IB2; #Input offset current, nA\n", + "\n", + "#(ii)\n", + "I_in_bias=(IB1+IB2)/2; #Input bias current, nA\n", + "\n", + "#Result\n", + "print(\"(i) The input offset current=%.1fnA\"%I_in_offset);\n", + "print(\"(ii) The input bias current=%.1fnA\"%I_in_bias);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.12 : Page number 679" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The two base currents are: IB1=90nA and IB2=70nA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_in_offset=20; #Input offset current, nA\n", + "I_in_bias=80; #Input bias current, nA\n", + "\n", + "#Calculation\n", + "IB1=I_in_bias+I_in_offset/2; #Base current in 1st transistor, nA\n", + "IB2=I_in_bias-I_in_offset/2; #Base current in 2nd transistor, nA\n", + "\n", + "\n", + "#Result\n", + "print(\"The two base currents are: IB1=%dnA and IB2=%dnA.\"%(IB1,IB2));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.13 : Page number 679-680" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input offset voltage=2mV.\n", + "The output offset voltage=0.3V.\n" + ] + } + ], + "source": [ + "#Variable declration\n", + "I_in_offset=20; #Input offset current, nA\n", + "I_in_bias=80; #Input bias current, nA\n", + "A=150; #Voltage gain\n", + "RB=100; #Base resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "V_io=(I_in_offset*10**-9*RB*1000)*1000; #Input offset voltage, mV\n", + "V_out_offset=(A*V_io)/1000; #Output offset voltage, V\n", + "\n", + "#Result\n", + "print(\"The input offset voltage=%dmV.\"%V_io);\n", + "print(\"The output offset voltage=%.1fV.\"%V_out_offset);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.14 : Page number 682" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Output voltage=0.15V.\n", + "(ii) Output voltage=-0.15V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=15; #Collector supply voltage, V\n", + "VEE=15; #Emitter supply voltage, V\n", + "RE=1; #Emitter resistor, MΩ\n", + "RC=1; #Collector resistor, MΩ\n", + "\n", + "\n", + "#Calculation\n", + "IE=VEE/RE; #Tail current, μA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, μA\n", + "IE2=IE1; #Emitter current of 2nd transistor, μA\n", + "re=25/IE1; #a.c emitter resistance, kΩ\n", + "A_DM=RC/(2.0*re); #Differential voltage gain,\n", + "\n", + "#(i)\n", + "vin=1; #Input voltage, V\n", + "Vout=A_DM*vin; #Output voltage, V\n", + "\n", + "print(\"(i) Output voltage=%.2fV.\"%Vout);\n", + "\n", + "#(ii)\n", + "vin=-1; #Input voltage, V\n", + "Vout=A_DM*vin; #Output voltage, V;\n", + "print(\"(ii) Output voltage=%.2fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.15 : Page number 682-683" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The input impedance=194kΩ.\n", + "(ii) The differential voltage gain=136.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RE=100; #Emitter resistor, kΩ\n", + "RC1=120; #Collector resistor of 1st transistor, kΩ\n", + "RC2=120; #Collector resistor of 2nd transistor, kΩ\n", + "beta=220; #Base amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calcualtion\n", + "IE=((VEE-VBE)/RE)*1000; #Tail current, μA\n", + "IE1=IE/2.0; #Emitter current of 1st transistor, μA\n", + "IE2=IE1; #Emitter current of 2nd transistor, μA\n", + "re=(25/IE1)*1000; #a.c emitter resistance, Ω\n", + "Zin=2*beta*re/1000; #Input impedance, kΩ\n", + "A_DM=RC1*1000/(2.0*re); #Differential voltage gain,\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) The input impedance=%dkΩ.\"%Zin);\n", + "print(\"(ii) The differential voltage gain=%.0f.\"%A_DM);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.16: Page number 683-684" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Differential voltage gain=56.6.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RE=200; #Emitter resistor, kΩ\n", + "RC=100; #Collector resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "#Calculation\n", + "IE=round((VEE-VBE)/RE,4); #Tail current, mA\n", + "IE1=round(IE/2,4); #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "re=round(25/IE1,1); #a.c emitter resistance, Ω\n", + "A_DM=RC*1000/(2*re); #Differential voltage gain,\n", + "\n", + "#Result\n", + "print(\"Differential voltage gain=%.1f.\"%A_DM);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.17 : Page number 685-686" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Common mode rejection ratio=666.7.\n", + "Common mode rejection ratio in decibel=56.48dB\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "v1=0.5; #Voltage in terminal 1, mV\n", + "v2=-0.5; #Voltage in terminal 2, mV\n", + "vo=8.0; #Output voltage, V\n", + "vo_cm=12.0; #Common mode output, mV\n", + "\n", + "#Calculation\n", + "vin=v1-v2; #Differential input, mV\n", + "A_DM=vo/(vin/1000.0); #Differential mode gain,\n", + "vin_cm=1; #Common mode input, mV\n", + "A_CM=vo_cm/vin_cm; #Common mode gain\n", + "CMRR=A_DM/A_CM; #Common mode rejection ratio\n", + "CMRR_dB=20*log10(CMRR); #Common mode rejection ratio in dB\n", + "\n", + "#Result\n", + "print(\"Common mode rejection ratio=%.1f.\"%CMRR)\n", + "print(\"Common mode rejection ratio in decibel=%.2fdB\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.18 : Page number 686" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Common mode voltage gain=6.32.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_DM=200000; #Differential mode gain\n", + "CMRR_dB=90; #Common mode rejection ratio, dB\n", + "\n", + "#Calculation\n", + "CMRR=10**(CMRR_dB/20.0); #Common mode rejection ratio\n", + "A_CM=A_DM/CMRR; #Common mode gain\n", + "\n", + "\n", + "\n", + "#Result\n", + "print(\"Common mode voltage gain=%.2f.\"%A_CM);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.19 : Page number 686" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The Common mode gain=0.0081\n", + "(ii) The common mode rejection ratio=81.8dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "vin_cm=3.2; #Common input voltage, V\n", + "vout=26; #Output voltage, V\n", + "A_DM=100; #Open-circuit voltage gain\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CM=vout*10**-3/vin_cm; #Common mode gain\n", + "\n", + "#(ii)\n", + "CMRR_dB=20*log10(A_DM/A_CM); #Common mode rejection ratio, dB\n", + "\n", + "#Result\n", + "print(\"(i) The Common mode gain=%.4f\"%A_CM);\n", + "print(\"(ii) The common mode rejection ratio=%.1fdB.\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.20 : Page number 686-687" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Common mode gain=0.25\n", + "(ii)Common mode rejection ratio=47.09dB\n" + ] + } + ], + "source": [ + "from math import log10\n", + "from math import floor\n", + "\n", + "#Variable declaration\n", + "VCC=12; #Collector supply voltage, V\n", + "VEE=12; #Emitter supply voltage, V\n", + "RE=200.0; #Emitter resistor, kΩ\n", + "RC=100.0; #Collector resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CM=round(RC/(2*RE),2); #Common mode voltage gain\n", + "\n", + "#(ii)\n", + "IE=round((VEE-VBE)/RE,4); #Tail current, mA\n", + "IE1=round(IE/2,4); #Emitter current of 1st transistor, mA\n", + "IE2=IE1; #Emitter current of 2nd transistor, mA\n", + "re=round(25/IE1,1); #a.c emitter resistance, Ω\n", + "A_DM=RC*1000/(2*re); #Differential voltage gain,\n", + "CMRR_dB=floor(20*log10(A_DM/A_CM)*100)/100; #Common mode rejection ratio, dB\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Common mode gain=%.2f\"%A_CM);\n", + "print(\"(ii)Common mode rejection ratio=%.2fdB\"%CMRR_dB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.21 : Page number 691" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "f2=30kHz\n", + "ACL=75 or 37.5dB.\n" + ] + } + ], + "source": [ + "from math import log10\n", + "\n", + "#Variable declaration\n", + "ACL=500; #closed loop gain\n", + "f_unity=15; #frequency with cloased-loop unity gain, MHz\n", + "\n", + "\n", + "#Calculation\n", + "f2=f_unity*1000/500 #Upper frequency of bandwidth,kHz\n", + "BW=f2-0; #Bandwidth, kHz\n", + "A_CL=f_unity*1000/200; #Maximum value of A_CL when f2=200kHz\n", + "A_CL_dB=20*log10(A_CL); #Maximum value of A_CL in decibel\n", + "\n", + "\n", + "#Result\n", + "print(\"f2=%dkHz\"%f2);\n", + "print(\"ACL=%d or %.1fdB.\"%(A_CL,A_CL_dB));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.22 : Page number 691-692" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Operating Bandwidth=1.5MHz.\n", + "(ii) Operating Bandwidth=150kHz.\n", + "(iii) Operating Bandwidth=15kHz.\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "GBW=1.5; #Gain-bandwidth, MHz\n", + "\n", + "#Calculation\n", + "#(i) For A_CL=1;\n", + "A_CL=1; #Closed loop gain\n", + "BW=GBW/A_CL; #Bandwidth, MHz\n", + "\n", + "print(\"(i) Operating Bandwidth=%.1fMHz.\"%BW);\n", + "\n", + "#(ii) For A_CL=10;\n", + "A_CL=10; #Closed loop gain\n", + "BW=(GBW/A_CL)*1000; #Bandwidth, kHz\n", + "\n", + "print(\"(ii) Operating Bandwidth=%dkHz.\"%BW);\n", + "\n", + "#(iii) For A_CL=100;\n", + "A_CL=100; #Closed loop gain\n", + "BW=(GBW/A_CL)*1000; #Bandwidth, kHz\n", + "\n", + "print(\"(iii) Operating Bandwidth=%dkHz.\"%BW);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.23 : Page number 692" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum operating frequency=9.95kHz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "V_supply=10; #Supply voltage, V\n", + "\n", + "\n", + "#Calculation\n", + "V_sat=V_supply-2; #Saturation voltage, V\n", + "V_pk=V_sat; #Maximum peak-output voltage, V\n", + "f_max=((slew_rate*10**6)/(2*pi*V_pk))/1000; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"Maximum operating frequency=%.2fkHz.\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.24 : Page number 692" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum operating frequency=796kHz\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "V_pk=100.0; #Peak-output voltage, mV\n", + "\n", + "\n", + "#Calculation\n", + "V_pk=V_pk/1000.0; #Peak-output voltage, V\n", + "f_max=(slew_rate*10**6/(2*pi*V_pk))/1000.0; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"Maximum operating frequency=%.0fkHz\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.25 : Page number 695-696" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Feedback resistor=220kΩ\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_CL=-100; #Closed-loop voltage gain\n", + "Ri=2.2; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "#Since, A_CL=-(Rf/Ri)\n", + "Rf=-A_CL*Ri; #Feedback resistor, kΩ\n", + "\n", + "#Result\n", + "print(\"Feedback resistor=%dkΩ\"%Rf);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.26 : Page number 696" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-0.25V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "vin=2.5; #Input voltage, mV\n", + "Rf=200; #Feedback resistor, kΩ\n", + "Ri=2; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "vout=A_CL*vin/1000; #Output voltage,V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.2fV\"%vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.27 : Page number 696" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed-loop voltage gain=-1\n", + "Therefore, output will have same amplitude but 180° phase inversion.\n" + ] + } + ], + "source": [ + "#Varaiable declaration\n", + "Rf=1.0; #Feedback resistor, kΩ\n", + "Ri=1.0; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "\n", + "#Result\n", + "print(\"Closed-loop voltage gain=%d\"%A_CL);\n", + "print(\"Therefore, output will have same amplitude but 180° phase inversion.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.28 : Page number 696-697" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed-loop voltage gain=-40\n", + "Supply voltage=±15V, saturation voltage=±13V. Since gain=-40, op-Amp will be driven to saturation.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=40; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "\n", + "#Calculation\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"Closed-loop voltage gain=%d\"%A_CL);\n", + "print(\"Supply voltage=±15V, saturation voltage=±13V. Since gain=-40, op-Amp will be driven to saturation.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.29 : Page number 697" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) A_CL=-10.\n", + "(ii) Zi=10kΩ\n", + "(iii) Maximum operating frequency=15.9kHz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=10; #Input resistor, kΩ\n", + "Vpp=1; #Input peak-peak voltage, V\n", + "slew_rate=0.5; #Slew rate, V//μs\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CL=-(Rf/Ri); #Closed-loop voltage gain\n", + "\n", + "#(ii)\n", + "Zi=Ri; #Input impedance(~ Input resistor), kΩ\n", + "\n", + "#(iii)\n", + "Vout=A_CL*Vpp; #Peak-to-peak voltage, V\n", + "Vpk=Vout/2; #Peak output voltage, V\n", + "f_max=(slew_rate*10**6/(2*pi*abs(Vpk)))/1000; #Maximum operating frequency, kHz\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) A_CL=%d.\"%A_CL);\n", + "print(\"(ii) Zi=%dkΩ\"%Zi);\n", + "print(\"(iii) Maximum operating frequency=%.1fkHz.\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.30 : Page number 697" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rf=20kΩ and Ri=5kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A_CL=-4; #Closed loop voltage gain\n", + "R=[1.0,5.0,10.0,20.0]; #List of available resistors, kΩ\n", + "\n", + "#Calculation\n", + "for i in R[:]:\n", + " for j in R[:]:\n", + " if -(i/j)==A_CL :\n", + " print(\"Rf=%dkΩ and Ri=%dkΩ.\"%(i,j));\n", + " break;\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.31 : Page number 697-698" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Closed loop voltage gain=-100.\n", + "(ii) Closed loop voltage gain=-50.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "R_source=0; #Source resistor, kΩ\n", + "A_CL=-Rf/(R_source+Ri); #Closed-loop voltage gain\n", + "\n", + "print(\"(i) Closed loop voltage gain=%d.\"%A_CL);\n", + "\n", + "#(ii)\n", + "R_source=1; #Source resistor, kΩ\n", + "A_CL=-Rf/(R_source+Ri); #Closed-loop voltage gain\n", + "\n", + "print(\"(ii) Closed loop voltage gain=%d.\"%A_CL);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.32 : Page number 699-700" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=12.12mV\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=240; #Feedback resistor, kΩ\n", + "Ri=2.4; #Input resistor, kΩ\n", + "Vin=120; #Input voltage, μV\n", + "\n", + "\n", + "#Calculation\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "Vout=(A_CL*Vin)/1000; #Output voltage, mV\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.2fmV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.33 : Page number 700" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Output voltage=11V\n", + "(ii) Output voltage=-11V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=10; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "#(i)\n", + "Vin=1; #Input voltage, V\n", + "Vout=A_CL*Vin; #Output voltage, V\n", + "\n", + "print(\"(i) Output voltage=%dV\"%Vout);\n", + "\n", + "\n", + "#(ii)\n", + "Vin=-1; #Input voltage, V\n", + "Vout=A_CL*Vin; #Output voltage, V\n", + "\n", + "print(\"(ii) Output voltage=%dV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.34 : Page number 700" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Peak to peak output voltage=12V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=5; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "Vin_max=1; #Maximum input voltage, V\n", + "Vin_min=-1; #Minimum input voltage, V\n", + "\n", + "#Calculation\n", + "V_inpp=Vin_max-Vin_min; #Peak-peak input voltage, V\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "Vout_pp=A_CL*V_inpp; #Peak-peak output voltage, V\n", + "\n", + "#Result\n", + "print(\"Peak to peak output voltage=%dV\"%Vout_pp);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.35 : Page number 700-701" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Closed-loop voltage gain=11\n", + "(ii) Maximum operating frequency=14.47kHz\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=10; #Input resistor, kΩ\n", + "Vpp=1; #Input peak-peak voltage, V\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "\n", + "#Calculation\n", + "#(i)\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "\n", + "#(ii)\n", + "Vout_pp=A_CL*Vpp; #Peak-peak output voltage, V\n", + "Vpk=Vout_pp/2.0; #Peak output voltage, V\n", + "f_max=((slew_rate*10**6)/(2*pi*Vpk))/1000.0; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"(i) Closed-loop voltage gain=%d\"%A_CL);\n", + "\n", + "print(\"(ii) Maximum operating frequency=%.2fkHz\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.36 : Page number 701" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Bandwidth=44.3kHz.\n", + "(ii) Bandwidth=63.8kHz.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=220; #Feedback resistor, kΩ\n", + "Ri=3.3; #Input resistor, kΩ\n", + "unity_gain_BW=3; #Unity gain bandwidth, MHz\n", + "\n", + "#Calculation\n", + "#(i) For non-inverting amplifier\n", + "A_CL=1+(Rf/Ri); #Closed loop voltage gain\n", + "BW=unity_gain_BW*1000.0/A_CL; #Bandwidth, kHz\n", + "\n", + "print(\"(i) Bandwidth=%.1fkHz.\"%BW);\n", + "\n", + "#(ii) For inverting amplifier\n", + "Rf=47; #Feedback resistor, kΩ\n", + "Ri=1; #Input resistor, kΩ\n", + "A_CL=-(Rf/Ri); #Closed loop voltage gain\n", + "BW=unity_gain_BW*1000.0/abs(A_CL); #Bandwidth, kHz\n", + "\n", + "print(\"(ii) Bandwidth=%.1fkHz.\"%BW);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.37 : Page number 701-702" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) For voltage follower A_CL=1.\n", + "(ii) The maximum output frequency=26.53kHz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#(i)\n", + "A_CL=1; #Closed loop voltage gain for voltage follower\n", + "print(\"(i) For voltage follower A_CL=1.\");\n", + "\n", + "\n", + "#(ii)\n", + "slew_rate=0.5; #Slew rate, V/μs\n", + "V_inpp=6; #peak-peak input voltage, V\n", + "Vout=A_CL*V_inpp; #Peak-peak output voltage, V\n", + "Vpk=Vout/2; #Peak output voltage, V\n", + "\n", + "f_max=(slew_rate*10**6/(2*pi*Vpk))/1000; #Maximum operating frequency, kHz\n", + "\n", + "#Result\n", + "print(\"(ii) The maximum output frequency=%.2fkHz.\"%f_max);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.38 : Page number 702" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=1.78V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=470.0; #Feedback resistor, kΩ\n", + "R1=4.3; #Input resistor of 1st op-Amp, kΩ\n", + "R2=33.0; #Input resistor of 2nd op-Amp, kΩ\n", + "R3=33.0; #Input resistor of 3rd op-Amp, kΩ\n", + "Vin=80.0; #Input voltage, μV.\n", + "\n", + "#Calculation\n", + "A1=1+Rf/R1; #Gain of first op-Amp\n", + "A2=-round(Rf/R2,1); #Gain of second op-Amp\n", + "A3=-round(Rf/R3,1); #Gain of third op-Amp\n", + "A=A1*A2*A3; #Overall gain\n", + "Vout=A*Vin*10**-6; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.2fV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.39 : Page number 702-703" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R1=30kΩ, R2=15kΩ and R3=10kΩ.\n", + "Output voltage=0.729V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "A1=10; #Voltage gain of 1st op-Amp\n", + "A2=-18; #Voltage gain of 2nd op-Amp\n", + "A3=-27; #Voltage gain of 3rd op-Amp\n", + "Rf=270; #Feedback resistor, kΩ\n", + "Vin=150; #Input voltage, μV \n", + "\n", + "\n", + "#Calculation\n", + "R1=Rf/(A1-1); #Input resistor of 1st op-Amp, kΩ\n", + "R2=-Rf/A2; #Input resistr of 2nd op-Amp, kΩ\n", + "R3=-Rf/A3; #Input resistor of 3rd op-Amp, kΩ\n", + "\n", + "A=A1*A2*A3; #overall gain,\n", + "Vout=Vin*10**-6*A; #Output voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"R1=%dkΩ, R2=%dkΩ and R3=%dkΩ.\"%(R1,R2,R3));\n", + "print(\"Output voltage=%.3fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.40 : Page number 703-704" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R1=50kΩ, R2=25kΩ and R3=10kΩ.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=500; #Feedback resistor, kΩ\n", + "A1=-10; #Gain of 1st op-Amp\n", + "A2=-20; #Gain of 2nd op-Amp\n", + "A3=-50; #Gain of 3rd op-Amp\n", + "\n", + "#Calculation\n", + "R1=-Rf/A1; #Input resistor of 1st op-Amp, kΩ\n", + "R2=-Rf/A2; #Input resistor of 2nd op-Amp, kΩ\n", + "R3=-Rf/A3; #Input resistor of 3rd op-Amp, kΩ\n", + "\n", + "\n", + "#Result\n", + "print(\"R1=%dkΩ, R2=%dkΩ and R3=%dkΩ.\"%(R1,R2,R3));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.41 : Page number 705" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The input impedance=17202MΩ and output impedance=8.7e-03Ω.\n", + "(ii) The closed loop voltage gain=23.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Zin=2.0; #Input impedance of op-Amp, MΩ\n", + "Zout=75.0; #Output impedance of op-Amp, Ω\n", + "A_OL=200000.0; #Open-loop voltage gain\n", + "Rf=220.0; #Feedback resistor, kΩ\n", + "Ri=10.0; #Input resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "mv=round(Ri/(Ri+Rf),3); #Feedback fraction\n", + "Zin_NI=Zin*(1+(A_OL*mv)); #Input impedance, MΩ\n", + "Zout_NI=Zout/(1+A_OL*mv); #Output impedance, Ω\n", + "\n", + "#(ii)\n", + "A_CL=1+Rf/Ri; #Closed loop voltage gain\n", + "\n", + "#Result\n", + "print(\"(i) The input impedance=%dMΩ and output impedance=%.1eΩ.\"%(Zin_NI,Zout_NI));\n", + "print(\"(ii) The closed loop voltage gain=%d.\"%A_CL);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.42 : Page number 705-706" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance=400002MΩ and output impedance=0.38e-03Ω.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "#For voltage follower,\n", + "mv=1.0; #Feedback fraction\n", + "A_OL=200000.0; #Open-loop voltage gain\n", + "Zin=2.0; #Input impedance of op-Amp, MΩ\n", + "Zout=75.0; #Output impedance of op-Amp, Ω\n", + "\n", + "\n", + "#Calculation\n", + "Zin_VF=Zin*(1+(A_OL*mv)); #Input impedance, MΩ\n", + "Zout_VF=round(round(Zout/(1+A_OL*mv),6),5); #Output impedance, Ω\n", + "\n", + "#Result\n", + "print(\"The input impedance=%dMΩ and output impedance=%.2fe-03Ω.\"%(Zin_VF,Zout_VF*1000));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.43 : Page number 706" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input impedance=1kΩ and output impedance=50Ω.\n", + "Closed-loop voltage gain=-100\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "Ri=1.0; #Input resistor, kΩ\n", + "Zin=4; #Input impedance of op-Amp, MΩ\n", + "Zout=50; #Output impedance of op-Amp, Ω\n", + "\n", + "\n", + "#Calculation\n", + "Zin_I=Ri; #Input impedance, kΩ\n", + "Zout_I=Zout; #Output impedance, Ω\n", + "A_CL=-(Rf/Ri); #Closed loop voltage gain\n", + "\n", + "\n", + "#Result\n", + "print(\"The input impedance=%dkΩ and output impedance=%dΩ.\"%(Zin_I,Zout_I));\n", + "print(\"Closed-loop voltage gain=%d\"%A_CL);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.44 : Page number 709" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-12V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=10; #Feedback resistor, kΩ\n", + "Ri=10; #Input resistor, kΩ\n", + "V1=3; #Input voltage 1st, V\n", + "V2=1; #Input voltage 2nd, V\n", + "V3=8; #Input voltage 3rd, V\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Rf=Ri, Vout=-(Rf/Ri)*(V1+V2+V3)= -(V1+V2+V3);\n", + "Vout=-(V1+V2+V3); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.45 : Page number 709" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-7V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=10; #Feedback resistor, kΩ\n", + "R1=1; #Input resistor for input 1, kΩ\n", + "R2=1; #Input resistor for input 2, kΩ\n", + "V1=0.2; #Input voltage 1st, V\n", + "V2=0.5; #Input voltage 2nd, V\n", + "\n", + "\n", + "#Calculation\n", + "R=R1; #Input resistor(=R1 or R2), kΩ\n", + "Vout=-(Rf/R)*(V1+V2); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%dV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.46 : Page number 709-710" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=-2.5V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=1; #Feedback resistor, kΩ\n", + "Ri=10.0; #Input resistor, kΩ\n", + "V1=10; #Input voltage 1st, V\n", + "V2=8.0; #Input voltage 2nd, V\n", + "V3=7.0; #Input voltage 3rd, V\n", + "\n", + "\n", + "#Calculation\n", + "#Since, Vout=-(Rf/Ri)*(V1+V2+V3);\n", + "Vout=-(Rf/Ri)*(V1+V2+V3); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.1fV.\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.47 : Page number 710" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage=2.5V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V1=0.6; #Input voltage to 1st input resistor, V\n", + "V2=-1.4; #Input voltage to 2nd input resistor, V\n", + "Rf=200; #Feedback resistor, kΩ\n", + "R1=400; #Input resistor 1, kΩ\n", + "R2=100.0; #Input resistor 2, kΩ\n", + "\n", + "#Calculation\n", + "Vout=-Rf*(V1/R1 +V2/R2); #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Output voltage=%.1fV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.48 : Page number 710-711" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) The output voltage=-12.5V\n", + "(ii) The output voltage=-7.5V\n", + "(iii) The output voltage=-17.5V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=1.0; #Feedback resistor, kΩ\n", + "R1=1.0; #Input resistor 1, kΩ\n", + "R2=2.0; #Input resistor 2, kΩ\n", + "R3=4.0; #Input resistor 3, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "Rf_R1=Rf/R1; #Ratio of feedback resistor and 1st input resistor\n", + "Rf_R2=Rf/R2; #Ratio of feedback resistor and 2nd input resistor\n", + "Rf_R3=Rf/R3; #Ratio of feedback resistor and 3rd input resistor\n", + "\n", + "#(i) First input combination\n", + "V1=10; #Input voltage to 1st input resistor, V\n", + "V2=0; #Input voltage to 2nd input resistor, V\n", + "V3=10; #Input voltage to 3rd input resistor, V\n", + "Vout=-(V1*Rf_R1 +V2*Rf_R2 +V3*Rf_R3); #Output voltage, V\n", + "print(\"(i) The output voltage=%.1fV\"%Vout);\n", + "\n", + "#(i) First input combination\n", + "V1=0; #Input voltage to 1st input resistor, V\n", + "V2=10; #Input voltage to 2nd input resistor, V\n", + "V3=10; #Input voltage to 3rd input resistor, V\n", + "Vout=-(V1*Rf_R1 +V2*Rf_R2 +V3*Rf_R3); #Output voltage, V\n", + "print(\"(ii) The output voltage=%.1fV\"%Vout);\n", + "\n", + "\n", + "#(i) First input combination\n", + "V1=10; #Input voltage to 1st input resistor, V\n", + "V2=10; #Input voltage to 2nd input resistor, V\n", + "V3=10; #Input voltage to 3rd input resistor, V\n", + "Vout=-(V1*Rf_R1 +V2*Rf_R2 +V3*Rf_R3); #Output voltage, V\n", + "print(\"(iii) The output voltage=%.1fV\"%Vout);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.49 : Page number 711" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vout=-[0.5sin(1000t)+0.33sin(3000t)]V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Rf=330; #Feedback resistor, kΩ\n", + "R1=33.0; #Input resistor 1, kΩ\n", + "R2=10.0; #Input resistor 2, kΩ\n", + "V1_m=50; #Peak voltage of 1st input, mV\n", + "V2_m=10; #Peak voltage of 2nd input, mV\n", + "\n", + "#Calculation\n", + "#Since, Vout=-((Rf/R1)*V1 + (Rf/R2)*V2)\n", + "print(\"Vout=-[%.1fsin(1000t)+%.2fsin(3000t)]V\"%((V1_m/1000.0)*(Rf/R1),(V2_m/1000.0)*(Rf/R2)));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.50 : Page number 715" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vo=-1*(1/RC)∫vi dt.\n", + "=>Vo=-1*(1/1)∫vi dt\n", + "=>Vo=∫vi dt\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=100; #Input resistor, kΩ\n", + "C=10; #Feedback capacitor, μF\n", + "\n", + "#Calculation\n", + "RC=R*10**3*C*10**-6; #product of input resistance and feedback capacitance, s\n", + "\n", + "\n", + "#Result\n", + "print(\"Vo=-1*(1/RC)∫vi dt.\");\n", + "print(\"=>Vo=-1*(1/%d)∫vi dt\"%RC);\n", + "print(\"=>Vo=∫vi dt\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.51 : Page number 715-716" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The critical frequency=159Hz.\n" + ] + } + ], + "source": [ + "from math import pi\n", + "\n", + "#Variable declaration\n", + "Rf=100; #Feedback resistor, kΩ\n", + "C=0.01; #Feedback capacitor, μF\n", + "\n", + "\n", + "#Calculation\n", + "fc=1/(2*pi*Rf*1000*C*10**-6); #Crictical frequency, Hz\n", + "\n", + "#Result\n", + "print(\"The critical frequency=%dHz.\"%fc);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.52 : Page number 716" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Vout=-1*(1/RC)∫vi dt.\n", + " ΔVout/dt = -vin/RC = -50mV/μs.\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEZCAYAAACNebLAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm4XFWZ7/HvjwQICQJBIAxppkZIOyDQ3TQ0AU4LaC62\nRBEQUCaHtsWBFkUG9SbQz0UB0Uu3SDsQG2gGAYVgtzKJh0kDCASihCQKCZMJUxgTuJC894+1KhQn\ndYY6NezadX6f56nn1N61z97vOrtOvbXW2nstRQRmZmZ9rVF0AGZm1pmcIMzMrCYnCDMzq8kJwszM\nanKCMDOzmpwgzMysJicIsw4j6e8lzZf0gqQDio7HRi4nCOsIkh6W9J42HGeapAtbfZwGnQb8W0Ss\nFxHXFB2MjVxOEGadZyvggeH8oqRRTY7FRjAnCOs4ko6SdKuksyQ9K+lPkqZUvf5rSadLukPS85Ku\nkrRBfm1vSY/22d/Dkt4j6X3AKcBHJL0o6d4axz5a0jVVywsk/aRq+RFJO+bn/zcvPy/pLkmT8/rN\nJC2rxJTX7SzpqcoHuKSPS3pA0jOSfinpL/L6PwLbAP+dm5jWzPubmbedL+mTVfudJukKSRdJeg44\nKq+7PK97QdJ9kt4m6SRJSyQtkrRvQyfJRgQnCOtUuwJzgbcCZwHn93n9COBoYFNgBfDvVa/VHD8m\nIq4DTgd+EhFviYida2x2M7Dqgx5YE9g9L28LjIuI+/O2dwI7AuOBS4ArJK0VEX8GfgN8uGq/hwFX\nRMQKSVOBk4APAhsDtwKX5Ri3Ax4F3p+bmF4DfgI8kst6MHC6pJ6qfR8AXB4RGwAX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at 0x7f8b042c6b70>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "R=10.0; #Input resistor, kΩ\n", + "C=0.01; #Feedback capacitor, μF\n", + "vin=5; #Input voltage, V\n", + "\n", + "#Calculation\n", + "#(i)\n", + "Vout_change_rate=-vin/(R*C); #Rate of change of output voltage, V/μs \n", + "print(\"(i) Vout=-1*(1/RC)∫vi dt.\");\n", + "print(\" ΔVout/dt = -vin/RC = %dmV/μs.\"%Vout_change_rate);\n", + "\n", + "#(ii) Plotting the output waveform\n", + "vin_plot=[]; #Plotting variable for input waveform, V\n", + "dt=100; #time between edges, μs\n", + "for i in range(0,3*dt+1):\n", + " if i<dt or i>2*dt :\n", + " vin_plot.append(0);\n", + " else:\n", + " vin_plot.append(5); \n", + "\n", + "plt.subplot(211);\n", + "plt.plot(vin_plot);\n", + "plt.xlim([0,300])\n", + "plt.ylim([-5,10])\n", + "plt.xlabel(\"t(microsecond)\");\n", + "plt.ylabel(\"Vin(V)\");\n", + "plt.title(\"Input waveform\");\n", + "\n", + " \n", + "vout_plot=[]; #Plotting variable for output waveform, V\n", + "t=[i for i in range(0,301)]; #Time scale, μs\n", + "for i in t[:] :\n", + " if i<dt:\n", + " vout_plot.append(0);\n", + " elif i>2*dt:\n", + " vout_plot.append((Vout_change_rate/1000.0)*dt);\n", + " else :\n", + " vout_plot.append((-vin_plot[i]/(R*C))/1000*(i-dt));\n", + "\n", + "plt.subplot(212)\n", + "plt.plot(vout_plot);\n", + "plt.xlim([0,300])\n", + "plt.ylim([-5,5]);\n", + "plt.xlabel('t(microsecond)');\n", + "plt.ylabel(\"Vout(V)\");\n", + "plt.title(\"output waveform\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.53 : Page number 716-717" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vout=-1*(1/RC)∫vi dt.\n", + "Vout=-5*t volts\n", + "Time required=2.6seconds.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_supply=15; #Supply voltage, V\n", + "R=10; #Input resistor, kΩ\n", + "C=0.2; #Feedback capacitor, μF\n", + "vin=10; #Input voltage, mV\n", + "\n", + "\n", + "#Calculation\n", + "Vs=-V_supply+2; #Saturation voltage, V\n", + "print(\"Vout=-1*(1/RC)∫vi dt.\");\n", + "print(\"Vout=%d*t volts\"%(-vin/(R*C)));\n", + "t=Vs/(-vin/(R*C)); #Time required, seconds\n", + "print(\"Time required=%.1fseconds.\"%t);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.54 : Page number 717-718" + ] + }, + { + "cell_type": "code", + "execution_count": 55, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vo=-5V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=1; #Feedback resistor, kΩ\n", + "C=0.1; #Input capacitor, μF\n", + "Vin_change=5; #Change in input voltage, V\n", + "t=0.1; #Time taken for change in input voltage, ms\n", + "\n", + "#Calcualtion\n", + "dvi_dt=Vin_change/(t/1000); #Rate of change of input voltage, V/s\n", + "RC=R*1000*C*10**-6; #Product of feedback resistance and input capacitance, s\n", + "#Since, Vo=-R*C*(dvi/dt);\n", + "Vo=-RC*dvi_dt; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Vo=%dV.\"%Vo);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.55 : Page number 718" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vo=-0.55V.\n", + "The output voltage stays constant at -0.55V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=10; #Feedback resistor, kΩ\n", + "C=2.2; #Input capacitor, μF\n", + "Vin_change=10; #Change in input voltage, V\n", + "t=0.4; #Time taken for change in input voltage, s\n", + "\n", + "#Calcualtin\n", + "dvi_dt=Vin_change/t; #Rate of change of input voltage, V/s\n", + "RC=R*1000*C*10**-6; #Product of feedback resistance and input capacitance, s\n", + "#Since, Vo=-R*C*(dvi/dt);\n", + "Vo=-RC*dvi_dt; #Output voltage, V\n", + "\n", + "#Result\n", + "print(\"Vo=%.2fV.\"%Vo);\n", + "print(\"The output voltage stays constant at %.2fV.\"%Vo);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 25.56 : Page number 718-719" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vo=-1*(dvi/dt).\n", + "vo=-5V.\n", + "Therefore, between 0 to 0.2s, the output voltage is constant at -5V.\n", + "For t>0.2s, the input is constant so that output voltage is zero.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R=100; #Feedback resistor, kΩ\n", + "C=10; #Input capacitor, μF\n", + "Vin_change=1; #Change in input voltage, V\n", + "t=0.2; #Time taken for change in input voltage, s\n", + "\n", + "\n", + "#Calculation\n", + "RC=R*1000*C*10**-6; #Product of feedback resistor and input capacitance, s\n", + "#(i)\n", + "print(\"vo=-%d*(dvi/dt).\"%RC);\n", + "\n", + "#(ii)\n", + "dvi_dt=Vin_change/t; #Rate of change of input voltage, V\n", + "vo=-dvi_dt; #Output voltage, V\n", + "print(\"vo=%dV.\"%vo);\n", + "\n", + "print(\"Therefore, between 0 to 0.2s, the output voltage is constant at %dV.\"%vo);\n", + "print(\"For t>0.2s, the input is constant so that output voltage is zero.\");\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_4.ipynb new file mode 100644 index 00000000..670a61b0 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_4.ipynb @@ -0,0 +1,472 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a1845801144904256bc26f3ca2e0294eb55dcabb139a523d403624121bc6876a" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#CHAPTER 26 : DIGITAL ELECTRONICS" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.1 : Page 732" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "d=37; #Given decimal number\n", + "\n", + "#Calculation\n", + "b=int(bin(d)[2:]); #Equivalent Octal number \n", + "\n", + "#Result\n", + "print(\"The equivalent binary number=%s.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The equivalent binary number=100101.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.2 : Page number 733" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "d=23; #Given decimal number\n", + "\n", + "#Calculation\n", + "b=int(bin(d)[2:]); #Equivalent Octal number\n", + "\n", + "#Result\n", + "print(\"The equivalent binary number=%d.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The equivalent binary number=10111.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.3 : Page number 733" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "b=0b110001; #Given binary number\n", + "\n", + "#Calculation\n", + "d=int(b); #Equivalent decimal number\n", + "\n", + "#Result\n", + "print(\"Equivalent decimal number=%d.\"%d);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent decimal number=49.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.4 : Page number 735" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "d1=76; #Given decimal number\n", + "d2=255; #Given decimal number\n", + "d3=372; #Given decimal number\n", + "\n", + "#Calculation\n", + "o1=int(oct(d1)[1:]); #Equivalent octal number\n", + "o2=int(oct(d2)[1:]); #Equivalent octal number\n", + "o3=int(oct(d3)[1:]); #Equivalent octal number\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Equivalent octal number=%d.\"%o1);\n", + "print(\"(ii) Equivalent octal number=%d.\"%o2);\n", + "print(\"(iii) Equivalent octal number=%d.\"%o3);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Equivalent octal number=114.\n", + "(ii) Equivalent octal number=377.\n", + "(iii) Equivalent octal number=564.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.5 : Page number 735" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "o=24.6; #Given octal number\n", + "\n", + "#Calculation\n", + "o_f=o%1; #Floating part of octal number\n", + "o_i=(int)(o-(o%1)); #Integer part of octal number\n", + "d=int(str(o_i),8); #Equivalent decimal number\n", + "\n", + "s=str(o_f); #String value of floating part \n", + "i=2\n", + "while(i<len(s)):\n", + " d=d+int(s[i])*8**-(i-1);\n", + " i+=1;\n", + "#Result\n", + "print(\"Equivalent decimal number=%.2f.\"%d);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent decimal number=20.75.\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.6 : Page number 735" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "d=177; #Given decimal number\n", + "\n", + "#Calculation\n", + "o=oct(d)[1:]; #Equivalent octal number\n", + "\n", + "b=\"\";\n", + "for i in o:\n", + " bo=bin(int(i))[2:]; #Binary of individual octal digit\n", + " b=b+((\"0\" if len(bo)==2 else (\"00\" if len(bo)==1 else\"\")) +bo); #Equivalent binary number\n", + " \n", + "#Result\n", + "print(\"Equivalent octal number=%s.\"%o);\n", + "print(\"Equivalent binary number=%s.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent octal number=261.\n", + "Equivalent binary number=010110001.\n" + ] + } + ], + "prompt_number": 63 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.7 : Page number 737" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "d=541; #Given decimal number\n", + "\n", + "#Calculation\n", + "h=hex(d)[2:]; #Equivalent hexadecimal number\n", + "\n", + "#Result\n", + "print(\"Equivalent hexadecimal number=%s.\"%h);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent hexadecimal number=21d.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.8 : Page number 737" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "hex_to_dec={'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'a':10,'b':11,'c':12,'d':13,'e':14,'f':15};\n", + " \n", + "#Given \n", + "d=378; #Given decimal number\n", + "\n", + "#Calculation\n", + "h=hex(d)[2:]; #Equivalent Hexadecimal number\n", + "\n", + "\n", + "b=\"\";\n", + "for i in h:\n", + " bh=bin(hex_to_dec[i])[2:]; #Binary of individual hexadecimaldigit\n", + " b=b+((\"0\" if len(bh)==3 else (\"00\" if len(bh)==2 else (\"000\" if len(bh)==1 else \"\")))+bh); #Equivalent binary number\n", + "\n", + "#Result\n", + "print(\"Equivalent hexadeciaml number=%s.\"%h);\n", + "print(\"Equivalent binary number=%s.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent hexadeciaml number=17a.\n", + "Equivalent binary number=000101111010.\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 26.9 : Page number 737" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "h=0xB2F; #Given hexadecimal number\n", + "\n", + "#Calculation\n", + "o=oct(h)[1:]; #Equivalent octal number\n", + "\n", + "#Result\n", + "print(\"Equivalent octal number=%s.\"%o);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent octal number=5457.\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.10 : Page number 738" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "BCD=\"0100 0000 0010\" #Given BCD string\n", + "BCD_split=BCD.split(\" \"); #Splitting th binary string into individual BCD \n", + "d=0;\n", + "for i in range(len(BCD_split),0,-1):\n", + " d+=int(BCD_split[len(BCD_split)-i],2)*10**(i-1);\n", + "\n", + "#Result\n", + "print(\"The equivalent decimal =%d.\"%d);\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The equivalent decimal =402.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.11 : Page number 745" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print(\"Boolean Expression obtained from the circuit: \\n Y'=A+B \\n Y=((A+B).A)\");\n", + "print(\"Truth Table:\");\n", + "print(\"a\\tb\\tY'=A+B\\t Y=Y'.A\");\n", + "for b in range(0,2):\n", + " for a in range(0,2):\n", + " Y_dash=1 if a or b else 0;\n", + " Y=1 if Y_dash and a else 0;\n", + " print(\"%d\\t%d\\t%d\\t %d\"%(a,b,Y_dash,Y));" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Boolean Expression obtained from the circuit: \n", + " Y'=A+B \n", + " Y=((A+B).A)\n", + "Truth Table:\n", + "a\tb\tY'=A+B\t Y=Y'.A\n", + "0\t0\t0\t 0\n", + "1\t0\t1\t 1\n", + "0\t1\t1\t 0\n", + "1\t1\t1\t 1\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.12 : Page number 745-746" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print(\"Boolean Expression obtained from the circuit: \\n Y'=A'.B \\n Y=Y'+B'\");\n", + "print(\"Truth Table:\");\n", + "print(\"A\\tB\\tA'\\tY'=A'.B\\t B'\\tY=Y'+B'\");\n", + "for b in range(0,2):\n", + " for a in range(0,2):\n", + " a_dash=1 if not a else 0;\n", + " b_dash=1 if not b else 0;\n", + " Y_dash=1 if a_dash and b else 0;\n", + " Y=1 if Y_dash or b_dash else 0;\n", + " print(\"%d\\t%d\\t%d\\t%d\\t %d\\t%d\"%(a,b,a_dash,Y_dash,b_dash,Y));" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Boolean Expression obtained from the circuit: \n", + " Y'=A'.B \n", + " Y=Y'+B'\n", + "Truth Table:\n", + "A\tB\tA'\tY'=A'.B\t B'\tY=Y'+B'\n", + "0\t0\t1\t0\t 1\t1\n", + "1\t0\t0\t0\t 1\t1\n", + "0\t1\t1\t1\t 0\t1\n", + "1\t1\t0\t0\t 0\t0\n" + ] + } + ], + "prompt_number": 30 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_5.ipynb new file mode 100644 index 00000000..670a61b0 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_5.ipynb @@ -0,0 +1,472 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a1845801144904256bc26f3ca2e0294eb55dcabb139a523d403624121bc6876a" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#CHAPTER 26 : DIGITAL ELECTRONICS" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.1 : Page 732" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "d=37; #Given decimal number\n", + "\n", + "#Calculation\n", + "b=int(bin(d)[2:]); #Equivalent Octal number \n", + "\n", + "#Result\n", + "print(\"The equivalent binary number=%s.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The equivalent binary number=100101.\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.2 : Page number 733" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "d=23; #Given decimal number\n", + "\n", + "#Calculation\n", + "b=int(bin(d)[2:]); #Equivalent Octal number\n", + "\n", + "#Result\n", + "print(\"The equivalent binary number=%d.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The equivalent binary number=10111.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.3 : Page number 733" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "b=0b110001; #Given binary number\n", + "\n", + "#Calculation\n", + "d=int(b); #Equivalent decimal number\n", + "\n", + "#Result\n", + "print(\"Equivalent decimal number=%d.\"%d);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent decimal number=49.\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.4 : Page number 735" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "d1=76; #Given decimal number\n", + "d2=255; #Given decimal number\n", + "d3=372; #Given decimal number\n", + "\n", + "#Calculation\n", + "o1=int(oct(d1)[1:]); #Equivalent octal number\n", + "o2=int(oct(d2)[1:]); #Equivalent octal number\n", + "o3=int(oct(d3)[1:]); #Equivalent octal number\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Equivalent octal number=%d.\"%o1);\n", + "print(\"(ii) Equivalent octal number=%d.\"%o2);\n", + "print(\"(iii) Equivalent octal number=%d.\"%o3);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Equivalent octal number=114.\n", + "(ii) Equivalent octal number=377.\n", + "(iii) Equivalent octal number=564.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.5 : Page number 735" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "o=24.6; #Given octal number\n", + "\n", + "#Calculation\n", + "o_f=o%1; #Floating part of octal number\n", + "o_i=(int)(o-(o%1)); #Integer part of octal number\n", + "d=int(str(o_i),8); #Equivalent decimal number\n", + "\n", + "s=str(o_f); #String value of floating part \n", + "i=2\n", + "while(i<len(s)):\n", + " d=d+int(s[i])*8**-(i-1);\n", + " i+=1;\n", + "#Result\n", + "print(\"Equivalent decimal number=%.2f.\"%d);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent decimal number=20.75.\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.6 : Page number 735" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "d=177; #Given decimal number\n", + "\n", + "#Calculation\n", + "o=oct(d)[1:]; #Equivalent octal number\n", + "\n", + "b=\"\";\n", + "for i in o:\n", + " bo=bin(int(i))[2:]; #Binary of individual octal digit\n", + " b=b+((\"0\" if len(bo)==2 else (\"00\" if len(bo)==1 else\"\")) +bo); #Equivalent binary number\n", + " \n", + "#Result\n", + "print(\"Equivalent octal number=%s.\"%o);\n", + "print(\"Equivalent binary number=%s.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent octal number=261.\n", + "Equivalent binary number=010110001.\n" + ] + } + ], + "prompt_number": 63 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.7 : Page number 737" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given \n", + "d=541; #Given decimal number\n", + "\n", + "#Calculation\n", + "h=hex(d)[2:]; #Equivalent hexadecimal number\n", + "\n", + "#Result\n", + "print(\"Equivalent hexadecimal number=%s.\"%h);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent hexadecimal number=21d.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.8 : Page number 737" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "hex_to_dec={'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'a':10,'b':11,'c':12,'d':13,'e':14,'f':15};\n", + " \n", + "#Given \n", + "d=378; #Given decimal number\n", + "\n", + "#Calculation\n", + "h=hex(d)[2:]; #Equivalent Hexadecimal number\n", + "\n", + "\n", + "b=\"\";\n", + "for i in h:\n", + " bh=bin(hex_to_dec[i])[2:]; #Binary of individual hexadecimaldigit\n", + " b=b+((\"0\" if len(bh)==3 else (\"00\" if len(bh)==2 else (\"000\" if len(bh)==1 else \"\")))+bh); #Equivalent binary number\n", + "\n", + "#Result\n", + "print(\"Equivalent hexadeciaml number=%s.\"%h);\n", + "print(\"Equivalent binary number=%s.\"%b);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent hexadeciaml number=17a.\n", + "Equivalent binary number=000101111010.\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 26.9 : Page number 737" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "h=0xB2F; #Given hexadecimal number\n", + "\n", + "#Calculation\n", + "o=oct(h)[1:]; #Equivalent octal number\n", + "\n", + "#Result\n", + "print(\"Equivalent octal number=%s.\"%o);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Equivalent octal number=5457.\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.10 : Page number 738" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Given\n", + "BCD=\"0100 0000 0010\" #Given BCD string\n", + "BCD_split=BCD.split(\" \"); #Splitting th binary string into individual BCD \n", + "d=0;\n", + "for i in range(len(BCD_split),0,-1):\n", + " d+=int(BCD_split[len(BCD_split)-i],2)*10**(i-1);\n", + "\n", + "#Result\n", + "print(\"The equivalent decimal =%d.\"%d);\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The equivalent decimal =402.\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.11 : Page number 745" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print(\"Boolean Expression obtained from the circuit: \\n Y'=A+B \\n Y=((A+B).A)\");\n", + "print(\"Truth Table:\");\n", + "print(\"a\\tb\\tY'=A+B\\t Y=Y'.A\");\n", + "for b in range(0,2):\n", + " for a in range(0,2):\n", + " Y_dash=1 if a or b else 0;\n", + " Y=1 if Y_dash and a else 0;\n", + " print(\"%d\\t%d\\t%d\\t %d\"%(a,b,Y_dash,Y));" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Boolean Expression obtained from the circuit: \n", + " Y'=A+B \n", + " Y=((A+B).A)\n", + "Truth Table:\n", + "a\tb\tY'=A+B\t Y=Y'.A\n", + "0\t0\t0\t 0\n", + "1\t0\t1\t 1\n", + "0\t1\t1\t 0\n", + "1\t1\t1\t 1\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Example 26.12 : Page number 745-746" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print(\"Boolean Expression obtained from the circuit: \\n Y'=A'.B \\n Y=Y'+B'\");\n", + "print(\"Truth Table:\");\n", + "print(\"A\\tB\\tA'\\tY'=A'.B\\t B'\\tY=Y'+B'\");\n", + "for b in range(0,2):\n", + " for a in range(0,2):\n", + " a_dash=1 if not a else 0;\n", + " b_dash=1 if not b else 0;\n", + " Y_dash=1 if a_dash and b else 0;\n", + " Y=1 if Y_dash or b_dash else 0;\n", + " print(\"%d\\t%d\\t%d\\t%d\\t %d\\t%d\"%(a,b,a_dash,Y_dash,b_dash,Y));" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Boolean Expression obtained from the circuit: \n", + " Y'=A'.B \n", + " Y=Y'+B'\n", + "Truth Table:\n", + "A\tB\tA'\tY'=A'.B\t B'\tY=Y'+B'\n", + "0\t0\t1\t0\t 1\t1\n", + "1\t0\t0\t0\t 1\t1\n", + "0\t1\t1\t1\t 0\t1\n", + "1\t1\t0\t0\t 0\t0\n" + ] + } + ], + "prompt_number": 30 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_4.ipynb new file mode 100644 index 00000000..06a555a6 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_4.ipynb @@ -0,0 +1,125 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:c0ff4f67576afe73a11c06eedd0a50709b7f5831737f83db1cd640098e3e9740" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 2 : ELECTRONIC EMISSION" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.1: Page number 31\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "\n", + "from math import exp\n", + "from math import pi\n", + "\n", + "l=5.0; #length of tungsten filament in cm\n", + "d=0.01; #diameter of the filament in cm\n", + "T=2500.0; #operating temperature in K\n", + "A=60.2*pow(10,4); #constant, depending upon the type of thermionic emitter, in amp/m\u00b2/K\u00b2\n", + "phi=4.517; #work function of emitter in eV\n", + "\n", + "\n", + "#Calculation\n", + "b=round(11600*phi,-1); #constant for a metal, in K\n", + "Js=round(A*T*T*exp(-b/T),-2); #Emission current density in amp/m\u00b2\n", + "a=pi*(d/100)*(l/100); #Surface area of the cathode in m\u00b2\n", + "E_I=Js*a; #Emission current in A\n", + "\n", + "#Result\n", + "print(\"emission current =%.3f A\"%E_I);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emission current =0.047 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.2:Page number 31\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log\n", + "\n", + "#Variable declaration\n", + "Js=0.1; #Emission current density in amp/cm\u00b2\n", + "A=60.2; #Constant depending upon the type of thermionic emitter, in amp/cm\u00b2/K\u00b2\n", + "T=1900.0; #Absolute temperature in K\n", + "\n", + "\n", + "#calculations\n", + "#Calculating b according to the formula Js=A*T\u00b2*exp(-b/T) for emission current density\n", + "b=-T*(log(Js/(A*T*T))); #constant for emitter, in K\n", + "phi= round(b/11600,2); # work function in eV\n", + "\n", + "print (\"Work function of the tungsten wire = %.2f eV\"%phi);\n", + "\n", + "if(phi==4.52):\n", + "\tprint(\"Given sample is pure Tungsten\");\n", + "elif(phi!=4.52 and phi>=2.63 and phi<=4.52):\n", + "\tprint (\"The sample is not pure Tungsten\");\n", + " \n", + "#Note : In the text book, the work function has been approximated to 3.56eV, but in the code it calculates as 3.52eV\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Work function of the tungsten wire = 3.52 eV\n", + "The sample is not pure Tungsten\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_5.ipynb new file mode 100644 index 00000000..06a555a6 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_5.ipynb @@ -0,0 +1,125 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:c0ff4f67576afe73a11c06eedd0a50709b7f5831737f83db1cd640098e3e9740" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 2 : ELECTRONIC EMISSION" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.1: Page number 31\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "\n", + "from math import exp\n", + "from math import pi\n", + "\n", + "l=5.0; #length of tungsten filament in cm\n", + "d=0.01; #diameter of the filament in cm\n", + "T=2500.0; #operating temperature in K\n", + "A=60.2*pow(10,4); #constant, depending upon the type of thermionic emitter, in amp/m\u00b2/K\u00b2\n", + "phi=4.517; #work function of emitter in eV\n", + "\n", + "\n", + "#Calculation\n", + "b=round(11600*phi,-1); #constant for a metal, in K\n", + "Js=round(A*T*T*exp(-b/T),-2); #Emission current density in amp/m\u00b2\n", + "a=pi*(d/100)*(l/100); #Surface area of the cathode in m\u00b2\n", + "E_I=Js*a; #Emission current in A\n", + "\n", + "#Result\n", + "print(\"emission current =%.3f A\"%E_I);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emission current =0.047 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.2:Page number 31\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log\n", + "\n", + "#Variable declaration\n", + "Js=0.1; #Emission current density in amp/cm\u00b2\n", + "A=60.2; #Constant depending upon the type of thermionic emitter, in amp/cm\u00b2/K\u00b2\n", + "T=1900.0; #Absolute temperature in K\n", + "\n", + "\n", + "#calculations\n", + "#Calculating b according to the formula Js=A*T\u00b2*exp(-b/T) for emission current density\n", + "b=-T*(log(Js/(A*T*T))); #constant for emitter, in K\n", + "phi= round(b/11600,2); # work function in eV\n", + "\n", + "print (\"Work function of the tungsten wire = %.2f eV\"%phi);\n", + "\n", + "if(phi==4.52):\n", + "\tprint(\"Given sample is pure Tungsten\");\n", + "elif(phi!=4.52 and phi>=2.63 and phi<=4.52):\n", + "\tprint (\"The sample is not pure Tungsten\");\n", + " \n", + "#Note : In the text book, the work function has been approximated to 3.56eV, but in the code it calculates as 3.52eV\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Work function of the tungsten wire = 3.52 eV\n", + "The sample is not pure Tungsten\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_4.ipynb new file mode 100644 index 00000000..a6008ee1 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_4.ipynb @@ -0,0 +1,1624 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3452607f2168b562d941493f83083042eaa5a2d316715f9d9f089ff03d73fdb8" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 6: SEMICONDUCTOR DIODE" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.2, Page number 81" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration \n", + "Vf =20; #Peak Input Voltage in V\n", + "rf=10; #Forward Resistance in ohms\n", + "RL=500.0; #Load Resistance in ohms\n", + "V0=0.7; #Potential Barrier Voltage of the diodes in V\n", + "\n", + "#Calculation\n", + "#(1)\n", + "If_peak=(Vf-V0)/(rf+RL); #Peak current through the diode in A\n", + "If_peak=If_peak*1000; #Peak current through the diode in mA\n", + "#(2)\n", + "V_out_peak =If_peak * RL/1000 ; #Peak output voltage in V\n", + "\n", + "#For an Ideal diode\n", + "If_peak_ideal=Vf/RL; #Peak current through the ideal diode in A\n", + "If_peak_ideal=If_peak_ideal*1000; #Peak current through the ideal diode in mA\n", + "\n", + "V_out_peak_ideal=If_peak_ideal * RL/1000; # Peak output voltage in case of the ideal diode in V\n", + "\n", + "#Result\n", + "print '(i) Peak current through the diode = %.1f mA '%If_peak;\n", + "print '(ii) Peak output voltage = %.1f V'%V_out_peak;\n", + "print '(iii) Peak current through the ideal diode = %d mA '%If_peak_ideal;\n", + "print '(iv) Peak output voltage in case of the ideal diode = %d V'%V_out_peak_ideal;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Peak current through the diode = 37.8 mA \n", + "(ii) Peak output voltage = 18.9 V\n", + "(iii) Peak current through the ideal diode = 40 mA \n", + "(iv) Peak output voltage in case of the ideal diode = 20 V\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.3, Page number 82" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V =10.0; #Battery voltage in V\n", + "R1=50.0; #Resistor 1's resistance in ohms\n", + "R2=5.0; #Resistor 2's resistance in ohms\n", + "\n", + "#Calculation\n", + "#Using Thevenin's Theorem to find current in the diode\n", + "E0=(R2/(R1+R2))*V; #Thevenin's Voltage in V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's Resistance in ohms\n", + "\n", + "I0=E0/R0; #Current through the diode in A\n", + "I0=I0*1000; #Current through the diode in mA\n", + "\n", + "#Result\n", + "print 'Current through the diode = %d mA '%Io;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current through the diode = 200 mA \n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.4, Page number 82-83 " + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V =10.0; #Battery voltage in V\n", + "R0=48.0; #Resistance of the resistor in ohms\n", + "Rd=1.0; #Forward resistance of the diodes in ohms\n", + "Vd=0.7; #Potential barrier of the diodes in V\n", + "#Calculation\n", + "V_net=V-Vd-Vd; #Net voltage in the circuit in V\n", + "R_net=R0+Rd+Rd #Net resistance of the circuit in ohms\n", + "I_net=V_net/R_net; #Net current in the circuit in A\n", + "I_net=I_net*1000; #Net current in mA\n", + "\n", + "#Result\n", + "print 'Net current in the circuit = %d mA '%I_net;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net current in the circuit = 172 mA \n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.5, Page number 83" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "E1=24; #Voltage of first source in V\n", + "E2=4; #Voltage of second source in V\n", + "V0=0.7; #Potential barrier of diodes in V\n", + "R=2000; #Resistance of the given resistor in ohms\n", + "Rd=0; #Forward resistance of the diodes in ohms\n", + "\n", + "#Calculation\n", + "I=(E1-E2-V0)/(R+Rd); #Current in the circuit in A\n", + "I=I*1000; #Current in the circuit in mA \n", + "\n", + "#Result\n", + "print 'Current in the circuit = %.2f mA '%I;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current in the circuit = 9.65 mA \n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.6, Page number 83-84" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V=20; #Voltage of source in V\n", + "V0=0.3; #Potential barrier of Germanium diode in V\n", + "V0_Si=0.7; #Potetial barrier of Silicon diode in V \n", + "\n", + "#Calculation\n", + "#As only Ge diode is turned on due to less potential barrier,\n", + "VA=V-V0; #Voltage VA acroos resistor of 3k ohms\n", + "\n", + "#Result\n", + "print 'Voltage VA = %.1f mA '%VA;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage VA = 19.7 mA \n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.7, Page number 84" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V=10; #Voltage of source in V\n", + "V0=0.7; #Potetial barrier of Silicon diode in V \n", + "# Resistance of all resistors in ohms\n", + "R1=2000;\n", + "R2=2000;\n", + "R3=2000;\n", + "\n", + "#Calculation\n", + "Id=(V-V0)/(R2+2*R3); #Current through the diodes in A\n", + "VQ=2*Id*R3; #Voltage VQ across the grounded 2k ohm resistor in V\n", + "Id=Id*1000; #Current through the diodes in mA\n", + "\n", + "#Result\n", + "print 'Voltage VQ = %.1f V '%VQ;\n", + "print 'Current through the diodes, Id = %.2f mA '%Id;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage VQ = 6.2 V \n", + "Current through the diodes, Id = 1.55 mA \n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.8, Page number 84" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V=15; #Voltage of source in V\n", + "V0=0.7; #Potetial barrier of Silicon diode in V \n", + "R=500 # Resistance of all resistors in ohms\n", + "\n", + "#Calculation\n", + "I1=(V-V0)/R; #total current in the circuit in A\n", + "Id1=I1/2; #current in first diode in A\n", + "Id1=Id1*1000; #current in first diode in mA\n", + "Id2=Id1 #current in second diode in mA\n", + "\n", + "#Result\n", + "print ('Current in first diode = %.1f mA'%Id1);\n", + "print ('Current in second diode = %.1f mA'%Id2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current in first diode = 14.3 mA\n", + "Current in second diode = 14.3 mA\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.9, Page number 85" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "E=20; #Voltage of source in V\n", + "V0_d1=0.7; #Potetial barrier of first Silicon diode in V\n", + "V0_d2=0.7; #Potetial barrier of second Silicon diode in V\n", + "R1=5600; # Resistance of first resistor in ohms\n", + "R2=3300; # Resistance of second resistor in ohms\n", + "\n", + "#Calculation\n", + "I2=V0_d2/R2; #Current I2 through resistor R2 in A\n", + "I2=round((I2*1000),3); #Current I2 through resistor R2 in mA\n", + "I1=(E-V0_d1-V0_d2)/R1; #Current I1 through resistor R1 in A\n", + "I1=round((I1*1000),2); #Current I1 through resistor R1 in mA\n", + "I3=I1-I2; #Current I3 through diode D2 in mA\n", + "\n", + "#Result\n", + "print 'Current I1= %.2f mA'%I1;\n", + "print 'Current I1= %.3f mA'%I2;\n", + "print 'Current I1= %.3f mA'%I3;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current I1= 3.32 mA\n", + "Current I1= 0.212 mA\n", + "Current I1= 3.108 mA\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.10, Page number 85-86" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "E=10.0; #Voltage of source in V\n", + "V0=0.7; #Potetial barrier of Silicon diode in V\n", + "R1=2000; # Resistance of first resistor in ohms\n", + "R2=8000; # Resistance of second resistor in ohms\n", + "R3=4000; #Resistance of third resistor in ohms\n", + "R4=6000; #Resistance of fourth resistor in ohms\n", + "\n", + "#Calculation\n", + "#Assuming the given diode to be reverse bised and calculating voltage across it's terminals\n", + "V1=(E/(R1+R2))*R2; #voltage at the P side of the diode, i.e, voltage across R2 resistor,according to voltage divider rule, in V\n", + "V2=(E/(R3+R4))*R4; #voltage at the N side of the diode, i.e, voltage across R4 resistor,according to voltage divider rule, in V\n", + "\n", + "#Result\n", + "if((V1-V2)>=V0):\n", + " print 'Our assumption was wrong and, the diode is forward biased';\n", + "else:\n", + " print 'The diode is reverse biased';\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Our assumption was wrong and, the diode is forward biased\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.11, Page number 86" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=2; #Supply voltage in V\n", + "V0=0.7; #Potential barrier voltage of the diode in V \n", + "R1=4000.0; #Resistance of first resistor in \u03a9\n", + "R2=1000.0; ##Resistance of second resistor in \u03a9\n", + "\n", + "#Calculation\n", + "#Assuming the diode to be in ON state\n", + "I1=((V-V0)/R1)*1000; #Current through resistor R1, in mA\n", + "I2=(V0/R2)*1000; #Current through resistor R2, in mA\n", + "ID=I1-I2; #Diode current, in mA\n", + "\n", + "if(ID<0):\n", + " #Since the diode current is negative, the diode must be OFF \n", + " ID=0; #True value of diode current, mA\n", + " \n", + "#As the diode is in OFF state it can be replaced by an open ciruit equivalent \n", + "VD=V*R2/(R1 +R2); #Voltage across the diode, in V\n", + "\n", + "#Result\n", + "print 'ID =%d mA'%ID;\n", + "print 'VD =%.1f V'%VD;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ID =0 mA\n", + "VD =0.4 V\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.12, Page number 89-90" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "AC_Input_Power=100.0; #Input AC Power in watts\n", + "AC_Output_Power=40.0; #Output AC Power in watts\n", + "Accepted_Power=50.0; #Power accepted by the half-wave rectifier in watt\n", + "\n", + "#Calculation\n", + "R_eff=(AC_Output_Power/AC_Input_Power)*100; #Rectification efficiency of the half-wave rectifier\n", + "Unused_power=AC_Input_Power-Accepted_Power; #Power not used by the half_wave rectifier due to open circuited condition of the diode in watt\n", + "Power_dissipated=Accepted_Power-AC_Output_Power; #Power dissipated by the diode watt\n", + "\n", + "#Result\n", + "print 'The rectification efficiency of the half-wave rectifier= %d%% '%R_eff;\n", + "\n", + "print 'Rest 60%% of the power is the unused power and power dissipated by the diode = %d watts and %d watts' %(Unused_power ,Power_dissipated);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The rectification efficiency of the half-wave rectifier= 40% \n", + "Rest 60% of the power is the unused power and power dissipated by the diode = 50 watts and 10 watts\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.13, Page number 90" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "#Variable declaration\n", + "Vrms=230.0; #AC supply RMS voltage in V\n", + "Turns_Ratio=10/1; #turn ratio of the transformer \n", + "\n", + "#Calculation\n", + "Vpm=sqrt(2)*Vrms; #Maximum primary voltage in V\n", + "Vsm=Vpm/Turns_Ratio; #Maximum secondary voltage in V\n", + "#Case 1\n", + "Vdc=Vsm/(round(pi,2)); #Output D.C voltage, which is the average voltage in V\n", + "Vdc=round(Vdc,2);\n", + "#Case 2\n", + "PIV=Vsm; #Peak Inverse Voltage in V\n", + "\n", + "#Result\n", + "print 'The output d.c voltage= %.2f V'%Vdc;\n", + "print 'The peak inverse voltage= %.2f V'%PIV;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output d.c voltage= 10.36 V\n", + "The peak inverse voltage= 32.53 V\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.14, Page number 90-91" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "#Variable declaration\n", + "rf=20.0; #Internal resistance of the crystal diode in ohms\n", + "Vm=50.0; #Maximum applied voltage in V\n", + "RL=800.0; #Load Resistance in ohms\n", + "\n", + "#Calculation\n", + "# 1\n", + "Im=Vm/(rf+RL); #Maximum current in A\n", + "Im=Im*1000; #Maximum current in \n", + "Im=round(Im,0);\n", + "Idc=Im/pi; #Average voltage in mA\n", + "Idc=round(Idc,1);\n", + "Irms=Im/2; #RMS value of the current in mA\n", + "Irms=round(Irms,1)\n", + "\n", + "# 2\n", + "AC_Input_Power=pow(Irms/1000,2)*(rf+RL); #Input a.c power in watt\n", + "\n", + "DC_Output_Power=pow(Idc/1000,2)*RL; #Output d.c power in watt\n", + "\n", + "# 3\n", + "DC_Output_Voltage=(Idc/1000)*RL; #Output d.c voltage in V\n", + "\n", + "# 4\n", + "Rectifier_efficiency=(DC_Output_Power/AC_Input_Power)*100; # Efficiency of rectification of the half-wave rectifier\n", + "\n", + "#Result\n", + "print ' i:';\n", + "print ' Im = %d mA'%Im;\n", + "print ' Idc = %.1f mA'%Idc;\n", + "print ' Irms = %.1f mA'%Irms;\n", + "print ' ii: ';\n", + "print ' a.c input power= %.3f watt'%AC_Input_Power;\n", + "print ' d.c output power= %.3f watt'%DC_Output_Power;\n", + "print ' iii: ';\n", + "print ' d.c output voltage = %.2f volts'%DC_Output_Voltage;\n", + "print ' iv: '\n", + "print ' Efficiency of rectification = %.1f%%'%Rectifier_efficiency;\n", + "\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " i:\n", + " Im = 61 mA\n", + " Idc = 19.4 mA\n", + " Irms = 30.5 mA\n", + " ii: \n", + " a.c input power= 0.763 watt\n", + " d.c output power= 0.301 watt\n", + " iii: \n", + " d.c output voltage = 15.52 volts\n", + " iv: \n", + " Efficiency of rectification = 39.5%\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.15, Page number 91" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "#Variable declaration\n", + "Vdc=50.0; #Output d.c voltage in V\n", + "rf=25; #Diode resistance in ohm\n", + "RL=800; #Load resistance in ohm\n", + "\n", + "\n", + "#Calculation\n", + "Vm=(pi*(rf+RL)*Vdc)/RL; #[ Vdc=Vm*RL/(pi*(rf+RL)) ]Maximum value of a.c voltage required to get a volatge of Vdc from the half-wave rectifier, in V\n", + "Vm=round(Vm,0); \n", + "#Result\n", + "print 'The a.c voltage required should have maximum value of = %d V' %Vm;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c voltage required should have maximum value of = 162 V\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.16, Page number 95" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "from math import pi\n", + "#Variable declaration\n", + "rf=20; #Internal resistance of the diodes in ohm\n", + "Vrms=50; #RMS value of transformer's secondary voltage from centre tap to each end of secondary\n", + "RL=980; #Load resistance in ohm\n", + "\n", + "#Calculation\n", + "Vm=Vrms*sqrt(2); #Maximum a.c voltage in V\n", + "Im=Vm/(rf+RL); #Maximum load current in A\n", + "Im=Im*1000; #Maximum load current in mA\n", + " \n", + "# 1:\n", + "Idc=2*Im/pi; #Mean load current\n", + "\n", + "# 2:\n", + "Irms=Im/sqrt(2); #RMS value of load current in A\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print' The mean load current= %d mA'%Idc;\n", + "print 'ii:';\n", + "print ' The r.m.s value of the load current = %d mA'%Irms; " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " The mean load current= 45 mA\n", + "ii:\n", + " The r.m.s value of the load current = 50 mA\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.17, Page number 95-96" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "#Variable declaration\n", + "RL=100; #Load resistance in ohm \n", + "rf=0; #Internal resistance of the diodes in ohm\n", + "Turns_ratio=5/1; #Primary to secondary turns ratio of transformer \n", + "P_Vrms=230; #R.M.S value of voltage in primary winding in V\n", + "S_Vrms=P_Vrms/Turns_ratio; #R.M.S value of voltage in secondary winding in V\n", + "S_Vm=S_Vrms*sqrt(2); #Maximum voltage across secondary winding in V\n", + "Vm=S_Vm/2; #Maximum voltage across half seconfdary winding in V\n", + "\n", + "\n", + "#Calculation\n", + "# 1:\n", + "Idc=2*Vm/(pi*RL); #Average current in A\n", + "Vdc=Idc*RL; #d.c output voltage in V\n", + "\n", + "# 2:\n", + "PIV=S_Vm; #Peak Invers Voltage(= Maximum secondary voltage) in V\n", + "\n", + "# 3:\n", + "Pac=pow(Vm/(RL*sqrt(2)),2)*(rf+RL); #a.c input power in watt\n", + "Pdc=(pow(Idc,2)*RL); #d.c output power in watt\n", + "R_eff=(Pdc/Pac)*100; #Rectification efficiency\n", + "R_eff=round(R_eff,1);\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' The d.c output voltage= %.1f V'%Vdc;\n", + "print 'ii:';\n", + "print ' The peak inverse voltage= %d V'%PIV;\n", + "print 'iii:';\n", + "print ' Rectification efficiency= %.1f%%'%R_eff;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " The d.c output voltage= 20.7 V\n", + "ii:\n", + " The peak inverse voltage= 65 V\n", + "iii:\n", + " Rectification efficiency= 81.1%\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "NOTE: The value of rectification efficiency is calculated as 81.2% in the textbook using the formula 0.812/(1 + (rf/RL)), but by calculating using the correct values in the formula we get 81.1%." + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.18, Page number 96-97" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "#Variable declaration\n", + "fin=50; #frequency of input ac source in Hz\n", + "RL=200; #Load resistance in ohm\n", + "Turns_ratio=4/1; #Transformers turns ratio, primary to secondary.\n", + "P_Vrms=230.0; #R.M.S value of voltage in primary winding in V\n", + "S_Vrms=P_Vrms/Turns_ratio #R.M.S value of voltage in secondary winding in V\n", + "Vm=S_Vrms*sqrt(2); #Maximum voltage across secondary winding in V\n", + "\n", + "#Calculation\n", + "# 1:\n", + "Idc=2*Vm/(pi*RL); # Average current in A\n", + "Vdc=Idc*RL; #Output d.c voltage in V\n", + "Vdc=round(Vdc,0);\n", + "# 2:\n", + "PIV= Vm; #Peak Inverse Voltage(= Maximum volutage across secondary winding) in V\n", + "\n", + "# 3:\n", + "fout=2*fin; #Output frequency in Hz\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' The d.c output voltage = %d V' %Vdc;\n", + "print 'ii:';\n", + "print ' The peak inverse voltage = %.1f V'%PIV;\n", + "print 'iii:';\n", + "print ' The output frequency = %d Hz'%fout;\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " The d.c output voltage = 52 V\n", + "ii:\n", + " The peak inverse voltage = 81.3 V\n", + "iii:\n", + " The output frequency = 100 Hz\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.19, Page number 97" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "RL=100.0; #Load Resistance in ohm\n", + "Turns_ratio=5/1; #Primary to secondary turns ratio of the transformer\n", + "Vin=230.0; #R.M.S value of input voltage in V\n", + "fin=50; #Input frequency in Hz\n", + "\n", + "#Calculation\n", + "Vs_rms=Vin/Turns_ratio; #R.M.S value of the voltage in secondary winding, in v\n", + "Vs_max=Vs_rms*sqrt(2); #Maximum voltage across secondary, in V\n", + "\n", + "# (i)\n", + "#Case i: Centre-tap circuit\n", + "Vm=Vs_max/2; #Maximum voltage across half secondary winding, in V \n", + "Vdc=2*Vm*RL/(pi*RL); #DC output voltage, in V \n", + "print 'The d.c output voltage for the centre-tap circuit = %.1f V'%Vdc;\n", + "\n", + "#Case ii:\n", + "Vm=Vs_max; #Maximum voltage across secondary, in V\n", + "Vdc=2*Vm*RL/(pi*RL); #DC output voltage, in V \n", + "print 'The d.c output voltage for the bridge circuit = %.1f V'%Vdc; \n", + "\n", + "# ii:\n", + "#Case i: Centre-tap circuit\n", + "Turns_ratio=5/1; #Turns ratio of the transformer\n", + "Vs_rms=Vin/Turns_ratio; #R.M.S value of the secondary voltage in V\n", + "Vs_max=Vs_rms*sqrt(2); #Maximum voltage across the secondary in V\n", + "Vm=Vs_max/2; #Maximum voltage across half of the secondary in V\n", + "PIV=2*Vm; #Peak Inverse Voltage in V\n", + "print 'PIV in case of centre-tap circuit = %d V'%PIV;\n", + "\n", + "#Case ii: Bridge circuit\n", + "Turns_ratio=10/1; #Turns ratio of the transformer\n", + "Vs_rms=Vin/Turns_ratio; #R.M.S value of the secondary voltage in V\n", + "Vs_max=Vs_rms*sqrt(2); #Maximum voltage across the secondary in V\n", + "PIV=Vm; #Peak Inverse Voltage in V\n", + "print 'PIV in case of bridge circuit = %.1f V'%PIV;\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The d.c output voltage for the centre-tap circuit = 20.7 V\n", + "The d.c output voltage for the bridge circuit = 41.4 V\n", + "PIV in case of centre-tap circuit = 65 V\n", + "PIV in case of bridge circuit = 32.5 V\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.20, Page number 98" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "#Variable declaration\n", + "rf=1; #forward resistance of diodes of the rectifier in ohm\n", + "RL=480; #Load resistance in ohm\n", + "Vrms=240.0; #a.c supply voltage in V\n", + "Vm=Vrms*sqrt(2); #Maximum a.c voltage in V \n", + "\n", + "#Calculation\n", + "# 1:\n", + "Rt=2*rf+RL; #Total circuit resistance at any instance in ohm\n", + "Im=Vm/Rt; #Maximum load current in A\n", + "Idc=2*Im/pi; #Mean load current in A\n", + "\n", + "# 2:\n", + "Irms=Im/2; #R.M.S value of current in A\n", + "P=pow(Irms,2)*rf; #Power dissipated in each diode in watt\n", + "\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' Mean load current = %.2f A'%Idc;\n", + "print 'ii:';\n", + "print ' Power dissipated in each diode= %.3f W'%P;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " Mean load current = 0.45 A\n", + "ii:\n", + " Power dissipated in each diode= 0.124 W\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "NOTE: The value of power dissipated is approximately 0.124 W , but in the textbook it is approximated as 0.123W." + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.21, Page number 98-99" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt,pi\n", + "#Variable declaration\n", + "RL=12000; #Load resistance in ohm\n", + "V0=0.7; #Potential barrier voltage of diodes in V\n", + "Vrms=12; #R.M.S value of input a.c voltage in V\n", + "Vs_pk=Vrms*sqrt(2); #Peak secondary voltage in V\n", + "\n", + "#Calculation\n", + "# 1:\n", + "Vout_pk=Vs_pk-(2*V0); #Peak output voltage in V\n", + "Vav=2*Vout_pk/pi; #Average output voltage in V\n", + "Vav=round(Vav,2);\n", + "\n", + "# 2:\n", + "Iav=Vav/RL; #Average output current in A\n", + "Iav=Iav*pow(10,6); #Average output current in \u03bcA\n", + "\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' Average output voltage=%.2f V'%Vav;\n", + "print 'ii:';\n", + "print ' Average output current=%.1f \u03bcA'%Iav;\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " Average output voltage=9.91 V\n", + "ii:\n", + " Average output current=825.8 \u03bcA\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.22, Page number 102" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vdc_A=10; #Supply voltage of A in V\n", + "Vdc_B=25; #Supply voltage of B in V\n", + "Vac_rms_a=0.5; #Ripples in power supply A in V\n", + "Vac_rms_b=0.001; #Ripples in power supply B in V\n", + "\n", + "#Calculation\n", + "#For power supply A\n", + "ripple_factor_A=Vac_rms_a/Vdc_A; #Ripple factor of power supply A\n", + "\n", + "#For power supply B\n", + "ripple_factor_B=Vac_rms_b/Vdc_B; #Ripple factor of power supply B\n", + "\n", + "#Result\n", + "if(ripple_factor_A<ripple_factor_B):\n", + " print 'Power supply A is better';\n", + "else :\n", + " print 'Power supply B is better';" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power supply B is better\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.23, Page number 105-106" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "#Variable declaration\n", + "RL=2200; #Load resistance in ohm\n", + "C=50*pow(10,-6); #Capacitance of the capacitor used in filter circuit in F\n", + "V0=0.7; #Potential barrier voltage of the diodes of the rectifier in V\n", + "Vrms=115.0; #R.M.S value of input a.c voltage in V \n", + "fin=60; #Frequency of input a.c voltage in Hz\n", + "Turns_ratio=10/1; #Primary to secondary, turns ratio of the transformer \n", + "\n", + "#Calculation\n", + "Vp_prim=Vrms*sqrt(2); #Peak primary voltage in V\n", + "Vp_sec=Vp_prim/Turns_ratio; #Peak secondary voltage in V\n", + "Vp_in= Vp_sec - 2*V0; #Peak full wave rectified voltage at the filter input in V\n", + "f=2*fin; #Output frequency in Hz\n", + "Vdc=Vp_in*(1-(1/(2*f*RL*C))); #Output d.c voltage in V\n", + "\n", + "#Result\n", + "print 'The output d.c voltage is = %.1f V'%Vdc;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output d.c voltage is = 14.3 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.24, Page number 106" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "#Variable declaration\n", + "R=25; #d.c resistance of the choke in ohm\n", + "RL=750; #Load resistance in ohm\n", + "Vm=25.7; #Maximum value of the pulsating output from the rectifier in V\n", + "\n", + "#Calculation\n", + "V_dc=2*Vm/pi; #d.c component of the pulsating output in V\n", + "V_dc=round(V_dc,1);\n", + "V_dc_out=(V_dc*RL)/(R+RL); #Output d.c voltage in V\n", + "V_dc_out=round(V_dc_out,1);\n", + "\n", + "#Result\n", + "print ' The output d.c voltage accross the load resistance is = %.1f V'%V_dc_out;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " The output d.c voltage accross the load resistance is = 15.9 V\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.25, Page number 113-114" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei=120.0; #Input Voltage in V\n", + "Vz=50.0; #Zener Voltage in V\n", + "R=5000.0; #Resistance of the series resistor in ohm\n", + "RL=10000.0; #Load resistance in ohm\n", + "\n", + "#Calculation\n", + "V=Ei*RL/(R+RL); #Voltage across the open circuit if the zener diode is removed\n", + "if(V>Vz):\n", + " #Zener diode is in ON state\n", + " # i:\n", + " Output_voltage=Vz; #Voltage across load resistance, in V\n", + " #ii:\n", + " Voltage_R=Ei-Vz; #Voltage across the series resistance R, in V\n", + " #iii:\n", + " IL=Vz/RL; #Load current through RL in A\n", + " IL=IL*1000; #Load current through RL in mA\n", + " I=Voltage_R/R; #Current through the series resistance in A\n", + " I=I*1000; #Current through the series resistance in mA\n", + " Iz=I-IL; #Applying Kirchhoff's first law, Zener current in mA\n", + " \n", + " #Result\n", + " print 'i) The output voltage across the load resistance RL = %d V'%Output_voltage;\n", + " print 'ii) The voltage drop across the series resistance R = %d V'%Voltage_R;\n", + " print 'iii) The current through the zener diode = %d mA'%Iz;\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) The output voltage across the load resistance RL = 50 V\n", + "ii) The voltage drop across the series resistance R = 70 V\n", + "iii) The current through the zener diode = 9 mA\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.26, Page number 114-115" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Max_V=120.0; #Maximum input voltage in V\n", + "Min_V=80.0; #Minimum input voltage in V\n", + "R=5000.0; #Series resistance in ohm\n", + "RL=10000.0; #Load resistance in ohm\n", + "Vz=50.0; #Zener voltage in V\n", + "\n", + "\n", + "#Calculation\n", + "#Case i: Maximum zener current\n", + "#Zener current will be maximum when the input voltage is maximum\n", + "V_R_max=Max_V-Vz; #Voltage across series resistance R, in V\n", + "I_max=V_R_max/R; #Current through series resistance R, in A\n", + "I_max=I_max*1000; #Current through series resistance R, in mA\n", + "IL_max=Vz/RL; #Load current in A\n", + "IL_max=IL_max*1000; #Load current in mA\n", + "Iz_max=I_max-IL_max; #Applying Kirchhoff's first law, Zener current in mA;\n", + "\n", + "#Case ii: Minimum zener current\n", + "#The zener will conduct minimum current when the input voltage is minimum\n", + "V_R_min=Min_V-Vz; #Voltage across series resistance R, in V\n", + "I_min=V_R_min/R; #Current through series resistance R, in A\n", + "I_min=I_min*1000; #Current through series resistance R, in mA\n", + "IL_min=Vz/RL; #Load current in A\n", + "IL_min=IL_min*1000; #Load current in mA\n", + "Iz_min=I_min-IL_min; #Applying Kirchhoff's first law, Zener current in mA\n", + "\n", + "#Result\n", + "print 'Case i: ';\n", + "print 'Maximum zener current = %d mA'%Iz_max;\n", + "print 'Case ii: ';\n", + "print 'Minimum zener current = %d mA'%Iz_min;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Case i: \n", + "Maximum zener current = 9 mA\n", + "Case ii: \n", + "Minimum zener current = 1 mA\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.27, Page number 115" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei=12; #Input voltage in V\n", + "Vz=7.2; #Zener voltage in V\n", + "E0=Vz; #Voltage to be maintained across the load in V\n", + "IL_max=0.1; #Maximum load current in A\n", + "IL_min=0.012; #Minimum load current in A\n", + "Iz_min=0.01; #Minimum zener current in A\n", + "\n", + "#Calculation\n", + "#When the load current is maximum at minimum value of RL, the zener current is minimum and, as the load current decreases due to increase in value of RL\n", + "R=(Ei-E0)/(Iz_min+IL_max); #The value of series resistance R to maintain a voltage=E0 across load, in ohm\n", + "\n", + "#Result\n", + "print 'The minimum value of series resistance R to maintain a constant value of 7.2 V is = %.1f \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The minimum value of series resistance R to maintain a constant value of 7.2 V is = 43.6 \u03a9\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "NOTE: The actual value of R is 43.636363 (recurring) but, in the textbook the value of R is wrongly approximated 43.5 \u03a9" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.28, Page number 115" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei_min=22; #Minimum input voltage in V\n", + "Ei_max=28; #Maximum input voltage in V\n", + "Vz=18; #Zener voltage in V\n", + "E0=Vz; #Constant voltage maintained across the load resistance in V\n", + "Iz_min=0.2; #Minimum zener current in A\n", + "Iz_max=2; #Maximum zener current in A\n", + "RL=18; #Load resistance in \u03a9\n", + "\n", + "#Calculation\n", + "IL=Vz/RL; #Constant value of load current in A\n", + "#When the input voltage is minimum, the zener current will be minimum\n", + "R=(Ei_min-E0)/(Iz_min+IL) #The value of series resistance so that the voltage E0 across RL remains constant\n", + "\n", + "print 'The value of series resistance R, to maintain constant voltage E0 across RL = %.2f \u03a9.'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of series resistance R, to maintain constant voltage E0 across RL = 3.33 \u03a9.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.29, Page number 116 " + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=10 #Zener voltage in V\n", + "Ei_min=13; #Minimum input voltage in V\n", + "Ei_max=16; #Maximum input voltage in V\n", + "Iz_min=0.015; #Minimum zener current in A\n", + "IL_min=0.01; #Minimum load current in A \n", + "IL_max=0.085; #Maximum load curremt in A\n", + "E0=Vz; #Constant voltage to be maintained in V \n", + "\n", + "#Calculation\n", + "#The zener current will be minimum when the input voltage will be minimum and at that time the load current will be maximum\n", + "R=(Ei_min-E0)/(Iz_min+IL_max); #The value of series resistance R to maintain a constant voltage across load\n", + "\n", + "\n", + "#Result\n", + "print 'The value of series resistance to maintain a constant voltage across the load resistance is = %d \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of series resistance to maintain a constant voltage across the load resistance is = 30 \u03a9\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.30, Page number 116" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Iz=0.2; #Current rating of each zener in A\n", + "Vz=15; #Voltage rating of each zener in V\n", + "Ei=45; #Input voltage in V\n", + "\n", + "#Calculation\n", + "# i: Regulated output voltage across the two zener diodes \n", + "E0=2*Vz; # V\n", + "\n", + "# ii: Value of series resistance \n", + "R=(Ei-E0)/Iz; # \u03a9\n", + "\n", + "#Result\n", + "print 'i) The regulated output voltage = %d V'%E0;\n", + "print 'ii) The value of the series resistance = %d \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) The regulated output voltage = 30 V\n", + "ii) The value of the series resistance = 75 \u03a9\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.31, Page number 116-117" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=10; #Voltage rating of each zener in V\n", + "Iz=1; #Current rating of each zener in A\n", + "Ei=45; #Input unregulated voltage in V\n", + "\n", + "#Calculation\n", + "#Regulated output voltage across the three zener diodes\n", + "E0=3*Vz; # V\n", + "\n", + "#Value of series resistance to obtain a 30V regulated output voltage\n", + "R=(Ei-E0)/Iz; # \u03a9\n", + "\n", + "#Result\n", + "print 'Value of series resistance to obtain a 30V regulated output voltage = %d \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Value of series resistance to obtain a 30V regulated output voltage = 15 \u03a9\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.32, Page number 117" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "RL=2000.0; #Load resistance in \u03a9\n", + "R=200.0; #Series resistance in \u03a9\n", + "Iz=0.025; #Zener current rating in A\n", + "E0=30.0; #Output regulated voltage in V \n", + "\n", + "#Calculation\n", + "#Minimum input voltage will be required when Iz=0 A, and at this condition\n", + "IL=E0/RL; #Load current during Iz=0, in A\n", + "I=IL; #According to Kirchhoff's law, total current, in A\n", + "Ei_min=E0+(I*R); #Minimum input voltage in V\n", + "\n", + "#The maximum input voltage required will be when Iz=0.025 A, and at that condition \n", + "I=IL+Iz; #According to Kirchhoff's law, total current, in A\n", + "Ei_max=E0+(I*R); #maximum input voltage in V\n", + "\n", + "\n", + "#Result\n", + "print 'The required range of input voltage is from %d V to %d V'%(Ei_min,Ei_max); \n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required range of input voltage is from 33 V to 38 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.33, Page number 117-118" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei=16; #Unregulated input voltage in V\n", + "E0=12; #Output regulated voltage in V\n", + "IL_min=0; #Minimum load current in A\n", + "IL_max=0.2; #Maximum load current in A\n", + "Iz_min=0; #Minimum zener current in A\n", + "Iz_max=0.2; #Maximum zener current in A\n", + "\n", + "#Calculation\n", + "#As the regulated voltage required across the load is 12V\n", + "Vz=E0; #Voltage rating of zener diode in V\n", + "V_R=Ei-E0; #Constant Voltage that should remain across series resistance \n", + "#The minimum zener current will occur when the curent in the load in maximum\n", + "R=V_R/(Iz_min+IL_max); #Series resistance in \u03a9\n", + "\n", + "Max_power_rating=Vz*Iz_max; #Maximum power rating of zener diode in W\n", + "\n", + "#Result\n", + "print 'The regulator is designed using a Seris resistance of %d \u03a9 and a zener diode of zener voltage %d V'%(R,Vz);\n", + "print 'The maximum power rating of the zener diode is = %.1f W '%Max_power_rating;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulator is designed using a Seris resistance of 20 \u03a9 and a zener diode of zener voltage 12 V\n", + "The maximum power rating of the zener diode is = 2.4 W \n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.34, Page number 118" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=12; #Source voltage in V\n", + "R=1000; #Series resistance in \u03a9\n", + "RL=5000; #Load resistance in \u03a9\n", + "Vz=6; #Voltage rating of zener in V\n", + "\n", + "#Calculation\n", + "#Case i: zener is working properly\n", + "#The output voltage across the load will be equal to the zener voltage.\n", + "V0=Vz; # V\n", + "\n", + "#Result\n", + "print 'Case i: Output voltage when zener is working properly is %d V'%V0;\n", + "\n", + "#Case ii: zener is shorted\n", + "#As the zener is shorted, the potential difference across the load will be zero\n", + "V0=0; #V\n", + "\n", + "#Result\n", + "print 'Case ii: Output voltage when zener is short circuited is %d V'%V0;\n", + " \n", + "#Case iii: zener is open circuited\n", + "#If the zener is open circuited, the total voltage will drop across R and RL according to the voltage divider rule\n", + "V0=V*RL/(R+RL); #V\n", + "\n", + "#Result\n", + "print 'Case iii: Output voltage when zener is open circuited is %d V'%V0;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Case i: Output voltage when zener is working properly is 6 V\n", + "Case ii: Output voltage when zener is short circuited is 0 V\n", + "Case iii: Output voltage when zener is open circuited is 10 V\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_5.ipynb new file mode 100644 index 00000000..a6008ee1 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_5.ipynb @@ -0,0 +1,1624 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3452607f2168b562d941493f83083042eaa5a2d316715f9d9f089ff03d73fdb8" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 6: SEMICONDUCTOR DIODE" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.2, Page number 81" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration \n", + "Vf =20; #Peak Input Voltage in V\n", + "rf=10; #Forward Resistance in ohms\n", + "RL=500.0; #Load Resistance in ohms\n", + "V0=0.7; #Potential Barrier Voltage of the diodes in V\n", + "\n", + "#Calculation\n", + "#(1)\n", + "If_peak=(Vf-V0)/(rf+RL); #Peak current through the diode in A\n", + "If_peak=If_peak*1000; #Peak current through the diode in mA\n", + "#(2)\n", + "V_out_peak =If_peak * RL/1000 ; #Peak output voltage in V\n", + "\n", + "#For an Ideal diode\n", + "If_peak_ideal=Vf/RL; #Peak current through the ideal diode in A\n", + "If_peak_ideal=If_peak_ideal*1000; #Peak current through the ideal diode in mA\n", + "\n", + "V_out_peak_ideal=If_peak_ideal * RL/1000; # Peak output voltage in case of the ideal diode in V\n", + "\n", + "#Result\n", + "print '(i) Peak current through the diode = %.1f mA '%If_peak;\n", + "print '(ii) Peak output voltage = %.1f V'%V_out_peak;\n", + "print '(iii) Peak current through the ideal diode = %d mA '%If_peak_ideal;\n", + "print '(iv) Peak output voltage in case of the ideal diode = %d V'%V_out_peak_ideal;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) Peak current through the diode = 37.8 mA \n", + "(ii) Peak output voltage = 18.9 V\n", + "(iii) Peak current through the ideal diode = 40 mA \n", + "(iv) Peak output voltage in case of the ideal diode = 20 V\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.3, Page number 82" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V =10.0; #Battery voltage in V\n", + "R1=50.0; #Resistor 1's resistance in ohms\n", + "R2=5.0; #Resistor 2's resistance in ohms\n", + "\n", + "#Calculation\n", + "#Using Thevenin's Theorem to find current in the diode\n", + "E0=(R2/(R1+R2))*V; #Thevenin's Voltage in V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's Resistance in ohms\n", + "\n", + "I0=E0/R0; #Current through the diode in A\n", + "I0=I0*1000; #Current through the diode in mA\n", + "\n", + "#Result\n", + "print 'Current through the diode = %d mA '%Io;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current through the diode = 200 mA \n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.4, Page number 82-83 " + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V =10.0; #Battery voltage in V\n", + "R0=48.0; #Resistance of the resistor in ohms\n", + "Rd=1.0; #Forward resistance of the diodes in ohms\n", + "Vd=0.7; #Potential barrier of the diodes in V\n", + "#Calculation\n", + "V_net=V-Vd-Vd; #Net voltage in the circuit in V\n", + "R_net=R0+Rd+Rd #Net resistance of the circuit in ohms\n", + "I_net=V_net/R_net; #Net current in the circuit in A\n", + "I_net=I_net*1000; #Net current in mA\n", + "\n", + "#Result\n", + "print 'Net current in the circuit = %d mA '%I_net;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net current in the circuit = 172 mA \n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.5, Page number 83" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "E1=24; #Voltage of first source in V\n", + "E2=4; #Voltage of second source in V\n", + "V0=0.7; #Potential barrier of diodes in V\n", + "R=2000; #Resistance of the given resistor in ohms\n", + "Rd=0; #Forward resistance of the diodes in ohms\n", + "\n", + "#Calculation\n", + "I=(E1-E2-V0)/(R+Rd); #Current in the circuit in A\n", + "I=I*1000; #Current in the circuit in mA \n", + "\n", + "#Result\n", + "print 'Current in the circuit = %.2f mA '%I;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current in the circuit = 9.65 mA \n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.6, Page number 83-84" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V=20; #Voltage of source in V\n", + "V0=0.3; #Potential barrier of Germanium diode in V\n", + "V0_Si=0.7; #Potetial barrier of Silicon diode in V \n", + "\n", + "#Calculation\n", + "#As only Ge diode is turned on due to less potential barrier,\n", + "VA=V-V0; #Voltage VA acroos resistor of 3k ohms\n", + "\n", + "#Result\n", + "print 'Voltage VA = %.1f mA '%VA;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage VA = 19.7 mA \n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.7, Page number 84" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V=10; #Voltage of source in V\n", + "V0=0.7; #Potetial barrier of Silicon diode in V \n", + "# Resistance of all resistors in ohms\n", + "R1=2000;\n", + "R2=2000;\n", + "R3=2000;\n", + "\n", + "#Calculation\n", + "Id=(V-V0)/(R2+2*R3); #Current through the diodes in A\n", + "VQ=2*Id*R3; #Voltage VQ across the grounded 2k ohm resistor in V\n", + "Id=Id*1000; #Current through the diodes in mA\n", + "\n", + "#Result\n", + "print 'Voltage VQ = %.1f V '%VQ;\n", + "print 'Current through the diodes, Id = %.2f mA '%Id;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage VQ = 6.2 V \n", + "Current through the diodes, Id = 1.55 mA \n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.8, Page number 84" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "V=15; #Voltage of source in V\n", + "V0=0.7; #Potetial barrier of Silicon diode in V \n", + "R=500 # Resistance of all resistors in ohms\n", + "\n", + "#Calculation\n", + "I1=(V-V0)/R; #total current in the circuit in A\n", + "Id1=I1/2; #current in first diode in A\n", + "Id1=Id1*1000; #current in first diode in mA\n", + "Id2=Id1 #current in second diode in mA\n", + "\n", + "#Result\n", + "print ('Current in first diode = %.1f mA'%Id1);\n", + "print ('Current in second diode = %.1f mA'%Id2);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current in first diode = 14.3 mA\n", + "Current in second diode = 14.3 mA\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.9, Page number 85" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "E=20; #Voltage of source in V\n", + "V0_d1=0.7; #Potetial barrier of first Silicon diode in V\n", + "V0_d2=0.7; #Potetial barrier of second Silicon diode in V\n", + "R1=5600; # Resistance of first resistor in ohms\n", + "R2=3300; # Resistance of second resistor in ohms\n", + "\n", + "#Calculation\n", + "I2=V0_d2/R2; #Current I2 through resistor R2 in A\n", + "I2=round((I2*1000),3); #Current I2 through resistor R2 in mA\n", + "I1=(E-V0_d1-V0_d2)/R1; #Current I1 through resistor R1 in A\n", + "I1=round((I1*1000),2); #Current I1 through resistor R1 in mA\n", + "I3=I1-I2; #Current I3 through diode D2 in mA\n", + "\n", + "#Result\n", + "print 'Current I1= %.2f mA'%I1;\n", + "print 'Current I1= %.3f mA'%I2;\n", + "print 'Current I1= %.3f mA'%I3;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current I1= 3.32 mA\n", + "Current I1= 0.212 mA\n", + "Current I1= 3.108 mA\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.10, Page number 85-86" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable Declaration\n", + "E=10.0; #Voltage of source in V\n", + "V0=0.7; #Potetial barrier of Silicon diode in V\n", + "R1=2000; # Resistance of first resistor in ohms\n", + "R2=8000; # Resistance of second resistor in ohms\n", + "R3=4000; #Resistance of third resistor in ohms\n", + "R4=6000; #Resistance of fourth resistor in ohms\n", + "\n", + "#Calculation\n", + "#Assuming the given diode to be reverse bised and calculating voltage across it's terminals\n", + "V1=(E/(R1+R2))*R2; #voltage at the P side of the diode, i.e, voltage across R2 resistor,according to voltage divider rule, in V\n", + "V2=(E/(R3+R4))*R4; #voltage at the N side of the diode, i.e, voltage across R4 resistor,according to voltage divider rule, in V\n", + "\n", + "#Result\n", + "if((V1-V2)>=V0):\n", + " print 'Our assumption was wrong and, the diode is forward biased';\n", + "else:\n", + " print 'The diode is reverse biased';\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Our assumption was wrong and, the diode is forward biased\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.11, Page number 86" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=2; #Supply voltage in V\n", + "V0=0.7; #Potential barrier voltage of the diode in V \n", + "R1=4000.0; #Resistance of first resistor in \u03a9\n", + "R2=1000.0; ##Resistance of second resistor in \u03a9\n", + "\n", + "#Calculation\n", + "#Assuming the diode to be in ON state\n", + "I1=((V-V0)/R1)*1000; #Current through resistor R1, in mA\n", + "I2=(V0/R2)*1000; #Current through resistor R2, in mA\n", + "ID=I1-I2; #Diode current, in mA\n", + "\n", + "if(ID<0):\n", + " #Since the diode current is negative, the diode must be OFF \n", + " ID=0; #True value of diode current, mA\n", + " \n", + "#As the diode is in OFF state it can be replaced by an open ciruit equivalent \n", + "VD=V*R2/(R1 +R2); #Voltage across the diode, in V\n", + "\n", + "#Result\n", + "print 'ID =%d mA'%ID;\n", + "print 'VD =%.1f V'%VD;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ID =0 mA\n", + "VD =0.4 V\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.12, Page number 89-90" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "AC_Input_Power=100.0; #Input AC Power in watts\n", + "AC_Output_Power=40.0; #Output AC Power in watts\n", + "Accepted_Power=50.0; #Power accepted by the half-wave rectifier in watt\n", + "\n", + "#Calculation\n", + "R_eff=(AC_Output_Power/AC_Input_Power)*100; #Rectification efficiency of the half-wave rectifier\n", + "Unused_power=AC_Input_Power-Accepted_Power; #Power not used by the half_wave rectifier due to open circuited condition of the diode in watt\n", + "Power_dissipated=Accepted_Power-AC_Output_Power; #Power dissipated by the diode watt\n", + "\n", + "#Result\n", + "print 'The rectification efficiency of the half-wave rectifier= %d%% '%R_eff;\n", + "\n", + "print 'Rest 60%% of the power is the unused power and power dissipated by the diode = %d watts and %d watts' %(Unused_power ,Power_dissipated);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The rectification efficiency of the half-wave rectifier= 40% \n", + "Rest 60% of the power is the unused power and power dissipated by the diode = 50 watts and 10 watts\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.13, Page number 90" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "#Variable declaration\n", + "Vrms=230.0; #AC supply RMS voltage in V\n", + "Turns_Ratio=10/1; #turn ratio of the transformer \n", + "\n", + "#Calculation\n", + "Vpm=sqrt(2)*Vrms; #Maximum primary voltage in V\n", + "Vsm=Vpm/Turns_Ratio; #Maximum secondary voltage in V\n", + "#Case 1\n", + "Vdc=Vsm/(round(pi,2)); #Output D.C voltage, which is the average voltage in V\n", + "Vdc=round(Vdc,2);\n", + "#Case 2\n", + "PIV=Vsm; #Peak Inverse Voltage in V\n", + "\n", + "#Result\n", + "print 'The output d.c voltage= %.2f V'%Vdc;\n", + "print 'The peak inverse voltage= %.2f V'%PIV;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output d.c voltage= 10.36 V\n", + "The peak inverse voltage= 32.53 V\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.14, Page number 90-91" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "#Variable declaration\n", + "rf=20.0; #Internal resistance of the crystal diode in ohms\n", + "Vm=50.0; #Maximum applied voltage in V\n", + "RL=800.0; #Load Resistance in ohms\n", + "\n", + "#Calculation\n", + "# 1\n", + "Im=Vm/(rf+RL); #Maximum current in A\n", + "Im=Im*1000; #Maximum current in \n", + "Im=round(Im,0);\n", + "Idc=Im/pi; #Average voltage in mA\n", + "Idc=round(Idc,1);\n", + "Irms=Im/2; #RMS value of the current in mA\n", + "Irms=round(Irms,1)\n", + "\n", + "# 2\n", + "AC_Input_Power=pow(Irms/1000,2)*(rf+RL); #Input a.c power in watt\n", + "\n", + "DC_Output_Power=pow(Idc/1000,2)*RL; #Output d.c power in watt\n", + "\n", + "# 3\n", + "DC_Output_Voltage=(Idc/1000)*RL; #Output d.c voltage in V\n", + "\n", + "# 4\n", + "Rectifier_efficiency=(DC_Output_Power/AC_Input_Power)*100; # Efficiency of rectification of the half-wave rectifier\n", + "\n", + "#Result\n", + "print ' i:';\n", + "print ' Im = %d mA'%Im;\n", + "print ' Idc = %.1f mA'%Idc;\n", + "print ' Irms = %.1f mA'%Irms;\n", + "print ' ii: ';\n", + "print ' a.c input power= %.3f watt'%AC_Input_Power;\n", + "print ' d.c output power= %.3f watt'%DC_Output_Power;\n", + "print ' iii: ';\n", + "print ' d.c output voltage = %.2f volts'%DC_Output_Voltage;\n", + "print ' iv: '\n", + "print ' Efficiency of rectification = %.1f%%'%Rectifier_efficiency;\n", + "\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " i:\n", + " Im = 61 mA\n", + " Idc = 19.4 mA\n", + " Irms = 30.5 mA\n", + " ii: \n", + " a.c input power= 0.763 watt\n", + " d.c output power= 0.301 watt\n", + " iii: \n", + " d.c output voltage = 15.52 volts\n", + " iv: \n", + " Efficiency of rectification = 39.5%\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.15, Page number 91" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "#Variable declaration\n", + "Vdc=50.0; #Output d.c voltage in V\n", + "rf=25; #Diode resistance in ohm\n", + "RL=800; #Load resistance in ohm\n", + "\n", + "\n", + "#Calculation\n", + "Vm=(pi*(rf+RL)*Vdc)/RL; #[ Vdc=Vm*RL/(pi*(rf+RL)) ]Maximum value of a.c voltage required to get a volatge of Vdc from the half-wave rectifier, in V\n", + "Vm=round(Vm,0); \n", + "#Result\n", + "print 'The a.c voltage required should have maximum value of = %d V' %Vm;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The a.c voltage required should have maximum value of = 162 V\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.16, Page number 95" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "from math import pi\n", + "#Variable declaration\n", + "rf=20; #Internal resistance of the diodes in ohm\n", + "Vrms=50; #RMS value of transformer's secondary voltage from centre tap to each end of secondary\n", + "RL=980; #Load resistance in ohm\n", + "\n", + "#Calculation\n", + "Vm=Vrms*sqrt(2); #Maximum a.c voltage in V\n", + "Im=Vm/(rf+RL); #Maximum load current in A\n", + "Im=Im*1000; #Maximum load current in mA\n", + " \n", + "# 1:\n", + "Idc=2*Im/pi; #Mean load current\n", + "\n", + "# 2:\n", + "Irms=Im/sqrt(2); #RMS value of load current in A\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print' The mean load current= %d mA'%Idc;\n", + "print 'ii:';\n", + "print ' The r.m.s value of the load current = %d mA'%Irms; " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " The mean load current= 45 mA\n", + "ii:\n", + " The r.m.s value of the load current = 50 mA\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.17, Page number 95-96" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "#Variable declaration\n", + "RL=100; #Load resistance in ohm \n", + "rf=0; #Internal resistance of the diodes in ohm\n", + "Turns_ratio=5/1; #Primary to secondary turns ratio of transformer \n", + "P_Vrms=230; #R.M.S value of voltage in primary winding in V\n", + "S_Vrms=P_Vrms/Turns_ratio; #R.M.S value of voltage in secondary winding in V\n", + "S_Vm=S_Vrms*sqrt(2); #Maximum voltage across secondary winding in V\n", + "Vm=S_Vm/2; #Maximum voltage across half seconfdary winding in V\n", + "\n", + "\n", + "#Calculation\n", + "# 1:\n", + "Idc=2*Vm/(pi*RL); #Average current in A\n", + "Vdc=Idc*RL; #d.c output voltage in V\n", + "\n", + "# 2:\n", + "PIV=S_Vm; #Peak Invers Voltage(= Maximum secondary voltage) in V\n", + "\n", + "# 3:\n", + "Pac=pow(Vm/(RL*sqrt(2)),2)*(rf+RL); #a.c input power in watt\n", + "Pdc=(pow(Idc,2)*RL); #d.c output power in watt\n", + "R_eff=(Pdc/Pac)*100; #Rectification efficiency\n", + "R_eff=round(R_eff,1);\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' The d.c output voltage= %.1f V'%Vdc;\n", + "print 'ii:';\n", + "print ' The peak inverse voltage= %d V'%PIV;\n", + "print 'iii:';\n", + "print ' Rectification efficiency= %.1f%%'%R_eff;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " The d.c output voltage= 20.7 V\n", + "ii:\n", + " The peak inverse voltage= 65 V\n", + "iii:\n", + " Rectification efficiency= 81.1%\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "NOTE: The value of rectification efficiency is calculated as 81.2% in the textbook using the formula 0.812/(1 + (rf/RL)), but by calculating using the correct values in the formula we get 81.1%." + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.18, Page number 96-97" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt \n", + "#Variable declaration\n", + "fin=50; #frequency of input ac source in Hz\n", + "RL=200; #Load resistance in ohm\n", + "Turns_ratio=4/1; #Transformers turns ratio, primary to secondary.\n", + "P_Vrms=230.0; #R.M.S value of voltage in primary winding in V\n", + "S_Vrms=P_Vrms/Turns_ratio #R.M.S value of voltage in secondary winding in V\n", + "Vm=S_Vrms*sqrt(2); #Maximum voltage across secondary winding in V\n", + "\n", + "#Calculation\n", + "# 1:\n", + "Idc=2*Vm/(pi*RL); # Average current in A\n", + "Vdc=Idc*RL; #Output d.c voltage in V\n", + "Vdc=round(Vdc,0);\n", + "# 2:\n", + "PIV= Vm; #Peak Inverse Voltage(= Maximum volutage across secondary winding) in V\n", + "\n", + "# 3:\n", + "fout=2*fin; #Output frequency in Hz\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' The d.c output voltage = %d V' %Vdc;\n", + "print 'ii:';\n", + "print ' The peak inverse voltage = %.1f V'%PIV;\n", + "print 'iii:';\n", + "print ' The output frequency = %d Hz'%fout;\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " The d.c output voltage = 52 V\n", + "ii:\n", + " The peak inverse voltage = 81.3 V\n", + "iii:\n", + " The output frequency = 100 Hz\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.19, Page number 97" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "RL=100.0; #Load Resistance in ohm\n", + "Turns_ratio=5/1; #Primary to secondary turns ratio of the transformer\n", + "Vin=230.0; #R.M.S value of input voltage in V\n", + "fin=50; #Input frequency in Hz\n", + "\n", + "#Calculation\n", + "Vs_rms=Vin/Turns_ratio; #R.M.S value of the voltage in secondary winding, in v\n", + "Vs_max=Vs_rms*sqrt(2); #Maximum voltage across secondary, in V\n", + "\n", + "# (i)\n", + "#Case i: Centre-tap circuit\n", + "Vm=Vs_max/2; #Maximum voltage across half secondary winding, in V \n", + "Vdc=2*Vm*RL/(pi*RL); #DC output voltage, in V \n", + "print 'The d.c output voltage for the centre-tap circuit = %.1f V'%Vdc;\n", + "\n", + "#Case ii:\n", + "Vm=Vs_max; #Maximum voltage across secondary, in V\n", + "Vdc=2*Vm*RL/(pi*RL); #DC output voltage, in V \n", + "print 'The d.c output voltage for the bridge circuit = %.1f V'%Vdc; \n", + "\n", + "# ii:\n", + "#Case i: Centre-tap circuit\n", + "Turns_ratio=5/1; #Turns ratio of the transformer\n", + "Vs_rms=Vin/Turns_ratio; #R.M.S value of the secondary voltage in V\n", + "Vs_max=Vs_rms*sqrt(2); #Maximum voltage across the secondary in V\n", + "Vm=Vs_max/2; #Maximum voltage across half of the secondary in V\n", + "PIV=2*Vm; #Peak Inverse Voltage in V\n", + "print 'PIV in case of centre-tap circuit = %d V'%PIV;\n", + "\n", + "#Case ii: Bridge circuit\n", + "Turns_ratio=10/1; #Turns ratio of the transformer\n", + "Vs_rms=Vin/Turns_ratio; #R.M.S value of the secondary voltage in V\n", + "Vs_max=Vs_rms*sqrt(2); #Maximum voltage across the secondary in V\n", + "PIV=Vm; #Peak Inverse Voltage in V\n", + "print 'PIV in case of bridge circuit = %.1f V'%PIV;\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The d.c output voltage for the centre-tap circuit = 20.7 V\n", + "The d.c output voltage for the bridge circuit = 41.4 V\n", + "PIV in case of centre-tap circuit = 65 V\n", + "PIV in case of bridge circuit = 32.5 V\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.20, Page number 98" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\n", + "#Variable declaration\n", + "rf=1; #forward resistance of diodes of the rectifier in ohm\n", + "RL=480; #Load resistance in ohm\n", + "Vrms=240.0; #a.c supply voltage in V\n", + "Vm=Vrms*sqrt(2); #Maximum a.c voltage in V \n", + "\n", + "#Calculation\n", + "# 1:\n", + "Rt=2*rf+RL; #Total circuit resistance at any instance in ohm\n", + "Im=Vm/Rt; #Maximum load current in A\n", + "Idc=2*Im/pi; #Mean load current in A\n", + "\n", + "# 2:\n", + "Irms=Im/2; #R.M.S value of current in A\n", + "P=pow(Irms,2)*rf; #Power dissipated in each diode in watt\n", + "\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' Mean load current = %.2f A'%Idc;\n", + "print 'ii:';\n", + "print ' Power dissipated in each diode= %.3f W'%P;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " Mean load current = 0.45 A\n", + "ii:\n", + " Power dissipated in each diode= 0.124 W\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "NOTE: The value of power dissipated is approximately 0.124 W , but in the textbook it is approximated as 0.123W." + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.21, Page number 98-99" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt,pi\n", + "#Variable declaration\n", + "RL=12000; #Load resistance in ohm\n", + "V0=0.7; #Potential barrier voltage of diodes in V\n", + "Vrms=12; #R.M.S value of input a.c voltage in V\n", + "Vs_pk=Vrms*sqrt(2); #Peak secondary voltage in V\n", + "\n", + "#Calculation\n", + "# 1:\n", + "Vout_pk=Vs_pk-(2*V0); #Peak output voltage in V\n", + "Vav=2*Vout_pk/pi; #Average output voltage in V\n", + "Vav=round(Vav,2);\n", + "\n", + "# 2:\n", + "Iav=Vav/RL; #Average output current in A\n", + "Iav=Iav*pow(10,6); #Average output current in \u03bcA\n", + "\n", + "\n", + "#Result\n", + "print 'i:';\n", + "print ' Average output voltage=%.2f V'%Vav;\n", + "print 'ii:';\n", + "print ' Average output current=%.1f \u03bcA'%Iav;\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i:\n", + " Average output voltage=9.91 V\n", + "ii:\n", + " Average output current=825.8 \u03bcA\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.22, Page number 102" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vdc_A=10; #Supply voltage of A in V\n", + "Vdc_B=25; #Supply voltage of B in V\n", + "Vac_rms_a=0.5; #Ripples in power supply A in V\n", + "Vac_rms_b=0.001; #Ripples in power supply B in V\n", + "\n", + "#Calculation\n", + "#For power supply A\n", + "ripple_factor_A=Vac_rms_a/Vdc_A; #Ripple factor of power supply A\n", + "\n", + "#For power supply B\n", + "ripple_factor_B=Vac_rms_b/Vdc_B; #Ripple factor of power supply B\n", + "\n", + "#Result\n", + "if(ripple_factor_A<ripple_factor_B):\n", + " print 'Power supply A is better';\n", + "else :\n", + " print 'Power supply B is better';" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power supply B is better\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.23, Page number 105-106" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "#Variable declaration\n", + "RL=2200; #Load resistance in ohm\n", + "C=50*pow(10,-6); #Capacitance of the capacitor used in filter circuit in F\n", + "V0=0.7; #Potential barrier voltage of the diodes of the rectifier in V\n", + "Vrms=115.0; #R.M.S value of input a.c voltage in V \n", + "fin=60; #Frequency of input a.c voltage in Hz\n", + "Turns_ratio=10/1; #Primary to secondary, turns ratio of the transformer \n", + "\n", + "#Calculation\n", + "Vp_prim=Vrms*sqrt(2); #Peak primary voltage in V\n", + "Vp_sec=Vp_prim/Turns_ratio; #Peak secondary voltage in V\n", + "Vp_in= Vp_sec - 2*V0; #Peak full wave rectified voltage at the filter input in V\n", + "f=2*fin; #Output frequency in Hz\n", + "Vdc=Vp_in*(1-(1/(2*f*RL*C))); #Output d.c voltage in V\n", + "\n", + "#Result\n", + "print 'The output d.c voltage is = %.1f V'%Vdc;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The output d.c voltage is = 14.3 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.24, Page number 106" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "#Variable declaration\n", + "R=25; #d.c resistance of the choke in ohm\n", + "RL=750; #Load resistance in ohm\n", + "Vm=25.7; #Maximum value of the pulsating output from the rectifier in V\n", + "\n", + "#Calculation\n", + "V_dc=2*Vm/pi; #d.c component of the pulsating output in V\n", + "V_dc=round(V_dc,1);\n", + "V_dc_out=(V_dc*RL)/(R+RL); #Output d.c voltage in V\n", + "V_dc_out=round(V_dc_out,1);\n", + "\n", + "#Result\n", + "print ' The output d.c voltage accross the load resistance is = %.1f V'%V_dc_out;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " The output d.c voltage accross the load resistance is = 15.9 V\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.25, Page number 113-114" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei=120.0; #Input Voltage in V\n", + "Vz=50.0; #Zener Voltage in V\n", + "R=5000.0; #Resistance of the series resistor in ohm\n", + "RL=10000.0; #Load resistance in ohm\n", + "\n", + "#Calculation\n", + "V=Ei*RL/(R+RL); #Voltage across the open circuit if the zener diode is removed\n", + "if(V>Vz):\n", + " #Zener diode is in ON state\n", + " # i:\n", + " Output_voltage=Vz; #Voltage across load resistance, in V\n", + " #ii:\n", + " Voltage_R=Ei-Vz; #Voltage across the series resistance R, in V\n", + " #iii:\n", + " IL=Vz/RL; #Load current through RL in A\n", + " IL=IL*1000; #Load current through RL in mA\n", + " I=Voltage_R/R; #Current through the series resistance in A\n", + " I=I*1000; #Current through the series resistance in mA\n", + " Iz=I-IL; #Applying Kirchhoff's first law, Zener current in mA\n", + " \n", + " #Result\n", + " print 'i) The output voltage across the load resistance RL = %d V'%Output_voltage;\n", + " print 'ii) The voltage drop across the series resistance R = %d V'%Voltage_R;\n", + " print 'iii) The current through the zener diode = %d mA'%Iz;\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) The output voltage across the load resistance RL = 50 V\n", + "ii) The voltage drop across the series resistance R = 70 V\n", + "iii) The current through the zener diode = 9 mA\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.26, Page number 114-115" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Max_V=120.0; #Maximum input voltage in V\n", + "Min_V=80.0; #Minimum input voltage in V\n", + "R=5000.0; #Series resistance in ohm\n", + "RL=10000.0; #Load resistance in ohm\n", + "Vz=50.0; #Zener voltage in V\n", + "\n", + "\n", + "#Calculation\n", + "#Case i: Maximum zener current\n", + "#Zener current will be maximum when the input voltage is maximum\n", + "V_R_max=Max_V-Vz; #Voltage across series resistance R, in V\n", + "I_max=V_R_max/R; #Current through series resistance R, in A\n", + "I_max=I_max*1000; #Current through series resistance R, in mA\n", + "IL_max=Vz/RL; #Load current in A\n", + "IL_max=IL_max*1000; #Load current in mA\n", + "Iz_max=I_max-IL_max; #Applying Kirchhoff's first law, Zener current in mA;\n", + "\n", + "#Case ii: Minimum zener current\n", + "#The zener will conduct minimum current when the input voltage is minimum\n", + "V_R_min=Min_V-Vz; #Voltage across series resistance R, in V\n", + "I_min=V_R_min/R; #Current through series resistance R, in A\n", + "I_min=I_min*1000; #Current through series resistance R, in mA\n", + "IL_min=Vz/RL; #Load current in A\n", + "IL_min=IL_min*1000; #Load current in mA\n", + "Iz_min=I_min-IL_min; #Applying Kirchhoff's first law, Zener current in mA\n", + "\n", + "#Result\n", + "print 'Case i: ';\n", + "print 'Maximum zener current = %d mA'%Iz_max;\n", + "print 'Case ii: ';\n", + "print 'Minimum zener current = %d mA'%Iz_min;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Case i: \n", + "Maximum zener current = 9 mA\n", + "Case ii: \n", + "Minimum zener current = 1 mA\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.27, Page number 115" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei=12; #Input voltage in V\n", + "Vz=7.2; #Zener voltage in V\n", + "E0=Vz; #Voltage to be maintained across the load in V\n", + "IL_max=0.1; #Maximum load current in A\n", + "IL_min=0.012; #Minimum load current in A\n", + "Iz_min=0.01; #Minimum zener current in A\n", + "\n", + "#Calculation\n", + "#When the load current is maximum at minimum value of RL, the zener current is minimum and, as the load current decreases due to increase in value of RL\n", + "R=(Ei-E0)/(Iz_min+IL_max); #The value of series resistance R to maintain a voltage=E0 across load, in ohm\n", + "\n", + "#Result\n", + "print 'The minimum value of series resistance R to maintain a constant value of 7.2 V is = %.1f \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The minimum value of series resistance R to maintain a constant value of 7.2 V is = 43.6 \u03a9\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "NOTE: The actual value of R is 43.636363 (recurring) but, in the textbook the value of R is wrongly approximated 43.5 \u03a9" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.28, Page number 115" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei_min=22; #Minimum input voltage in V\n", + "Ei_max=28; #Maximum input voltage in V\n", + "Vz=18; #Zener voltage in V\n", + "E0=Vz; #Constant voltage maintained across the load resistance in V\n", + "Iz_min=0.2; #Minimum zener current in A\n", + "Iz_max=2; #Maximum zener current in A\n", + "RL=18; #Load resistance in \u03a9\n", + "\n", + "#Calculation\n", + "IL=Vz/RL; #Constant value of load current in A\n", + "#When the input voltage is minimum, the zener current will be minimum\n", + "R=(Ei_min-E0)/(Iz_min+IL) #The value of series resistance so that the voltage E0 across RL remains constant\n", + "\n", + "print 'The value of series resistance R, to maintain constant voltage E0 across RL = %.2f \u03a9.'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of series resistance R, to maintain constant voltage E0 across RL = 3.33 \u03a9.\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.29, Page number 116 " + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=10 #Zener voltage in V\n", + "Ei_min=13; #Minimum input voltage in V\n", + "Ei_max=16; #Maximum input voltage in V\n", + "Iz_min=0.015; #Minimum zener current in A\n", + "IL_min=0.01; #Minimum load current in A \n", + "IL_max=0.085; #Maximum load curremt in A\n", + "E0=Vz; #Constant voltage to be maintained in V \n", + "\n", + "#Calculation\n", + "#The zener current will be minimum when the input voltage will be minimum and at that time the load current will be maximum\n", + "R=(Ei_min-E0)/(Iz_min+IL_max); #The value of series resistance R to maintain a constant voltage across load\n", + "\n", + "\n", + "#Result\n", + "print 'The value of series resistance to maintain a constant voltage across the load resistance is = %d \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of series resistance to maintain a constant voltage across the load resistance is = 30 \u03a9\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.30, Page number 116" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Iz=0.2; #Current rating of each zener in A\n", + "Vz=15; #Voltage rating of each zener in V\n", + "Ei=45; #Input voltage in V\n", + "\n", + "#Calculation\n", + "# i: Regulated output voltage across the two zener diodes \n", + "E0=2*Vz; # V\n", + "\n", + "# ii: Value of series resistance \n", + "R=(Ei-E0)/Iz; # \u03a9\n", + "\n", + "#Result\n", + "print 'i) The regulated output voltage = %d V'%E0;\n", + "print 'ii) The value of the series resistance = %d \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) The regulated output voltage = 30 V\n", + "ii) The value of the series resistance = 75 \u03a9\n" + ] + } + ], + "prompt_number": 28 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.31, Page number 116-117" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Vz=10; #Voltage rating of each zener in V\n", + "Iz=1; #Current rating of each zener in A\n", + "Ei=45; #Input unregulated voltage in V\n", + "\n", + "#Calculation\n", + "#Regulated output voltage across the three zener diodes\n", + "E0=3*Vz; # V\n", + "\n", + "#Value of series resistance to obtain a 30V regulated output voltage\n", + "R=(Ei-E0)/Iz; # \u03a9\n", + "\n", + "#Result\n", + "print 'Value of series resistance to obtain a 30V regulated output voltage = %d \u03a9'%R;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Value of series resistance to obtain a 30V regulated output voltage = 15 \u03a9\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.32, Page number 117" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "RL=2000.0; #Load resistance in \u03a9\n", + "R=200.0; #Series resistance in \u03a9\n", + "Iz=0.025; #Zener current rating in A\n", + "E0=30.0; #Output regulated voltage in V \n", + "\n", + "#Calculation\n", + "#Minimum input voltage will be required when Iz=0 A, and at this condition\n", + "IL=E0/RL; #Load current during Iz=0, in A\n", + "I=IL; #According to Kirchhoff's law, total current, in A\n", + "Ei_min=E0+(I*R); #Minimum input voltage in V\n", + "\n", + "#The maximum input voltage required will be when Iz=0.025 A, and at that condition \n", + "I=IL+Iz; #According to Kirchhoff's law, total current, in A\n", + "Ei_max=E0+(I*R); #maximum input voltage in V\n", + "\n", + "\n", + "#Result\n", + "print 'The required range of input voltage is from %d V to %d V'%(Ei_min,Ei_max); \n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The required range of input voltage is from 33 V to 38 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.33, Page number 117-118" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ei=16; #Unregulated input voltage in V\n", + "E0=12; #Output regulated voltage in V\n", + "IL_min=0; #Minimum load current in A\n", + "IL_max=0.2; #Maximum load current in A\n", + "Iz_min=0; #Minimum zener current in A\n", + "Iz_max=0.2; #Maximum zener current in A\n", + "\n", + "#Calculation\n", + "#As the regulated voltage required across the load is 12V\n", + "Vz=E0; #Voltage rating of zener diode in V\n", + "V_R=Ei-E0; #Constant Voltage that should remain across series resistance \n", + "#The minimum zener current will occur when the curent in the load in maximum\n", + "R=V_R/(Iz_min+IL_max); #Series resistance in \u03a9\n", + "\n", + "Max_power_rating=Vz*Iz_max; #Maximum power rating of zener diode in W\n", + "\n", + "#Result\n", + "print 'The regulator is designed using a Seris resistance of %d \u03a9 and a zener diode of zener voltage %d V'%(R,Vz);\n", + "print 'The maximum power rating of the zener diode is = %.1f W '%Max_power_rating;" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The regulator is designed using a Seris resistance of 20 \u03a9 and a zener diode of zener voltage 12 V\n", + "The maximum power rating of the zener diode is = 2.4 W \n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.34, Page number 118" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V=12; #Source voltage in V\n", + "R=1000; #Series resistance in \u03a9\n", + "RL=5000; #Load resistance in \u03a9\n", + "Vz=6; #Voltage rating of zener in V\n", + "\n", + "#Calculation\n", + "#Case i: zener is working properly\n", + "#The output voltage across the load will be equal to the zener voltage.\n", + "V0=Vz; # V\n", + "\n", + "#Result\n", + "print 'Case i: Output voltage when zener is working properly is %d V'%V0;\n", + "\n", + "#Case ii: zener is shorted\n", + "#As the zener is shorted, the potential difference across the load will be zero\n", + "V0=0; #V\n", + "\n", + "#Result\n", + "print 'Case ii: Output voltage when zener is short circuited is %d V'%V0;\n", + " \n", + "#Case iii: zener is open circuited\n", + "#If the zener is open circuited, the total voltage will drop across R and RL according to the voltage divider rule\n", + "V0=V*RL/(R+RL); #V\n", + "\n", + "#Result\n", + "print 'Case iii: Output voltage when zener is open circuited is %d V'%V0;\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Case i: Output voltage when zener is working properly is 6 V\n", + "Case ii: Output voltage when zener is short circuited is 0 V\n", + "Case iii: Output voltage when zener is open circuited is 10 V\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_4.ipynb new file mode 100644 index 00000000..537a179e --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_4.ipynb @@ -0,0 +1,212 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e210474f5c4fc6668f4c7b5af2adf833a1c7f62577017a980ab8d11cd8ce2886" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 7 : SPECIAL-PURPOSE DIODES" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.1 : Page number 127-128\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_S=10.0; #Supply voltage in V\n", + "V_D=1.6; #Forward voltage drop of LED, in V\n", + "I_F=20.0; #Required limited current through LED, in mA\n", + "\n", + "#Calculations\n", + "R_S=(V_S-V_D)/(I_F/1000); #Series resistor required to limit the current through the LED, in \u2126\n", + "\n", + "#Result \n", + "print(\"The value of series resistor required to limit the current through the LED = %d \u2126.\"%R_S);\n", + " \n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of series resistor required to limit the current through the LED = 420 \u2126.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.2: Page number 128" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_S=15.0; #Supply voltage in V\n", + "V_D=2.0; #Forward voltage drop of LED, in V\n", + "R_S=2200.0; #Series resistor required to limit the current through the LED, in \u2126\n", + "\n", + "#Calculations\n", + "I_F=((V_S-V_D)/R_S)*1000; #Required limited current through LED, in mA\n", + "\n", + "#Result \n", + "print(\"The current through the LED in the circuit = %.2f mA\"%I_F);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current through the LED in the circuit = 5.91 mA\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.3: Page number 132-133" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ir=50.0; #Dark current as observed from the current Illumination curve, in mA \n", + "V_R=10.0; #Reverse voltage in V\n", + "\n", + "#Calculation\n", + "R_R=V_R/(Ir/pow(10,6)); #Dark Resistance in \u2126\n", + "\n", + "#Result\n", + "print(\"The dark resistance is=%d k\u2126\"%(R_R/1000));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The dark resistance is=200 k\u2126\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.4: Page number 133" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "E=2.5; #Illumination in mW/cm\u00b2\n", + "m=37.4; #sensitivity of the photodiode in \ud835\udf07A/mW/cm\u00b2\n", + "\n", + "#Calculations\n", + "I_R=m*E; #Reverse current in \ud835\udf07A\n", + "\n", + "#Result\n", + "print(\"The reverese current in the photodiode = %.1f \ud835\udf07A\"%I_R);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The reverese current in the photodiode = 93.5 \ud835\udf07A\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.5: Page number 137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\t\n", + "#Variable declaration\n", + "L=1.0; #Inductance of the inductor in mH\n", + "C=100.0; #Capacitance of the varactor in pF\n", + "\n", + "#Result\n", + "f_r=1/(2*pi*sqrt(L*pow(10,-3)*C*pow(10,-12))); #Resonant frequency of the circuit in Hz\n", + "f_r=f_r/1000; #Resonant frequency of the circuit in kHz\n", + "\n", + "#Result\n", + "print(\"The resonant frequency of the circuit = %.1f kHz\"%f_r);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The resonant frequency of the circuit = 503.3 kHz\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_5.ipynb new file mode 100644 index 00000000..537a179e --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_5.ipynb @@ -0,0 +1,212 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e210474f5c4fc6668f4c7b5af2adf833a1c7f62577017a980ab8d11cd8ce2886" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 7 : SPECIAL-PURPOSE DIODES" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.1 : Page number 127-128\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_S=10.0; #Supply voltage in V\n", + "V_D=1.6; #Forward voltage drop of LED, in V\n", + "I_F=20.0; #Required limited current through LED, in mA\n", + "\n", + "#Calculations\n", + "R_S=(V_S-V_D)/(I_F/1000); #Series resistor required to limit the current through the LED, in \u2126\n", + "\n", + "#Result \n", + "print(\"The value of series resistor required to limit the current through the LED = %d \u2126.\"%R_S);\n", + " \n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of series resistor required to limit the current through the LED = 420 \u2126.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.2: Page number 128" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_S=15.0; #Supply voltage in V\n", + "V_D=2.0; #Forward voltage drop of LED, in V\n", + "R_S=2200.0; #Series resistor required to limit the current through the LED, in \u2126\n", + "\n", + "#Calculations\n", + "I_F=((V_S-V_D)/R_S)*1000; #Required limited current through LED, in mA\n", + "\n", + "#Result \n", + "print(\"The current through the LED in the circuit = %.2f mA\"%I_F);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The current through the LED in the circuit = 5.91 mA\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.3: Page number 132-133" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "Ir=50.0; #Dark current as observed from the current Illumination curve, in mA \n", + "V_R=10.0; #Reverse voltage in V\n", + "\n", + "#Calculation\n", + "R_R=V_R/(Ir/pow(10,6)); #Dark Resistance in \u2126\n", + "\n", + "#Result\n", + "print(\"The dark resistance is=%d k\u2126\"%(R_R/1000));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The dark resistance is=200 k\u2126\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.4: Page number 133" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "E=2.5; #Illumination in mW/cm\u00b2\n", + "m=37.4; #sensitivity of the photodiode in \ud835\udf07A/mW/cm\u00b2\n", + "\n", + "#Calculations\n", + "I_R=m*E; #Reverse current in \ud835\udf07A\n", + "\n", + "#Result\n", + "print(\"The reverese current in the photodiode = %.1f \ud835\udf07A\"%I_R);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The reverese current in the photodiode = 93.5 \ud835\udf07A\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.5: Page number 137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "from math import sqrt\t\n", + "#Variable declaration\n", + "L=1.0; #Inductance of the inductor in mH\n", + "C=100.0; #Capacitance of the varactor in pF\n", + "\n", + "#Result\n", + "f_r=1/(2*pi*sqrt(L*pow(10,-3)*C*pow(10,-12))); #Resonant frequency of the circuit in Hz\n", + "f_r=f_r/1000; #Resonant frequency of the circuit in kHz\n", + "\n", + "#Result\n", + "print(\"The resonant frequency of the circuit = %.1f kHz\"%f_r);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The resonant frequency of the circuit = 503.3 kHz\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_4.ipynb new file mode 100644 index 00000000..c13922ee --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_4.ipynb @@ -0,0 +1,1845 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.1: Page number 147-148" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage amplification = 50. \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Signal=500.0; #Signal voltage in V\n", + "Rin=20.0; #Input resistance in Ω \n", + "Rout=100.0; #Output resistance in Ω\n", + "R_C=1000.0; #Collector load in Ω\n", + "alpha_ac=1.0; #current amplification factor\n", + "\n", + "#Calculation\n", + "I_E=(Signal/1000)/Rin; \t#Input current in mA\n", + "I_C=I_E*alpha_ac; #Output current in mA\n", + "Vout=I_C*R_C; #Output voltage in V \n", + "Av=Vout/(Signal/1000); #Voltage amplification \n", + "\n", + "#Result\n", + "print(\"The voltage amplification = %d. \"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.2: Page number 150" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current = 0.05 mA \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_E=1; #Emitter curent in mA\n", + "I_C=0.95; #Collector current in mA\n", + "\n", + "#Calculation\n", + "I_B=I_E-I_C; #Base current in mA\n", + "\n", + "#Result \n", + "print(\"The base current = %.2f mA \"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 8.3: Page number 150\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current =0.1 mA\n" + ] + } + ], + "source": [ + "#variable declaration\n", + "alpha=0.9; #Current amplification factor\n", + "I_E=1; #Emitter current in mA\n", + "\n", + "#Calculation\n", + "I_C=alpha*I_E; #Collector current in mA\n", + "I_B=I_E-I_C; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"The base current =%.1f mA\"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.4: Page number 150" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The current amplification factor = 0.95 .\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_C=0.95;\t\t\t#Collector current in mA\n", + "I_B=0.05;\t\t\t#Base current in mA\n", + "\n", + "#Calculation\n", + "I_E=I_B+I_C; #Emitter current in mA\n", + "alpha=I_C/I_E; #Current amplification factor \n", + "\n", + "#Result\n", + "print(\"The current amplification factor = %.2f .\"%alpha);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.5: Page number 150" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The total collector current = 0.97 mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_E=1; #Emitter current in mA\n", + "I_CBO=50.0; #Collector current with emitter circuit open, in microAmp\n", + "alpha=0.92; #Current amplification factor\n", + "\n", + "#Calculation\n", + "I_C=alpha*I_E + (I_CBO/1000); #Total collector current in mA\n", + "\n", + "#Result\n", + "print(\"The total collector current = %.2f mA.\"%I_C);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.6: Page number 150-151" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current = 0.05 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "alpha=0.95; #Current amplification factor\n", + "Rc=2.0; #Resistor connected to the collector, in kilo ohm\n", + "V_Rc=2.0; #Voltage drop across the resistor connected to the collector in V\n", + "\n", + "\n", + "#Calculation\n", + "I_C=V_Rc/Rc; #Collector current in mA\n", + "I_E=I_C/alpha; #Emitter current in mA\n", + "I_B=I_E-I_C; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"The base current = %.2f mA\"%I_B); \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.7: Page number 151" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The collector current =4.87 mA\n", + "The collector to base voltage = 12.16 V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_EE=8.0; #Supply voltage at the emitter in V\n", + "V_CC=18.0; #Supply voltage at the collector in V\n", + "V_BE=0.7; #Base to emitter voltage in V\n", + "R_E=1.5; #Emitter resistance in Ω\n", + "R_C=1.2; #Collector resistance in Ω\n", + "\n", + "#Calculations\n", + "I_E=(V_EE-V_BE)/R_E; #Emitter current in mA\n", + "I_C=I_E; #Collector current in mA (approximately equal to emitter current)\n", + "V_CB=V_CC-(I_C*R_C); #Collector to base voltage in V\n", + "\n", + "#Result\n", + "print(\"The collector current =%.2f mA\"%I_C);\n", + "print(\"The collector to base voltage = %.2f V\"%V_CB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.8:Page number 155" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Value of beta =9\n", + "(ii) Value of beta =49\n", + "(iii) Value of beta =99\n" + ] + } + ], + "source": [ + "#Function for calculating beta from alpha\n", + "def calc_beta(a): #a is the value of alpha\n", + "\treturn(a/(1-a));\n", + "\n", + "#Case (i)\n", + "alpha=0.9; #current amplification factor\n", + "beta=calc_beta(alpha);\t\t#Base current amplification factor \n", + "print(\"(i) Value of beta =%d\"%beta );\t\t\t\t\t\t\t\t\t\n", + "\n", + "#Case (ii)\n", + "alpha=0.98; #current amplification factor\n", + "beta=calc_beta(alpha); #Base current amplification factor\n", + "print(\"(ii) Value of beta =%.0f\"%beta );\n", + "\n", + "\n", + "#Case (iii)\n", + "alpha=0.99; #current amplification factor\n", + "beta=calc_beta(alpha); #Base current amplification factor \n", + "print(\"(iii) Value of beta =%.0f\"%beta );\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.9: Page number 155" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The emitter curent = 1.02 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=50.0; #Base current amplification factor\n", + "I_B=20.0; #Base current in microAmp\n", + "\n", + "#Calculation\n", + "I_B=I_B/1000; #Base current in mA\n", + "I_C=beta*I_B; #Collector current in mA\n", + "I_E=I_B+I_C; #Emitter current in mA\n", + "\n", + "#Result\n", + "print(\"The emitter curent = %.2f mA\"%I_E);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.10: Page number 155" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alpha=0.98.\n", + "Collector current determined using alpha =11.76 mA\n", + "Collector current determined using beta =11.76 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_B=240.0; #Base current in microAmp\n", + "I_E=12; #Emitter current in mA\n", + "beta=49.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "alpha=beta/(1+beta); #current amplification factor \n", + "I_C_alpha=alpha*I_E; #Collector current in mA calculated using alpha\n", + "I_C_beta=beta*(I_B/1000); #Collector current in mA calculated using beta\n", + "\n", + "#Results\n", + "print(\"alpha=%.2f.\"%alpha);\n", + "print(\"Collector current determined using alpha =%.2f mA\"%I_C_alpha);\n", + "print(\"Collector current determined using beta =%.2f mA\"%I_C_beta);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.11: Page number 156" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current =0.022 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=45.0; #Base current amplification factor\n", + "R_C=1.0; #Resistance of the collector resistance in kΩ\n", + "V_R_C=1.0; #Voltage drop across the collector resistance in V\n", + "\n", + "#Calculation\n", + "I_C=V_R_C/R_C; #Collector current in mA\n", + "I_B=I_C/beta; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"The base current =%.3f mA\"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.12: Page number 156" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector to emitter voltage = 7.5 V\n", + "Base current= 0.026 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=8.0; #Collector supply voltage in V\n", + "R_C=800.0; #Resistance of the collector resistance in Ω\n", + "V_R_C=0.5; #Voltage drop across collector resistance in V\n", + "alpha=0.96; #current amplification factor\n", + "\n", + "#Calculation\n", + "V_CE=V_CC-V_R_C; #Collector to emitter voltage in V\n", + "I_C=V_R_C/R_C; #Collector current in A\n", + "I_C=I_C*1000; #Collector current in mA\n", + "beta=alpha/(1-alpha); #Base current amplification factor\n", + "I_B=I_C/beta; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"Collector to emitter voltage = %.1f V\"%V_CE);\n", + "print(\"Base current= %.3f mA\"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.13: Page number 156-157" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current amplification factor = 0.99 \n", + "The emitter curent =1010 μA \n", + "The base curent =10 μA \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=5; \t#Collector supply voltage in V\n", + "I_CBO=0.2; \t#Leakage current at collector base junction with emitter open, in μA\n", + "I_CEO=20.0; \t#Leakage current with base open, in μA\n", + "I_C=1.0; #Collector current in mA\n", + "I_C=I_C*1000; \t#Collector current in μA\n", + "\n", + "\n", + "#Calculation\n", + "alpha=1-(I_CBO/I_CEO);\t\t#current amplification factor\n", + "I_E=(I_C-I_CBO)/alpha; #Emitter current in μA\n", + "I_E=round(I_E,-1);\n", + "I_B=I_E-I_C; #Base current in μA\n", + "I_B=round(I_B,-1);\n", + "\n", + "#Result\n", + "print(\"Current amplification factor = %.2f \"%alpha);\n", + "print(\"The emitter curent =%d μA \"%I_E);\n", + "print(\"The base curent =%d μA \"%I_B);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.14: Page number 157" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vale of I_CBO= 2.4 μA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_CEO=300.0; #Leakage current in common emitter configuration, in μA\n", + "beta=120.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "alpha=beta/(1+beta); #Current amplification factor\n", + "alpha=round(alpha,3);\n", + "I_CBO=(1-alpha)*I_CEO; #Leakage current in common base configuration, in μA\n", + "\n", + "\n", + "#Result\n", + "print(\"Vale of I_CBO= %.1f μA\"%I_CBO);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.15: Page number 157" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Value of I_CBO=0.0048 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_B=20.0; #Base current in μA\n", + "I_C=2.0; #Collector current in mA\n", + "beta=80.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "I_CEO=I_C-(beta*I_B/1000); #Leakage current with base open, in mA \n", + "alpha=beta/(beta+1); #Current amplification factor\n", + "alpha=round(alpha,3);\n", + "I_CBO=(1-alpha)*I_CEO; #Leakage current with emitter open, in mA\n", + "\n", + "\n", + "#Result\n", + "print(\"Value of I_CBO=%.4f mA\"%I_CBO);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.17: Page number 158" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector to base voltage, V_CB= 2.85 V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=150.0; \t#Base current amplification factor\n", + "R_B=10.0; \t#Base resistance in kilo ohm\n", + "R_C=100.0; \t#Collector resistance in kilo ohm\n", + "V_CC=10.0; #Collector supply voltage in V\n", + "V_BB=5.0; #Base supply voltage in V\n", + "V_BE=0.7; #Base to emitter voltage in V\n", + "\n", + "\n", + "#Calculation\n", + "I_B=(V_BB-V_BE)/R_B; #Base current in mA\n", + "I_C=beta*I_B; #Collector current in mA\n", + "V_CE=V_CC - (I_C/1000)*R_C; #Collector to emitter voltage in V\n", + "V_CB=V_CE-V_BE; #Collector to base voltage in V\n", + "\n", + "\n", + "#Result \n", + "print(\"Collector to base voltage, V_CB= %.2f V\"%V_CB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.18: Page number158-159" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector current determined using alpha rating =29.93 mA\n", + "Collector current determined using beta rating =29.92 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_B=68.0; #Base current in μA\n", + "I_E=30.0; #Emitter current in mA\n", + "beta=440.0;\t #Base current amplification factor\n", + "\n", + "#Calculation\n", + "alpha=beta/(beta + 1); #current amplification factor\n", + "I_C_alpha=alpha*I_E;\t\t#Collector current using alpha rating, in mA\n", + "I_C_beta=beta*(I_B/1000.0); #Collector current using beta rating, in mA\n", + "\n", + "#Result\n", + "print(\"Collector current determined using alpha rating =%.2f mA\"%I_C_alpha);\n", + "print(\"Collector current determined using beta rating =%.2f mA\"%I_C_beta);\n", + "\n", + "#Note: In the textbook, the collector current obtained from beta rating is approximated to 29.93 mA\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.19: Page number 159" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximum allowable value of base current = 1.67 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_C_max=500.0; #Maximum collector current in mA\n", + "beta_max=300.0; #Maximum base current amplification factor\n", + "\n", + "#Calculation\n", + "I_B_max=I_C_max/beta_max; #Maximum base current in mA\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum allowable value of base current = %.2f mA\"%I_B_max);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.22 : Page number 167-168" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXYAAAEZCAYAAACD/A7qAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGu1JREFUeJzt3X2UZHV95/H3B9oMIEKDgsMA0vgArChpHuLKKksrO4RI\nhKxrNiDnaAdJNGtghqhHdjjCqieu5hwVYozRqKMYGKKwrM8RDdNj8IHH6ZHhSZE0M+gwAQO6hqDI\nfPePuuUUZVV3Pd2H363P65w+01V9u+5n7pn59q8/deuWIgIzM6uPXcoOYGZmo+XBbmZWMx7sZmY1\n48FuZlYzHuxmZjX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vGfgYWIuD+7/UWq+WYbNgY82K22IuJh4Ebgd7K7zgA+Q+Mdu25Z5FtPaKtiDpX0FODQiNiSPfZm\n4AlJL2x57HUtj3EzcMII/zpmPfNgt7prXVm3D99u2quYfwaeATzS6bEl7UrjnYc+2/K1f6FxbXaz\nwnmwW919DjhJ0tHA7hGxkcbVRI/r83H+Hdit7b4rgT+gcT32TRHxYMvXdsu+x6xwHuxWaxHxb8Ac\njevoN1frVwDHS2pWNEg6QdLzmzc7PM4jwK7Zewc077sXeIjGpW7bfxM4DNg8or+GWV882G0crAOO\nyv4kIh4Dfhc4LzvdcTPwJ0Bzxf3Sto79Vdn91wIv7fDYh9N416RWL6Nx5o1Z4Xw9drMeZXXO6oh4\n3RLb/QaN3xJemp0aaVYor9jNepT18+uzc9YX8yzgAg91K4tX7GZmNeMVu5lZzXiwm5nVjAe7mVnN\neLCbmdWMB7uZWc38f6b7SUAyF1dTAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cdbfbafd0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=12.5; #Collector supply voltage, V\n", + "RC=2.5; #Collector resistor, kΩ\n", + "\n", + "#Calculation\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC-IC*RC; #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC-VCE)/RC; #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,15])\n", + "limit.set_ylim([0,6])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.23 : Page number 168" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXYAAAEZCAYAAACD/A7qAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGJVJREFUeJzt3X20ZXV93/H3F0YB5WFAifI4Az5WhY6WplpErloNgRFS\nWwlIlk5I27XSqEyirlhcLqpdy8RkqRhrHoxkOohABBQjakTLTKmaFBBGGaE+4eVBcYIGmFqM5eHb\nP86+cjm5D+fcu59+57xfa93F2fvsOftzDzPfu+/n7LNPZCaSpMmxR9cBJEn1crBL0oRxsEvShHGw\nS9KEcbBL0oRxsEvShHGwq9ciYktEvGuVj7EuIh6JiNr/vkfEtog4e5H7zouIj1a3j4iI3RERdWeQ\nhq3pOoDUkq7esJEAmXknsH9HGTRlPGKXpAnjYFevRMTzI+KrEXF/RFwK7L3EtntExLkR8Z1q++sj\n4rAR9nFIRHwqIn4cEd+KiH83775/HhFfiYh7I+L7EfHBiFgz7/5XRMSt1f0fBEaqVobroKrCeVdE\nfKmqaP46Ig6at/0LI+LL1X5uiogTR9mPBA529UhEPA74JLAVOAi4DPg3S/yRNwO/CpyUmQcAZwMP\njLCrvwTuAJ4KvAZ4d0TMVPc9DGyu9v8i4GXAf6zyPQm4AjgXeDLwXeD4kb/Bf1wHnQm8HjgY2At4\nS7Wfw4CrgHdl5oHV+iuq/UvLcrCrT14IrMnMP8rMhzPzCuD6Jbb/DeDtmfkdgMy8OTPvXWoHEXEE\ng4H9u5n5YGZ+DfgI8LrqMW7MzOty4A7gw8Dc0fLJwM7M/GSV73zgh6v4frdk5ncz82fAx4EN1fqz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M/8vsJ3BdfTnjtYvBl4UEXMVDRFxQkQ8Z25xgce5D9iz\n+uyAuXW3AT9icKnb4d8EngnsrOnbkMbiYNc0uAQ4tvovmfkPwEbgTdXpjjuB3wTmjrhfPNSxv7pa\nfzXw4gUe+1kMPjVpvpcyOPNGap3XY5dGVNU5mzPz9cts93gGvyW8uDo1UmqVR+zSiKp+flt1zvpS\njgTe5lBXVzxil6QJ4xG7JE0YB7skTRgHuyRNGAe7JE0YB7skTZj/D54Z3dbY0EBnAAAAAElFTkSu\nQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cec03e9b0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Operating point: IC=1mA and VCE=6V.\n" + ] + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "RC=6.0; #Collector resistor, kΩ\n", + "IB=20.0; #Zero signal base current, μA\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC-IC*RC; #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC-VCE)/RC; #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,15])\n", + "limit.set_ylim([0,5])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);\n", + "\n", + "#Calculating Q-point\n", + "IC=beta*(IB/1000); #Collector current, mA\n", + "VCE=VCC-IC*RC; #Collector emitter voltage, V\n", + "\n", + "#Result\n", + "print(\"Operating point: IC=%dmA and VCE=%dV.\"%(IC,VCE));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.24 : Page number 168" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Operating point: VCE=6V and IC=1mA.\n", + "(ii) Operating point: VCE=5V and IC=1mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=4.0; #Collector load, kΩ\n", + "IC_Q=1.0; #Quiescent current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "VCC=10; #Collector supply voltage, V\n", + "VCE=VCC-IC*RC; #Collector emitter voltage, V\n", + "\n", + "print(\"(i) Operating point: VCE=%dV and IC=%dmA.\"%(VCE,IC) );\n", + "\n", + "#(ii)\n", + "RC=5.0; #Collector load, kΩ\n", + "VCE=VCC-IC*RC; #Collector emitter voltage, V\n", + "print(\"(ii) Operating point: VCE=%dV and IC=%dmA.\"%(VCE,IC) );\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 8.25 : Page number 168-169" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Operating point: IC=39.6mA and VCE=6.93V.\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEZCAYAAAB1mUk3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmYFOW1x/HvYZFFRVbBiDIac90VIu4oA7jgFhQVUFTG\nJXqvK+7EqLhcE1AjEo0aowLGBURUjBuGpV2jCEoEQzBEUVAhKq7XXc/9462hxmEGZqanu6q7f5/n\nmcepml7OHIs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29+HMGNJJFW0noFIlqJW03B3H7aWx61DOBvpFU1DFUkNnRmIZCka\nb5gVXVOwJpsCI1QIJI10ZiAiIjozEBERFQMREUHFQEREUDEQERFUDEREBPh/5YH97FmiQk4AAAAA\nSUVORK5CYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cec03e978>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "from matplotlib import pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "VBB=10.0; #Base supply voltage, V\n", + "RC=330.0; #Collector resistor, Ω\n", + "RB=47.0; #Base resistoe, kΩ\n", + "beta=200.0; #Base current amplification factor\n", + "VBE=0.7; #Base -emitter voltage, V\n", + "\n", + "#Calculation\n", + "#VBB-IB*RB-VBE=0\n", + "IB=round(((VBB-VBE)/RB)*1000,0); #Base current, μA\n", + "IC=beta*IB/1000; #Collector current, mA\n", + "VCE=VCC-IC*(RC/1000); #Collector-emitter voltage, V\n", + "\n", + "print(\"Operating point: IC=%.1fmA and VCE=%.2fV.\"%(IC,VCE));\n", + "\n", + "#For d.c load line\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC-IC*RC; #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC-VCE)/(RC/1000.0); #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,25])\n", + "limit.set_ylim([0,65])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.26 : Page number 169-170" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Operating point: IC=1.8mA and VCE=9.74V.\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEZCAYAAACU3p4jAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8VPXVx/HPgSgi0oKoFDdAq7IIRkSxhdaoj4hV1OKG\n1iWKWq0LuFtRUWrdRZDaatXHqlVxQR7rUqVWI8UVFJTVpRrUKkjdLVVZzvPHb+INMQmZTGbunbnf\n9+uVF5mZm7knh5uTm3N/9/czd0dEREpfq7gDEBGRwlDBFxFJCRV8EZGUUMEXEUkJFXwRkZRQwRcR\nSQkVfEk0M7vVzMbm+B5dzWyVmbX48W5mT5nZMQ28NsbM7sh8vpmZfW5m1tIxiDRVWdwBiBRIXDec\nOIC7vwt8L6YYRACd4YuIpIYKviSKmW1vZi+Z2WdmNglYp5FtW5nZeWb2Zmb7GWa2SRP20cXMHjSz\nj8zsdTM7ttZrO5rZs2b2iZn9y8wmmllZrdf3MLMFmdcnAk1q0dRtK2VaQWPNbHqm1fOYma1fa/ud\nzeyZzH5mmdkuTdmPSGNU8CUxzGwtYApwG7A+cB9wQCNfcgZwCDDE3b8PHAMsa8Ku7gHeAX4AHARc\namYVmddWAqMy+/8RsBvwq0x8nYDJwHnABsA/gYFN/ga/21Y6FDgK2BBoA5yZ2c8mwMPAWHfvmHl+\ncmb/Is2mgi9JsjNQ5u7XuftKd58MzGhk+xHAaHd/E8Dd57j7J43twMw2IxTyc9x9ubu/AtwMHJl5\nj5fd/UUP3gH+CNScXf8MmOvuUzLxjQcW5/D93uru/3T3r4F7gfLM878AHnH3xzMx/R2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bA+eq2EvS\n6AxfRCQldIYvIpISKvgiIimhgi8ikhIq+CIiKaGCLyKSEv8PJUtKtHC5iPgAAAAASUVORK5CYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cdbd4bdd8>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "from matplotlib import pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VEE=10.0; #Emitter supply voltage, V\n", + "RC=1.0; #Collector resistor, kΩ\n", + "RE=4.7; #Collector resistor, kΩ\n", + "RB=47.0; #Base resistoe, kΩ\n", + "beta=100.0; #Base current amplification factor\n", + "VBE=0.7; #Base -emitter voltage, V\n", + "\n", + "#Calculation\n", + "#-IB*RB-VBE-IE*RE+VEE=0\n", + "#AS, IC=beta*IB and IC~IE\n", + "IE=round((VEE-VBE)/(RE+(RB/beta)),1); #Emitter current, mA\n", + "IC=IE; #Collector current, mA\n", + "\n", + "#VCC-IC*RC-VCE-IE*RE+VEE=0\n", + "#IC~IE\n", + "VCE=VCC+VEE-IC*(RC+RE); #Collector-emitter voltage, V\n", + "\n", + "print(\"Operating point: IC=%.1fmA and VCE=%.2fV.\"%(IC,VCE));\n", + "\n", + "\n", + "#For d.c load line\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC+VEE-IC*(RC+RE); #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC+VEE-VCE)/(RC+RE); #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,25])\n", + "limit.set_ylim([0,5])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.27 : Page number 170-171" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Emitter voltage=-1.54V.\n", + "(i) Base voltage=10.7V.\n", + "(i) Collector voltage=8.2V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VEE=10.0; #Emitter supply voltage, V\n", + "IE=1.8; #Emitter current, mA\n", + "RE=4.7; #Emitter resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "VCC=10.0; #Collector supply voltage, V\n", + "IC=1.8; #Collector current, mA\n", + "RC=1.0; #Collector resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "VE=-VEE+IE*RE; #Emitter voltage, V\n", + "\n", + "#(ii)\n", + "VB=VEE+VBE; #Base voltage, V\n", + "\n", + "#(iii)\n", + "VC=VCC-IC*RC; #Collector voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Emitter voltage=%.2fV.\"%VE);\n", + "print(\"(i) Base voltage=%.1fV.\"%VB);\n", + "print(\"(i) Collector voltage=%.1fV.\"%VC);\n", + "\n", + "#Note: In the textbook, VB=VE+VBE has been written, which is worng. It should be VB=VEE+VBE. " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.28: Page number 173-174" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Input resistance =2 kΩ\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_BE_change=200.0; #Change in base-emitter voltage in mV\n", + "I_B_change=100.0; #Change in base current in μA\n", + "\n", + "#Calculations\n", + "Ri=V_BE_change/I_B_change; #Input resistance in kΩ\n", + "\n", + "#Result\n", + "print(\"Input resistance =%d kΩ\"%Ri);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.29; Page number 174" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output resistance =8kΩ\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CE_final=10.0;\t\t\t#Final value of collector-emitter voltage in V\n", + "V_CE_initial=2.0; #Initial value of collector-emitter voltage in V\n", + "I_C_final=3.0; #Final value of collector current in mA\n", + "I_C_initial=2.0; #Initial value of collector current in mA\n", + "\n", + "#Calculations\n", + "V_CE_change=V_CE_final-V_CE_initial;\t\t#Change in collector to emitter voltage in V\n", + "I_C_change=I_C_final-I_C_initial; #Change in collector current in mA\n", + "R0=V_CE_change/I_C_change; #Output resistance in kΩ\n", + "\n", + "#Result\n", + "print(\"The output resistance =%dkΩ\"%R0);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.30: Page number 174" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the amplifier =100 \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R_C=2.0;\t\t#Collector load in kilo ohm\n", + "R_i=1.0;\t\t#Input resistance in kilo ohm\n", + "R_AC=R_C; #Effective collector load for single stage in kilo ohm(appoximately equal to collector load for single stage)\n", + "beta=50.0; #Current gain\n", + "\n", + "#Calculations\n", + "A_v=beta*(R_AC/R_i);\t\t#Voltage gain of the amplifier\n", + "\n", + "#Result \n", + "print(\"The voltage gain of the amplifier =%d \"%A_v);\t\t\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.31: Page number 175-176" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector current during saturation = 20 mA\n", + "Collector emitter voltage during cutoff = 20 V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=20;\t\t#Collector supply voltage in V\n", + "R_C=1; #Collector resistance in kilo ohm\n", + "V_knee_Si=1;\t\t#Knee voltage of V_CE for Si in V \n", + "V_knee_Ge=0.5;\t\t#Knee voltage of V_CE for Ge in V\n", + "\n", + "#Calculations\n", + "I_C_sat_Si=(V_CC-V_knee_Si)/R_C;\t\t#Saturation (maximum) value of collector current in mA (for Si transistor)\n", + "I_C_sat_Ge=(V_CC-V_knee_Ge)/R_C;\t\t#Saturation (maximum) value of collector current in mA (for Ge transistor)\n", + "I_C_sat=(V_CC)/R_C;\t\t\t\t#Saturation (maximum) value of collector current in mA (neglecting knee voltage)\n", + "V_CE_cut_off=V_CC; #Collector to emitter voltage in cutoff when base current=0, in V\n", + "\n", + "#Result\n", + "print(\"Collector current during saturation = %d mA\"%I_C_sat);\n", + "print(\"Collector emitter voltage during cutoff = %d V.\"%V_CE_cut_off);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.32: Page number 176-177" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vce(off)= 24V\n", + "Ic(sat) = 10.67 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=12.0;\t\t#Collector supply voltage in V\n", + "V_EE=12.0;\t\t#Emitter supply voltage in V\n", + "R_C=750.0;\t\t#Collector resistance in ohm\n", + "R_E=1.5;\t\t#Emitter resistance in kilo ohm\n", + "R_B=100.0;\t\t#Base resistance in ohm\n", + "beta=200;\t\t#base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Applying Kirchhoff's voltage law to the collector side of the circuit\n", + "#using the equation: Vcc -IcRc-Vce -IeRe+Vee=0\n", + "#we get Vce=Vcc+Vee-Ic(Rc+Re), [Ie=Ic, approximately]\n", + "#We get Vce(off), when Ic=0;\n", + "\n", + "I_C_Vce_off=0;\t\t\t\t\t#Collector current for Vce(off) in mA\n", + "V_CE_off=V_CC+V_EE -(I_C_Vce_off * (R_C +R_E));\t#Collector to emitter voltage in V, during transistor in off state\n", + "\n", + "#We get Ic(sat), when Vce=0\n", + "V_CE_Ic_sat=0;\t\t\t\t\t\t#Collector to emitter voltage for saturation current of collector in V\n", + "I_C_sat=(V_CC+V_EE-V_CE_Ic_sat)/(R_C+(R_E*1000));\t#Saturated collector current in A \n", + "I_C_sat=I_C_sat*1000;\t\t\t\t\t#Saturated collector current in mA\n", + "#Result\n", + "print(\"Vce(off)= %dV\"%V_CE_off);\n", + "print(\"Ic(sat) = %.2f mA\"%I_C_sat);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.33 : Page number 177" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current is large enough to produce Ic greater than Ic(sat), therefore the transistor is saturated.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_knee=0.2;\t\t\t\t#Knee voltage of collector-emitter voltage in V\n", + "V_CC=10.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BB=3.0;\t\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V \t\n", + "R_B=10.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=1.0;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=50.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#applying Kirchhoff's voltage law along the collector side of the circuit,\n", + "#We get Vcc-Ic(sat)*Rc-V_knee=0\n", + "#From the above equation, we get:\n", + "I_C_sat=(V_CC-V_knee)/R_C;\t\t#Saturated collector current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law along base emitter side,\n", + "#We get VBB-IB*RB-VBE=0;\n", + "#From the above equation, we get:\n", + "I_B=(V_BB-V_BE)/R_B;\t\t\t#Base current in mA\n", + "\n", + "\n", + "I_C=beta*I_B\t\t\t\t#Collector current in mA\n", + "\n", + "#Result\n", + "if(I_C>I_C_sat):\n", + "\tprint(\"The base current is large enough to produce Ic greater than Ic(sat), therefore the transistor is saturated.\");\n", + "else:\n", + "\tprint(\"The base current is not large enough to produce Ic greater than Ic(sat), therefore the transistor isn't saturated. \");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.34: Page number 177-178" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "As both collector-base and emitter-base junction are forward biased, the transistor is operating in the saturation region. \n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "V_CC=10.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BE=0.95;\t\t\t\t#Base-emitter voltage in V \t\n", + "I_B=100.0;\t\t\t\t#Base current in microAmp\n", + "R_C=970.0;\t\t\t\t#Collector resistor's resistance in ohm\n", + "beta=100.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculations\n", + "I_C=(I_B/1000)*beta;\t\t\t\t#Collector current in mA \n", + "\n", + "#Applying Kirchhoff's voltage law along collector side\n", + "#We get Vcc-IcRc-Vce=0\n", + "#From the above equation, we get:\n", + "\n", + "V_CE=V_CC-((I_C/1000)*R_C);\t\t\t\t#Collector-emitter voltage in V\n", + "\n", + "#From the equation, V_CE=V_CB+V_BE,\n", + "V_CB=V_CE-V_BE;\t\t\t\t\t\t#Collector-base voltage in V\n", + "\n", + "\n", + "#Result\n", + "if(V_CB<0 and V_BE >0):\n", + "\tprint(\"As both collector-base and emitter-base junction are forward biased, the transistor is operating in the saturation region. \");\n", + "else:\n", + "\tprint(\"No. The transistor isn't operating in the saturation region.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.35: Page number 178" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Therefore, for putting transistor in saturation, VBB >= 1.95 V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=10.0;\t\t\t\t#Collector supplu voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V\n", + "R_B=50.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=2.0;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=200.0;\t\t\t\t#Base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Applying Kirchhoff's voltage law along the collector side,\n", + "#We get, Vcc-Ic(sat)*Rc-Vce=0;\n", + "#From the above equation, we get:\n", + "#I_C_sat=(V_CC-V_CE)/R_C, but as transistor goes into saturation, Vce=0;\n", + "\n", + "V_CE=0;\t\t\t\t\t\t#Collector-emiter voltage in V, for transistor in saturation \n", + "I_C_sat=(V_CC-V_CE)/R_C;\t\t\t#Saturated collector current in mA\n", + "\n", + "I_B=I_C_sat/beta;\t\t\t\t#Base current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law to the base circuit,\n", + "#We get, VBB - IB*RB - VBE=0\n", + "#From the above equation. we get:\n", + "V_BB=V_BE+ I_B*R_B;\t\t\t\t#Base supply voltage to put transistor in saturation, in V\n", + "\n", + "#Result\n", + "print(\"Therefore, for putting transistor in saturation, VBB >= %.2f V\"%V_BB);\n", + " \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.36: Page number 178-179" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i)Our assumption was correct, the transistor is in active state for Rc=2 kilo ohm.\n", + "(ii)The transistor is at the edge of saturation for Rc=4 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\n", + "(iii)Our assumption was wrong, the transistor is in saturation for Rc=8 kilo ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=10.0;\t\t\t#Collector supply voltage in V\n", + "V_BB=2.7;\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t#Base-emitter voltage in V\n", + "beta=100.0;\t\t\t#Base current amplification factor\n", + "R_E=1.0;\t\t\t#Emitter resistor's resistance in kilo ohm\n", + "\n", + "\n", + "#Calcultaion\t\n", + "V_B=V_BB;\t\t\t#Base voltage in V\n", + "V_E=V_B-V_BE;\t\t\t#Emitter voltage in V\n", + "I_E=V_E/R_E;\t\t\t#Emitter current in mA\n", + "I_C=I_E;\t\t\t#Collector current (approximately equal to emitter current) in mA\n", + "I_B=I_C/beta;\t\t\t#Base current in mA\n", + "\n", + "#Case (i):\n", + "R_C=2;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "#We get,Vcc-IcRc=Vc,\n", + "\n", + "V_C=V_CC-I_C*R_C;\t\t#Collector voltage in V\n", + "\n", + "if(V_C>V_E):\n", + "\tprint(\"(i)Our assumption was correct, the transistor is in active state for Rc=2 kilo ohm.\");\n", + "elif(V_C<V_E):\n", + "\tprint(\"(i)Our assumption was wrong, the transistor is in saturation for Rc=2 kilo ohm.\");\n", + "elif(V_C==V_E):\n", + "\tprint(\"(i)The transistor is at the edge of saturation for Rc=2 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\");\n", + "\n", + "#Case (ii):\n", + "R_C=4;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "#We get,Vcc-IcRc=Vc,\n", + "\n", + "V_C=V_CC-I_C*R_C;\t\t#Collector voltage in V\n", + "if(V_C>V_E):\n", + "\tprint(\"(ii)Our assumption was correct, the transistor is in active state for Rc=4 kilo ohm.\");\n", + "elif(V_C==V_E):\n", + "\tprint(\"(ii)The transistor is at the edge of saturation for Rc=4 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\");\n", + "elif(V_C<V_E):\n", + "\tprint(\"(ii)Our assumption was wrong, the transistor is in saturation for Rc=4 kilo ohm.\");\n", + "\n", + "\n", + "#Case (iii):\n", + "R_C=8;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "#We get,Vcc-IcRc=Vc,\n", + "\n", + "V_C=V_CC-I_C*R_C;\t\t#Collector voltage in V\n", + "if(V_C>V_E):\n", + "\tprint(\"(iii)Our assumption was correct, the transistor is in active state for Rc=8 kilo ohm.\");\n", + "elif(V_C<V_E):\n", + "\tprint(\"(iii)Our assumption was wrong, the transistor is in saturation for Rc=8 kilo ohm.\");\n", + "elif(V_C==V_E):\n", + "\tprint(\"(iii)The transistor is at the edge of saturation for Rc=8 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.37 : Page number 179-180" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Base voltage =0.5V is less than VBE=0.7V, therefore, transistor is cut-off.\n", + "0.8 0.8 7.0\n", + "(ii) VC=7V > VE=0.8V, therefore the transistor is active. Our assumption was correct.\n", + "(iii) VC=-8V < VE=2.3V, therefore the transistor is saturated. Our assumption was wrong.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=15.0;\t\t\t#Collector supply voltage in V\n", + "R_C=10.0;\t\t\t#Collector resistor's resistance in kilo ohm\n", + "V_BE=0.7;\t\t\t#Base-emitter voltage in V\n", + "beta=100.0;\t\t\t#Base current amplification factor\n", + "R_E=1.0;\t\t\t#Emitter resistor's resistance in kilo ohm\n", + "\n", + "\n", + "#Calculation\t\n", + "\n", + "#Case (i):\n", + "V_BB=0.5;\t\t\t#Base supply voltage in V\n", + "VB=V_BB; #Base voltage, V\n", + "print(\"(i) Base voltage =%.1fV is less than VBE=%.1fV, therefore, transistor is cut-off.\"%(VB,V_BE));\n", + "\n", + "\n", + "#Case (ii):\n", + "V_BB=1.5;\t\t\t#Base supply voltage in V\n", + "VB=V_BB; #Base voltage, V\n", + "VE=VB-V_BE; #Emitter voltage, V\n", + "IE=round(VE/R_E,1); #Emitter current, mA\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "IC=IE; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VC=V_CC-IC*R_C; #Collector voltage, V\n", + "print(VE,IE,VC);\n", + "print(\"(ii) VC=%dV > VE=%.1fV, therefore the transistor is active. Our assumption was correct.\"%(VC,VE));\n", + "\n", + "#Case (iii):\n", + "V_BB=3; \t\t\t#Base supply voltage in V\n", + "VB=V_BB; #Base voltage, V\n", + "VE=VB-V_BE; #Emitter voltage, V\n", + "IE=round(VE/R_E,1); #Emitter current, mA\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "IC=IE; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VC=V_CC-IC*R_C; #Collector voltage, V\n", + "\n", + "print(\"(iii) VC=%dV < VE=%.1fV, therefore the transistor is saturated. Our assumption was wrong.\"%(VC,VE));" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.38: Page number 181" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum collector current that can be allowed without destruction of the transistor = 5 mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "P_D_max=100.0;\t\t\t#Maximum power dissipation of a transistor in mW\n", + "V_CE=20.0;\t\t\t#Collector emitter voltage in V\n", + "\n", + "#Calculation\n", + "#As power=curent*voltage\n", + "#P_D_max=I_C_max*V_CE\n", + "#From the above equation, we get:\n", + "\n", + "I_C_max=P_D_max/V_CE;\t\t#Maximum collector current that can be allowed without destruction of the transistor, in mA\n", + "\n", + "#Result\n", + "print(\"Maximum collector current that can be allowed without destruction of the transistor = %d mA.\"%I_C_max); \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.39: Page number 181" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power dissipated = 4.3W\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=5.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BB=5.0;\t\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V\n", + "R_B=1.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=0;\t\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=200.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculation\n", + "\n", + "#Applying Kirchhoff's voltage law along base circuit<\n", + "#We get, VBB- IB*RB - VBE=0.\n", + "#From the above equation, we get:\n", + "\n", + "I_B=(V_BB-V_BE)/R_B;\t\t\t#Base current in mA\n", + "\n", + "I_C=beta*I_B;\t\t\t\t#Collector current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law along collector circuit:\n", + "\n", + "V_CE=V_CC-I_C*R_C;\t\t\t#Collector-emitter voltage in V\n", + "\n", + "#As power=curent*voltage\n", + "#P_D=I_C*V_CE\n", + "#From the above equation, we get:\n", + "P_D=V_CE*I_C;\t\t\t\t#Power dissipated in mW\n", + "P_D=P_D/1000;\t\t\t\t#Power dissipated in W\n", + "\n", + "#Result\n", + "print(\"Power dissipated = %.1fW\"%P_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.40: Page number 181-182" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power dissipated = 6mW\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=5.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BB=1.0;\t\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V\n", + "R_B=10.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=1.0;\t\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=100.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculation\n", + "\n", + "#Applying Kirchhoff's voltage law along base circuit<\n", + "#We get, VBB- IB*RB - VBE=0.\n", + "#From the above equation, we get:\n", + "\n", + "I_B=(V_BB-V_BE)/R_B;\t\t\t#Base current in mA\n", + "\n", + "I_C=beta*I_B;\t\t\t\t#Collector current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law along collector circuit:\n", + "\n", + "V_CE=V_CC-I_C*R_C;\t\t\t#Collector-emitter voltage in V\n", + "\n", + "#As power=curent*voltage\n", + "#P_D=I_C*V_CE\n", + "#From the above equation, we get:\n", + "P_D=V_CE*I_C;\t\t\t\t#Power dissipated in mW\n", + "\n", + "\n", + "#Result\n", + "print(\"Power dissipated = %.0fmW\"%P_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.41 : Page number 182" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IC=19.5mA is much less than IC_max=100mA. Therefore, will not change with VCC and current rating is not exceeded.\n", + "PD=293mW is less than PD_max=800mW. Therefore, power rating is not exceeded.\n", + "If base current is removed, transistor will turn off. Hence, VCE_max will be exceeded because entire supply voltage VCC will be dropped across the transistor.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VBB=5.0; #Base supply voltage, V\n", + "RB=22.0; #Base resistor, kilo ohm\n", + "RC=1.0; #Collector resistor, kilo ohm\n", + "beta=100.0; #Base current amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "PD_max=800.0; #Maximum power dissipation, mW\n", + "VCE_max=15.0; #Maximum collector-emitter voltage, V\n", + "IC_max=100.0; #Maximum collector current, mA\n", + "\n", + "#Calculation\n", + "IB=((VBB-VBE)/RB)*1000; #Base current, μA\n", + "IC=beta*IB/1000; #Collector current, mA\n", + "\n", + "print(\"IC=%.1fmA is much less than IC_max=%dmA. Therefore, will not change with VCC and current rating is not exceeded.\"%(IC,IC_max));\n", + "\n", + "#VCC=VCE+IC*RC\n", + "VCC_max=VCE_max+IC*RC; #Maximum value of Collector supply voltage, V\n", + "PD=VCE_max*IC; #Power dissipation, mW\n", + "\n", + "print(\"PD=%dmW is less than PD_max=%dmW. Therefore, power rating is not exceeded.\"%(PD,PD_max));\n", + "\n", + "print(\"If base current is removed, transistor will turn off. Hence, VCE_max will be exceeded because entire supply voltage VCC will be dropped across the transistor.\");" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_5.ipynb new file mode 100644 index 00000000..c13922ee --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_5.ipynb @@ -0,0 +1,1845 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.1: Page number 147-148" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage amplification = 50. \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "Signal=500.0; #Signal voltage in V\n", + "Rin=20.0; #Input resistance in Ω \n", + "Rout=100.0; #Output resistance in Ω\n", + "R_C=1000.0; #Collector load in Ω\n", + "alpha_ac=1.0; #current amplification factor\n", + "\n", + "#Calculation\n", + "I_E=(Signal/1000)/Rin; \t#Input current in mA\n", + "I_C=I_E*alpha_ac; #Output current in mA\n", + "Vout=I_C*R_C; #Output voltage in V \n", + "Av=Vout/(Signal/1000); #Voltage amplification \n", + "\n", + "#Result\n", + "print(\"The voltage amplification = %d. \"%Av);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.2: Page number 150" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current = 0.05 mA \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_E=1; #Emitter curent in mA\n", + "I_C=0.95; #Collector current in mA\n", + "\n", + "#Calculation\n", + "I_B=I_E-I_C; #Base current in mA\n", + "\n", + "#Result \n", + "print(\"The base current = %.2f mA \"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 8.3: Page number 150\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current =0.1 mA\n" + ] + } + ], + "source": [ + "#variable declaration\n", + "alpha=0.9; #Current amplification factor\n", + "I_E=1; #Emitter current in mA\n", + "\n", + "#Calculation\n", + "I_C=alpha*I_E; #Collector current in mA\n", + "I_B=I_E-I_C; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"The base current =%.1f mA\"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.4: Page number 150" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The current amplification factor = 0.95 .\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_C=0.95;\t\t\t#Collector current in mA\n", + "I_B=0.05;\t\t\t#Base current in mA\n", + "\n", + "#Calculation\n", + "I_E=I_B+I_C; #Emitter current in mA\n", + "alpha=I_C/I_E; #Current amplification factor \n", + "\n", + "#Result\n", + "print(\"The current amplification factor = %.2f .\"%alpha);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.5: Page number 150" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The total collector current = 0.97 mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_E=1; #Emitter current in mA\n", + "I_CBO=50.0; #Collector current with emitter circuit open, in microAmp\n", + "alpha=0.92; #Current amplification factor\n", + "\n", + "#Calculation\n", + "I_C=alpha*I_E + (I_CBO/1000); #Total collector current in mA\n", + "\n", + "#Result\n", + "print(\"The total collector current = %.2f mA.\"%I_C);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.6: Page number 150-151" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current = 0.05 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "alpha=0.95; #Current amplification factor\n", + "Rc=2.0; #Resistor connected to the collector, in kilo ohm\n", + "V_Rc=2.0; #Voltage drop across the resistor connected to the collector in V\n", + "\n", + "\n", + "#Calculation\n", + "I_C=V_Rc/Rc; #Collector current in mA\n", + "I_E=I_C/alpha; #Emitter current in mA\n", + "I_B=I_E-I_C; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"The base current = %.2f mA\"%I_B); \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.7: Page number 151" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The collector current =4.87 mA\n", + "The collector to base voltage = 12.16 V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_EE=8.0; #Supply voltage at the emitter in V\n", + "V_CC=18.0; #Supply voltage at the collector in V\n", + "V_BE=0.7; #Base to emitter voltage in V\n", + "R_E=1.5; #Emitter resistance in Ω\n", + "R_C=1.2; #Collector resistance in Ω\n", + "\n", + "#Calculations\n", + "I_E=(V_EE-V_BE)/R_E; #Emitter current in mA\n", + "I_C=I_E; #Collector current in mA (approximately equal to emitter current)\n", + "V_CB=V_CC-(I_C*R_C); #Collector to base voltage in V\n", + "\n", + "#Result\n", + "print(\"The collector current =%.2f mA\"%I_C);\n", + "print(\"The collector to base voltage = %.2f V\"%V_CB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.8:Page number 155" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Value of beta =9\n", + "(ii) Value of beta =49\n", + "(iii) Value of beta =99\n" + ] + } + ], + "source": [ + "#Function for calculating beta from alpha\n", + "def calc_beta(a): #a is the value of alpha\n", + "\treturn(a/(1-a));\n", + "\n", + "#Case (i)\n", + "alpha=0.9; #current amplification factor\n", + "beta=calc_beta(alpha);\t\t#Base current amplification factor \n", + "print(\"(i) Value of beta =%d\"%beta );\t\t\t\t\t\t\t\t\t\n", + "\n", + "#Case (ii)\n", + "alpha=0.98; #current amplification factor\n", + "beta=calc_beta(alpha); #Base current amplification factor\n", + "print(\"(ii) Value of beta =%.0f\"%beta );\n", + "\n", + "\n", + "#Case (iii)\n", + "alpha=0.99; #current amplification factor\n", + "beta=calc_beta(alpha); #Base current amplification factor \n", + "print(\"(iii) Value of beta =%.0f\"%beta );\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.9: Page number 155" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The emitter curent = 1.02 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=50.0; #Base current amplification factor\n", + "I_B=20.0; #Base current in microAmp\n", + "\n", + "#Calculation\n", + "I_B=I_B/1000; #Base current in mA\n", + "I_C=beta*I_B; #Collector current in mA\n", + "I_E=I_B+I_C; #Emitter current in mA\n", + "\n", + "#Result\n", + "print(\"The emitter curent = %.2f mA\"%I_E);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.10: Page number 155" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alpha=0.98.\n", + "Collector current determined using alpha =11.76 mA\n", + "Collector current determined using beta =11.76 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_B=240.0; #Base current in microAmp\n", + "I_E=12; #Emitter current in mA\n", + "beta=49.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "alpha=beta/(1+beta); #current amplification factor \n", + "I_C_alpha=alpha*I_E; #Collector current in mA calculated using alpha\n", + "I_C_beta=beta*(I_B/1000); #Collector current in mA calculated using beta\n", + "\n", + "#Results\n", + "print(\"alpha=%.2f.\"%alpha);\n", + "print(\"Collector current determined using alpha =%.2f mA\"%I_C_alpha);\n", + "print(\"Collector current determined using beta =%.2f mA\"%I_C_beta);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.11: Page number 156" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current =0.022 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=45.0; #Base current amplification factor\n", + "R_C=1.0; #Resistance of the collector resistance in kΩ\n", + "V_R_C=1.0; #Voltage drop across the collector resistance in V\n", + "\n", + "#Calculation\n", + "I_C=V_R_C/R_C; #Collector current in mA\n", + "I_B=I_C/beta; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"The base current =%.3f mA\"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.12: Page number 156" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector to emitter voltage = 7.5 V\n", + "Base current= 0.026 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=8.0; #Collector supply voltage in V\n", + "R_C=800.0; #Resistance of the collector resistance in Ω\n", + "V_R_C=0.5; #Voltage drop across collector resistance in V\n", + "alpha=0.96; #current amplification factor\n", + "\n", + "#Calculation\n", + "V_CE=V_CC-V_R_C; #Collector to emitter voltage in V\n", + "I_C=V_R_C/R_C; #Collector current in A\n", + "I_C=I_C*1000; #Collector current in mA\n", + "beta=alpha/(1-alpha); #Base current amplification factor\n", + "I_B=I_C/beta; #Base current in mA\n", + "\n", + "#Result\n", + "print(\"Collector to emitter voltage = %.1f V\"%V_CE);\n", + "print(\"Base current= %.3f mA\"%I_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.13: Page number 156-157" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current amplification factor = 0.99 \n", + "The emitter curent =1010 μA \n", + "The base curent =10 μA \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=5; \t#Collector supply voltage in V\n", + "I_CBO=0.2; \t#Leakage current at collector base junction with emitter open, in μA\n", + "I_CEO=20.0; \t#Leakage current with base open, in μA\n", + "I_C=1.0; #Collector current in mA\n", + "I_C=I_C*1000; \t#Collector current in μA\n", + "\n", + "\n", + "#Calculation\n", + "alpha=1-(I_CBO/I_CEO);\t\t#current amplification factor\n", + "I_E=(I_C-I_CBO)/alpha; #Emitter current in μA\n", + "I_E=round(I_E,-1);\n", + "I_B=I_E-I_C; #Base current in μA\n", + "I_B=round(I_B,-1);\n", + "\n", + "#Result\n", + "print(\"Current amplification factor = %.2f \"%alpha);\n", + "print(\"The emitter curent =%d μA \"%I_E);\n", + "print(\"The base curent =%d μA \"%I_B);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.14: Page number 157" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vale of I_CBO= 2.4 μA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_CEO=300.0; #Leakage current in common emitter configuration, in μA\n", + "beta=120.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "alpha=beta/(1+beta); #Current amplification factor\n", + "alpha=round(alpha,3);\n", + "I_CBO=(1-alpha)*I_CEO; #Leakage current in common base configuration, in μA\n", + "\n", + "\n", + "#Result\n", + "print(\"Vale of I_CBO= %.1f μA\"%I_CBO);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.15: Page number 157" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Value of I_CBO=0.0048 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_B=20.0; #Base current in μA\n", + "I_C=2.0; #Collector current in mA\n", + "beta=80.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "I_CEO=I_C-(beta*I_B/1000); #Leakage current with base open, in mA \n", + "alpha=beta/(beta+1); #Current amplification factor\n", + "alpha=round(alpha,3);\n", + "I_CBO=(1-alpha)*I_CEO; #Leakage current with emitter open, in mA\n", + "\n", + "\n", + "#Result\n", + "print(\"Value of I_CBO=%.4f mA\"%I_CBO);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.17: Page number 158" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector to base voltage, V_CB= 2.85 V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "beta=150.0; \t#Base current amplification factor\n", + "R_B=10.0; \t#Base resistance in kilo ohm\n", + "R_C=100.0; \t#Collector resistance in kilo ohm\n", + "V_CC=10.0; #Collector supply voltage in V\n", + "V_BB=5.0; #Base supply voltage in V\n", + "V_BE=0.7; #Base to emitter voltage in V\n", + "\n", + "\n", + "#Calculation\n", + "I_B=(V_BB-V_BE)/R_B; #Base current in mA\n", + "I_C=beta*I_B; #Collector current in mA\n", + "V_CE=V_CC - (I_C/1000)*R_C; #Collector to emitter voltage in V\n", + "V_CB=V_CE-V_BE; #Collector to base voltage in V\n", + "\n", + "\n", + "#Result \n", + "print(\"Collector to base voltage, V_CB= %.2f V\"%V_CB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.18: Page number158-159" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector current determined using alpha rating =29.93 mA\n", + "Collector current determined using beta rating =29.92 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_B=68.0; #Base current in μA\n", + "I_E=30.0; #Emitter current in mA\n", + "beta=440.0;\t #Base current amplification factor\n", + "\n", + "#Calculation\n", + "alpha=beta/(beta + 1); #current amplification factor\n", + "I_C_alpha=alpha*I_E;\t\t#Collector current using alpha rating, in mA\n", + "I_C_beta=beta*(I_B/1000.0); #Collector current using beta rating, in mA\n", + "\n", + "#Result\n", + "print(\"Collector current determined using alpha rating =%.2f mA\"%I_C_alpha);\n", + "print(\"Collector current determined using beta rating =%.2f mA\"%I_C_beta);\n", + "\n", + "#Note: In the textbook, the collector current obtained from beta rating is approximated to 29.93 mA\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.19: Page number 159" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximum allowable value of base current = 1.67 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "I_C_max=500.0; #Maximum collector current in mA\n", + "beta_max=300.0; #Maximum base current amplification factor\n", + "\n", + "#Calculation\n", + "I_B_max=I_C_max/beta_max; #Maximum base current in mA\n", + "\n", + "\n", + "#Result\n", + "print(\"The maximum allowable value of base current = %.2f mA\"%I_B_max);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.22 : Page number 167-168" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXYAAAEZCAYAAACD/A7qAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGu1JREFUeJzt3X2UZHV95/H3B9oMIEKDgsMA0vgArChpHuLKKksrO4RI\nhKxrNiDnaAdJNGtghqhHdjjCqieu5hwVYozRqKMYGKKwrM8RDdNj8IHH6ZHhSZE0M+gwAQO6hqDI\nfPePuuUUZVV3Pd2H363P65w+01V9u+5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Ae71dnVwCuyC7ch6RDgAOAw4FsR8eXmhhHxjYhoXpOm20u+z2LntVSu5Mlv\npvGfgYWIuD+7/UWq+WYbNgY82K22IuJh4Ebgd7K7zgA+Q+Mdu25Z5FtPaKtiDpX0FODQiNiSPfZm\n4AlJL2x57HUtj3EzcMII/zpmPfNgt7prXVm3D99u2quYfwaeATzS6bEl7UrjnYc+2/K1f6FxbXaz\nwnmwW919DjhJ0tHA7hGxkcbVRI/r83H+Hdit7b4rgT+gcT32TRHxYMvXdsu+x6xwHuxWaxHxb8Ac\njevoN1frVwDHS2pWNEg6QdLzmzc7PM4jwK7Zewc077sXeIjGpW7bfxM4DNg8or+GWV882G0crAOO\nyv4kIh4Dfhc4LzvdcTPwJ0Bzxf3Sto79Vdn91wIv7fDYh9N416RWL6Nx5o1Z4Xw9drMeZXXO6oh4\n3RLb/QaN3xJemp0aaVYor9jNepT18+uzc9YX8yzgAg91K4tX7GZmNeMVu5lZzXiwm5nVjAe7mVnN\neLCbmdWMB7uZWc38f6b7SUAyF1dTAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cdbfbafd0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=12.5; #Collector supply voltage, V\n", + "RC=2.5; #Collector resistor, kΩ\n", + "\n", + "#Calculation\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC-IC*RC; #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC-VCE)/RC; #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,15])\n", + "limit.set_ylim([0,6])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.23 : Page number 168" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXYAAAEZCAYAAACD/A7qAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGJVJREFUeJzt3X20ZXV93/H3F0YB5WFAifI4Az5WhY6WplpErloNgRFS\nWwlIlk5I27XSqEyirlhcLqpdy8RkqRhrHoxkOohABBQjakTLTKmaFBBGGaE+4eVBcYIGmFqM5eHb\nP86+cjm5D+fcu59+57xfa93F2fvsOftzDzPfu+/n7LNPZCaSpMmxR9cBJEn1crBL0oRxsEvShHGw\nS9KEcbBL0oRxsEvShHGwq9ciYktEvGuVj7EuIh6JiNr/vkfEtog4e5H7zouIj1a3j4iI3RERdWeQ\nhq3pOoDUkq7esJEAmXknsH9HGTRlPGKXpAnjYFevRMTzI+KrEXF/RFwK7L3EtntExLkR8Z1q++sj\n4rAR9nFIRHwqIn4cEd+KiH83775/HhFfiYh7I+L7EfHBiFgz7/5XRMSt1f0fBEaqVobroKrCeVdE\nfKmqaP46Ig6at/0LI+LL1X5uiogTR9mPBA529UhEPA74JLAVOAi4DPg3S/yRNwO/CpyUmQcAZwMP\njLCrvwTuAJ4KvAZ4d0TMVPc9DGyu9v8i4GXAf6zyPQm4AjgXeDLwXeD4kb/Bf1wHnQm8HjgY2At4\nS7Wfw4CrgHdl5oHV+iuq/UvLcrCrT14IrMnMP8rMhzPzCuD6Jbb/DeDtmfkdgMy8OTPvXWoHEXEE\ng4H9u5n5YGZ+Df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+xTw8oh4PrBPZt7E4Gqix435OD8F9h5a\ndynwqwyux/61zLxn3n17V39Gap2DXRMtM/8vsJ3BdfTnjtYvBl4UEXMVDRFxQkQ8Z25xgce5D9iz\n+uyAuXW3AT9icKnb4d8EngnsrOnbkMbiYNc0uAQ4tvovmfkPwEbgTdXpjjuB3wTmjrhfPNSxv7pa\nfzXw4gUe+1kMPjVpvpcyOPNGap3XY5dGVNU5mzPz9cts93gGvyW8uDo1UmqVR+zSiKp+flt1zvpS\njgTe5lBXVzxil6QJ4xG7JE0YB7skTRgHuyRNGAe7JE0YB7skTZj/D54Z3dbY0EBnAAAAAElFTkSu\nQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cec03e9b0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Operating point: IC=1mA and VCE=6V.\n" + ] + } + ], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "RC=6.0; #Collector resistor, kΩ\n", + "IB=20.0; #Zero signal base current, μA\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "#Calculation\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC-IC*RC; #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC-VCE)/RC; #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,15])\n", + "limit.set_ylim([0,5])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);\n", + "\n", + "#Calculating Q-point\n", + "IC=beta*(IB/1000); #Collector current, mA\n", + "VCE=VCC-IC*RC; #Collector emitter voltage, V\n", + "\n", + "#Result\n", + "print(\"Operating point: IC=%dmA and VCE=%dV.\"%(IC,VCE));\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.24 : Page number 168" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Operating point: VCE=6V and IC=1mA.\n", + "(ii) Operating point: VCE=5V and IC=1mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "RC=4.0; #Collector load, kΩ\n", + "IC_Q=1.0; #Quiescent current, mA\n", + "\n", + "#Calculation\n", + "#(i)\n", + "VCC=10; #Collector supply voltage, V\n", + "VCE=VCC-IC*RC; #Collector emitter voltage, V\n", + "\n", + "print(\"(i) Operating point: VCE=%dV and IC=%dmA.\"%(VCE,IC) );\n", + "\n", + "#(ii)\n", + "RC=5.0; #Collector load, kΩ\n", + "VCE=VCC-IC*RC; #Collector emitter voltage, V\n", + "print(\"(ii) Operating point: VCE=%dV and IC=%dmA.\"%(VCE,IC) );\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 8.25 : Page number 168-169" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Operating point: IC=39.6mA and VCE=6.93V.\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEZCAYAAAB1mUk3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmYFOW1x/HvYZFFRVbBiDIac90VIu4oA7jgFhQVUFTG\nJXqvK+7EqLhcE1AjEo0aowLG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BK2b3ADtF/cfevgIOBM6OppQuA/wEq/7Lv\nVW3MYGC0/0mg+lKk9wJbAg9U29+HMGNJJFW0noFIlqJW03B3H7aWx61DOBvpFU1DFUkNnRmIZCka\nb5gVXVOwJpsCI1QIJI10ZiAiIjozEBERFQMREUHFQEREUDEQERFUDEREBPh/5YH97FmiQk4AAAAA\nSUVORK5CYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cec03e978>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "from matplotlib import pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "VBB=10.0; #Base supply voltage, V\n", + "RC=330.0; #Collector resistor, Ω\n", + "RB=47.0; #Base resistoe, kΩ\n", + "beta=200.0; #Base current amplification factor\n", + "VBE=0.7; #Base -emitter voltage, V\n", + "\n", + "#Calculation\n", + "#VBB-IB*RB-VBE=0\n", + "IB=round(((VBB-VBE)/RB)*1000,0); #Base current, μA\n", + "IC=beta*IB/1000; #Collector current, mA\n", + "VCE=VCC-IC*(RC/1000); #Collector-emitter voltage, V\n", + "\n", + "print(\"Operating point: IC=%.1fmA and VCE=%.2fV.\"%(IC,VCE));\n", + "\n", + "#For d.c load line\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC-IC*RC; #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC-VCE)/(RC/1000.0); #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,25])\n", + "limit.set_ylim([0,65])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.26 : Page number 169-170" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Operating point: IC=1.8mA and VCE=9.74V.\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEZCAYAAACU3p4jAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8VPXVx/HPgSgi0oKoFDdAq7IIRkSxhdaoj4hV1OKG\n1iWKWq0LuFtRUWrdRZDaatXHqlVxQR7rUqVWI8UVFJTVpRrUKkjdLVVZzvPHb+INMQmZTGbunbnf\n9+uVF5mZm7knh5uTm3N/9/czd0dEREpfq7gDEBGRwlDBFxFJCRV8EZGUUMEXEUkJFXwRkZRQwRcR\nSQkVfEk0M7vVzMbm+B5dzWyVmbX48W5mT5nZMQ28NsbM7sh8vpmZfW5m1tIxiDRVWdwBiBRIXDec\nOIC7vwt8L6YYRACd4YuIpIYKviSKmW1vZi+Z2WdmNglYp5FtW5nZeWb2Zmb7GWa2SRP20cXMHjSz\nj8zsdTM7ttZrO5rZs2b2iZn9y8wmmllZrdf3MLMFmdcnAk1q0dRtK2VaQWPNbHqm1fOYma1fa/ud\nzeyZzH5mmdkuTdmPSGNU8CUxzGwtYApwG7A+cB9wQCNfcgZwCDDE3b8PHAMsa8Ku7gHeAX4AHARc\namYVmddWAqMy+/8RsBvwq0x8nYDJwHnABsA/gYFN/ga/21Y6FDgK2BBoA5yZ2c8mwMPAWHfvmHl+\ncmb/Is2mgi9JsjNQ5u7XuftKd58MzGhk+xHAaHd/E8Dd57j7J43twMw2IxTyc9x9ubu/AtwMHJl5\nj5f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eX5XwkggkcTQfPgiTZRpC41y96PWsN3ahL8qBmWGcIokgs7wRZoo0/9/KjPmvjGbA+eq2EvS\n6AxfRCQldIYvIpISKvgiIimhgi8ikhIq+CIiKaGCLyKSEv8PJUtKtHC5iPgAAAAASUVORK5CYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f9cdbd4bdd8>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%matplotlib inline\n", + "from matplotlib import pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VEE=10.0; #Emitter supply voltage, V\n", + "RC=1.0; #Collector resistor, kΩ\n", + "RE=4.7; #Collector resistor, kΩ\n", + "RB=47.0; #Base resistoe, kΩ\n", + "beta=100.0; #Base current amplification factor\n", + "VBE=0.7; #Base -emitter voltage, V\n", + "\n", + "#Calculation\n", + "#-IB*RB-VBE-IE*RE+VEE=0\n", + "#AS, IC=beta*IB and IC~IE\n", + "IE=round((VEE-VBE)/(RE+(RB/beta)),1); #Emitter current, mA\n", + "IC=IE; #Collector current, mA\n", + "\n", + "#VCC-IC*RC-VCE-IE*RE+VEE=0\n", + "#IC~IE\n", + "VCE=VCC+VEE-IC*(RC+RE); #Collector-emitter voltage, V\n", + "\n", + "print(\"Operating point: IC=%.1fmA and VCE=%.2fV.\"%(IC,VCE));\n", + "\n", + "\n", + "#For d.c load line\n", + "#VCE=VCC-IC*RC\n", + "#For calculating VCE, IC=0\n", + "IC=0; #Collector current for maximum Collector-emitter voltage, mA\n", + "VCE_max=VCC+VEE-IC*(RC+RE); #Maximum collector-emitter voltage, V\n", + "\n", + "#For calculating VCE, IC=0\n", + "VCE=0; #Collector emitter voltage for maximum collector current, V\n", + "IC_max=(VCC+VEE-VCE)/(RC+RE); #Maximum collector current, mA\n", + "\n", + "\n", + "#Plotting of d.c load line\n", + "VCE_plot=[0,VCE_max]; #Plotting variable for VCE\n", + "IC_plot=[IC_max,0]; #Plotting variable for IC\n", + "p=plt.plot(VCE_plot,IC_plot);\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,25])\n", + "limit.set_ylim([0,5])\n", + "plt.xlabel('VCE(V)');\n", + "plt.ylabel('IC(mA)');\n", + "plt.title('d.c load line');\n", + "plt.grid();\n", + "plt.show(p);\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.27 : Page number 170-171" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Emitter voltage=-1.54V.\n", + "(i) Base voltage=10.7V.\n", + "(i) Collector voltage=8.2V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VEE=10.0; #Emitter supply voltage, V\n", + "IE=1.8; #Emitter current, mA\n", + "RE=4.7; #Emitter resistor, kΩ\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "VCC=10.0; #Collector supply voltage, V\n", + "IC=1.8; #Collector current, mA\n", + "RC=1.0; #Collector resistor, kΩ\n", + "\n", + "\n", + "#Calculation\n", + "#(i)\n", + "VE=-VEE+IE*RE; #Emitter voltage, V\n", + "\n", + "#(ii)\n", + "VB=VEE+VBE; #Base voltage, V\n", + "\n", + "#(iii)\n", + "VC=VCC-IC*RC; #Collector voltage, V\n", + "\n", + "\n", + "#Result\n", + "print(\"(i) Emitter voltage=%.2fV.\"%VE);\n", + "print(\"(i) Base voltage=%.1fV.\"%VB);\n", + "print(\"(i) Collector voltage=%.1fV.\"%VC);\n", + "\n", + "#Note: In the textbook, VB=VE+VBE has been written, which is worng. It should be VB=VEE+VBE. " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.28: Page number 173-174" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Input resistance =2 kΩ\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_BE_change=200.0; #Change in base-emitter voltage in mV\n", + "I_B_change=100.0; #Change in base current in μA\n", + "\n", + "#Calculations\n", + "Ri=V_BE_change/I_B_change; #Input resistance in kΩ\n", + "\n", + "#Result\n", + "print(\"Input resistance =%d kΩ\"%Ri);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.29; Page number 174" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output resistance =8kΩ\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CE_final=10.0;\t\t\t#Final value of collector-emitter voltage in V\n", + "V_CE_initial=2.0; #Initial value of collector-emitter voltage in V\n", + "I_C_final=3.0; #Final value of collector current in mA\n", + "I_C_initial=2.0; #Initial value of collector current in mA\n", + "\n", + "#Calculations\n", + "V_CE_change=V_CE_final-V_CE_initial;\t\t#Change in collector to emitter voltage in V\n", + "I_C_change=I_C_final-I_C_initial; #Change in collector current in mA\n", + "R0=V_CE_change/I_C_change; #Output resistance in kΩ\n", + "\n", + "#Result\n", + "print(\"The output resistance =%dkΩ\"%R0);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.30: Page number 174" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the amplifier =100 \n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "R_C=2.0;\t\t#Collector load in kilo ohm\n", + "R_i=1.0;\t\t#Input resistance in kilo ohm\n", + "R_AC=R_C; #Effective collector load for single stage in kilo ohm(appoximately equal to collector load for single stage)\n", + "beta=50.0; #Current gain\n", + "\n", + "#Calculations\n", + "A_v=beta*(R_AC/R_i);\t\t#Voltage gain of the amplifier\n", + "\n", + "#Result \n", + "print(\"The voltage gain of the amplifier =%d \"%A_v);\t\t\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.31: Page number 175-176" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector current during saturation = 20 mA\n", + "Collector emitter voltage during cutoff = 20 V.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=20;\t\t#Collector supply voltage in V\n", + "R_C=1; #Collector resistance in kilo ohm\n", + "V_knee_Si=1;\t\t#Knee voltage of V_CE for Si in V \n", + "V_knee_Ge=0.5;\t\t#Knee voltage of V_CE for Ge in V\n", + "\n", + "#Calculations\n", + "I_C_sat_Si=(V_CC-V_knee_Si)/R_C;\t\t#Saturation (maximum) value of collector current in mA (for Si transistor)\n", + "I_C_sat_Ge=(V_CC-V_knee_Ge)/R_C;\t\t#Saturation (maximum) value of collector current in mA (for Ge transistor)\n", + "I_C_sat=(V_CC)/R_C;\t\t\t\t#Saturation (maximum) value of collector current in mA (neglecting knee voltage)\n", + "V_CE_cut_off=V_CC; #Collector to emitter voltage in cutoff when base current=0, in V\n", + "\n", + "#Result\n", + "print(\"Collector current during saturation = %d mA\"%I_C_sat);\n", + "print(\"Collector emitter voltage during cutoff = %d V.\"%V_CE_cut_off);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.32: Page number 176-177" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vce(off)= 24V\n", + "Ic(sat) = 10.67 mA\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=12.0;\t\t#Collector supply voltage in V\n", + "V_EE=12.0;\t\t#Emitter supply voltage in V\n", + "R_C=750.0;\t\t#Collector resistance in ohm\n", + "R_E=1.5;\t\t#Emitter resistance in kilo ohm\n", + "R_B=100.0;\t\t#Base resistance in ohm\n", + "beta=200;\t\t#base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Applying Kirchhoff's voltage law to the collector side of the circuit\n", + "#using the equation: Vcc -IcRc-Vce -IeRe+Vee=0\n", + "#we get Vce=Vcc+Vee-Ic(Rc+Re), [Ie=Ic, approximately]\n", + "#We get Vce(off), when Ic=0;\n", + "\n", + "I_C_Vce_off=0;\t\t\t\t\t#Collector current for Vce(off) in mA\n", + "V_CE_off=V_CC+V_EE -(I_C_Vce_off * (R_C +R_E));\t#Collector to emitter voltage in V, during transistor in off state\n", + "\n", + "#We get Ic(sat), when Vce=0\n", + "V_CE_Ic_sat=0;\t\t\t\t\t\t#Collector to emitter voltage for saturation current of collector in V\n", + "I_C_sat=(V_CC+V_EE-V_CE_Ic_sat)/(R_C+(R_E*1000));\t#Saturated collector current in A \n", + "I_C_sat=I_C_sat*1000;\t\t\t\t\t#Saturated collector current in mA\n", + "#Result\n", + "print(\"Vce(off)= %dV\"%V_CE_off);\n", + "print(\"Ic(sat) = %.2f mA\"%I_C_sat);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.33 : Page number 177" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The base current is large enough to produce Ic greater than Ic(sat), therefore the transistor is saturated.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_knee=0.2;\t\t\t\t#Knee voltage of collector-emitter voltage in V\n", + "V_CC=10.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BB=3.0;\t\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V \t\n", + "R_B=10.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=1.0;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=50.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#applying Kirchhoff's voltage law along the collector side of the circuit,\n", + "#We get Vcc-Ic(sat)*Rc-V_knee=0\n", + "#From the above equation, we get:\n", + "I_C_sat=(V_CC-V_knee)/R_C;\t\t#Saturated collector current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law along base emitter side,\n", + "#We get VBB-IB*RB-VBE=0;\n", + "#From the above equation, we get:\n", + "I_B=(V_BB-V_BE)/R_B;\t\t\t#Base current in mA\n", + "\n", + "\n", + "I_C=beta*I_B\t\t\t\t#Collector current in mA\n", + "\n", + "#Result\n", + "if(I_C>I_C_sat):\n", + "\tprint(\"The base current is large enough to produce Ic greater than Ic(sat), therefore the transistor is saturated.\");\n", + "else:\n", + "\tprint(\"The base current is not large enough to produce Ic greater than Ic(sat), therefore the transistor isn't saturated. \");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.34: Page number 177-178" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "As both collector-base and emitter-base junction are forward biased, the transistor is operating in the saturation region. \n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "V_CC=10.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BE=0.95;\t\t\t\t#Base-emitter voltage in V \t\n", + "I_B=100.0;\t\t\t\t#Base current in microAmp\n", + "R_C=970.0;\t\t\t\t#Collector resistor's resistance in ohm\n", + "beta=100.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculations\n", + "I_C=(I_B/1000)*beta;\t\t\t\t#Collector current in mA \n", + "\n", + "#Applying Kirchhoff's voltage law along collector side\n", + "#We get Vcc-IcRc-Vce=0\n", + "#From the above equation, we get:\n", + "\n", + "V_CE=V_CC-((I_C/1000)*R_C);\t\t\t\t#Collector-emitter voltage in V\n", + "\n", + "#From the equation, V_CE=V_CB+V_BE,\n", + "V_CB=V_CE-V_BE;\t\t\t\t\t\t#Collector-base voltage in V\n", + "\n", + "\n", + "#Result\n", + "if(V_CB<0 and V_BE >0):\n", + "\tprint(\"As both collector-base and emitter-base junction are forward biased, the transistor is operating in the saturation region. \");\n", + "else:\n", + "\tprint(\"No. The transistor isn't operating in the saturation region.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.35: Page number 178" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Therefore, for putting transistor in saturation, VBB >= 1.95 V\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=10.0;\t\t\t\t#Collector supplu voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V\n", + "R_B=50.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=2.0;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=200.0;\t\t\t\t#Base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Applying Kirchhoff's voltage law along the collector side,\n", + "#We get, Vcc-Ic(sat)*Rc-Vce=0;\n", + "#From the above equation, we get:\n", + "#I_C_sat=(V_CC-V_CE)/R_C, but as transistor goes into saturation, Vce=0;\n", + "\n", + "V_CE=0;\t\t\t\t\t\t#Collector-emiter voltage in V, for transistor in saturation \n", + "I_C_sat=(V_CC-V_CE)/R_C;\t\t\t#Saturated collector current in mA\n", + "\n", + "I_B=I_C_sat/beta;\t\t\t\t#Base current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law to the base circuit,\n", + "#We get, VBB - IB*RB - VBE=0\n", + "#From the above equation. we get:\n", + "V_BB=V_BE+ I_B*R_B;\t\t\t\t#Base supply voltage to put transistor in saturation, in V\n", + "\n", + "#Result\n", + "print(\"Therefore, for putting transistor in saturation, VBB >= %.2f V\"%V_BB);\n", + " \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.36: Page number 178-179" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i)Our assumption was correct, the transistor is in active state for Rc=2 kilo ohm.\n", + "(ii)The transistor is at the edge of saturation for Rc=4 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\n", + "(iii)Our assumption was wrong, the transistor is in saturation for Rc=8 kilo ohm.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=10.0;\t\t\t#Collector supply voltage in V\n", + "V_BB=2.7;\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t#Base-emitter voltage in V\n", + "beta=100.0;\t\t\t#Base current amplification factor\n", + "R_E=1.0;\t\t\t#Emitter resistor's resistance in kilo ohm\n", + "\n", + "\n", + "#Calcultaion\t\n", + "V_B=V_BB;\t\t\t#Base voltage in V\n", + "V_E=V_B-V_BE;\t\t\t#Emitter voltage in V\n", + "I_E=V_E/R_E;\t\t\t#Emitter current in mA\n", + "I_C=I_E;\t\t\t#Collector current (approximately equal to emitter current) in mA\n", + "I_B=I_C/beta;\t\t\t#Base current in mA\n", + "\n", + "#Case (i):\n", + "R_C=2;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "#We get,Vcc-IcRc=Vc,\n", + "\n", + "V_C=V_CC-I_C*R_C;\t\t#Collector voltage in V\n", + "\n", + "if(V_C>V_E):\n", + "\tprint(\"(i)Our assumption was correct, the transistor is in active state for Rc=2 kilo ohm.\");\n", + "elif(V_C<V_E):\n", + "\tprint(\"(i)Our assumption was wrong, the transistor is in saturation for Rc=2 kilo ohm.\");\n", + "elif(V_C==V_E):\n", + "\tprint(\"(i)The transistor is at the edge of saturation for Rc=2 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\");\n", + "\n", + "#Case (ii):\n", + "R_C=4;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "#We get,Vcc-IcRc=Vc,\n", + "\n", + "V_C=V_CC-I_C*R_C;\t\t#Collector voltage in V\n", + "if(V_C>V_E):\n", + "\tprint(\"(ii)Our assumption was correct, the transistor is in active state for Rc=4 kilo ohm.\");\n", + "elif(V_C==V_E):\n", + "\tprint(\"(ii)The transistor is at the edge of saturation for Rc=4 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\");\n", + "elif(V_C<V_E):\n", + "\tprint(\"(ii)Our assumption was wrong, the transistor is in saturation for Rc=4 kilo ohm.\");\n", + "\n", + "\n", + "#Case (iii):\n", + "R_C=8;\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "#We get,Vcc-IcRc=Vc,\n", + "\n", + "V_C=V_CC-I_C*R_C;\t\t#Collector voltage in V\n", + "if(V_C>V_E):\n", + "\tprint(\"(iii)Our assumption was correct, the transistor is in active state for Rc=8 kilo ohm.\");\n", + "elif(V_C<V_E):\n", + "\tprint(\"(iii)Our assumption was wrong, the transistor is in saturation for Rc=8 kilo ohm.\");\n", + "elif(V_C==V_E):\n", + "\tprint(\"(iii)The transistor is at the edge of saturation for Rc=8 kilo ohm, therefore relation between transistor currents are same for both saturation and active state.\");\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.37 : Page number 179-180" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(i) Base voltage =0.5V is less than VBE=0.7V, therefore, transistor is cut-off.\n", + "0.8 0.8 7.0\n", + "(ii) VC=7V > VE=0.8V, therefore the transistor is active. Our assumption was correct.\n", + "(iii) VC=-8V < VE=2.3V, therefore the transistor is saturated. Our assumption was wrong.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=15.0;\t\t\t#Collector supply voltage in V\n", + "R_C=10.0;\t\t\t#Collector resistor's resistance in kilo ohm\n", + "V_BE=0.7;\t\t\t#Base-emitter voltage in V\n", + "beta=100.0;\t\t\t#Base current amplification factor\n", + "R_E=1.0;\t\t\t#Emitter resistor's resistance in kilo ohm\n", + "\n", + "\n", + "#Calculation\t\n", + "\n", + "#Case (i):\n", + "V_BB=0.5;\t\t\t#Base supply voltage in V\n", + "VB=V_BB; #Base voltage, V\n", + "print(\"(i) Base voltage =%.1fV is less than VBE=%.1fV, therefore, transistor is cut-off.\"%(VB,V_BE));\n", + "\n", + "\n", + "#Case (ii):\n", + "V_BB=1.5;\t\t\t#Base supply voltage in V\n", + "VB=V_BB; #Base voltage, V\n", + "VE=VB-V_BE; #Emitter voltage, V\n", + "IE=round(VE/R_E,1); #Emitter current, mA\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "IC=IE; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VC=V_CC-IC*R_C; #Collector voltage, V\n", + "print(VE,IE,VC);\n", + "print(\"(ii) VC=%dV > VE=%.1fV, therefore the transistor is active. Our assumption was correct.\"%(VC,VE));\n", + "\n", + "#Case (iii):\n", + "V_BB=3; \t\t\t#Base supply voltage in V\n", + "VB=V_BB; #Base voltage, V\n", + "VE=VB-V_BE; #Emitter voltage, V\n", + "IE=round(VE/R_E,1); #Emitter current, mA\n", + "#Assuming transistor to be in active state\n", + "#Applying Kirchhoff's voltage law along collector side,\n", + "IC=IE; #Collector current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VC=V_CC-IC*R_C; #Collector voltage, V\n", + "\n", + "print(\"(iii) VC=%dV < VE=%.1fV, therefore the transistor is saturated. Our assumption was wrong.\"%(VC,VE));" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.38: Page number 181" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum collector current that can be allowed without destruction of the transistor = 5 mA.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "P_D_max=100.0;\t\t\t#Maximum power dissipation of a transistor in mW\n", + "V_CE=20.0;\t\t\t#Collector emitter voltage in V\n", + "\n", + "#Calculation\n", + "#As power=curent*voltage\n", + "#P_D_max=I_C_max*V_CE\n", + "#From the above equation, we get:\n", + "\n", + "I_C_max=P_D_max/V_CE;\t\t#Maximum collector current that can be allowed without destruction of the transistor, in mA\n", + "\n", + "#Result\n", + "print(\"Maximum collector current that can be allowed without destruction of the transistor = %d mA.\"%I_C_max); \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.39: Page number 181" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power dissipated = 4.3W\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=5.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BB=5.0;\t\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V\n", + "R_B=1.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=0;\t\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=200.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculation\n", + "\n", + "#Applying Kirchhoff's voltage law along base circuit<\n", + "#We get, VBB- IB*RB - VBE=0.\n", + "#From the above equation, we get:\n", + "\n", + "I_B=(V_BB-V_BE)/R_B;\t\t\t#Base current in mA\n", + "\n", + "I_C=beta*I_B;\t\t\t\t#Collector current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law along collector circuit:\n", + "\n", + "V_CE=V_CC-I_C*R_C;\t\t\t#Collector-emitter voltage in V\n", + "\n", + "#As power=curent*voltage\n", + "#P_D=I_C*V_CE\n", + "#From the above equation, we get:\n", + "P_D=V_CE*I_C;\t\t\t\t#Power dissipated in mW\n", + "P_D=P_D/1000;\t\t\t\t#Power dissipated in W\n", + "\n", + "#Result\n", + "print(\"Power dissipated = %.1fW\"%P_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.40: Page number 181-182" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power dissipated = 6mW\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "V_CC=5.0;\t\t\t\t#Collector supply voltage in V\n", + "V_BB=1.0;\t\t\t\t#Base supply voltage in V\n", + "V_BE=0.7;\t\t\t\t#Base-emitter voltage in V\n", + "R_B=10.0;\t\t\t\t#Base resistor's resistance in kilo ohm\n", + "R_C=1.0;\t\t\t\t\t#Collector resistor's resistance in kilo ohm\n", + "beta=100.0;\t\t\t\t#base current amplification factor\n", + "\n", + "#Calculation\n", + "\n", + "#Applying Kirchhoff's voltage law along base circuit<\n", + "#We get, VBB- IB*RB - VBE=0.\n", + "#From the above equation, we get:\n", + "\n", + "I_B=(V_BB-V_BE)/R_B;\t\t\t#Base current in mA\n", + "\n", + "I_C=beta*I_B;\t\t\t\t#Collector current in mA\n", + "\n", + "#Applying Kirchhoff's voltage law along collector circuit:\n", + "\n", + "V_CE=V_CC-I_C*R_C;\t\t\t#Collector-emitter voltage in V\n", + "\n", + "#As power=curent*voltage\n", + "#P_D=I_C*V_CE\n", + "#From the above equation, we get:\n", + "P_D=V_CE*I_C;\t\t\t\t#Power dissipated in mW\n", + "\n", + "\n", + "#Result\n", + "print(\"Power dissipated = %.0fmW\"%P_D);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.41 : Page number 182" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IC=19.5mA is much less than IC_max=100mA. Therefore, will not change with VCC and current rating is not exceeded.\n", + "PD=293mW is less than PD_max=800mW. Therefore, power rating is not exceeded.\n", + "If base current is removed, transistor will turn off. Hence, VCE_max will be exceeded because entire supply voltage VCC will be dropped across the transistor.\n" + ] + } + ], + "source": [ + "#Variable declaration\n", + "VBB=5.0; #Base supply voltage, V\n", + "RB=22.0; #Base resistor, kilo ohm\n", + "RC=1.0; #Collector resistor, kilo ohm\n", + "beta=100.0; #Base current amplification factor\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "PD_max=800.0; #Maximum power dissipation, mW\n", + "VCE_max=15.0; #Maximum collector-emitter voltage, V\n", + "IC_max=100.0; #Maximum collector current, mA\n", + "\n", + "#Calculation\n", + "IB=((VBB-VBE)/RB)*1000; #Base current, μA\n", + "IC=beta*IB/1000; #Collector current, mA\n", + "\n", + "print(\"IC=%.1fmA is much less than IC_max=%dmA. Therefore, will not change with VCC and current rating is not exceeded.\"%(IC,IC_max));\n", + "\n", + "#VCC=VCE+IC*RC\n", + "VCC_max=VCE_max+IC*RC; #Maximum value of Collector supply voltage, V\n", + "PD=VCE_max*IC; #Power dissipation, mW\n", + "\n", + "print(\"PD=%dmW is less than PD_max=%dmW. Therefore, power rating is not exceeded.\"%(PD,PD_max));\n", + "\n", + "print(\"If base current is removed, transistor will turn off. Hence, VCE_max will be exceeded because entire supply voltage VCC will be dropped across the transistor.\");" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_4.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_4.ipynb new file mode 100644 index 00000000..e8168ab8 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_4.ipynb @@ -0,0 +1,1907 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:1e5463fc2e8c67a2f9099cf3f6c078bc1c9dccccd63589a75ad6ce5024fe6432" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 9 : TRANSISTOR BIASING" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.1: Page number 195-196" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_CC=6.0; #Collector supply voltage\n", + "R_C=2.5; #Collector load in k\u2126\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "#For faithful amplification Vce (collector-emitter voltage)> 1V for Si transistor.\n", + "V_CE_max=1; #Maximum allowed collector-emitter voltage for faithful amplification, in V.\n", + "V_Rc_max=V_CC-V_CE_max; #maximum voltage drop across collector load in V.\n", + "I_C_max=V_Rc_max/R_C; #Maximum allowed collector current in mA\n", + "\n", + "#(ii)\n", + "IC_min_zero_signal=I_C_max/2; #Minimum zero signal collector current in mA\n", + "\n", + "#Results\n", + "print(\"The maximum allowed collector current during application of signal for faithful amplification = %d mA.\"%I_C_max);\n", + "print(\"The minimum zero signal collector current required = %d mA.\"%IC_min_zero_signal);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowed collector current during application of signal for faithful amplification = 2 mA.\n", + "The minimum zero signal collector current required = 1 mA.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.2: Page number 196\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=13.0; #Collector supply voltage in V\n", + "V_knee=1.0; #Knee voltage in V\n", + "R_C=4.0; #Collector load in k\u2126\n", + "rate_IC_VBE=5.0; #Rate of change of collector current IC with base-emitter voltage VBE in mA/V.\n", + "beta=100.0; #base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "V_Rc_max=VCC-V_knee; #Maximum allowed voltage across collector load in V\n", + "I_C_max=V_Rc_max/R_C; #Maximum allowed collector current in mA\n", + "I_B_max=I_C_max/beta; #Maximum base current in mA\n", + "I_B_max=I_B_max*1000; #Maximum base current in \ud835\udf07A\n", + "\n", + "V_B_max=I_C_max/rate_IC_VBE; #Maximum base voltage signal in V\n", + "V_B_max=V_B_max*1000; #Maximum base voltage signal in mV\n", + "\n", + "#Results\n", + "print(\"Maximum base current =%d \ud835\udf07A.\"%I_B_max);\n", + "print(\"Maximum input signal voltage =%d mV.\"%V_B_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum base current =30 \ud835\udf07A.\n", + "Maximum input signal voltage =600 mV.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.3: Page number 200-201" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=9.0; #Colector supply voltage in V\n", + "VBB=2.0; #Base supply voltage in V\n", + "R_B=100.0; #Base resistor's resistance in k\u2126\n", + "R_C=2.0; #Collector load in k\u2126\n", + "beta=50.0; #base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Case (i):\n", + "\n", + "#Applying Kirchhoff's law to the input circuit\n", + "#We get, IB*RB +VBE =VBB.\n", + "#Neglecting the small base-emitter voltage, we get:\n", + "I_B=VBB/R_B; #Base current in mA\n", + "I_C=beta*I_B; #Collector current in mA\n", + "\n", + "print(\"Collector current = %dmA\"%I_C);\n", + "\n", + "#Applying Kirchhoff's law to the output ciruit\n", + "#We get, IC*RC + VCE= VCC.\n", + "#From the above equation, we get:\n", + "V_CE=VCC-I_C*R_C; #Collector emitter voltage in V\n", + "\n", + "print(\"Collector emitter voltage =%dV.\"%V_CE);\n", + "\n", + "\n", + "#Case (ii):\n", + "\n", + "R_B=50.0;\n", + "I_B=VBB/R_B;\n", + "I_C=beta*I_B;\n", + "V_CE=VCC - I_C*R_C;\n", + "\n", + "print(\"The new operating point for base resistor RB=50 k\u2126 is, VCE=%dV and IC=%dmA.\"%(V_CE,I_C));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector current = 1mA\n", + "Collector emitter voltage =7V.\n", + "The new operating point for base resistor RB=50 k\u2126 is, VCE=5V and IC=2mA.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.4: Page number 201-202" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import matplotlib.pyplot as plt\n", + "\n", + "#variable declaration\n", + "beta=100.0; #base current amplification factor\n", + "VCC=6.0; #Collector suply voltagein V\n", + "VBE=0.7 #Base emitter voltage in V\n", + "R_B=530.0; #Base resistor's resistance in k\u2126 .\n", + "R_C=2.0; #Collector resistor's resistance in k\u2126 .\n", + "\n", + "#Calculation\n", + "#D.C load line equation : VCE=VCC-IC*RC;\n", + "#Calculating maximum VCE ,by IC=0;\n", + "I_C_Vce_max=0; #Collector current for maximum collector-emitter voltage, in mA\n", + "VCE_max=VCC;-I_C_Vce_max*R_C; #Maximum collector-emitter voltage in V\n", + "\n", + "\n", + "#Calculating maximum collector current IC,by VCE=0;\n", + "V_CE_IC_max=0; #Collector-emitter voltage for maximum collector current, in V \n", + "I_C_max=(VCC-V_CE_IC_max)/R_C; #Maximum collector current in mA\n", + "\n", + "\n", + "#Operating point:\n", + "#For input circuit, applying Kirchhoff's law, We get,\n", + "#VCC=IB*RB + VBE.\n", + "#From the above equation,\n", + "IB=(VCC-VBE)/R_B; #Base current in mA\n", + "IC=beta*IB; #Collector current\n", + "\n", + "#From the output circuit, applying Kirchhoff's law, we get:\n", + "VCE=VCC-IC*R_C; #Collector-emitter voltage in V\n", + "\n", + "\n", + "#Stability factor\n", + "SF=beta+1; \n", + "\n", + "#Result\n", + "print(\"Operating point: VCE= %dV and IC=%d mA\"%(VCE,IC));\n", + "print(\"Stability factor= %d.\"%SF);\n", + "\n", + "\n", + "#plot\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,10])\n", + "limit.set_ylim([0,5])\n", + "VCE=[i for i in range(0,(int)(VCC+1))]; #Plot variable for V_CE\n", + "IC=[((VCC-i)/(R_C)) for i in (VCE[:])]; #Plot variable for I_C\n", + "\n", + "p=plot(VCE,IC);\n", + "xlabel(\"VCE(V)\");\n", + "ylabel(\"IC(mA)\");\n", + "title(\"d.c load line\");\n", + "show(p);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point: VCE= 4V and IC=1 mA\n", + "Stability factor= 101.\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAEZCAYAAACZwO5kAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGk5JREFUeJzt3XtQVPfdx/HPIqTexQugCKjxEpVFwetoNVk0XqsmijFi\nNQZjMqONo0lnWmsatZ3RxMTUYFrTPonGWCsYGxuNEms1WWu11NbLo6FpiVNJuHi/U0Vu+/zhwwoo\nCMjZs3v2/ZphIrvL/r7smA8ff5xz1uZyuVwCAFhWgNkDAACMRdADgMUR9ABgcQQ9AFgcQQ8AFkfQ\nA4DFEfTwas8++6xeffXVB3qOrKwsBQQEqLS0tJ6musPhcGjt2rX3vG/p0qWaMWOGJOnbb79Vs2bN\nxNHMMEOg2QMA1bHZbLLZbGaPUaXq5it/e1RUlK5fv+6psYAKaPTwer7agn11blgPQQ+vcvToUfXp\n00fNm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ADcTFxSk+Pl6lpaXVPi47O1srVqwg5OFVaPQAYHHU\nDgCwOIIeACyOoAcAiyPoAcDiCHoAsLj/AxBRW6txz5gaAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7f8eea67df10>" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.5: Page number 202" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "beta=100.0; #base current amplification factor\n", + "I_C_zero_signal=1.0; #zero signal collector current in mA\n", + "VBE=0.3; #Base-emitter voltage of Ge transistor in V\n", + "\n", + "#calculations\n", + "\n", + "#Case(i)\n", + "I_B_zero_signal=I_C_zero_signal/beta; #Zero signal base current in mA\n", + "\n", + "#applying the Kirchhoff's law along input circuit:\n", + "#We get, VCC=IB*RB +VBE\n", + "#From the above equation we get,\n", + "R_B=(VCC-VBE)/I_B_zero_signal; #Required base resistor's resistance in k\u2126\n", + "\n", + "print(\"Value of base resistor for operating the given Ge transistor at zero signal IC=1mA is = %d k\u2126\"%R_B);\n", + "\n", + "\n", + "\n", + "#Case(ii)\n", + "beta=50;\n", + "I_B=(VCC-VBE)/R_B; #Base current of another transistor with beta=50, in mA\n", + "I_C_zero_signal=beta*I_B; #Zero signal collector current for beta=50 , in mA\n", + "\n", + "print(\"The new value of zero signal collector current =%.1fmA\"%I_C_zero_signal);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Value of base resistor for operating the given Ge transistor at zero signal IC=1mA is = 1170 k\u2126\n", + "The new value of zero signal collector current =0.5mA\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.6:Page number 202-203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Varaible declaration\n", + "VCC=10.0; #Collector supply voltage in V\n", + "VBE=0; #Base emitter voltage in V(considering itas zero due to it's small value)\n", + "R_B=1.0; #Base resistor's resistance in M\u2126\n", + "R_C=2.0; #Collector resistor's resistance in k\u2126 \n", + "R_E=1.0; #Emitter resistor's resistance in k\u2126\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#using Kirchhoff's law in the input circuit, we get:\n", + "#VCC=IB*RB +VBE +IE*RE\n", + "#Since, IE=(beta +1)*I_B\n", + "#From the above equation we get:\n", + "I_B=round((VCC-VBE)/((beta + 1)*R_E + R_B*1000),4); #Base current in mA\n", + "I_C=round(beta*I_B,2); #Collector current in mA\n", + "I_E=I_B+I_C; #Emitter current in mA\n", + "\n", + "#Result\n", + "print(\"Base current =%.4f mA\"%I_B);\n", + "print(\"Collector current =%.2f mA\"%I_C);\n", + "print(\"Emitter current =%.3f mA\"%I_E);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Base current =0.0091 mA\n", + "Collector current =0.91 mA\n", + "Emitter current =0.919 mA\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.7: Page number 203-204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE=8.0; #Collector-emitter voltage at operating point in V\n", + "IC=2.0; #Colector current at operating point in mA\n", + "VCC=15.0; #Collector supply voltagein V\n", + "beta=100.0; #base current amplification factor\n", + "VBE=0.6; #base emitter voltage in V\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC=VCE+IC*RC.\n", + "#So, from above equation we get:\n", + "RC=(VCC-VCE)/IC; #Collector resistor's resistance in k\u2126 .\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#Applying Kirchhoff's law along the input circuit,\n", + "#we get, VCC=IB*RB + VBE\n", + "#So, from the above equation:\n", + "RB=(VCC-VBE)/IB; #Base resistor's resistance in k\u2126 .\n", + "\n", + "\n", + "#Results\n", + "print(\"Collector load =%.1f k\u2126 .\"%RC);\n", + "print(\"Base resistor=%d k\u2126 .\"%RB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector load =3.5 k\u2126 .\n", + "Base resistor=720 k\u2126 .\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.8: Page number 204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=560.0; #Collector resistor's resistance in \u2126\n", + "beta_25=100.0; #base current amplification factor at 25 degree celsius\n", + "beta_75=150.0; #base current amplification factor at 25 degree celsius\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "\n", + "#Applying Kirchhoff's law along input circuit, we get\n", + "#VCC=IB*RB+VBE\n", + "IB=(VCC-VBE)/RB; #Base current at 25 degree celsius, in mA\n", + "\n", + "\n", + "#For temperature 25 degree celsius\n", + "IC_25=beta_25*IB; #Collector current at 25 degree celsius, in mA\n", + "\n", + "\n", + "#Applying Kirchhoff's alw at the output circuit,\n", + "#we get: VCC=IC*RC + VCE\n", + "#From the above equation,\n", + "VCE_25=round(VCC-(IC_25/1000)*RC,2); #Collector emitter voltage at 25 degree celsius, in V\n", + "\n", + "\n", + "#For temperature 75 degree celsius\n", + "IC_75=round(beta_75*IB,0); #Collector current at 75 degree celsius, in mA\n", + "\n", + "#Applying Kirchhoff's alw at the output circuit,\n", + "#we get: VCC=IC*RC + VCE\n", + "#From the above equation,\n", + "VCE_75=round(VCC-(IC_75/1000)*RC,2); #Collector emitter voltage at 75 degree celsius, in V\n", + "\n", + "\n", + "change_IC=(IC_75-IC_25)*100.0/IC_25; #percentage change in collector current\n", + "change_VCE=(VCE_75-VCE_25)*100.0/VCE_25; #Percentage change in collector-emitter voltage \n", + "\n", + "#Results\n", + "print(\"The percentage change in collector current =%d%%\"%change_IC);\n", + "print(\"The percentage change in collector-emitter voltage =%.1f%%\"%change_VCE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The percentage change in collector current =50%\n", + "The percentage change in collector-emitter voltage =-56.3%\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.10: Page number 205" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE_max=20.0; #Maximum collector-emitter voltage in V\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "IC_max=8.0; #Maximum collector current in mA\n", + "IB=40.0; #Base current in microampere\n", + "\n", + "#Calculations\n", + "\n", + "#During cut off state the collector-emitter voltage is maximum and equal to collector supply voltage\n", + "VCC=VCE_max; #Collector supply voltage in V\n", + "\n", + "#Maximum collector current IC_max=collector supply voltage(VCC)/collector load(RC)\n", + "#Collector load(RC)=VCC*IC_max\n", + "RC=VCC/IC_max; #Collector load in k\u2126 .\n", + "\n", + "#Applying Kirchhoff's law along input circuit,\n", + "#we get, VCC=IB*RB +VBE.\n", + "#From the above equation, we get:\n", + "RB=(VCC-VBE)/(IB/1000); #Base resistor's resistance in k\u2126 .\n", + "\n", + "#Results\n", + "print(\"Collector supply voltage = %dV\"%VCC);\n", + "print(\"Collector load=%.1f k\u2126 .\"%RC);\n", + "print(\"Base resistor's resistance=%.1f k\u2126 .\"%RB);\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector supply voltage = 20V\n", + "Collector load=2.5 k\u2126 .\n", + "Base resistor's resistance=482.5 k\u2126 .\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.12: Page number 208" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage in V\n", + "VEE=-20.0; #Emitter supply voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=4.7; #Collector resistor's resistance in k\u2126\n", + "RE=10.0; #Emitter resistor's resistance in k\u2126\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "beta=85.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's voltage law along the base-emitter circuit (input circuit),\n", + "#we get,IB*RB +IE*RE +VBE -VEE=0.\n", + "#Since IB=IC/beta and IC~IE,\n", + "#(IE/beta)*RB + IE*RE + VBE + VEE =0.\n", + "IE=(-VEE-VBE)/(RE + RB/beta); #Emitter current in mA\n", + "IC=IE; #Collector current (approximately equal to emitter current) in mA\n", + "\n", + "#Applying Kirchhoff's law from VCC till collector terminal,\n", + "#we get, VCC - IC*RC =VC\n", + "VC=VCC-IC*RC; #voltage at collector terminal in V\n", + "\n", + "#Applying Kirchhoff's law from emitter terminal to VEE\n", + "#we get, VE -IE*RE =VEE\n", + "VE=VEE + IE*RE; #Voltage at emitter treminal in V\n", + "\n", + "VCE=VC-VE; #Collector-emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"The collector current = %.2f mA\"%IC);\n", + "print(\"The emitter current = %.2f mA\"%IE);\n", + "print(\"The voltage at collector terminal = %.1f V\"%VC);\n", + "print(\"The collector-emitter voltage = %.1f V\"%VCE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The collector current = 1.73 mA\n", + "The emitter current = 1.73 mA\n", + "The voltage at collector terminal = 11.9 V\n", + "The collector-emitter voltage = 14.6 V\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.13: Page number 208-209\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage in V\n", + "VEE=-20.0; #Emitter supply voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=4.7; #Collector resistor's resistance in k\u2126\n", + "RE=10.0; #Emitter resistor's resistance in k\u2126\n", + "beta1=85.0; #Base current amplification factor for case 1 \n", + "beta2=100.0; #Base current amplification factor for case 1\n", + "VBE_1=0.7; #Base emitter voltage for case 1 in V\n", + "VBE_2=0.6; #Base emitter voltage for case 2 in V\n", + "\n", + "\n", + "#Calculations\n", + "#For beta=85 and VBE=0.7,\n", + "#As calculated in the previous question,\n", + "IC_1=1.73; #Collector current in mA.\n", + "VCE_1=14.6; #Collector-emitter voltage in V.\n", + "\n", + "\n", + "#For case (ii)\n", + "#beta=100 and VBE=0.6\n", + "\n", + "#Applying Kirchhoff's voltage law along the base-emitter circuit (input circuit),\n", + "#we get,IB*RB +IE*RE +VBE -VEE=0.\n", + "#Since IB=IC/beta and IC~IE,\n", + "#(IE/beta)*RB + IE*RE + VBE +VEE =0.\n", + "IE_2=round((-VEE-VBE_2)/(RE + RB/beta2),2); #Emitter current in mA\n", + "IC_2=IE_2; #Collector current (approximately equal to emitter current) in mA\n", + "\n", + "#Applying Kirchhoff's law from VCC till collector terminal,\n", + "#we get, VCC - IC*RC =VC\n", + "VC=round(VCC-IC_2*RC,1); #voltage at collector terminal in V\n", + "\n", + "#Applying Kirchhoff's law from emitter terminal to VEE\n", + "#we get, VE -IE*RE =VEE\n", + "VE=round(VEE + IE_2*RE,1); #Voltage at emitter treminal in V\n", + "\n", + "VCE_2=VC-VE; #Collector-emitter voltage in V\n", + "\n", + "\n", + "change_IC= (IC_2-IC_1)*100/IC_1; #%age change in collector current\n", + "\n", + "change_VCE=(VCE_2-VCE_1)*100/VCE_2; #%age change in collector-emitter voltage\n", + "\n", + "\n", + "\n", + "#Results\n", + "print(\"Percentage change in collector current =%.1f%%\"%change_IC);\n", + "print(\"Percentage change in collector-emitter voltage =%.1f%%\"%change_VCE);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Percentage change in collector current =1.7%\n", + "Percentage change in collector-emitter voltage =-3.5%\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.14: Page number 210\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage in V\n", + "VBE=0.7 #Base-emitter voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=1.0; #Collector resistor's resistance in k\u2126\n", + "beta=100.0; #base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along input circuit,\n", + "#we get, VCC -IC*RC -IB*RB -VBE=0.\n", + "#since IC= beta*IB,\n", + "#We get,\n", + "IB=(VCC-VBE)/(RB + beta*RC); #Base current in mA\n", + "IC=beta*IB; #Collector current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC=0.\n", + "#From the above equation,\n", + "VCE=VCC-IC*RC; #Collector emitter voltage in V\n", + "\n", + "\n", + "#Results\n", + "print(\"The operating point : VCE=%.2fV and IC=%.2fmA.\"%(VCE,IC));\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The operating point : VCE=10.35V and IC=9.65mA.\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.15: Page number 210-211\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "VBE=0.3; #Base emitter voltage in V\n", + "IC=1.0; #Collector current in mA\n", + "VCE=8.0; #Collector emitter voltage in V\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Case(i)\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-IC*RC-VCE=0.\n", + "#from the above equation we get,\n", + "RC=(VCC-VCE)/IC; #Collector load in kilo ohm\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#Applying Kirchhoff's law along input circuit\n", + "#we get, VCC-VBE-(beta*IB*RC)-IB*RB=0.\n", + "#From the above equation we get,\n", + "RB=round((VCC-VBE-beta*IB*RC)/IB,0); #Base resistor's resistance in k\u2126\n", + "\n", + "#Results\n", + "print(\"The resistance value of base resistor=%d k\u2126 and collector load= %d k\u2126.\"%(RB,RC));\n", + "\n", + "#Case(ii)\n", + "\n", + "beta=50;\n", + "\n", + "#Applying Kirchhoff's law along input circuit,\n", + "#we get, VCC -IC*RC -IB*RB -VBE=0.\n", + "#since IC= beta*IB,\n", + "#We get,\n", + "IB=(VCC-VBE)/(RB + beta*RC); #Base current in mA\n", + "IC=beta*IB; #Collector current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC=0.\n", + "#From the above equation,\n", + "VCE=round(VCC-IC*RC,1); #Collector emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"The operating point : VCE=%.1fV and IC=%.1fmA.\"%(VCE,IC));\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The resistance value of base resistor=770 k\u2126 and collector load= 4 k\u2126.\n", + "The operating point : VCE=9.6V and IC=0.6mA.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.16 : Page number 211" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE=2.0; #Collector-emitter voltage at operating point in V\n", + "VBE=0.7; #Base-emitter voltage in V \n", + "IC=1.0; #Collector current at operating point in mA\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#As, VCE=VCB +VBE\n", + "#we get,\n", + "VCB=VCE-VBE; #Collector-base voltage in V\n", + "RB=VCB/IB; #Base resistor's resistance in k\u2126\n", + "\n", + "#Results\n", + "print(\"Value of base resistor's resistance=%d k\u2126.\"%RB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Value of base resistor's resistance=130 k\u2126.\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.17 : Page number 211-212" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "VBE=0.7 #Base-emitter voltage in V\n", + "RB=400.0; #Base resistor's resistance in k\u2126\n", + "RC=4.0; #Collector resistor's resistance in k\u2126\n", + "RE=1.0; #Emitter resistor's resistance in k\u2126\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along outut circuit,\n", + "#we get, VCC -(IC+IB)*RC -IB*RB -VBE - IE*RE=0.\n", + "#since IC= beta*IB, IC+IB ~ IC and IE~IC,\n", + "#We get, VCC - IC*RC -(IC/beta)*RB -VBE - IE*RE\n", + "IC=(VCC-VBE)/(RB/beta + RC + RE); #Collector current current in mA.\n", + "IE=IC; #Emitter current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC -IE*RE=0. (IE~IC)\n", + "#From the above equation,\n", + "VCE=VCC-IC*(RC+RE); #Collector emitter voltage in V\n", + "\n", + "\n", + "#Results\n", + "print(\"The operating point : VCE=%.1fV and IC=%.2fmA.\"%(VCE,IC));\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The operating point : VCE=5.7V and IC=1.26mA.\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.18 : Page number 212" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=10.0; #Collector resistor's resistance in k\u2126\n", + "RE=0; #Emitter resistor's resistance in k\u2126\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along outut circuit,\n", + "#we get, VCC -(IC+IB)*RC -IB*RB -VBE - IE*RE=0.\n", + "#since IC= beta*IB, IC+IB ~ IC and IE~IC,\n", + "#We get, VCC - IC*RC -(IC/beta)*RB -VBE - IE*RE\n", + "IC=(VCC-VBE)/(RC +RB/beta + RE); #Collector current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC =0. (IE~IC)\n", + "#From the above equation,\n", + "VCE=VCC-IC*RC; #Collector-emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"The d.c bias values are: VCE=%.2fV and IC=%.3fmA\"%(VCE,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The d.c bias values are: VCE=1.55V and IC=0.845mA\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.19: Page number 214-215\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage in V\n", + "R1=10.0; #Resistor R1's resistance in k\u2126\n", + "R2=5.0; #Resistor R2's resistance in k\u2126\n", + "RC=1.0; #Collector resistor's resistance in k\u2126 \n", + "RE=2.0; #Emitter resistor's resistance in k\u2126\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along output circuit\n", + "#VCE=VCC-IC*(RC+RE);\n", + "#IC=0, for VCE_max\n", + "VCE_max=VCC; #Maximum collector-emitter voltage in V\n", + "#VCE=0, for IC_max\n", + "IC_max=VCC/(RC+RE); #Maximum collector current in mA\n", + "\n", + "#Operating point\n", + "V2=(VCC*R2)/(R1+R2); #Voltage across R2 resistor V\n", + "IE=(V2-VBE)/RE; #Emitter current in mA\n", + "IC=IE; #Collector current(Approx. equal to emitter current) in mA\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"Collector-emitter voltage at operating point=%.2fV\"%VCE);\n", + "print(\"Collector current at operating point = %.2fmA\"%IC);\n", + "\n", + "#plot\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,20])\n", + "limit.set_ylim([0,6])\n", + "VCE=[i for i in range(0,(int)(VCC+1))]; #Plot variable for V_CE\n", + "IC=[((VCC-i)/(RC+RE)) for i in (VCE[:])]; #Plot variable for I_C\n", + "\n", + "p=plot(VCE,IC);\n", + "xlabel(\"VCE(V)\");\n", + "ylabel(\"IC(mA)\");\n", + "title(\"d.c load line\");\n", + "show(p);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector-emitter voltage at operating point=8.55V\n", + "Collector current at operating point = 2.15mA\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAXsAAAEZCAYAAAB2AoVaAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUVPXaB/DvIHhBQVEBQUQUNZVBGEBTChk0KD14SVJB\nQ0KpXvW4JFtvpeekvLXyZOEpseyc1/DSUYEuWqZgFq9jLi/RQTwqdg6SYgiYdwUNuc37x45RUJAZ\nZs/eM/v7WYuVzsD8HmZNz/x8Zu/9Ven1ej2IiMim2UldABERiY/NnohIAdj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C6qrq5vcFhsbi08//RTfffcdRowYAVdXV8N91dXV6NKl\ni1l+ByJzYbMnm9WtWzdEREQgMTHRsKufNWsWDh06ZBjvAMLMvbCwsMXHcXFxQX19PWpqagy3DRw4\nEL1798ZLouiLAAAAz0lEQVRrr712378YioqKoFarzfzbELUPmz3ZtLi4OJw4cQJxcXEAgM6dO2PX\nrl1Yu3YthgwZAj8/P/ztb3+Dq6srVCrVfTP77du3AwCioqLum8PHxcXhP//5D6ZNm9bk9n379iE6\nOtoyvyBRG/F69kRtUFBQgPfeew+ffPJJq993584daLVaHDx4EHZ23EuRfPDVSNQGGo0GERERaGho\naPX7SktLsWrVKjZ6kh3u7ImIFIDbDyIiBWCzJyJSADZ7IiIFYLMnIlIANnsiIgX4fwAbXN1xo6Og\nAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7f8eeacf1ad0>" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.20: Page number 215-216\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage in V\n", + "R1=10.0; #Resistor R1's resistance in k\u2126 .\n", + "R2=5.0; #Resistor R2's resistance in k\u2126 .\n", + "RC=1.0; #Collector resistor's resistance in k\u2126 . \n", + "RE=2.0; #Emitter resistor's resistance in k\u2126 .\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "\n", + "#Calculations\n", + "#Using Thevenin's Theorem for replacing circuit consisting of VCC,R1,R2\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage in V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's equivalent resistance in k\u2126 .\n", + "\n", + "#Applying Kirchhoff' law along thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IC=beta*IB\n", + "#IC=(E0-VBE)/(R0/beta +RE);\n", + "IC=(E0-VBE)/RE; #(Since R0/beta << RE) collector current in mA\n", + "VCE=VCC-IC*(RC+RE); #Collector emitter voltage in V\n", + "\n", + "\n", + "#Results\n", + "print(\"Collector-emitter voltage at operating point=%.2fV\"%VCE);\n", + "print(\"Collector current at operating point = %.2fmA\"%IC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector-emitter voltage at operating point=8.55V\n", + "Collector current at operating point = 2.15mA\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.21: Page number 216-217\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "RE=1.0; #Emitter resistor, k\u2126 .\n", + "R1=50.0; #Resistor R1, k\u2126 .\n", + "R2=10.0; #Resistor R2, k\u2126 .\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "VBE=0.1; #Base-emitter voltage in V\n", + "V2=(VCC*R2)/(R1+R2); #Voltage drop across resistor R2, V \n", + "IE=(V2-VBE)/RE; #Emitter current in mA\n", + "\n", + "print(\"(i)Emitter current= %.1fmA\"%IE);\n", + "\n", + "#(ii)\n", + "VBE=0.3; #Base-emitter voltage in V\n", + "V2=(VCC*R2)/(R1+R2); #Voltage drop across resistor R2, V\n", + "IE=(V2-VBE)/RE; #Emitter current in mA\n", + "\n", + "print(\"(ii)Emitter current= %.1fmA\"%IE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)Emitter current= 1.9mA\n", + "(ii)Emitter current= 1.7mA\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.22: Page number 217\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "R1=10.0; #Resistor R1, k\u2126\n", + "R2=10.0; #Resistor R2, k\u2126 .\n", + "RC=1.0; #Collector resistor, k\u2126 .\n", + "RE=5.0; #Emitter resistor, k\u2126 .\n", + "\n", + "\n", + "#Calculations\n", + "V2=(VCC*R2)/(R1+R2); #Voltage drop across resistor R2, V\n", + "\n", + "#Applying kirchhoff's law from base terminal to emitter resistor\n", + "#V2=VBE+IE*RE\n", + "#VBE is neglected due to its small value\n", + "\n", + "IE=V2/RE; #Emitter current in mA\n", + "IC=IE; #Collector current (approx. equal to emitter current), mA\n", + "\n", + "#Applying Kirchhoff's law along output circuit\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage , V\n", + "VC=VCC-IC*RC; #Voltage at collector terminal,V\n", + "\n", + "\n", + "#Results\n", + "print(\"Emitter current =%dmA\"%IE);\n", + "print(\"Collector-emitter voltage=%dV\"%VCE);\n", + "print(\"Collector terminal's voltage=%dV\"%VC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Emitter current =2mA\n", + "Collector-emitter voltage=8V\n", + "Collector terminal's voltage=18V\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.23: Page number 219-220\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=50; #Base current amplification factor\n", + "R1=150; #Resistor R1, k\u2126 .\n", + "R2=100; #Resistor R2, k\u2126 .\n", + "RC=4.7; #Collector resistor, k\u2126 .\n", + "RE=2.2; #Emitter resistor, k\u2126 .\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, calculating Thevenin's voltage and resistance\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage, V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance, k\u2126 .\n", + "\n", + "#Applying Kirchhoff' law along thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IC=beta*IB\n", + "IB=round((E0-VBE)/(R0+beta*RE),3); #Base current in mA\n", + "IC=round(beta*IB,1); #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage, V\n", + "\n", + "S=(beta+1)*(1+R0/RE)/(beta +1+R0/RE); #Stability factor\n", + "\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.1fmA\"%(VCE,IC));\n", + "print(\"Stability factor=%.1f\"%S);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 3.72V and IC=1.2mA\n", + "Stability factor=18.4\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.24 : Page number 220\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage , V\n", + "beta=100.0; #Base current amplification factor\n", + "R1=6.0; #Resistor R1, k\u2126 .\n", + "R2=3.0; #Resistor R2, k\u2126 .\n", + "RC=470.0; #Collector resistor, \u2126.\n", + "RE=1.0; #Emitter resistor, k\u2126 .\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, calculating Thevenin's voltage and resistance\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage, V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance, k\u2126 .\n", + "\n", + "#Applying Kirchhoff' law along thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IC=beta*IB\n", + "IB=round((E0-VBE)/(R0+beta*RE),3); #Base current in mA\n", + "IC=round(beta*IB,1); #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "VCE=VCC-IC*(RC/1000+RE); #Collector-emitter voltage, V\n", + "\n", + "S=(beta+1)*(1+R0/RE)/(beta +1+R0/RE); #Stability factor\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.1fmA\"%(VCE,IC));\n", + "print(\"Stability factor=%.2f\"%S);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 8.83V and IC=4.2mA\n", + "Stability factor=2.94\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.25 : Page number 221-222\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Varaible declaration\n", + "VCC=9; #Collector supply voltage, V\n", + "VCE=3; #Collector-emitter voltage, V\n", + "VBE=0.3; #Base-emitter voltage in V\n", + "RC=2.2; #Collector resistor , k\u2126 .\n", + "IC=2; #Collector current, mA\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#According to given relation, I1=10*IB\n", + "I1=IB*10; #Current through the resistor R1, mA\n", + "\n", + "#I1=VCC/(R1+R2), .'s LAW\n", + "R1_R2_sum=VCC/I1; #Sum of the resistor's R1 and R2, k\u2126 (OHM'S LAW).\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "#VCC=IC*RC+VCE+IE*RE\n", + "#IC~IE\n", + "RE=(VCC-IC*RC-VCE)/IC; #Emitter resistor, k\u2126 .\n", + "RE=round(RE*1000,0); #Emittter resistor, \u2126 .\n", + "\n", + "IE=IC; #Emittter current(approximately equal to collector current), mA\n", + "VE=IE*(RE/1000); #Voltage at emitter terminal (OHM's LAW), V\n", + "V2=VBE+VE; #Voltage drop across resistor R2, V\n", + "\n", + "R2=V2/I1; #Resistor R2,(OHM's LAW), k\u2126 .\n", + "R1=R1_R2_sum-R2; #Resistor R1, k\u2126 .\n", + "\n", + "\n", + "\n", + "#Results\n", + "print(\"RE=%d \u2126., R1=%.2f k\u2126 . and R2=%.2f k\u2126 .\"%(RE,R1,R2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "RE=800 \u2126., R1=17.75 k\u2126 . and R2=4.75 k\u2126 .\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.26 : Page number 222\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=16.0; #Collector supply voltage, V\n", + "R2=20.0; #Resistor R2, k\u2126\n", + "RE=2.0; #Emitter resistor, k\u2126\n", + "VCE=6.0; #Collector-emitter voltage, V\n", + "IC=2.0; #Collector current , mA\n", + "VBE=0.3; #Base-emitter voltage,V\n", + "alpha=0.985; #Current amplification factor\n", + "\n", + "#Calculations\n", + "beta=alpha/(1-alpha); #Base current amplificatioon factor\n", + "IE=IC; #Emitter current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VE=IE*RE; #Emitter voltage,(OHM's LAW) V\n", + "V2=VBE+VE; #Voltage drop across resistor R2,(Kirchhoff's law) V\n", + "V_R1=VCC-V2; #Voltage drop across resistor R1, V\n", + "I1=V2/R2; #Current through resistor R2 an R1,(OHM's LAW) mA\n", + "R1=V_R1/I1; #Resistor R1,(OHM's LAW) k\u2126\n", + "\n", + "V_RC=(VCC-VCE-VE); #Voltage across collector resistor, V\n", + "RC=V_RC/IC; #Collector resistor,(OHM's LAW) k\u2126\n", + "\n", + "\n", + "#Results\n", + "print(\"R1=%.1f k\u2126 and RC=%d k\u2126.\"%(R1,RC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "R1=54.4 k\u2126 and RC=3 k\u2126.\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.27 :Page number 222-223\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "R1=10.0; #Resistor R1, k\u2126 \n", + "R2=5.0; #Resistor R2, k\u2126 \n", + "RC=1.0; #Collector resistor, k\u2126 \u007f\n", + "RE=2.0; #Emitter resistor, k\u2126 \n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, calculating Thevenin's voltage and resistance\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage, V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance, k\u2126 \n", + "\n", + "#Applying Kirchhoff' law along Thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IB=IE/beta,\n", + "IE=(E0-VBE)/(R0/beta + RE); #Emitter current , mA\n", + "\n", + "\n", + "#Calculations\n", + "print(\"The exact value of emitter current in the circuit = %.2fmA.\"%IE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The exact value of emitter current in the circuit = 2.11mA.\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.28: Page number 223-224\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "IE=2.0; #Emitter current, mA\n", + "IB=50.0; #Base current, mA\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VBE=0.2; #Base-emitter voltage, V\n", + "R2=10.0; #Resistor R2, k\u2126\n", + "RE=1.0; #Emitter resistance, k\u2126\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law from the base to the emitter resistor,\n", + "V2=VBE+IE*RE; #Voltage at base terminal, V\n", + "I2=V2/R2; #Current through the resistor R2, mA\n", + "I1=I2+IB/1000; #Current through the resistor R2, mA\n", + "V1=VCC-V2; #Voltage drop across the resistor R2\n", + "R1=V1/I1; #Resistor R1, k\u2126\n", + "\n", + "\n", + "#Results\n", + "print(\"The value of the resistor R1=%.2f k\u2126.\"%R1);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of the resistor R1=28.89 k\u2126.\n" + ] + } + ], + "prompt_number": 41 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.30 :Page number 225-226\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=8.0; #Collector supply voltage, V\n", + "RB=360.0; #Base resistor, k\u2126\n", + "RC=2.0; #Collector resistor, k\u2126\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100.0; #base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "IC_max=VCC/RC; #Maximum collector current, mA\n", + "VCE_max=VCC; #Maximum collector voltage, V\n", + "\n", + "#Operating point\n", + "#Applying Kirchhoff's law along the input circuit\n", + "IB=(VCC-VBE)/RB; #Base current, mA\n", + "IC=beta*IB; #Collector current, mA\n", + "\n", + "#Kirchhoff' law along the output circuit\n", + "VCE=VCC-IC*RC; #Collector-emitter voltage, V\n", + "\n", + "#Results\n", + "print(\"VCE=%.2fV, is approximately half of VCC=%dV \\n therefore it is mid-point biased.\"%(VCE,VCC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "VCE=3.94V, is approximately half of VCC=8V \n", + " therefore it is mid-point biased.\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.31: page number 226\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=50.0; #Base current amplification factor\n", + "R1=12.0; #Resistor R1, k\u2126 \n", + "R2=2.7; #Resistor R2, k\u2126 \n", + "RC=620.0; #Collector resistor, \u2126 \n", + "RE=180.0; #Emitter resistor, \u2126\n", + "\n", + "\n", + "#Calculations\n", + "#Voltage divder rule across R1 and R2\n", + "V2=round((VCC*R2)/(R1+R2),2); #Voltage drop across resistor R2, V\n", + "IE=round(((V2-VBE)/RE)*1000,2); #Emitter current, mA\n", + "IC=IE; #Collector current(Approximately equal to emitter current), mA\n", + "print(\"IC~IE=%.2fmA.\"%IC);\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "VCE=VCC-(IC/1000)*(RC+RE); #Collector-emitter voltage, V\n", + "\n", + "#Results\n", + "print(\"VCE=%.2fV, is approximately half of VCC=%dV \\n therefore it is mid-point biased.\"%(VCE,VCC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IC~IE=6.33mA.\n", + "VCE=4.94V, is approximately half of VCC=10V \n", + " therefore it is mid-point biased.\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.32 : Page number 227\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "IC=10.0; #Collector current, mA \n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=1.5; #Resistor R1, k\u2126 \n", + "R2=680.0; #Resistor R2, \u2126 \n", + "RC=260.0; #Collector resistor, \u2126 \n", + "RE=240.0; #Emitter resistor, \u2126 \n", + "beta_min=100; #Minimum value of base current amplification factor\n", + "beta_max=400; #Maximum value of base current amplification factor\n", + "\n", + "#Calculations\n", + "#Voltage divder rule across R1 and R2\n", + "V2=round((VCC*R2/1000)/(R1+R2/1000),2); #Voltage drop across resistor R2, V\n", + "IE=round((V2-VBE)/(RE/1000),0); #OHM' LAW, Emitter current, mA\n", + "IC=IE; #Collector current(approx. equal to emitter current),mA\n", + "beta_avg=sqrt(beta_min*beta_max); #Average value of base current amplification factor\n", + "IB=IE/(beta_avg +1); #Base current, mA\n", + "IB=IB*1000; #Base current, \ud835\udf07A\n", + "\n", + "#Results\n", + "print(\"Base current= %.2f \ud835\udf07A\"%IB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Base current= 49.75 \ud835\udf07A\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.33 : Page number 227-228\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VEE=12.0; #Emitter supply voltage, V\n", + "RC=1.5; #Collector resistor, k\u2126\n", + "RB=120.0; #Base resistor k\u2126\n", + "RE=510.0; #Emitter resistor, \u2126 \n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=60.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's voltage law,\n", + "#IB*RB - VBE - IE*RE +VEE=0\n", + "#Since IE~IC and IC=beta*IB,\n", + "IB=(VEE-VBE)/(RB + beta*RE/1000); #Base current , mA\n", + "IC=round(beta*IB,1); #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's voltage law along output circuit,\n", + "VCE=VEE-IC*(RC + RE/1000); #Collector-emitter voltage, V\n", + "\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.1fmA.\"%(VCE,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 2.96V and IC=4.5mA.\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.34 : Page number 228-229\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import floor\n", + "\n", + "#Variable declaration\n", + "VEE=9.0; #Emitter supply voltage, V\n", + "RC=1.2; #Collector resistor, k\u2126\n", + "RB=100.0; #Base resistor ,k\u2126\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=45.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's voltage law,\n", + "#IB*RB + VBE=VEE\n", + "#Since IE~IC and IC=beta*IB,\n", + "IB=round((VEE-VBE)/RB,3); #Base current , mA\n", + "IC=floor(beta*IB*100)/100; #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's voltage law along output circuit,\n", + "VCE=VEE-IC*RC; #Collector-emitter voltage, V\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.2fmA.\"%(VCE,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 4.52V and IC=3.73mA.\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.35 : Page number 229\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=16.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "IC=1.0; #Collector current, mA\n", + "VCE=6.0; #Collector-emitter voltage, V\n", + "beta=150.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#For a good design, VE=VCC/10;\n", + "VE=VCC/10; #Emitter terminal's voltage, V\n", + "#OHM's Law\n", + "#And, taking IE~IC\n", + "RE=VE/IC; #Emitter resistor, k\u2126\n", + "\n", + "#Applying Kirchhoff's voltage law alog output circuit:\n", + "#VCC=IC*RC + VCE + VE\n", + "RC=(VCC-VCE-VE)/IC; #Collector resistor, k\u2126\n", + "V2=VE+VBE; #Voltage drop across resistor R2,V\n", + "#From the relation I1=10*IB\n", + "R2=(beta*RE)/10; #Resistor R2, kilo ohm\n", + "\n", + "#From voltage divider rule across R1 and R2,\n", + "#V2=(VCC*R2)/(R1+R2)\n", + "R1=(VCC-V2)*R2/V2; #Resistor R1, k\u2126 \n", + "\n", + "#Results\n", + "print(\"RE=%.1f k\u2126 , RC=%.1f k\u2126, R1=%.0f k\u2126 and R2=%d k\u2126.\"%(RE,RC,R1,R2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "RE=1.6 k\u2126 , RC=8.4 k\u2126, R1=143 k\u2126 and R2=24 k\u2126.\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.36 : Page number 230-231\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "ICBO=5.0; #Collector to base leakage current, microampere\n", + "beta=40.0; #Base current amplification factor\n", + "IC_zero_signal=2.0; #Zero signal collector current, mA\n", + "op_temp=25.0; #operating temperature, degree celsius\n", + "temp_risen=55.0; #Temperature risen, degree celsius\n", + "temp_ICBO_doubles=10.0; #Temperature after which ICBO doubles, degree celsius\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "ICEO=(beta+1)*ICBO; #Collector to emitter leakage current, microampere\n", + "\n", + "#(ii)\n", + "Number_of_times_ICBO_doubled=(temp_risen - op_temp)/temp_ICBO_doubles; #Number of times ICBO doubles\n", + "ICBO_final=ICBO*2**Number_of_times_ICBO_doubled; #Final value of collector to base leakage current, microampere\n", + "ICEO_final=ICBO_final*(beta + 1); #Final value of collector to emitter leakage current, microampere\n", + "\n", + "IC_zero_signal_55=(ICEO_final/1000) +IC_zero_signal; #Zero signal collector current at 55 degree celius\n", + "change=(IC_zero_signal_55-IC_zero_signal)*100/IC_zero_signal; #Percentage change in zero signal collector current\n", + "\n", + "#Result\n", + "print(\"(i) The percentage change in the zero signal collector current=%.0f%%. \"%change)\n", + "\n", + "#(iii)\n", + "#For the silicon transistor\n", + "ICBO=0.1; #Collector to base leakage current, microampere\n", + "\n", + "ICEO=(beta+1)*ICBO; #Collector to emitter leakage current, microampere\n", + "\n", + "Number_of_times_ICBO_doubled=(temp_risen - op_temp)/temp_ICBO_doubles; #Number of times ICBO doubles\n", + "ICBO_final=ICBO*2**Number_of_times_ICBO_doubled; #Final value of collector to base leakage current, microampere\n", + "ICEO_final=ICBO_final*(beta + 1); #Final value of collector to emitter leakage current, microampere\n", + "\n", + "IC_zero_signal_55=(ICEO_final/1000) +IC_zero_signal; #Zero signal collector current at 55 degree celius\n", + "change=(IC_zero_signal_55-IC_zero_signal)*100/IC_zero_signal; #Percentage change in zero signal collector current\n", + "\n", + "\n", + "#Result\n", + "print(\"(ii) The percentage change in the zero signal collector current=%.1f%%. \"%change)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The percentage change in the zero signal collector current=82%. \n", + "(ii) The percentage change in the zero signal collector current=1.6%. \n" + ] + } + ], + "prompt_number": 70 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.37 : Page number 231\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "ICBO=0.02 #Collector to base leakage current, \ud835\udf07A\n", + "alpha=0.99; #Current amplification factor\n", + "IE=1.0; #Emitter current, mA\n", + "op_temp=27.0; #operating temperature, degree celsius\n", + "temp_risen=57.0; #Temperature risen, degree celsius\n", + "temp_ICBO_doubles=6.0; #Temperature after which ICBO doubles, degree celsius\n", + "\n", + "#Calculations\n", + "Number_of_times_ICBO_doubled=(temp_risen - op_temp)/temp_ICBO_doubles; #Number of times ICBO doubles\n", + "ICBO_55=ICBO*2**Number_of_times_ICBO_doubled; #collector to base leakage current at 55 degree celsius, \ud835\udf07A\n", + "IC=alpha*IE + ICBO_55/1000; #Collector current, mA\n", + "IB=IE-IC; #Base current, mA\n", + "IB=IB*1000; #Base current,\ud835\udf07A\n", + "\n", + "#Results\n", + "print(\"Base current at 57 degree celsius=%.1f \ud835\udf07A \"%IB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Base current at 57 degree celsius=9.4 \ud835\udf07A \n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_5.ipynb b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_5.ipynb new file mode 100644 index 00000000..e8168ab8 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_5.ipynb @@ -0,0 +1,1907 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:1e5463fc2e8c67a2f9099cf3f6c078bc1c9dccccd63589a75ad6ce5024fe6432" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 9 : TRANSISTOR BIASING" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.1: Page number 195-196" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "V_CC=6.0; #Collector supply voltage\n", + "R_C=2.5; #Collector load in k\u2126\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "#For faithful amplification Vce (collector-emitter voltage)> 1V for Si transistor.\n", + "V_CE_max=1; #Maximum allowed collector-emitter voltage for faithful amplification, in V.\n", + "V_Rc_max=V_CC-V_CE_max; #maximum voltage drop across collector load in V.\n", + "I_C_max=V_Rc_max/R_C; #Maximum allowed collector current in mA\n", + "\n", + "#(ii)\n", + "IC_min_zero_signal=I_C_max/2; #Minimum zero signal collector current in mA\n", + "\n", + "#Results\n", + "print(\"The maximum allowed collector current during application of signal for faithful amplification = %d mA.\"%I_C_max);\n", + "print(\"The minimum zero signal collector current required = %d mA.\"%IC_min_zero_signal);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The maximum allowed collector current during application of signal for faithful amplification = 2 mA.\n", + "The minimum zero signal collector current required = 1 mA.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.2: Page number 196\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=13.0; #Collector supply voltage in V\n", + "V_knee=1.0; #Knee voltage in V\n", + "R_C=4.0; #Collector load in k\u2126\n", + "rate_IC_VBE=5.0; #Rate of change of collector current IC with base-emitter voltage VBE in mA/V.\n", + "beta=100.0; #base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "V_Rc_max=VCC-V_knee; #Maximum allowed voltage across collector load in V\n", + "I_C_max=V_Rc_max/R_C; #Maximum allowed collector current in mA\n", + "I_B_max=I_C_max/beta; #Maximum base current in mA\n", + "I_B_max=I_B_max*1000; #Maximum base current in \ud835\udf07A\n", + "\n", + "V_B_max=I_C_max/rate_IC_VBE; #Maximum base voltage signal in V\n", + "V_B_max=V_B_max*1000; #Maximum base voltage signal in mV\n", + "\n", + "#Results\n", + "print(\"Maximum base current =%d \ud835\udf07A.\"%I_B_max);\n", + "print(\"Maximum input signal voltage =%d mV.\"%V_B_max);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum base current =30 \ud835\udf07A.\n", + "Maximum input signal voltage =600 mV.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.3: Page number 200-201" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=9.0; #Colector supply voltage in V\n", + "VBB=2.0; #Base supply voltage in V\n", + "R_B=100.0; #Base resistor's resistance in k\u2126\n", + "R_C=2.0; #Collector load in k\u2126\n", + "beta=50.0; #base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Case (i):\n", + "\n", + "#Applying Kirchhoff's law to the input circuit\n", + "#We get, IB*RB +VBE =VBB.\n", + "#Neglecting the small base-emitter voltage, we get:\n", + "I_B=VBB/R_B; #Base current in mA\n", + "I_C=beta*I_B; #Collector current in mA\n", + "\n", + "print(\"Collector current = %dmA\"%I_C);\n", + "\n", + "#Applying Kirchhoff's law to the output ciruit\n", + "#We get, IC*RC + VCE= VCC.\n", + "#From the above equation, we get:\n", + "V_CE=VCC-I_C*R_C; #Collector emitter voltage in V\n", + "\n", + "print(\"Collector emitter voltage =%dV.\"%V_CE);\n", + "\n", + "\n", + "#Case (ii):\n", + "\n", + "R_B=50.0;\n", + "I_B=VBB/R_B;\n", + "I_C=beta*I_B;\n", + "V_CE=VCC - I_C*R_C;\n", + "\n", + "print(\"The new operating point for base resistor RB=50 k\u2126 is, VCE=%dV and IC=%dmA.\"%(V_CE,I_C));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector current = 1mA\n", + "Collector emitter voltage =7V.\n", + "The new operating point for base resistor RB=50 k\u2126 is, VCE=5V and IC=2mA.\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.4: Page number 201-202" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import matplotlib.pyplot as plt\n", + "\n", + "#variable declaration\n", + "beta=100.0; #base current amplification factor\n", + "VCC=6.0; #Collector suply voltagein V\n", + "VBE=0.7 #Base emitter voltage in V\n", + "R_B=530.0; #Base resistor's resistance in k\u2126 .\n", + "R_C=2.0; #Collector resistor's resistance in k\u2126 .\n", + "\n", + "#Calculation\n", + "#D.C load line equation : VCE=VCC-IC*RC;\n", + "#Calculating maximum VCE ,by IC=0;\n", + "I_C_Vce_max=0; #Collector current for maximum collector-emitter voltage, in mA\n", + "VCE_max=VCC;-I_C_Vce_max*R_C; #Maximum collector-emitter voltage in V\n", + "\n", + "\n", + "#Calculating maximum collector current IC,by VCE=0;\n", + "V_CE_IC_max=0; #Collector-emitter voltage for maximum collector current, in V \n", + "I_C_max=(VCC-V_CE_IC_max)/R_C; #Maximum collector current in mA\n", + "\n", + "\n", + "#Operating point:\n", + "#For input circuit, applying Kirchhoff's law, We get,\n", + "#VCC=IB*RB + VBE.\n", + "#From the above equation,\n", + "IB=(VCC-VBE)/R_B; #Base current in mA\n", + "IC=beta*IB; #Collector current\n", + "\n", + "#From the output circuit, applying Kirchhoff's law, we get:\n", + "VCE=VCC-IC*R_C; #Collector-emitter voltage in V\n", + "\n", + "\n", + "#Stability factor\n", + "SF=beta+1; \n", + "\n", + "#Result\n", + "print(\"Operating point: VCE= %dV and IC=%d mA\"%(VCE,IC));\n", + "print(\"Stability factor= %d.\"%SF);\n", + "\n", + "\n", + "#plot\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,10])\n", + "limit.set_ylim([0,5])\n", + "VCE=[i for i in range(0,(int)(VCC+1))]; #Plot variable for V_CE\n", + "IC=[((VCC-i)/(R_C)) for i in (VCE[:])]; #Plot variable for I_C\n", + "\n", + "p=plot(VCE,IC);\n", + "xlabel(\"VCE(V)\");\n", + "ylabel(\"IC(mA)\");\n", + "title(\"d.c load line\");\n", + "show(p);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point: VCE= 4V and IC=1 mA\n", + "Stability factor= 101.\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAEZCAYAAACZwO5kAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGk5JREFUeJzt3XtQVPfdx/HPIqTexQugCKjxEpVFwetoNVk0XqsmijFi\nNQZjMqONo0lnWmsatZ3RxMTUYFrTPonGWCsYGxuNEms1W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UFKhRo0b18j0A\n9YGgh2U1bdpU8fHxSkpKcrf5adOm6eDBg+4tHen2HntGRkaVz9OyZUuVlJSosLDQfdvDDz+sNm3a\naOHChXf9SyEzM1N2u72evxug7gh6WFpiYqJOnDihxMRESVLDhg21Y8cOvfPOO+rWrZuio6P161//\nWiEhIbLZbHft0W/dulWSNHLkyLv23RMTE/Xvf/9bkyZNqnD7F198oXHjxnnmGwRqgOvRAzVw9OhR\nrVq16r7veHXr1i05HA4dOHDA79/gHN6Dv4lADcTFxSk+Pl6lpaXVPi47O1srVqwg5OFVaPQAYHHU\nDgCwOIIeACyOoAcAiyPoAcDiCHoAsLj/AxBRW6txz5gaAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7f8eea67df10>" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.5: Page number 202" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "beta=100.0; #base current amplification factor\n", + "I_C_zero_signal=1.0; #zero signal collector current in mA\n", + "VBE=0.3; #Base-emitter voltage of Ge transistor in V\n", + "\n", + "#calculations\n", + "\n", + "#Case(i)\n", + "I_B_zero_signal=I_C_zero_signal/beta; #Zero signal base current in mA\n", + "\n", + "#applying the Kirchhoff's law along input circuit:\n", + "#We get, VCC=IB*RB +VBE\n", + "#From the above equation we get,\n", + "R_B=(VCC-VBE)/I_B_zero_signal; #Required base resistor's resistance in k\u2126\n", + "\n", + "print(\"Value of base resistor for operating the given Ge transistor at zero signal IC=1mA is = %d k\u2126\"%R_B);\n", + "\n", + "\n", + "\n", + "#Case(ii)\n", + "beta=50;\n", + "I_B=(VCC-VBE)/R_B; #Base current of another transistor with beta=50, in mA\n", + "I_C_zero_signal=beta*I_B; #Zero signal collector current for beta=50 , in mA\n", + "\n", + "print(\"The new value of zero signal collector current =%.1fmA\"%I_C_zero_signal);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Value of base resistor for operating the given Ge transistor at zero signal IC=1mA is = 1170 k\u2126\n", + "The new value of zero signal collector current =0.5mA\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.6:Page number 202-203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Varaible declaration\n", + "VCC=10.0; #Collector supply voltage in V\n", + "VBE=0; #Base emitter voltage in V(considering itas zero due to it's small value)\n", + "R_B=1.0; #Base resistor's resistance in M\u2126\n", + "R_C=2.0; #Collector resistor's resistance in k\u2126 \n", + "R_E=1.0; #Emitter resistor's resistance in k\u2126\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#using Kirchhoff's law in the input circuit, we get:\n", + "#VCC=IB*RB +VBE +IE*RE\n", + "#Since, IE=(beta +1)*I_B\n", + "#From the above equation we get:\n", + "I_B=round((VCC-VBE)/((beta + 1)*R_E + R_B*1000),4); #Base current in mA\n", + "I_C=round(beta*I_B,2); #Collector current in mA\n", + "I_E=I_B+I_C; #Emitter current in mA\n", + "\n", + "#Result\n", + "print(\"Base current =%.4f mA\"%I_B);\n", + "print(\"Collector current =%.2f mA\"%I_C);\n", + "print(\"Emitter current =%.3f mA\"%I_E);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Base current =0.0091 mA\n", + "Collector current =0.91 mA\n", + "Emitter current =0.919 mA\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.7: Page number 203-204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE=8.0; #Collector-emitter voltage at operating point in V\n", + "IC=2.0; #Colector current at operating point in mA\n", + "VCC=15.0; #Collector supply voltagein V\n", + "beta=100.0; #base current amplification factor\n", + "VBE=0.6; #base emitter voltage in V\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC=VCE+IC*RC.\n", + "#So, from above equation we get:\n", + "RC=(VCC-VCE)/IC; #Collector resistor's resistance in k\u2126 .\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#Applying Kirchhoff's law along the input circuit,\n", + "#we get, VCC=IB*RB + VBE\n", + "#So, from the above equation:\n", + "RB=(VCC-VBE)/IB; #Base resistor's resistance in k\u2126 .\n", + "\n", + "\n", + "#Results\n", + "print(\"Collector load =%.1f k\u2126 .\"%RC);\n", + "print(\"Base resistor=%d k\u2126 .\"%RB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector load =3.5 k\u2126 .\n", + "Base resistor=720 k\u2126 .\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.8: Page number 204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=560.0; #Collector resistor's resistance in \u2126\n", + "beta_25=100.0; #base current amplification factor at 25 degree celsius\n", + "beta_75=150.0; #base current amplification factor at 25 degree celsius\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "\n", + "#Applying Kirchhoff's law along input circuit, we get\n", + "#VCC=IB*RB+VBE\n", + "IB=(VCC-VBE)/RB; #Base current at 25 degree celsius, in mA\n", + "\n", + "\n", + "#For temperature 25 degree celsius\n", + "IC_25=beta_25*IB; #Collector current at 25 degree celsius, in mA\n", + "\n", + "\n", + "#Applying Kirchhoff's alw at the output circuit,\n", + "#we get: VCC=IC*RC + VCE\n", + "#From the above equation,\n", + "VCE_25=round(VCC-(IC_25/1000)*RC,2); #Collector emitter voltage at 25 degree celsius, in V\n", + "\n", + "\n", + "#For temperature 75 degree celsius\n", + "IC_75=round(beta_75*IB,0); #Collector current at 75 degree celsius, in mA\n", + "\n", + "#Applying Kirchhoff's alw at the output circuit,\n", + "#we get: VCC=IC*RC + VCE\n", + "#From the above equation,\n", + "VCE_75=round(VCC-(IC_75/1000)*RC,2); #Collector emitter voltage at 75 degree celsius, in V\n", + "\n", + "\n", + "change_IC=(IC_75-IC_25)*100.0/IC_25; #percentage change in collector current\n", + "change_VCE=(VCE_75-VCE_25)*100.0/VCE_25; #Percentage change in collector-emitter voltage \n", + "\n", + "#Results\n", + "print(\"The percentage change in collector current =%d%%\"%change_IC);\n", + "print(\"The percentage change in collector-emitter voltage =%.1f%%\"%change_VCE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The percentage change in collector current =50%\n", + "The percentage change in collector-emitter voltage =-56.3%\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.10: Page number 205" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE_max=20.0; #Maximum collector-emitter voltage in V\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "IC_max=8.0; #Maximum collector current in mA\n", + "IB=40.0; #Base current in microampere\n", + "\n", + "#Calculations\n", + "\n", + "#During cut off state the collector-emitter voltage is maximum and equal to collector supply voltage\n", + "VCC=VCE_max; #Collector supply voltage in V\n", + "\n", + "#Maximum collector current IC_max=collector supply voltage(VCC)/collector load(RC)\n", + "#Collector load(RC)=VCC*IC_max\n", + "RC=VCC/IC_max; #Collector load in k\u2126 .\n", + "\n", + "#Applying Kirchhoff's law along input circuit,\n", + "#we get, VCC=IB*RB +VBE.\n", + "#From the above equation, we get:\n", + "RB=(VCC-VBE)/(IB/1000); #Base resistor's resistance in k\u2126 .\n", + "\n", + "#Results\n", + "print(\"Collector supply voltage = %dV\"%VCC);\n", + "print(\"Collector load=%.1f k\u2126 .\"%RC);\n", + "print(\"Base resistor's resistance=%.1f k\u2126 .\"%RB);\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector supply voltage = 20V\n", + "Collector load=2.5 k\u2126 .\n", + "Base resistor's resistance=482.5 k\u2126 .\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.12: Page number 208" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage in V\n", + "VEE=-20.0; #Emitter supply voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=4.7; #Collector resistor's resistance in k\u2126\n", + "RE=10.0; #Emitter resistor's resistance in k\u2126\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "beta=85.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's voltage law along the base-emitter circuit (input circuit),\n", + "#we get,IB*RB +IE*RE +VBE -VEE=0.\n", + "#Since IB=IC/beta and IC~IE,\n", + "#(IE/beta)*RB + IE*RE + VBE + VEE =0.\n", + "IE=(-VEE-VBE)/(RE + RB/beta); #Emitter current in mA\n", + "IC=IE; #Collector current (approximately equal to emitter current) in mA\n", + "\n", + "#Applying Kirchhoff's law from VCC till collector terminal,\n", + "#we get, VCC - IC*RC =VC\n", + "VC=VCC-IC*RC; #voltage at collector terminal in V\n", + "\n", + "#Applying Kirchhoff's law from emitter terminal to VEE\n", + "#we get, VE -IE*RE =VEE\n", + "VE=VEE + IE*RE; #Voltage at emitter treminal in V\n", + "\n", + "VCE=VC-VE; #Collector-emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"The collector current = %.2f mA\"%IC);\n", + "print(\"The emitter current = %.2f mA\"%IE);\n", + "print(\"The voltage at collector terminal = %.1f V\"%VC);\n", + "print(\"The collector-emitter voltage = %.1f V\"%VCE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The collector current = 1.73 mA\n", + "The emitter current = 1.73 mA\n", + "The voltage at collector terminal = 11.9 V\n", + "The collector-emitter voltage = 14.6 V\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.13: Page number 208-209\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage in V\n", + "VEE=-20.0; #Emitter supply voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=4.7; #Collector resistor's resistance in k\u2126\n", + "RE=10.0; #Emitter resistor's resistance in k\u2126\n", + "beta1=85.0; #Base current amplification factor for case 1 \n", + "beta2=100.0; #Base current amplification factor for case 1\n", + "VBE_1=0.7; #Base emitter voltage for case 1 in V\n", + "VBE_2=0.6; #Base emitter voltage for case 2 in V\n", + "\n", + "\n", + "#Calculations\n", + "#For beta=85 and VBE=0.7,\n", + "#As calculated in the previous question,\n", + "IC_1=1.73; #Collector current in mA.\n", + "VCE_1=14.6; #Collector-emitter voltage in V.\n", + "\n", + "\n", + "#For case (ii)\n", + "#beta=100 and VBE=0.6\n", + "\n", + "#Applying Kirchhoff's voltage law along the base-emitter circuit (input circuit),\n", + "#we get,IB*RB +IE*RE +VBE -VEE=0.\n", + "#Since IB=IC/beta and IC~IE,\n", + "#(IE/beta)*RB + IE*RE + VBE +VEE =0.\n", + "IE_2=round((-VEE-VBE_2)/(RE + RB/beta2),2); #Emitter current in mA\n", + "IC_2=IE_2; #Collector current (approximately equal to emitter current) in mA\n", + "\n", + "#Applying Kirchhoff's law from VCC till collector terminal,\n", + "#we get, VCC - IC*RC =VC\n", + "VC=round(VCC-IC_2*RC,1); #voltage at collector terminal in V\n", + "\n", + "#Applying Kirchhoff's law from emitter terminal to VEE\n", + "#we get, VE -IE*RE =VEE\n", + "VE=round(VEE + IE_2*RE,1); #Voltage at emitter treminal in V\n", + "\n", + "VCE_2=VC-VE; #Collector-emitter voltage in V\n", + "\n", + "\n", + "change_IC= (IC_2-IC_1)*100/IC_1; #%age change in collector current\n", + "\n", + "change_VCE=(VCE_2-VCE_1)*100/VCE_2; #%age change in collector-emitter voltage\n", + "\n", + "\n", + "\n", + "#Results\n", + "print(\"Percentage change in collector current =%.1f%%\"%change_IC);\n", + "print(\"Percentage change in collector-emitter voltage =%.1f%%\"%change_VCE);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Percentage change in collector current =1.7%\n", + "Percentage change in collector-emitter voltage =-3.5%\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.14: Page number 210\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage in V\n", + "VBE=0.7 #Base-emitter voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=1.0; #Collector resistor's resistance in k\u2126\n", + "beta=100.0; #base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along input circuit,\n", + "#we get, VCC -IC*RC -IB*RB -VBE=0.\n", + "#since IC= beta*IB,\n", + "#We get,\n", + "IB=(VCC-VBE)/(RB + beta*RC); #Base current in mA\n", + "IC=beta*IB; #Collector current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC=0.\n", + "#From the above equation,\n", + "VCE=VCC-IC*RC; #Collector emitter voltage in V\n", + "\n", + "\n", + "#Results\n", + "print(\"The operating point : VCE=%.2fV and IC=%.2fmA.\"%(VCE,IC));\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The operating point : VCE=10.35V and IC=9.65mA.\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.15: Page number 210-211\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "VBE=0.3; #Base emitter voltage in V\n", + "IC=1.0; #Collector current in mA\n", + "VCE=8.0; #Collector emitter voltage in V\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "\n", + "#Case(i)\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-IC*RC-VCE=0.\n", + "#from the above equation we get,\n", + "RC=(VCC-VCE)/IC; #Collector load in kilo ohm\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#Applying Kirchhoff's law along input circuit\n", + "#we get, VCC-VBE-(beta*IB*RC)-IB*RB=0.\n", + "#From the above equation we get,\n", + "RB=round((VCC-VBE-beta*IB*RC)/IB,0); #Base resistor's resistance in k\u2126\n", + "\n", + "#Results\n", + "print(\"The resistance value of base resistor=%d k\u2126 and collector load= %d k\u2126.\"%(RB,RC));\n", + "\n", + "#Case(ii)\n", + "\n", + "beta=50;\n", + "\n", + "#Applying Kirchhoff's law along input circuit,\n", + "#we get, VCC -IC*RC -IB*RB -VBE=0.\n", + "#since IC= beta*IB,\n", + "#We get,\n", + "IB=(VCC-VBE)/(RB + beta*RC); #Base current in mA\n", + "IC=beta*IB; #Collector current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC=0.\n", + "#From the above equation,\n", + "VCE=round(VCC-IC*RC,1); #Collector emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"The operating point : VCE=%.1fV and IC=%.1fmA.\"%(VCE,IC));\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The resistance value of base resistor=770 k\u2126 and collector load= 4 k\u2126.\n", + "The operating point : VCE=9.6V and IC=0.6mA.\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.16 : Page number 211" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCE=2.0; #Collector-emitter voltage at operating point in V\n", + "VBE=0.7; #Base-emitter voltage in V \n", + "IC=1.0; #Collector current at operating point in mA\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#As, VCE=VCB +VBE\n", + "#we get,\n", + "VCB=VCE-VBE; #Collector-base voltage in V\n", + "RB=VCB/IB; #Base resistor's resistance in k\u2126\n", + "\n", + "#Results\n", + "print(\"Value of base resistor's resistance=%d k\u2126.\"%RB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Value of base resistor's resistance=130 k\u2126.\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.17 : Page number 211-212" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "VBE=0.7 #Base-emitter voltage in V\n", + "RB=400.0; #Base resistor's resistance in k\u2126\n", + "RC=4.0; #Collector resistor's resistance in k\u2126\n", + "RE=1.0; #Emitter resistor's resistance in k\u2126\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along outut circuit,\n", + "#we get, VCC -(IC+IB)*RC -IB*RB -VBE - IE*RE=0.\n", + "#since IC= beta*IB, IC+IB ~ IC and IE~IC,\n", + "#We get, VCC - IC*RC -(IC/beta)*RB -VBE - IE*RE\n", + "IC=(VCC-VBE)/(RB/beta + RC + RE); #Collector current current in mA.\n", + "IE=IC; #Emitter current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC -IE*RE=0. (IE~IC)\n", + "#From the above equation,\n", + "VCE=VCC-IC*(RC+RE); #Collector emitter voltage in V\n", + "\n", + "\n", + "#Results\n", + "print(\"The operating point : VCE=%.1fV and IC=%.2fmA.\"%(VCE,IC));\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The operating point : VCE=5.7V and IC=1.26mA.\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.18 : Page number 212" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage in V\n", + "RB=100.0; #Base resistor's resistance in k\u2126\n", + "RC=10.0; #Collector resistor's resistance in k\u2126\n", + "RE=0; #Emitter resistor's resistance in k\u2126\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "beta=100.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along outut circuit,\n", + "#we get, VCC -(IC+IB)*RC -IB*RB -VBE - IE*RE=0.\n", + "#since IC= beta*IB, IC+IB ~ IC and IE~IC,\n", + "#We get, VCC - IC*RC -(IC/beta)*RB -VBE - IE*RE\n", + "IC=(VCC-VBE)/(RC +RB/beta + RE); #Collector current in mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit,\n", + "#we get, VCC-VCE - IC*RC =0. (IE~IC)\n", + "#From the above equation,\n", + "VCE=VCC-IC*RC; #Collector-emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"The d.c bias values are: VCE=%.2fV and IC=%.3fmA\"%(VCE,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The d.c bias values are: VCE=1.55V and IC=0.845mA\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.19: Page number 214-215\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import matplotlib.pyplot as plt\n", + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage in V\n", + "R1=10.0; #Resistor R1's resistance in k\u2126\n", + "R2=5.0; #Resistor R2's resistance in k\u2126\n", + "RC=1.0; #Collector resistor's resistance in k\u2126 \n", + "RE=2.0; #Emitter resistor's resistance in k\u2126\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law along output circuit\n", + "#VCE=VCC-IC*(RC+RE);\n", + "#IC=0, for VCE_max\n", + "VCE_max=VCC; #Maximum collector-emitter voltage in V\n", + "#VCE=0, for IC_max\n", + "IC_max=VCC/(RC+RE); #Maximum collector current in mA\n", + "\n", + "#Operating point\n", + "V2=(VCC*R2)/(R1+R2); #Voltage across R2 resistor V\n", + "IE=(V2-VBE)/RE; #Emitter current in mA\n", + "IC=IE; #Collector current(Approx. equal to emitter current) in mA\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage in V\n", + "\n", + "#Results\n", + "print(\"Collector-emitter voltage at operating point=%.2fV\"%VCE);\n", + "print(\"Collector current at operating point = %.2fmA\"%IC);\n", + "\n", + "#plot\n", + "limit = plt.gca()\n", + "limit.set_xlim([0,20])\n", + "limit.set_ylim([0,6])\n", + "VCE=[i for i in range(0,(int)(VCC+1))]; #Plot variable for V_CE\n", + "IC=[((VCC-i)/(RC+RE)) for i in (VCE[:])]; #Plot variable for I_C\n", + "\n", + "p=plot(VCE,IC);\n", + "xlabel(\"VCE(V)\");\n", + "ylabel(\"IC(mA)\");\n", + "title(\"d.c load line\");\n", + "show(p);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector-emitter voltage at operating point=8.55V\n", + "Collector current at operating point = 2.15mA\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSU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kCQHgjycrK\nMtz3/fffo3///obLdk+aNOm+NxoiqbHZk03q2bMnRo0ahezsbABAZmYmZsyYgcLCQgQFBbX4cwcO\nHGgyxjl79ixqampw5swZeHt7AwDUajXs7Oxw/Phxw2PPmjXL8BghISG8xDTJDps92ax7xy1ZWVlN\nGnJLwsLCmoxxBgwYgMuXL6NHjx4PfOz6+np89dVXmD59uuE+V1dXlJeXm/eXIWonNnuyWZMnT0Zu\nbi4KCgpw+/ZtaDQa+Pn5IT8/36jH6dKlC6qrq5vcFhsbi08//RTfffcdRowYAVdXV8N91dXV6NKl\ni1l+ByJzYbMnm9WtWzdEREQgMTHRsKufNWsWDh06ZBjvAMLMvbCwsMXHcXFxQX19PWpqagy3DRw4\nEL1798ZLouiLAAAAz0lEQVRrr712378YioqKoFarzfzbELUPmz3ZtLi4OJw4cQJxcXEAgM6dO2PX\nrl1Yu3YthgwZAj8/P/ztb3+Dq6srVCrVfTP77du3AwCioqLum8PHxcXhP//5D6ZNm9bk9n379iE6\nOtoyvyBRG/F69kRtUFBQgPfeew+ffPJJq993584daLVaHDx4EHZ23EuRfPDVSNQGGo0GERERaGho\naPX7SktLsWrVKjZ6kh3u7ImIFIDbDyIiBWCzJyJSADZ7IiIFYLMnIlIANnsiIgX4fwAbXN1xo6Og\nAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7f8eeacf1ad0>" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.20: Page number 215-216\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage in V\n", + "R1=10.0; #Resistor R1's resistance in k\u2126 .\n", + "R2=5.0; #Resistor R2's resistance in k\u2126 .\n", + "RC=1.0; #Collector resistor's resistance in k\u2126 . \n", + "RE=2.0; #Emitter resistor's resistance in k\u2126 .\n", + "VBE=0.7; #Base-emitter voltage in V\n", + "\n", + "#Calculations\n", + "#Using Thevenin's Theorem for replacing circuit consisting of VCC,R1,R2\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage in V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's equivalent resistance in k\u2126 .\n", + "\n", + "#Applying Kirchhoff' law along thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IC=beta*IB\n", + "#IC=(E0-VBE)/(R0/beta +RE);\n", + "IC=(E0-VBE)/RE; #(Since R0/beta << RE) collector current in mA\n", + "VCE=VCC-IC*(RC+RE); #Collector emitter voltage in V\n", + "\n", + "\n", + "#Results\n", + "print(\"Collector-emitter voltage at operating point=%.2fV\"%VCE);\n", + "print(\"Collector current at operating point = %.2fmA\"%IC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Collector-emitter voltage at operating point=8.55V\n", + "Collector current at operating point = 2.15mA\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.21: Page number 216-217\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage in V\n", + "RE=1.0; #Emitter resistor, k\u2126 .\n", + "R1=50.0; #Resistor R1, k\u2126 .\n", + "R2=10.0; #Resistor R2, k\u2126 .\n", + "\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "VBE=0.1; #Base-emitter voltage in V\n", + "V2=(VCC*R2)/(R1+R2); #Voltage drop across resistor R2, V \n", + "IE=(V2-VBE)/RE; #Emitter current in mA\n", + "\n", + "print(\"(i)Emitter current= %.1fmA\"%IE);\n", + "\n", + "#(ii)\n", + "VBE=0.3; #Base-emitter voltage in V\n", + "V2=(VCC*R2)/(R1+R2); #Voltage drop across resistor R2, V\n", + "IE=(V2-VBE)/RE; #Emitter current in mA\n", + "\n", + "print(\"(ii)Emitter current= %.1fmA\"%IE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i)Emitter current= 1.9mA\n", + "(ii)Emitter current= 1.7mA\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.22: Page number 217\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=20.0; #Collector supply voltage, V\n", + "R1=10.0; #Resistor R1, k\u2126\n", + "R2=10.0; #Resistor R2, k\u2126 .\n", + "RC=1.0; #Collector resistor, k\u2126 .\n", + "RE=5.0; #Emitter resistor, k\u2126 .\n", + "\n", + "\n", + "#Calculations\n", + "V2=(VCC*R2)/(R1+R2); #Voltage drop across resistor R2, V\n", + "\n", + "#Applying kirchhoff's law from base terminal to emitter resistor\n", + "#V2=VBE+IE*RE\n", + "#VBE is neglected due to its small value\n", + "\n", + "IE=V2/RE; #Emitter current in mA\n", + "IC=IE; #Collector current (approx. equal to emitter current), mA\n", + "\n", + "#Applying Kirchhoff's law along output circuit\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage , V\n", + "VC=VCC-IC*RC; #Voltage at collector terminal,V\n", + "\n", + "\n", + "#Results\n", + "print(\"Emitter current =%dmA\"%IE);\n", + "print(\"Collector-emitter voltage=%dV\"%VCE);\n", + "print(\"Collector terminal's voltage=%dV\"%VC);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Emitter current =2mA\n", + "Collector-emitter voltage=8V\n", + "Collector terminal's voltage=18V\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.23: Page number 219-220\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "VCC=12.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=50; #Base current amplification factor\n", + "R1=150; #Resistor R1, k\u2126 .\n", + "R2=100; #Resistor R2, k\u2126 .\n", + "RC=4.7; #Collector resistor, k\u2126 .\n", + "RE=2.2; #Emitter resistor, k\u2126 .\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, calculating Thevenin's voltage and resistance\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage, V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance, k\u2126 .\n", + "\n", + "#Applying Kirchhoff' law along thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IC=beta*IB\n", + "IB=round((E0-VBE)/(R0+beta*RE),3); #Base current in mA\n", + "IC=round(beta*IB,1); #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "VCE=VCC-IC*(RC+RE); #Collector-emitter voltage, V\n", + "\n", + "S=(beta+1)*(1+R0/RE)/(beta +1+R0/RE); #Stability factor\n", + "\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.1fmA\"%(VCE,IC));\n", + "print(\"Stability factor=%.1f\"%S);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 3.72V and IC=1.2mA\n", + "Stability factor=18.4\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.24 : Page number 220\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage , V\n", + "beta=100.0; #Base current amplification factor\n", + "R1=6.0; #Resistor R1, k\u2126 .\n", + "R2=3.0; #Resistor R2, k\u2126 .\n", + "RC=470.0; #Collector resistor, \u2126.\n", + "RE=1.0; #Emitter resistor, k\u2126 .\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, calculating Thevenin's voltage and resistance\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage, V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance, k\u2126 .\n", + "\n", + "#Applying Kirchhoff' law along thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IC=beta*IB\n", + "IB=round((E0-VBE)/(R0+beta*RE),3); #Base current in mA\n", + "IC=round(beta*IB,1); #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "VCE=VCC-IC*(RC/1000+RE); #Collector-emitter voltage, V\n", + "\n", + "S=(beta+1)*(1+R0/RE)/(beta +1+R0/RE); #Stability factor\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.1fmA\"%(VCE,IC));\n", + "print(\"Stability factor=%.2f\"%S);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 8.83V and IC=4.2mA\n", + "Stability factor=2.94\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.25 : Page number 221-222\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Varaible declaration\n", + "VCC=9; #Collector supply voltage, V\n", + "VCE=3; #Collector-emitter voltage, V\n", + "VBE=0.3; #Base-emitter voltage in V\n", + "RC=2.2; #Collector resistor , k\u2126 .\n", + "IC=2; #Collector current, mA\n", + "beta=50.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "IB=IC/beta; #Base current in mA\n", + "\n", + "#According to given relation, I1=10*IB\n", + "I1=IB*10; #Current through the resistor R1, mA\n", + "\n", + "#I1=VCC/(R1+R2), .'s LAW\n", + "R1_R2_sum=VCC/I1; #Sum of the resistor's R1 and R2, k\u2126 (OHM'S LAW).\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "#VCC=IC*RC+VCE+IE*RE\n", + "#IC~IE\n", + "RE=(VCC-IC*RC-VCE)/IC; #Emitter resistor, k\u2126 .\n", + "RE=round(RE*1000,0); #Emittter resistor, \u2126 .\n", + "\n", + "IE=IC; #Emittter current(approximately equal to collector current), mA\n", + "VE=IE*(RE/1000); #Voltage at emitter terminal (OHM's LAW), V\n", + "V2=VBE+VE; #Voltage drop across resistor R2, V\n", + "\n", + "R2=V2/I1; #Resistor R2,(OHM's LAW), k\u2126 .\n", + "R1=R1_R2_sum-R2; #Resistor R1, k\u2126 .\n", + "\n", + "\n", + "\n", + "#Results\n", + "print(\"RE=%d \u2126., R1=%.2f k\u2126 . and R2=%.2f k\u2126 .\"%(RE,R1,R2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "RE=800 \u2126., R1=17.75 k\u2126 . and R2=4.75 k\u2126 .\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.26 : Page number 222\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=16.0; #Collector supply voltage, V\n", + "R2=20.0; #Resistor R2, k\u2126\n", + "RE=2.0; #Emitter resistor, k\u2126\n", + "VCE=6.0; #Collector-emitter voltage, V\n", + "IC=2.0; #Collector current , mA\n", + "VBE=0.3; #Base-emitter voltage,V\n", + "alpha=0.985; #Current amplification factor\n", + "\n", + "#Calculations\n", + "beta=alpha/(1-alpha); #Base current amplificatioon factor\n", + "IE=IC; #Emitter current, mA\n", + "IB=IC/beta; #Base current, mA\n", + "VE=IE*RE; #Emitter voltage,(OHM's LAW) V\n", + "V2=VBE+VE; #Voltage drop across resistor R2,(Kirchhoff's law) V\n", + "V_R1=VCC-V2; #Voltage drop across resistor R1, V\n", + "I1=V2/R2; #Current through resistor R2 an R1,(OHM's LAW) mA\n", + "R1=V_R1/I1; #Resistor R1,(OHM's LAW) k\u2126\n", + "\n", + "V_RC=(VCC-VCE-VE); #Voltage across collector resistor, V\n", + "RC=V_RC/IC; #Collector resistor,(OHM's LAW) k\u2126\n", + "\n", + "\n", + "#Results\n", + "print(\"R1=%.1f k\u2126 and RC=%d k\u2126.\"%(R1,RC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "R1=54.4 k\u2126 and RC=3 k\u2126.\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.27 :Page number 222-223\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=15.0; #Collector supply voltage, V\n", + "R1=10.0; #Resistor R1, k\u2126 \n", + "R2=5.0; #Resistor R2, k\u2126 \n", + "RC=1.0; #Collector resistor, k\u2126 \u007f\n", + "RE=2.0; #Emitter resistor, k\u2126 \n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Using Thevenin's theorem, calculating Thevenin's voltage and resistance\n", + "E0=(VCC*R2)/(R1+R2); #Thevenin's voltage, V\n", + "R0=(R1*R2)/(R1+R2); #Thevenin's resistance, k\u2126 \n", + "\n", + "#Applying Kirchhoff' law along Thevenin's equivalent circuit,\n", + "#E0=IB*R0+VBE+IE*RE;\n", + "#Since IE~IC and IB=IE/beta,\n", + "IE=(E0-VBE)/(R0/beta + RE); #Emitter current , mA\n", + "\n", + "\n", + "#Calculations\n", + "print(\"The exact value of emitter current in the circuit = %.2fmA.\"%IE);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The exact value of emitter current in the circuit = 2.11mA.\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.28: Page number 223-224\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#Variable declaration\n", + "IE=2.0; #Emitter current, mA\n", + "IB=50.0; #Base current, mA\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VBE=0.2; #Base-emitter voltage, V\n", + "R2=10.0; #Resistor R2, k\u2126\n", + "RE=1.0; #Emitter resistance, k\u2126\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's law from the base to the emitter resistor,\n", + "V2=VBE+IE*RE; #Voltage at base terminal, V\n", + "I2=V2/R2; #Current through the resistor R2, mA\n", + "I1=I2+IB/1000; #Current through the resistor R2, mA\n", + "V1=VCC-V2; #Voltage drop across the resistor R2\n", + "R1=V1/I1; #Resistor R1, k\u2126\n", + "\n", + "\n", + "#Results\n", + "print(\"The value of the resistor R1=%.2f k\u2126.\"%R1);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of the resistor R1=28.89 k\u2126.\n" + ] + } + ], + "prompt_number": 41 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.30 :Page number 225-226\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=8.0; #Collector supply voltage, V\n", + "RB=360.0; #Base resistor, k\u2126\n", + "RC=2.0; #Collector resistor, k\u2126\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=100.0; #base current amplification factor\n", + "\n", + "\n", + "#Calculations\n", + "IC_max=VCC/RC; #Maximum collector current, mA\n", + "VCE_max=VCC; #Maximum collector voltage, V\n", + "\n", + "#Operating point\n", + "#Applying Kirchhoff's law along the input circuit\n", + "IB=(VCC-VBE)/RB; #Base current, mA\n", + "IC=beta*IB; #Collector current, mA\n", + "\n", + "#Kirchhoff' law along the output circuit\n", + "VCE=VCC-IC*RC; #Collector-emitter voltage, V\n", + "\n", + "#Results\n", + "print(\"VCE=%.2fV, is approximately half of VCC=%dV \\n therefore it is mid-point biased.\"%(VCE,VCC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "VCE=3.94V, is approximately half of VCC=8V \n", + " therefore it is mid-point biased.\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.31: page number 226\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=50.0; #Base current amplification factor\n", + "R1=12.0; #Resistor R1, k\u2126 \n", + "R2=2.7; #Resistor R2, k\u2126 \n", + "RC=620.0; #Collector resistor, \u2126 \n", + "RE=180.0; #Emitter resistor, \u2126\n", + "\n", + "\n", + "#Calculations\n", + "#Voltage divder rule across R1 and R2\n", + "V2=round((VCC*R2)/(R1+R2),2); #Voltage drop across resistor R2, V\n", + "IE=round(((V2-VBE)/RE)*1000,2); #Emitter current, mA\n", + "IC=IE; #Collector current(Approximately equal to emitter current), mA\n", + "print(\"IC~IE=%.2fmA.\"%IC);\n", + "\n", + "#Applying Kirchhoff's law along the output circuit\n", + "VCE=VCC-(IC/1000)*(RC+RE); #Collector-emitter voltage, V\n", + "\n", + "#Results\n", + "print(\"VCE=%.2fV, is approximately half of VCC=%dV \\n therefore it is mid-point biased.\"%(VCE,VCC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IC~IE=6.33mA.\n", + "VCE=4.94V, is approximately half of VCC=10V \n", + " therefore it is mid-point biased.\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.32 : Page number 227\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import sqrt\n", + "\n", + "#Variable declaration\n", + "VCC=10.0; #Collector supply voltage, V\n", + "IC=10.0; #Collector current, mA \n", + "VBE=0.7; #Base-emitter voltage, V\n", + "R1=1.5; #Resistor R1, k\u2126 \n", + "R2=680.0; #Resistor R2, \u2126 \n", + "RC=260.0; #Collector resistor, \u2126 \n", + "RE=240.0; #Emitter resistor, \u2126 \n", + "beta_min=100; #Minimum value of base current amplification factor\n", + "beta_max=400; #Maximum value of base current amplification factor\n", + "\n", + "#Calculations\n", + "#Voltage divder rule across R1 and R2\n", + "V2=round((VCC*R2/1000)/(R1+R2/1000),2); #Voltage drop across resistor R2, V\n", + "IE=round((V2-VBE)/(RE/1000),0); #OHM' LAW, Emitter current, mA\n", + "IC=IE; #Collector current(approx. equal to emitter current),mA\n", + "beta_avg=sqrt(beta_min*beta_max); #Average value of base current amplification factor\n", + "IB=IE/(beta_avg +1); #Base current, mA\n", + "IB=IB*1000; #Base current, \ud835\udf07A\n", + "\n", + "#Results\n", + "print(\"Base current= %.2f \ud835\udf07A\"%IB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Base current= 49.75 \ud835\udf07A\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.33 : Page number 227-228\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VEE=12.0; #Emitter supply voltage, V\n", + "RC=1.5; #Collector resistor, k\u2126\n", + "RB=120.0; #Base resistor k\u2126\n", + "RE=510.0; #Emitter resistor, \u2126 \n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=60.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's voltage law,\n", + "#IB*RB - VBE - IE*RE +VEE=0\n", + "#Since IE~IC and IC=beta*IB,\n", + "IB=(VEE-VBE)/(RB + beta*RE/1000); #Base current , mA\n", + "IC=round(beta*IB,1); #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's voltage law along output circuit,\n", + "VCE=VEE-IC*(RC + RE/1000); #Collector-emitter voltage, V\n", + "\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.1fmA.\"%(VCE,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 2.96V and IC=4.5mA.\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.34 : Page number 228-229\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import floor\n", + "\n", + "#Variable declaration\n", + "VEE=9.0; #Emitter supply voltage, V\n", + "RC=1.2; #Collector resistor, k\u2126\n", + "RB=100.0; #Base resistor ,k\u2126\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "beta=45.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#Applying Kirchhoff's voltage law,\n", + "#IB*RB + VBE=VEE\n", + "#Since IE~IC and IC=beta*IB,\n", + "IB=round((VEE-VBE)/RB,3); #Base current , mA\n", + "IC=floor(beta*IB*100)/100; #Collector current, mA\n", + "\n", + "#Applying Kirchhoff's voltage law along output circuit,\n", + "VCE=VEE-IC*RC; #Collector-emitter voltage, V\n", + "\n", + "#Results\n", + "print(\"Operating point : VCE= %.2fV and IC=%.2fmA.\"%(VCE,IC));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Operating point : VCE= 4.52V and IC=3.73mA.\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.35 : Page number 229\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "VCC=16.0; #Collector supply voltage, V\n", + "VBE=0.7; #Base-emitter voltage, V\n", + "IC=1.0; #Collector current, mA\n", + "VCE=6.0; #Collector-emitter voltage, V\n", + "beta=150.0; #Base current amplification factor\n", + "\n", + "#Calculations\n", + "#For a good design, VE=VCC/10;\n", + "VE=VCC/10; #Emitter terminal's voltage, V\n", + "#OHM's Law\n", + "#And, taking IE~IC\n", + "RE=VE/IC; #Emitter resistor, k\u2126\n", + "\n", + "#Applying Kirchhoff's voltage law alog output circuit:\n", + "#VCC=IC*RC + VCE + VE\n", + "RC=(VCC-VCE-VE)/IC; #Collector resistor, k\u2126\n", + "V2=VE+VBE; #Voltage drop across resistor R2,V\n", + "#From the relation I1=10*IB\n", + "R2=(beta*RE)/10; #Resistor R2, kilo ohm\n", + "\n", + "#From voltage divider rule across R1 and R2,\n", + "#V2=(VCC*R2)/(R1+R2)\n", + "R1=(VCC-V2)*R2/V2; #Resistor R1, k\u2126 \n", + "\n", + "#Results\n", + "print(\"RE=%.1f k\u2126 , RC=%.1f k\u2126, R1=%.0f k\u2126 and R2=%d k\u2126.\"%(RE,RC,R1,R2));\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "RE=1.6 k\u2126 , RC=8.4 k\u2126, R1=143 k\u2126 and R2=24 k\u2126.\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.36 : Page number 230-231\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "ICBO=5.0; #Collector to base leakage current, microampere\n", + "beta=40.0; #Base current amplification factor\n", + "IC_zero_signal=2.0; #Zero signal collector current, mA\n", + "op_temp=25.0; #operating temperature, degree celsius\n", + "temp_risen=55.0; #Temperature risen, degree celsius\n", + "temp_ICBO_doubles=10.0; #Temperature after which ICBO doubles, degree celsius\n", + "\n", + "#Calculations\n", + "\n", + "#(i)\n", + "ICEO=(beta+1)*ICBO; #Collector to emitter leakage current, microampere\n", + "\n", + "#(ii)\n", + "Number_of_times_ICBO_doubled=(temp_risen - op_temp)/temp_ICBO_doubles; #Number of times ICBO doubles\n", + "ICBO_final=ICBO*2**Number_of_times_ICBO_doubled; #Final value of collector to base leakage current, microampere\n", + "ICEO_final=ICBO_final*(beta + 1); #Final value of collector to emitter leakage current, microampere\n", + "\n", + "IC_zero_signal_55=(ICEO_final/1000) +IC_zero_signal; #Zero signal collector current at 55 degree celius\n", + "change=(IC_zero_signal_55-IC_zero_signal)*100/IC_zero_signal; #Percentage change in zero signal collector current\n", + "\n", + "#Result\n", + "print(\"(i) The percentage change in the zero signal collector current=%.0f%%. \"%change)\n", + "\n", + "#(iii)\n", + "#For the silicon transistor\n", + "ICBO=0.1; #Collector to base leakage current, microampere\n", + "\n", + "ICEO=(beta+1)*ICBO; #Collector to emitter leakage current, microampere\n", + "\n", + "Number_of_times_ICBO_doubled=(temp_risen - op_temp)/temp_ICBO_doubles; #Number of times ICBO doubles\n", + "ICBO_final=ICBO*2**Number_of_times_ICBO_doubled; #Final value of collector to base leakage current, microampere\n", + "ICEO_final=ICBO_final*(beta + 1); #Final value of collector to emitter leakage current, microampere\n", + "\n", + "IC_zero_signal_55=(ICEO_final/1000) +IC_zero_signal; #Zero signal collector current at 55 degree celius\n", + "change=(IC_zero_signal_55-IC_zero_signal)*100/IC_zero_signal; #Percentage change in zero signal collector current\n", + "\n", + "\n", + "#Result\n", + "print(\"(ii) The percentage change in the zero signal collector current=%.1f%%. \"%change)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(i) The percentage change in the zero signal collector current=82%. \n", + "(ii) The percentage change in the zero signal collector current=1.6%. \n" + ] + } + ], + "prompt_number": 70 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.37 : Page number 231\n" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "ICBO=0.02 #Collector to base leakage current, \ud835\udf07A\n", + "alpha=0.99; #Current amplification factor\n", + "IE=1.0; #Emitter current, mA\n", + "op_temp=27.0; #operating temperature, degree celsius\n", + "temp_risen=57.0; #Temperature risen, degree celsius\n", + "temp_ICBO_doubles=6.0; #Temperature after which ICBO doubles, degree celsius\n", + "\n", + "#Calculations\n", + "Number_of_times_ICBO_doubled=(temp_risen - op_temp)/temp_ICBO_doubles; #Number of times ICBO doubles\n", + "ICBO_55=ICBO*2**Number_of_times_ICBO_doubled; #collector to base leakage current at 55 degree celsius, \ud835\udf07A\n", + "IC=alpha*IE + ICBO_55/1000; #Collector current, mA\n", + "IB=IE-IC; #Base current, mA\n", + "IB=IB*1000; #Base current,\ud835\udf07A\n", + "\n", + "#Results\n", + "print(\"Base current at 57 degree celsius=%.1f \ud835\udf07A \"%IB);\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Base current at 57 degree celsius=9.4 \ud835\udf07A \n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter10_ac_load_line_4.png b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter10_ac_load_line_4.png Binary files differnew file mode 100644 index 00000000..d7feffd7 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter10_ac_load_line_4.png diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_4.png b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_4.png Binary files differnew file mode 100644 index 00000000..76486c7b --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_4.png diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_5.png b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_5.png Binary files differnew file mode 100644 index 00000000..76486c7b --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_5.png diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_4.png b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_4.png Binary files differnew file mode 100644 index 00000000..9b26fbe2 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_4.png diff --git a/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_5.png b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_5.png Binary files differnew file mode 100644 index 00000000..9b26fbe2 --- /dev/null +++ b/Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_5.png diff --git a/sample_notebooks/AshvaniKumar/ch10.ipynb b/sample_notebooks/AshvaniKumar/ch10.ipynb new file mode 100644 index 00000000..d5617323 --- /dev/null +++ b/sample_notebooks/AshvaniKumar/ch10.ipynb @@ -0,0 +1,395 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 10 - Other Power Amplifiers" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.1 Page No 425" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of P_DQ = 11.25 mW\n", + "The value of P_Dmax = 112.50 mW\n", + "The value of P_Lmax = 562.50 mW\n" + ] + } + ], + "source": [ + "# given data\n", + "V_CEQ= 7.5## V\n", + "R_L= 50## Ω\n", + "I_Csat= V_CEQ/R_L## A\n", + "I_CQ= 0.01*I_Csat## A\n", + "P_DQ= V_CEQ*I_CQ## W\n", + "PP= 2*V_CEQ## V\n", + "P_Dmax= PP**2/(40*R_L)## W\n", + "P_Lmax= PP**2/(8*R_L)## W\n", + "# The value of P_DQ \n", + "P_DQ= P_DQ*10**3## mW\n", + "# The value of P_Dmax \n", + "P_Dmax= P_Dmax*10**3## mW\n", + "# The value of P_Lmax \n", + "P_Lmax= P_Lmax*10**3## mW\n", + "print \"The value of P_DQ = %.2f mW\"%P_DQ\n", + "print \"The value of P_Dmax = %.2f mW\"%P_Dmax\n", + "print \"The value of P_Lmax = %.2f mW\"%P_Lmax" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.2 Page No 425" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The efficiency of amplifier = 74.03 %\n" + ] + } + ], + "source": [ + "# given data\n", + "V_CC= 15## V\n", + "I_Csat= 150## mA\n", + "P_Lmax= 563## mW\n", + "I= 0.02*I_Csat## mA\n", + "Idc= 0.318*I_Csat## mA\n", + "I_CC= I+Idc## mA\n", + "P_CC= V_CC*I_CC## mW\n", + "# The efficiency of amplifier \n", + "Eta= P_Lmax/P_CC*100## %\n", + "print \"The efficiency of amplifier = %.2f %%\"%Eta\n", + "\n", + "# Note: The answer in the book is not accurate" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.3 Page No 426" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEZCAYAAACXRVJOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFnxJREFUeJzt3Xvw5XV93/HnSy4qXjBxhcKCAw7gCPGyZUqJxPCrmdEF\nrea2CqYVbcfQphAV4limKptgE5xpUyRY1BZXY+OChg3BSrzE+FNjqsYVhHCpYiGA4NKVS4GlFuXd\nP8532cOP3+Wc8zvf37k9Hz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8jc7pl1+W5Oqu5ziv+QXcrZa4vtjt3S6jc/rhua77TgM+mGQ/\nOquD3rzIz30Y+GySHwBvB7Yk2f0fuGW/KF0alKe/liQBrjKSJDWcECRJgBOCJKnhhCBJApwQJEkN\nJwRJEuCEIElqOCFIkgD4/2yFPh7tHE6jAAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x7f863864ffd0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "AC load line shown in figure\n" + ] + } + ], + "source": [ + "from numpy import arange\n", + "%matplotlib inline\n", + "from matplotlib import pyplot as plt\n", + "# given data\n", + "V_CC= 40.0## V\n", + "V_CEQ= 20.0## V\n", + "R_L= 10.0## Ω\n", + "I_Csat= V_CEQ/R_L## A\n", + "V_CEcutoff= V_CEQ## V\n", + "V_CE= arange(0,0.1+V_CEcutoff,0.1) # V\n", + "I_C= (V_CEQ-V_CE)/R_L## A\n", + "# The plot of ac load line,\n", + "plt.plot(V_CE,I_C)\n", + "plt.xlabel(\"VCE in volts\")\n", + "plt.ylabel(\"IC in A\")\n", + "plt.title(\"AC load line\")\n", + "plt.show()\n", + "print \"AC load line shown in figure\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.4 Page No 427" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of P_DQ = 0.39 W\n", + "The value of P_Lmax = 20.00 W\n", + "The value of P_Dmax = 4.00 W\n" + ] + } + ], + "source": [ + "# given data\n", + "V_CC= 40## V\n", + "V_BE= 0.7## V\n", + "R= 1*10**3## Ω\n", + "R_L= 10## Ω\n", + "V_CEQ= 20## V\n", + "I_CQ= (V_CC-2*V_BE)/(2*R)## A\n", + "# The value of P_DQ\n", + "P_DQ= V_CEQ*I_CQ## W\n", + "print \"The value of P_DQ = %.2f W\"%P_DQ\n", + "PP= 2*V_CEQ## V\n", + "# The value of P_Lmax\n", + "P_Lmax= PP**2/(8*R_L)## W\n", + "# The value of P_Dmax\n", + "P_Dmax= PP**2/(40*R_L)## W\n", + "print \"The value of P_Lmax = %.2f W\"%P_Lmax\n", + "print \"The value of P_Dmax = %.2f W\"%P_Dmax" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.5 Page No 428" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage gain of the driver stage = 9.36\n", + "On ignoring the value of Zin and r'e, the voltage gain = 10.00\n" + ] + } + ], + "source": [ + "# given data\n", + "V_E= 1.43## V\n", + "R_E= 100## Ω\n", + "R_L= 100## Ω\n", + "R_C= 1*10**3## Ω\n", + "bita= 200#\n", + "Vt= 25*10**-3## V\n", + "I_E= V_E/R_E## A\n", + "I_CQ= I_E## A\n", + "Zin= bita*R_L## Ω\n", + "r_desh_e= Vt/I_CQ## Ω\n", + "# The voltage gain of the driver stage \n", + "A= (R_C*Zin/(R_C+Zin))/(R_E+r_desh_e)#\n", + "print \"The voltage gain of the driver stage = %.2f\"%A\n", + "# On ignoring Zin and r_desh_e,\n", + "A= R_C/R_E#\n", + "print \"On ignoring the value of Zin and r'e, the voltage gain = %.2f\"%A" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.6 Page No 429" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of PP = 30.00 volts\n", + "The value of P_Lmax = 1.12 W\n" + ] + } + ], + "source": [ + "# given data\n", + "V_CC= 30.0## V\n", + "PP= V_CC## V\n", + "R_L= 100.0## Ω\n", + "# The value of P_Lmax \n", + "P_Lmax= PP**2/(8*R_L)## W\n", + "print \"The value of PP = %.2f volts\"%PP\n", + "print \"The value of P_Lmax = %.2f W\"%P_Lmax" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.7 Page No 430" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The overall voltage gain = 2000.00\n" + ] + } + ], + "source": [ + "# given data\n", + "R_C= 1*10**3## Ω\n", + "r_desh_e= 2.5##in Ω\n", + "Zin= 1.0*10**3## Ω\n", + "A2= 10## unit less\n", + "A3= 1## unit less\n", + "A1= (R_C*Zin/(R_C+Zin))/r_desh_e## unit less\n", + "# The overall voltage gain \n", + "A= A1*A2*A3#\n", + "print \"The overall voltage gain = %.2f\"%A" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.8 Page No 431" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The minimum base current that produces saturation = 108.89 mA\n" + ] + } + ], + "source": [ + "# given data\n", + "V_CC= 50.0## V\n", + "V_CEsat= 1.0## V\n", + "R_L= 5## Ω\n", + "bita_dc= 90## unit less\n", + "I_Csat= (V_CC-V_CEsat)/R_L## A\n", + "# The minimum base current that produces saturation \n", + "I_Bsat= I_Csat/bita_dc## A\n", + "I_Bsat= I_Bsat*10**3## mA\n", + "print \"The minimum base current that produces saturation = %.2f mA\"%I_Bsat" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.9 Page No 432" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input voltage = 2.85 volts\n" + ] + } + ], + "source": [ + "# given data\n", + "I_Csat= 109*10**-3## A\n", + "bita_dc= 200#\n", + "R_B= 1*10**3## Ω\n", + "V_BE1= 0.7## V\n", + "V_BE2= 1.6## V\n", + "# The base current,\n", + "I_Bsat= I_Csat/bita_dc## A\n", + "# The input voltage\n", + "Vin= I_Bsat*R_B+V_BE1+V_BE2## V\n", + "print \"The input voltage = %.2f volts\"%Vin" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.9" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/sample_notebooks/MohdAsif/chapter1.ipynb b/sample_notebooks/MohdAsif/chapter1.ipynb new file mode 100644 index 00000000..aa2a3025 --- /dev/null +++ b/sample_notebooks/MohdAsif/chapter1.ipynb @@ -0,0 +1,389 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1 - Linear Algebraic Equations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Exa1.1 Page 24" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the solution of ex 1.1 by TDMA method is\n", + "317.5\n", + "395.0\n", + "432.5\n", + "430.0\n", + "387.5\n", + "305.0\n", + "182.5\n" + ] + } + ], + "source": [ + "from numpy import zeros\n", + "from __future__ import division\n", + "a=[0];b=[];c=[]\n", + "for i in range(1,7):\n", + " a.append(1) #sub diagonal assignment\n", + "\n", + "for j in range(0,7):\n", + " b.append(-2) #main diagonal assignment\n", + "\n", + "for k in range(0,6):\n", + " c.append(1) #super diagonal assignment\n", + "\n", + "d=[-240] #given values assignment\n", + "for l in range(1,6):\n", + " d.append(-40) \n", + "\n", + "d.append(-60)\n", + "i=1#\n", + "n=7#\n", + "beta1=[b[i-1]]# #initial b is equal to beta since a1=0\n", + "gamma1=[d[i-1]/beta1[i-1]]# #since c7=0\n", + "m=i+1\n", + "for j in range(m,n+1):\n", + " beta1.append(b[j-1]-a[j-1]*c[j-1-1]/beta1[j-1-1])\n", + " gamma1.append((d[j-1]-a[j-1]*gamma1[j-1-1])/beta1[j-1])\n", + "\n", + "#x(n)=gamma1(n)# #since c7=0\n", + "x=zeros(n-1)\n", + "#x[n-1]=gamma1[n-1]\n", + "x=list(x)\n", + "x.append(gamma1[-1])\n", + "n1=n-i# \n", + "\n", + "for k in range(0,n1):\n", + " j=n-k-1\n", + " x[j-1]=gamma1[j-1]-c[j-1]*x[j+1-1]/beta1[j-1]\n", + "\n", + "\n", + "print \"the solution of ex 1.1 by TDMA method is\"\n", + "for i in range(0,7):\n", + " print x[i]" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Exa1.2 Page 24" + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the solution using gauss elimination method is 3, 4 and 5\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "a1=10; a2=1; a3=2; #1st row\n", + "b1=2; b2=10; b3=1; #2nd row\n", + "c1=1; c2=2; c3=10; #3rd row \n", + "d1=44; d2=51; d3=61; #given values\n", + "\n", + "b3=b3-(b1/a1)*a3 # for making b1=0\n", + "b2=b2-(b1/a1)*a2\n", + "d2=d2-(b1/a1)*d1\n", + "b1=b1-(b1/a1)*a1\n", + "\n", + "c3=c3-(c1/a1)*a3 # for making c1=0\n", + "c2=c2-(c1/a1)*a2\n", + "d3=d3-(c1/a1)*d1\n", + "c1=c1-(c1/a1)*a1\n", + "\n", + "c3=c3-(c2/b2)*b3 # for making c2=0\n", + "d3=d3-(c2/b2)*d2\n", + "c2=c2-(c2/b2)*b2\n", + "\n", + "x3=d3/c3# # final values of x\n", + "x2=(d2-(b3*x3))/b2#\n", + "x1=(d1-(x3*a3)-(x2*a2))/a1#\n", + "print \"the solution using gauss elimination method is %d, %d and %d\"%(x1,x2,x3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Exa1.3 Page 26" + ] + }, + { + "cell_type": "code", + "execution_count": 59, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the solution using gauss elimination method is 3, -2 and 0\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "a1=3; a2=1; a3=-2; #1st row\n", + "b1=-1; b2=4; b3=-3; #2nd row\n", + "c1=1; c2=-1; c3=4; #3rd row \n", + "d1=9; d2=-8; d3=1; #given values\n", + "\n", + "b3=b3-(b1/a1)*a3 # for making b1=0\n", + "b2=b2-(b1/a1)*a2\n", + "d2=d2-(b1/a1)*d1\n", + "b1=b1-(b1/a1)*a1\n", + "\n", + "c3=c3-(c1/a1)*a3 # for making c1=0\n", + "c2=c2-(c1/a1)*a2\n", + "d3=d3-(c1/a1)*d1\n", + "c1=c1-(c1/a1)*a1\n", + "\n", + "c3=c3-(c2/b2)*b3 # for making c2=0\n", + "d3=d3-(c2/b2)*d2\n", + "c2=c2-(c2/b2)*b2\n", + "\n", + "x3=d3/c3# # final values of x\n", + "x2=(d2-(b3*x3))/b2#\n", + "x1=(d1-(x3*a3)-(x2*a2))/a1#\n", + "print \"the solution using gauss elimination method is %d, %d and %d\"%(x1,x2,x3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Exa1.4 Page 27" + ] + }, + { + "cell_type": "code", + "execution_count": 61, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the values of MOLAR FLOW RATES of D1, B1, D2, B2 respectively are : 26, 18, 9 and 17\n", + "the composition of stream B is 0.077, 0.247, 0.467 & 0.210\n", + "the composition of stream D is 0.274 0.492 0.12 0.114\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "\n", + "a1=.35; a2=.16; a3=.21; a4=.01 #1st row \n", + "b1=.54; b2=.42; b3=.54; b4=.1 #2nd row\n", + "c1=.04; c2=.24; c3=.1; c4=.65 #3rd row\n", + "d1=.07; d2=.18; d3=.15; d4=.24 #4th row \n", + "r1=14; r2=28; r3=17.5; r4=10.5 #given values\n", + "\n", + "b4=b4-(b1/a1)*a4 # for making b1=0\n", + "b3=b3-(b1/a1)*a3\n", + "b2=b2-(b1/a1)*a2\n", + "r2=r2-(b1/a1)*r1\n", + "b1=b1-(b1/a1)*a1\n", + "\n", + "c4=c4-(c1/a1)*a4 # for making c1=0\n", + "c3=c3-(c1/a1)*a3\n", + "c2=c2-(c1/a1)*a2\n", + "r3=r3-(c1/a1)*r1\n", + "c1=c1-(c1/a1)*a1\n", + "\n", + "d4=d4-(d1/a1)*a4 # for making d1=0\n", + "d3=d3-(d1/a1)*a3\n", + "d2=d2-(d1/a1)*a2\n", + "r4=r4-(d1/a1)*r1\n", + "d1=d1-(d1/a1)*a1\n", + "\n", + "c4=c4-(c2/b2)*b4 # for making c2=0\n", + "c3=c3-(c2/b2)*b3\n", + "r3=r3-(c2/b2)*r2\n", + "c2=c2-(c2/b2)*b2\n", + "\n", + "d4=d4-(d2/b2)*b4 # for making d2=0\n", + "d3=d3-(d2/b2)*b3\n", + "r4=r4-(d2/b2)*r2\n", + "d2=d2-(d2/b2)*b2\n", + "\n", + "d4=d4-(d3/c3)*c4 #for making d3=0\n", + "r4=r4-(d3/c3)*r3\n", + "d3=d3-(d3/c3)*c3\n", + "\n", + "B2=r4/d4#\n", + "D2=(r3-(c4*B2))/c3#\n", + "B1=(r2-(D2*b3)-(B2*b4))/b2#\n", + "D1=(r1-(B2*a4)-(D2*a3)-(B1*a2))/a1#\n", + "print \"the values of MOLAR FLOW RATES of D1, B1, D2, B2 respectively are : %.f, %.f, %.f and %.f\"%(D1,B1,D2,B2)\n", + "\n", + "B=D2+B2#\n", + "x1B=(.21*D2 + .01*B2)/B#\n", + "x2B=(.54*D2 + .1*B2)/B#\n", + "x3B=(.1*D2 + .65*B2)/B#\n", + "x4B=(.15*D2 + .24*B2)/B#\n", + "print \"the composition of stream B is %.3f, %.3f, %.3f & %.3f\"%(x1B,x2B,x3B,x4B)\n", + "\n", + "D=D1+B1#\n", + "x1D=(.35*D1 + .16*B1)/D#\n", + "x2D=(.54*D1 + .42*B1)/D#\n", + "x3D=(.04*D1 + .24*B1)/D#\n", + "x4D=(.07*D1 + .18*B1)/D#\n", + "print \"the composition of stream D is\",x1D,x2D,x3D,x4D" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Exa1.5 Page 28" + ] + }, + { + "cell_type": "code", + "execution_count": 69, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the values of x1,x2,x3 respectively is\n", + "3\n", + "4\n", + "5\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "xnew=[];e=[]\n", + "for i in range(0,3):\n", + " xnew.append(2)\n", + " e.append(1)\n", + "\n", + "x=1e-6\n", + "while e[0]>x and e[1]>x and e[2]>x:\n", + " xold=[]\n", + " for i in range(0,3):\n", + " xold.append(xnew[i])\n", + " \n", + " xnew[0]=(44-xold[1]-2*xold[2])/10\n", + " xnew[1]=(-2*xnew[0]+51-xold[2])/10\n", + " xnew[2]=(-2*xnew[1]-xnew[0]+61)/10\n", + " e=[]\n", + " for i in range(0,3):\n", + " e.append(abs(xnew[i]-xold[i]))\n", + " \n", + "print \"the values of x1,x2,x3 respectively is\"\n", + "for i in range(0,3):\n", + " print '%.f'%xnew[i]" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Exa1.6 Page 28" + ] + }, + { + "cell_type": "code", + "execution_count": 75, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the values of x1,x2,x3 respectively is\n", + "3\n", + "-2\n", + "-1\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "xnew=[];e=[];\n", + "for i in range(0,3):\n", + " xnew.append(2)\n", + " e.append(1)\n", + "\n", + "x=1e-6\n", + "while e[0]>x and e[1]>x and e[2]>x:\n", + " xold=[]\n", + " for i in range(0,3):\n", + " xold.append(xnew[i])\n", + " \n", + " xnew[0]=(9-xold[1]+2*xold[2])/3\n", + " xnew[1]=(xnew[0]-8+3*xold[2])/4\n", + " xnew[2]=(xnew[1]-xnew[0]+1)/4\n", + " e=[]\n", + " for i in range(0,3):\n", + " e.append(abs(xnew[i]-xold[i]))\n", + " \n", + "print \"the values of x1,x2,x3 respectively is\"\n", + "for i in range(0,3):\n", + " print '%.f'%xnew[i]" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.9" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/sample_notebooks/karansingh/ch1.ipynb b/sample_notebooks/karansingh/ch1.ipynb new file mode 100644 index 00000000..424c23f8 --- /dev/null +++ b/sample_notebooks/karansingh/ch1.ipynb @@ -0,0 +1,227 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter1 - Survey Of Units And Dimensions" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex:1.1 Pg: 19" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Force to accelerate = 3.108 lbf\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "gc=32.1739 #lbm ft/lbf s**2\n", + "m=10 #lbm\n", + "a=10 #ft/s**2\n", + "#calculations\n", + "F=m*a/gc\n", + "#results\n", + "print \"Force to accelerate = %.3f lbf\"%(F)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex:1.2 Pg: 19" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Force to accelerate = 10 lbf\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "gc=32.1739 #lbm ft/lbf s**2\n", + "m=10 #lbm\n", + "a=gc #ft/s**2\n", + "#calculations\n", + "F=m*a/gc\n", + "#results\n", + "print \"Force to accelerate = %d lbf\"%(F)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex:1.3 Pg: 19" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity = 60 mph\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "v=88 #ft/s\n", + "#calculations\n", + "v2=v*3600/5280\n", + "#results\n", + "print \"velocity = %d mph\"%(v2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex:1.4 Pg: 20" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity = 0 mph\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "v=88 #ft/s\n", + "#calculations\n", + "v2=v*1/5280*3600\n", + "#results\n", + "print \"velocity = %d mph\"%(v2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex:1.5 Pg: 20" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Force without dimensions = 5.79e-04 lbm/ft sec\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "F=5e-9 #lbf/ft**2 hr\n", + "g=32.1739\n", + "#calculations\n", + "F2=F*3600*g\n", + "#results\n", + "print \"Force without dimensions = %.2e lbm/ft sec\"%(F2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex:1.6 Pg: 21" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Density of water in this system = 1.937 lbf/ft**2\n", + "\n", + " Specific weight = 62.305 lbf/ft**2\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "rho=62.305 #lbf/ft**2\n", + "g=32.1739 #ft/s**2\n", + "#calculations\n", + "gam=rho/g\n", + "#results\n", + "print \"Density of water in this system = %.3f lbf/ft**2\"%(gam)\n", + "print \"\\n Specific weight = %.3f lbf/ft**2\"%(rho)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.9" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} |