From 251a07c4cbed1a5a960f5ed416ce6ac13c8152b7 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Thu, 11 Jun 2015 17:31:11 +0530 Subject: add books --- Electronic_Devices_and_Circuits/Chapter1.ipynb | 307 ----- Electronic_Devices_and_Circuits/Chapter10.ipynb | 587 --------- Electronic_Devices_and_Circuits/Chapter10_1.ipynb | 587 --------- Electronic_Devices_and_Circuits/Chapter10_2.ipynb | 587 --------- Electronic_Devices_and_Circuits/Chapter11.ipynb | 305 ----- Electronic_Devices_and_Circuits/Chapter11_1.ipynb | 305 ----- Electronic_Devices_and_Circuits/Chapter11_2.ipynb | 305 ----- Electronic_Devices_and_Circuits/Chapter12.ipynb | 1196 ------------------ Electronic_Devices_and_Circuits/Chapter12_1.ipynb | 1196 ------------------ Electronic_Devices_and_Circuits/Chapter12_2.ipynb | 1196 ------------------ Electronic_Devices_and_Circuits/Chapter13.ipynb | 733 ----------- Electronic_Devices_and_Circuits/Chapter13_1.ipynb | 733 ----------- Electronic_Devices_and_Circuits/Chapter13_2.ipynb | 733 ----------- Electronic_Devices_and_Circuits/Chapter14.ipynb | 662 ---------- Electronic_Devices_and_Circuits/Chapter14_1.ipynb | 662 ---------- Electronic_Devices_and_Circuits/Chapter14_2.ipynb | 662 ---------- Electronic_Devices_and_Circuits/Chapter15.ipynb | 282 ----- Electronic_Devices_and_Circuits/Chapter15_1.ipynb | 282 ----- Electronic_Devices_and_Circuits/Chapter15_2.ipynb | 282 ----- Electronic_Devices_and_Circuits/Chapter16.ipynb | 581 --------- Electronic_Devices_and_Circuits/Chapter16_1.ipynb | 581 --------- Electronic_Devices_and_Circuits/Chapter16_2.ipynb | 581 --------- Electronic_Devices_and_Circuits/Chapter17.ipynb | 560 --------- Electronic_Devices_and_Circuits/Chapter17_1.ipynb | 560 --------- Electronic_Devices_and_Circuits/Chapter17_2.ipynb | 560 --------- Electronic_Devices_and_Circuits/Chapter18.ipynb | 684 ---------- Electronic_Devices_and_Circuits/Chapter18_1.ipynb | 684 ---------- Electronic_Devices_and_Circuits/Chapter18_2.ipynb | 684 ---------- Electronic_Devices_and_Circuits/Chapter19.ipynb | 1316 -------------------- Electronic_Devices_and_Circuits/Chapter19_1.ipynb | 1316 -------------------- Electronic_Devices_and_Circuits/Chapter19_2.ipynb | 1316 -------------------- Electronic_Devices_and_Circuits/Chapter1_1.ipynb | 307 ----- Electronic_Devices_and_Circuits/Chapter1_2.ipynb | 307 ----- Electronic_Devices_and_Circuits/Chapter2.ipynb | 571 --------- Electronic_Devices_and_Circuits/Chapter20.ipynb | 434 ------- Electronic_Devices_and_Circuits/Chapter20_1.ipynb | 434 ------- Electronic_Devices_and_Circuits/Chapter20_2.ipynb | 434 ------- Electronic_Devices_and_Circuits/Chapter21.ipynb | 241 ---- Electronic_Devices_and_Circuits/Chapter21_1.ipynb | 241 ---- Electronic_Devices_and_Circuits/Chapter21_2.ipynb | 241 ---- Electronic_Devices_and_Circuits/Chapter2_1.ipynb | 571 --------- Electronic_Devices_and_Circuits/Chapter2_2.ipynb | 571 --------- Electronic_Devices_and_Circuits/Chapter3.ipynb | 1201 ------------------ Electronic_Devices_and_Circuits/Chapter3_1.ipynb | 1201 ------------------ Electronic_Devices_and_Circuits/Chapter3_2.ipynb | 1201 ------------------ Electronic_Devices_and_Circuits/Chapter4.ipynb | 237 ---- Electronic_Devices_and_Circuits/Chapter4_1.ipynb | 237 ---- Electronic_Devices_and_Circuits/Chapter4_2.ipynb | 237 ---- Electronic_Devices_and_Circuits/Chapter5.ipynb | 1022 --------------- Electronic_Devices_and_Circuits/Chapter5_1.ipynb | 1022 --------------- Electronic_Devices_and_Circuits/Chapter5_2.ipynb | 1022 --------------- Electronic_Devices_and_Circuits/Chapter6.ipynb | 656 ---------- Electronic_Devices_and_Circuits/Chapter6_1.ipynb | 656 ---------- Electronic_Devices_and_Circuits/Chapter6_2.ipynb | 656 ---------- Electronic_Devices_and_Circuits/Chapter8.ipynb | 499 -------- Electronic_Devices_and_Circuits/Chapter8_1.ipynb | 499 -------- Electronic_Devices_and_Circuits/Chapter8_2.ipynb | 499 -------- Electronic_Devices_and_Circuits/README.txt | 10 - .../screenshots/Chapter3.png | Bin 323407 -> 0 bytes .../screenshots/Chapter3_1.png | Bin 323407 -> 0 bytes .../screenshots/Chapter3_2.png | Bin 323407 -> 0 bytes .../screenshots/Chapter4.png | Bin 304018 -> 0 bytes .../screenshots/Chapter4_1.png | Bin 304018 -> 0 bytes .../screenshots/Chapter4_2.png | Bin 304018 -> 0 bytes .../screenshots/Chapter5.png | Bin 307846 -> 0 bytes .../screenshots/Chapter5_1.png | Bin 307846 -> 0 bytes .../screenshots/Chapter5_2.png | Bin 307846 -> 0 bytes 67 files changed, 36232 deletions(-) delete mode 100755 Electronic_Devices_and_Circuits/Chapter1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter10.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter10_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter10_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter11.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter11_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter11_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter12.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter12_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter12_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter13.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter13_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter13_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter14.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter14_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter14_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter15.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter15_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter15_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter16.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter16_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter16_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter17.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter17_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter17_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter18.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter18_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter18_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter19.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter19_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter19_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter1_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter1_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter20.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter20_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter20_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter21.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter21_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter21_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter2_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter2_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter3.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter3_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter3_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter4.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter4_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter4_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter5.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter5_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter5_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter6.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter6_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter6_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter8.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter8_1.ipynb delete mode 100755 Electronic_Devices_and_Circuits/Chapter8_2.ipynb delete mode 100755 Electronic_Devices_and_Circuits/README.txt delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter3.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter3_1.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter3_2.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter4.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter4_1.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter4_2.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter5.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter5_1.png delete mode 100755 Electronic_Devices_and_Circuits/screenshots/Chapter5_2.png (limited to 'Electronic_Devices_and_Circuits') diff --git a/Electronic_Devices_and_Circuits/Chapter1.ipynb b/Electronic_Devices_and_Circuits/Chapter1.ipynb deleted file mode 100755 index 47b8b5fc..00000000 --- a/Electronic_Devices_and_Circuits/Chapter1.ipynb +++ /dev/null @@ -1,307 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 01 : Basic semiconductor and pn junction theory" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.1, Page No 15" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Nd=3*10**14\n", - "Na=0.5*10**14 #all in atom/cm**3\n", - "ni=1.5*10**10\n", - "\n", - "#Calculations\n", - "print(\"resultant densities of free electrons and hole\")\n", - "ne=(-(Na-Nd)+(math.sqrt(((Na-Nd)**2)+4*ni**2)))/2\n", - "print(\"Electron densities = %.1f x 10^14 electron/cm**3\" %(ne/(10**14))) #electron densities in electron/cm**3\n", - "Nd>Na\n", - "n=Nd-Na\n", - "print(n)\n", - "p=(ni**2)/n\n", - "\n", - "#Results\n", - "\n", - "print(\"densities of hole is =%.1f X 10^6 dhole/cm3\" %(p/(10**6)))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resultant densities of free electrons and hole\n", - "Electron densities = 2.5 x 10^14 electron/cm**3\n", - "2.5e+14\n", - "densities of hole is =0.9 X 10^6 dhole/cm3\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.2, Page No 18" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "l=1*10**-3\n", - "E=10\n", - "\n", - "#Calculations\n", - "un=1500*10**-4\n", - "up=500*10-4\n", - "Vn=-(un*E)/l\n", - "\n", - "#Results\n", - "print(\"drift current is =%.2dm/s\\n\" %Vn)\n", - "print(\"drift current of hole\")\n", - "Vp=(up*E)/l\n", - "print(\"drift current is =%.f dm/s\\n\" %(Vp/10**5))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "drift current is =-1500m/s\n", - "\n", - "drift current of hole\n", - "drift current is =500 dm/s\n", - "\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.3 Page No 19" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "l=1*10**-3\n", - "a=0.1*10**-4\n", - "ni=1.5*10**10\n", - "p=1.5*10**10\n", - "un=1500\n", - "up=500 #in cm3/V.s\n", - "q=1.6*10**-19\n", - "\n", - "#Calculations\n", - "m=q*((ni*un)+(p*up))*10**6\n", - "print( \"mobility is =%.1fmicro/ohmcm\" %m)\n", - "R=l/(m*a)\n", - "print(\" resistance is =%.1fMohm\" %R)\n", - "\n", - "#for doped material\n", - "n=8*10**13\n", - "p=(ni**2)/n\n", - "m=q*((n*un)+(p*up))\n", - "\n", - "#Results\n", - "print(\"mobility is =%3.4f/ohmcm\" %m)\n", - "R=l/(m*a)\n", - "print(\" resistance is %.2f Kohm\" %(R/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mobility is =4.8micro/ohmcm\n", - " resistance is =20.8Mohm\n", - "mobility is =0.0192/ohmcm\n", - " resistance is 5.21 Kohm\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.4, Page No 25" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "T1=25.0\n", - "T2=35.0\n", - "T3=45.0\n", - "I0=30.0 # nA\n", - "print(\"I0(35)=I0*2**(T2-T1)/10\")\n", - "#on solving\n", - "I035=I0*2**((T2-T1)/10)\n", - "print(\"Current at 35c is =%.2f nA\\n\" %I035)\n", - "print(\"I0(45)=I0*2**(T3-T1)/10\")\n", - "#on solving\n", - "I045=30*2**2\n", - "print(\"current at 45c is =%.2f nA\\n\" %I045)\n", - "I_CS=100.0 \n", - "V_CC=200.0 \n", - "t_on=40*10**-6" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "I0(35)=I0*2**(T2-T1)/10\n", - "Current at 35c is =60.00 nA\n", - "\n", - "I0(45)=I0*2**(T3-T1)/10\n", - "current at 45c is =120.00 nA\n", - "\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.5, Page No 28" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "I0=30\n", - "Vd=0.7\n", - "n=2\n", - "\n", - "#Calculations\n", - "Vt=26.0*10**-3\n", - "k=Vd/(n*Vt)\n", - "Id=I0*((2.7**k)-1)*10**-6 #Junction current\n", - "print(\" a) Forward bais current is =%.2f mA\\n\" %Id)\n", - "Vd=-10 #reverse bais\n", - "k=Vd/(n*Vt)\n", - "Id=I0*((2.7**k)-1)\n", - "\n", - "#Results\n", - "print(\" b) Forward bais current is =%.2f nA\" %Id)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " a) Forward bais current is =19.23 mA\n", - "\n", - " b) Forward bais current is =-30.00 nA\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.6, Page No 29" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=.1*10**-3\n", - "n=2\n", - "vt=26*10**-3\n", - "I0=30*10**-9\n", - "\n", - "#Calculations\n", - "Vd=(n*Vt)*math.log(Id/I0)*10**3\n", - "print(\" a) Forward bais current is =%.2f mV\\n\" %Vd)\n", - "Id=10*10**-3\n", - "Vd=(n*Vt)*math.log(Id/I0)*10**3\n", - "\n", - "#Results\n", - "print(\"b) forward bais current is %dmV\\n\" %Vd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " a) Forward bais current is =421.81 mV\n", - "\n", - "b) forward bais current is 661mV\n", - "\n" - ] - } - ], - "prompt_number": 6 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter10.ipynb b/Electronic_Devices_and_Circuits/Chapter10.ipynb deleted file mode 100755 index b92c4b1d..00000000 --- a/Electronic_Devices_and_Circuits/Chapter10.ipynb +++ /dev/null @@ -1,587 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 10 : FET biasing" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.1, Page No 381" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vdd=22.0\n", - "Rd=2.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"when Id=0\")\n", - "Id=0\n", - "Vds=Vdd-Id*Rd\n", - "print('at point A Vds = %.2f V' %Vds)\n", - "Vds=0\n", - "Id=Vdd/Rd\n", - "\n", - "#Results\n", - "print(\"when Vds=0\")\n", - "print('at point A Id = %.2f mA' %(Id*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0\n", - "at point A Vds = 22.00 V\n", - "when Vds=0\n", - "at point A Id = 11.00 mA\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.4, Page No 387" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Idss=8.0*10**-3\n", - "Vpmax=6.0\n", - "Vgs=2.3\n", - "Vgsmax=6\n", - "\n", - "#Calculations\n", - "Id=Idss*(1-(Vgs/Vgsmax))**2\n", - "Idss=4*10**-3\n", - "Vp=3\n", - "Idmin=Idss*(1-(Vgs/Vp))**2\n", - "\n", - "#Results\n", - "print('at point A Idmin = %.2f mA' %(Idmin*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at point A Idmin = 0.22 mA\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.6 Page No 393" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vdd=25.0\n", - "R2=1.0*10**6\n", - "R1=3.8*10**6\n", - "Rs=2.5*10**3\n", - "Rd=2.5*10**3\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"when Id=0\")\n", - "Id=0\n", - "Vgs=Vg-Id*Rs\n", - "print(\" plot point A at Id=0\")\n", - "print('at point A Vds = %.2f A/s' %Vds)\n", - "Vgs=0\n", - "Id=Vg/Rs\n", - "print(\" plot point B Vgs=0\")\n", - "print('at point A Id = %.2f A/s' %Id)\n", - "Idmax=3*10**-3\n", - "Idmin=2.3*10**-3\n", - "Vdsmin=Vdd-Idmax*(Rd+Rs)\n", - "Vdsmax=Vdd-Idmin*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vdsmax = %.2f V' %(Vdsmax))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0\n", - " plot point A at Id=0\n", - "at point A Vds = 0.00 A/s\n", - " plot point B Vgs=0\n", - "at point A Id = 0.00 A/s\n", - "The value of Vdsmax = 13.50 V\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.7, Page No 401" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Id=3.0*10**-3\n", - "Vgs=-2.3\n", - "Vdsmin=10.0\n", - "Vdd=25.0\n", - "Vgsoff=-6\n", - "Idss=8.0*10**-3\n", - "\n", - "#Calculations\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Rd=(Vdd-Vdsmin)/Id\n", - "\n", - "#Results\n", - "print('The value of Td = %.2f kohm' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Td = 5.00 kohm\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.8 Page No 403" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vgs=2.3\n", - "\n", - "#Calculations\n", - "Rs=Vgs/Id\n", - "Rd=((Vdd-Vds)/Id)-Rs\n", - "\n", - "#Results\n", - "print('The value of Rd = %.2f ohm' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd = 4.23 ohm\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.9 Page No 405" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vg=5.2\n", - "Vgsoff=-6\n", - "Idss=8.0*10**-3\n", - "R2=1.0*10**6\n", - "\n", - "#Calculations\n", - "R=(Vdd-Vds)/Id#R=(Rs+Rd)/2\n", - "Rd=R/2\n", - "Rs=Rd\n", - "Vgs=Id*Rs\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vs=Id*Rs\n", - "Vg=Vs-(-Vgs)\n", - "R1=((Vdd-Vg)*R2)/Vg\n", - "\n", - "#Results\n", - "print('The value of R = %.2f Mohm' %(R1/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R = 3.83 Mohm\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.11, Page No 412" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vee=20.0\n", - "Id=3.0*10**-3\n", - "Vds=9.0\n", - "Vbe=.7\n", - "Vb=0\n", - "Ve=Vee-Vbe\n", - "\n", - "#Calculations\n", - "Re=Ve/Id\n", - "Re=6.8*10**3#satnadard value\n", - "Id=Ve/Re\n", - "Idss=16*10**-3\n", - "Vgsoff=-8\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vs=Vb-Vgs\n", - "Vrd=Vee-Vds-Vs\n", - "Rd=Vrd/Id\n", - "\n", - "#Results\n", - "print('The value of Rd = %.2f V' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd = 2.24 V\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.12 Page No 415" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Idss=5.0*10**-3\n", - "Vgsoff=6.0\n", - "Rs=3.3*10**3\n", - "Vdd=20.0\n", - "Rd=Rs\n", - "\n", - "#Calculations\n", - "print(\"when Id=0 % Vgs=Vs=0\")\n", - "Id=0\n", - "Vgs=0\n", - "Vs=0\n", - "print(\" at point A universal transfer characteristic Id/Idss and Vgs/Vgsoff=0\")\n", - "Id=1.5*10**-3\n", - "Vgs=Id*Rs\n", - "y=Id/Idss\n", - "x=Vgs/Vgsoff\n", - "print(\" point B the universal transfer charecteristic x=.825 and y=.3\")\n", - "Id=.2*Idss\n", - "Vds=Vdd-Id*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vds = %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0 % Vgs=Vs=0\n", - " at point A universal transfer characteristic Id/Idss and Vgs/Vgsoff=0\n", - " point B the universal transfer charecteristic x=.825 and y=.3\n", - "The value of Vds = 13.40 V\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.13 Page No 416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Idss=9.0*10**-3\n", - "Vgsoff=7.0\n", - "Vdd=22.0\n", - "R1=4.7*10**6\n", - "R2=1.0*10**6\n", - "Rs=2.7*10**3\n", - "Rd=Rs\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"when Vgs=0 % Vgs/Vgsoff=0\")\n", - "Id=Vg/Rs\n", - "print(\"when Vgs/Vgsoff=.5\")\n", - "Vgs=.5*(-Vgsoff)\n", - "Id=(Vg-Vgs)/Rs\n", - "x=Id/Idss\n", - "print(\" point Y on universal characteristic x=.3 and Vgs/Vgsoff=.5\")\n", - "print(\"draw voltage divider bias line through X nad Y where bisa line intersect transfer curve\")\n", - "Id=.29*Idss\n", - "Vds=Vdd-Id*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Vgs=0 % Vgs/Vgsoff=0\n", - "when Vgs/Vgsoff=.5\n", - " point Y on universal characteristic x=.3 and Vgs/Vgsoff=.5\n", - "draw voltage divider bias line through X nad Y where bisa line intersect transfer curve\n", - "The value of Vds= 7.91 V\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.14 Page No 419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vdd=40.0\n", - "R2=1.0*10**6\n", - "R1=5.6*10**6\n", - "Rd=4.7\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"from the point where the bias line intersect the transfer curve\")\n", - "Id=6.2\n", - "Vds=Vdd-Id*Rd\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "from the point where the bias line intersect the transfer curve\n", - "The value of Vds= 10.86 V\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.16, Page No 422" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "rDS=25.0\n", - "Vgsoff=10.0\n", - "Vds=200.0*10**-3\n", - "Vdd=12.0\n", - "\n", - "#Calculations\n", - "Id=Vds/rDS\n", - "Rd=Vdd/Id\n", - "Vi=-(Vgsoff+1)\n", - "\n", - "#Results\n", - "print('The value of Vi= %.2f V' %(Vi))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vi= -11.00 V\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.17, Page No 424" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vdd=50.0\n", - "Rd=10.0\n", - "R2=1.0*10**6\n", - "rDS=0.25\n", - "\n", - "#Calculations\n", - "Id=Vdd/Rd\n", - "print(\" from transfer curve at Id=5 and Vgs=5.7\")\n", - "Vgs=5.7\n", - "R1=((Vdd-Vgs)*R2)/Vgs#use 6.8Mohm to make Vgs>5.7V to ensure that the FET is biased on\n", - "Vds=Id*rDS\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " from transfer curve at Id=5 and Vgs=5.7\n", - "The value of Vds= 1.25 V\n" - ] - } - ], - "prompt_number": 12 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter10_1.ipynb b/Electronic_Devices_and_Circuits/Chapter10_1.ipynb deleted file mode 100755 index b92c4b1d..00000000 --- a/Electronic_Devices_and_Circuits/Chapter10_1.ipynb +++ /dev/null @@ -1,587 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 10 : FET biasing" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.1, Page No 381" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vdd=22.0\n", - "Rd=2.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"when Id=0\")\n", - "Id=0\n", - "Vds=Vdd-Id*Rd\n", - "print('at point A Vds = %.2f V' %Vds)\n", - "Vds=0\n", - "Id=Vdd/Rd\n", - "\n", - "#Results\n", - "print(\"when Vds=0\")\n", - "print('at point A Id = %.2f mA' %(Id*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0\n", - "at point A Vds = 22.00 V\n", - "when Vds=0\n", - "at point A Id = 11.00 mA\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.4, Page No 387" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Idss=8.0*10**-3\n", - "Vpmax=6.0\n", - "Vgs=2.3\n", - "Vgsmax=6\n", - "\n", - "#Calculations\n", - "Id=Idss*(1-(Vgs/Vgsmax))**2\n", - "Idss=4*10**-3\n", - "Vp=3\n", - "Idmin=Idss*(1-(Vgs/Vp))**2\n", - "\n", - "#Results\n", - "print('at point A Idmin = %.2f mA' %(Idmin*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at point A Idmin = 0.22 mA\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.6 Page No 393" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vdd=25.0\n", - "R2=1.0*10**6\n", - "R1=3.8*10**6\n", - "Rs=2.5*10**3\n", - "Rd=2.5*10**3\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"when Id=0\")\n", - "Id=0\n", - "Vgs=Vg-Id*Rs\n", - "print(\" plot point A at Id=0\")\n", - "print('at point A Vds = %.2f A/s' %Vds)\n", - "Vgs=0\n", - "Id=Vg/Rs\n", - "print(\" plot point B Vgs=0\")\n", - "print('at point A Id = %.2f A/s' %Id)\n", - "Idmax=3*10**-3\n", - "Idmin=2.3*10**-3\n", - "Vdsmin=Vdd-Idmax*(Rd+Rs)\n", - "Vdsmax=Vdd-Idmin*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vdsmax = %.2f V' %(Vdsmax))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0\n", - " plot point A at Id=0\n", - "at point A Vds = 0.00 A/s\n", - " plot point B Vgs=0\n", - "at point A Id = 0.00 A/s\n", - "The value of Vdsmax = 13.50 V\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.7, Page No 401" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Id=3.0*10**-3\n", - "Vgs=-2.3\n", - "Vdsmin=10.0\n", - "Vdd=25.0\n", - "Vgsoff=-6\n", - "Idss=8.0*10**-3\n", - "\n", - "#Calculations\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Rd=(Vdd-Vdsmin)/Id\n", - "\n", - "#Results\n", - "print('The value of Td = %.2f kohm' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Td = 5.00 kohm\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.8 Page No 403" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vgs=2.3\n", - "\n", - "#Calculations\n", - "Rs=Vgs/Id\n", - "Rd=((Vdd-Vds)/Id)-Rs\n", - "\n", - "#Results\n", - "print('The value of Rd = %.2f ohm' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd = 4.23 ohm\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.9 Page No 405" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vg=5.2\n", - "Vgsoff=-6\n", - "Idss=8.0*10**-3\n", - "R2=1.0*10**6\n", - "\n", - "#Calculations\n", - "R=(Vdd-Vds)/Id#R=(Rs+Rd)/2\n", - "Rd=R/2\n", - "Rs=Rd\n", - "Vgs=Id*Rs\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vs=Id*Rs\n", - "Vg=Vs-(-Vgs)\n", - "R1=((Vdd-Vg)*R2)/Vg\n", - "\n", - "#Results\n", - "print('The value of R = %.2f Mohm' %(R1/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R = 3.83 Mohm\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.11, Page No 412" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vee=20.0\n", - "Id=3.0*10**-3\n", - "Vds=9.0\n", - "Vbe=.7\n", - "Vb=0\n", - "Ve=Vee-Vbe\n", - "\n", - "#Calculations\n", - "Re=Ve/Id\n", - "Re=6.8*10**3#satnadard value\n", - "Id=Ve/Re\n", - "Idss=16*10**-3\n", - "Vgsoff=-8\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vs=Vb-Vgs\n", - "Vrd=Vee-Vds-Vs\n", - "Rd=Vrd/Id\n", - "\n", - "#Results\n", - "print('The value of Rd = %.2f V' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd = 2.24 V\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.12 Page No 415" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Idss=5.0*10**-3\n", - "Vgsoff=6.0\n", - "Rs=3.3*10**3\n", - "Vdd=20.0\n", - "Rd=Rs\n", - "\n", - "#Calculations\n", - "print(\"when Id=0 % Vgs=Vs=0\")\n", - "Id=0\n", - "Vgs=0\n", - "Vs=0\n", - "print(\" at point A universal transfer characteristic Id/Idss and Vgs/Vgsoff=0\")\n", - "Id=1.5*10**-3\n", - "Vgs=Id*Rs\n", - "y=Id/Idss\n", - "x=Vgs/Vgsoff\n", - "print(\" point B the universal transfer charecteristic x=.825 and y=.3\")\n", - "Id=.2*Idss\n", - "Vds=Vdd-Id*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vds = %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0 % Vgs=Vs=0\n", - " at point A universal transfer characteristic Id/Idss and Vgs/Vgsoff=0\n", - " point B the universal transfer charecteristic x=.825 and y=.3\n", - "The value of Vds = 13.40 V\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.13 Page No 416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Idss=9.0*10**-3\n", - "Vgsoff=7.0\n", - "Vdd=22.0\n", - "R1=4.7*10**6\n", - "R2=1.0*10**6\n", - "Rs=2.7*10**3\n", - "Rd=Rs\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"when Vgs=0 % Vgs/Vgsoff=0\")\n", - "Id=Vg/Rs\n", - "print(\"when Vgs/Vgsoff=.5\")\n", - "Vgs=.5*(-Vgsoff)\n", - "Id=(Vg-Vgs)/Rs\n", - "x=Id/Idss\n", - "print(\" point Y on universal characteristic x=.3 and Vgs/Vgsoff=.5\")\n", - "print(\"draw voltage divider bias line through X nad Y where bisa line intersect transfer curve\")\n", - "Id=.29*Idss\n", - "Vds=Vdd-Id*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Vgs=0 % Vgs/Vgsoff=0\n", - "when Vgs/Vgsoff=.5\n", - " point Y on universal characteristic x=.3 and Vgs/Vgsoff=.5\n", - "draw voltage divider bias line through X nad Y where bisa line intersect transfer curve\n", - "The value of Vds= 7.91 V\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.14 Page No 419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vdd=40.0\n", - "R2=1.0*10**6\n", - "R1=5.6*10**6\n", - "Rd=4.7\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"from the point where the bias line intersect the transfer curve\")\n", - "Id=6.2\n", - "Vds=Vdd-Id*Rd\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "from the point where the bias line intersect the transfer curve\n", - "The value of Vds= 10.86 V\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.16, Page No 422" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "rDS=25.0\n", - "Vgsoff=10.0\n", - "Vds=200.0*10**-3\n", - "Vdd=12.0\n", - "\n", - "#Calculations\n", - "Id=Vds/rDS\n", - "Rd=Vdd/Id\n", - "Vi=-(Vgsoff+1)\n", - "\n", - "#Results\n", - "print('The value of Vi= %.2f V' %(Vi))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vi= -11.00 V\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.17, Page No 424" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vdd=50.0\n", - "Rd=10.0\n", - "R2=1.0*10**6\n", - "rDS=0.25\n", - "\n", - "#Calculations\n", - "Id=Vdd/Rd\n", - "print(\" from transfer curve at Id=5 and Vgs=5.7\")\n", - "Vgs=5.7\n", - "R1=((Vdd-Vgs)*R2)/Vgs#use 6.8Mohm to make Vgs>5.7V to ensure that the FET is biased on\n", - "Vds=Id*rDS\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " from transfer curve at Id=5 and Vgs=5.7\n", - "The value of Vds= 1.25 V\n" - ] - } - ], - "prompt_number": 12 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter10_2.ipynb b/Electronic_Devices_and_Circuits/Chapter10_2.ipynb deleted file mode 100755 index b92c4b1d..00000000 --- a/Electronic_Devices_and_Circuits/Chapter10_2.ipynb +++ /dev/null @@ -1,587 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 10 : FET biasing" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.1, Page No 381" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vdd=22.0\n", - "Rd=2.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"when Id=0\")\n", - "Id=0\n", - "Vds=Vdd-Id*Rd\n", - "print('at point A Vds = %.2f V' %Vds)\n", - "Vds=0\n", - "Id=Vdd/Rd\n", - "\n", - "#Results\n", - "print(\"when Vds=0\")\n", - "print('at point A Id = %.2f mA' %(Id*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0\n", - "at point A Vds = 22.00 V\n", - "when Vds=0\n", - "at point A Id = 11.00 mA\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.4, Page No 387" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Idss=8.0*10**-3\n", - "Vpmax=6.0\n", - "Vgs=2.3\n", - "Vgsmax=6\n", - "\n", - "#Calculations\n", - "Id=Idss*(1-(Vgs/Vgsmax))**2\n", - "Idss=4*10**-3\n", - "Vp=3\n", - "Idmin=Idss*(1-(Vgs/Vp))**2\n", - "\n", - "#Results\n", - "print('at point A Idmin = %.2f mA' %(Idmin*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at point A Idmin = 0.22 mA\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.6 Page No 393" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vdd=25.0\n", - "R2=1.0*10**6\n", - "R1=3.8*10**6\n", - "Rs=2.5*10**3\n", - "Rd=2.5*10**3\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"when Id=0\")\n", - "Id=0\n", - "Vgs=Vg-Id*Rs\n", - "print(\" plot point A at Id=0\")\n", - "print('at point A Vds = %.2f A/s' %Vds)\n", - "Vgs=0\n", - "Id=Vg/Rs\n", - "print(\" plot point B Vgs=0\")\n", - "print('at point A Id = %.2f A/s' %Id)\n", - "Idmax=3*10**-3\n", - "Idmin=2.3*10**-3\n", - "Vdsmin=Vdd-Idmax*(Rd+Rs)\n", - "Vdsmax=Vdd-Idmin*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vdsmax = %.2f V' %(Vdsmax))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0\n", - " plot point A at Id=0\n", - "at point A Vds = 0.00 A/s\n", - " plot point B Vgs=0\n", - "at point A Id = 0.00 A/s\n", - "The value of Vdsmax = 13.50 V\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.7, Page No 401" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Id=3.0*10**-3\n", - "Vgs=-2.3\n", - "Vdsmin=10.0\n", - "Vdd=25.0\n", - "Vgsoff=-6\n", - "Idss=8.0*10**-3\n", - "\n", - "#Calculations\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Rd=(Vdd-Vdsmin)/Id\n", - "\n", - "#Results\n", - "print('The value of Td = %.2f kohm' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Td = 5.00 kohm\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.8 Page No 403" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vgs=2.3\n", - "\n", - "#Calculations\n", - "Rs=Vgs/Id\n", - "Rd=((Vdd-Vds)/Id)-Rs\n", - "\n", - "#Results\n", - "print('The value of Rd = %.2f ohm' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd = 4.23 ohm\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.9 Page No 405" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vg=5.2\n", - "Vgsoff=-6\n", - "Idss=8.0*10**-3\n", - "R2=1.0*10**6\n", - "\n", - "#Calculations\n", - "R=(Vdd-Vds)/Id#R=(Rs+Rd)/2\n", - "Rd=R/2\n", - "Rs=Rd\n", - "Vgs=Id*Rs\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vs=Id*Rs\n", - "Vg=Vs-(-Vgs)\n", - "R1=((Vdd-Vg)*R2)/Vg\n", - "\n", - "#Results\n", - "print('The value of R = %.2f Mohm' %(R1/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R = 3.83 Mohm\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.11, Page No 412" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vee=20.0\n", - "Id=3.0*10**-3\n", - "Vds=9.0\n", - "Vbe=.7\n", - "Vb=0\n", - "Ve=Vee-Vbe\n", - "\n", - "#Calculations\n", - "Re=Ve/Id\n", - "Re=6.8*10**3#satnadard value\n", - "Id=Ve/Re\n", - "Idss=16*10**-3\n", - "Vgsoff=-8\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vs=Vb-Vgs\n", - "Vrd=Vee-Vds-Vs\n", - "Rd=Vrd/Id\n", - "\n", - "#Results\n", - "print('The value of Rd = %.2f V' %(Rd/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd = 2.24 V\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.12 Page No 415" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Idss=5.0*10**-3\n", - "Vgsoff=6.0\n", - "Rs=3.3*10**3\n", - "Vdd=20.0\n", - "Rd=Rs\n", - "\n", - "#Calculations\n", - "print(\"when Id=0 % Vgs=Vs=0\")\n", - "Id=0\n", - "Vgs=0\n", - "Vs=0\n", - "print(\" at point A universal transfer characteristic Id/Idss and Vgs/Vgsoff=0\")\n", - "Id=1.5*10**-3\n", - "Vgs=Id*Rs\n", - "y=Id/Idss\n", - "x=Vgs/Vgsoff\n", - "print(\" point B the universal transfer charecteristic x=.825 and y=.3\")\n", - "Id=.2*Idss\n", - "Vds=Vdd-Id*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vds = %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Id=0 % Vgs=Vs=0\n", - " at point A universal transfer characteristic Id/Idss and Vgs/Vgsoff=0\n", - " point B the universal transfer charecteristic x=.825 and y=.3\n", - "The value of Vds = 13.40 V\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.13 Page No 416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Idss=9.0*10**-3\n", - "Vgsoff=7.0\n", - "Vdd=22.0\n", - "R1=4.7*10**6\n", - "R2=1.0*10**6\n", - "Rs=2.7*10**3\n", - "Rd=Rs\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"when Vgs=0 % Vgs/Vgsoff=0\")\n", - "Id=Vg/Rs\n", - "print(\"when Vgs/Vgsoff=.5\")\n", - "Vgs=.5*(-Vgsoff)\n", - "Id=(Vg-Vgs)/Rs\n", - "x=Id/Idss\n", - "print(\" point Y on universal characteristic x=.3 and Vgs/Vgsoff=.5\")\n", - "print(\"draw voltage divider bias line through X nad Y where bisa line intersect transfer curve\")\n", - "Id=.29*Idss\n", - "Vds=Vdd-Id*(Rd+Rs)\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Vgs=0 % Vgs/Vgsoff=0\n", - "when Vgs/Vgsoff=.5\n", - " point Y on universal characteristic x=.3 and Vgs/Vgsoff=.5\n", - "draw voltage divider bias line through X nad Y where bisa line intersect transfer curve\n", - "The value of Vds= 7.91 V\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.14 Page No 419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vdd=40.0\n", - "R2=1.0*10**6\n", - "R1=5.6*10**6\n", - "Rd=4.7\n", - "\n", - "#Calculations\n", - "Vg=(Vdd*R2)/(R1+R2)\n", - "print(\"from the point where the bias line intersect the transfer curve\")\n", - "Id=6.2\n", - "Vds=Vdd-Id*Rd\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "from the point where the bias line intersect the transfer curve\n", - "The value of Vds= 10.86 V\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.16, Page No 422" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "rDS=25.0\n", - "Vgsoff=10.0\n", - "Vds=200.0*10**-3\n", - "Vdd=12.0\n", - "\n", - "#Calculations\n", - "Id=Vds/rDS\n", - "Rd=Vdd/Id\n", - "Vi=-(Vgsoff+1)\n", - "\n", - "#Results\n", - "print('The value of Vi= %.2f V' %(Vi))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vi= -11.00 V\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 10.17, Page No 424" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vdd=50.0\n", - "Rd=10.0\n", - "R2=1.0*10**6\n", - "rDS=0.25\n", - "\n", - "#Calculations\n", - "Id=Vdd/Rd\n", - "print(\" from transfer curve at Id=5 and Vgs=5.7\")\n", - "Vgs=5.7\n", - "R1=((Vdd-Vgs)*R2)/Vgs#use 6.8Mohm to make Vgs>5.7V to ensure that the FET is biased on\n", - "Vds=Id*rDS\n", - "\n", - "#Results\n", - "print('The value of Vds= %.2f V' %(Vds))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " from transfer curve at Id=5 and Vgs=5.7\n", - "The value of Vds= 1.25 V\n" - ] - } - ], - "prompt_number": 12 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter11.ipynb b/Electronic_Devices_and_Circuits/Chapter11.ipynb deleted file mode 100755 index e211f994..00000000 --- a/Electronic_Devices_and_Circuits/Chapter11.ipynb +++ /dev/null @@ -1,305 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 11 : Ac analysis of FEt circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.2, Page No 443" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Yos=10.0*10**-6\n", - "Yfs=3000.0*10**-6\n", - "R1=1.0*10**6\n", - "R2=5.6*10**6\n", - "Rd=2.7*10**3\n", - "Rl=Rd\n", - "\n", - "#Calculations\n", - "rd=1.0/Yos\n", - "Zi=((R1*R2)/(R1+R2))*10**-3\n", - "print(\"input impedance is %dKohm \" %Zi)\n", - "Zo=(Rd*rd)/(Rd+rd)\n", - "print(\" output inpedance is %dohm \" %Zo)\n", - "Av=-Yfs*((Rl*rd)/(Rl+rd))\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance is 848Kohm \n", - " output inpedance is 2629ohm \n", - "The value of Av= -7.89 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.03, Page No 447" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Yos=10.0*10**-6\n", - "Yfs=4000.0*10**-6\n", - "Ig=1.0*10**-9\n", - "Vgs=15.0\n", - "Rs=3.3*10**3\n", - "Rg=1.0*10**6\n", - "Rd=4.7*10**3\n", - "Rl=33*10**3\n", - "\n", - "#Calculations\n", - "rd=1.0/Yos\n", - "Rgs=(Vgs/Ig)\n", - "Zg=(Rgs*(1+Yfs*Rs))\n", - "Zi=Rg\n", - "Zd=rd+Rs+(Yfs*Rs*rd)\n", - "Zo=(Rd*Zd)/(Rd+Zd)\n", - "Av=-(Yfs*((Rd*Rl)/(Rd+Rl)))/(1+Yfs*Rs)\n", - "Av=-((Rd*Rl)/(Rd+Rl))/Rs\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= -1.25 \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.4 Page No 451" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Yfs=3000.0*10**-6\n", - "Rgs=100.0*10**6\n", - "rd=50.0*10**3\n", - "Rs=5.6*10**3\n", - "Rl=12.0*10**3\n", - "R1=1.5*10**6\n", - "R2=1.0*10**6\n", - "\n", - "#Calculations\n", - "Zg=Rgs*(1+Yfs*((Rs*Rl)/(Rs+Rl)))\n", - "Zi=(R1*R2)/(R1+R2)\n", - "Zs=((1/Yfs)*rd)/((1/Yfs)+rd)\n", - "Zo=(Rs*Rl*(1/Yfs))/(Rs*Rl+Rs*(1/Yfs)+Rl*(1/Yfs))\n", - "Av=-(Yfs*((Rs*Rl)/(Rs+Rl)))/(1+Yfs*((Rs*Rl)/(Rs+Rl)))\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= -0.92 \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.5, Page No 456" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Yfs=3000.0*10**-6\n", - "rd=50.0*10**3\n", - "Rs=3.3*10**3\n", - "Rd=4.7*10**3\n", - "Rl=50.0*10**3\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Zs=1/Yfs\n", - "Zi=((1/Yfs)*Rs)/((1/Yfs)+Rs)\n", - "Zd=rd\n", - "Zo=(Rd*rd)/(Rd+rd)\n", - "Av=Yfs*((Rd*Rl)/(Rd+Rl))\n", - "print(\"overall volateg gain\")\n", - "Av=(Yfs*((Rd*Rl)/(Rd+Rl))*Zi)/(rs+Zi)\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall volateg gain\n", - "The value of Av= 4.32 \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.6 Page No 459" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vgs=2.3\n", - "\n", - "#Calculations\n", - "Rs=Vgs/Id\n", - "Rd=((Vdd-Vds)/Id)-Rs\n", - "\n", - "#Results\n", - "print('The value of Rd= %.2f ' %(Rd))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd= 4233.33 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.7 Page No 462" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Crss=1.0*10**-12\n", - "Ciss=5.0*10**-12\n", - "Yfs=2500.0*10**-6\n", - "Yos=75.0*10**-6\n", - "Rd=5.6*10**3\n", - "Rl=100.0*10**3\n", - "R1=3.3*10**6\n", - "R2=1.0*10**6\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Cgd=Crss\n", - "Cgs=Ciss-Crss\n", - "Av=Yfs*(((1/Yos)*Rd*Rl))/((Rd*Rl+(1/Yos)*Rd+(1/Yos)*Rl))\n", - "Cin=Cgs+(1+Av)*Cgd\n", - "Zi=(R1*R2)/(R1+R2)\n", - "f2=1/(2*3.14*Cin*((rs*Zi)/(rs+Zi)))\n", - "\n", - "#Results\n", - "print('The input capicitance limited = %.2f ' %(f2/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The input capicitance limited = 18.34 \n" - ] - } - ], - "prompt_number": 6 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter11_1.ipynb b/Electronic_Devices_and_Circuits/Chapter11_1.ipynb deleted file mode 100755 index e211f994..00000000 --- a/Electronic_Devices_and_Circuits/Chapter11_1.ipynb +++ /dev/null @@ -1,305 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 11 : Ac analysis of FEt circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.2, Page No 443" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Yos=10.0*10**-6\n", - "Yfs=3000.0*10**-6\n", - "R1=1.0*10**6\n", - "R2=5.6*10**6\n", - "Rd=2.7*10**3\n", - "Rl=Rd\n", - "\n", - "#Calculations\n", - "rd=1.0/Yos\n", - "Zi=((R1*R2)/(R1+R2))*10**-3\n", - "print(\"input impedance is %dKohm \" %Zi)\n", - "Zo=(Rd*rd)/(Rd+rd)\n", - "print(\" output inpedance is %dohm \" %Zo)\n", - "Av=-Yfs*((Rl*rd)/(Rl+rd))\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance is 848Kohm \n", - " output inpedance is 2629ohm \n", - "The value of Av= -7.89 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.03, Page No 447" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Yos=10.0*10**-6\n", - "Yfs=4000.0*10**-6\n", - "Ig=1.0*10**-9\n", - "Vgs=15.0\n", - "Rs=3.3*10**3\n", - "Rg=1.0*10**6\n", - "Rd=4.7*10**3\n", - "Rl=33*10**3\n", - "\n", - "#Calculations\n", - "rd=1.0/Yos\n", - "Rgs=(Vgs/Ig)\n", - "Zg=(Rgs*(1+Yfs*Rs))\n", - "Zi=Rg\n", - "Zd=rd+Rs+(Yfs*Rs*rd)\n", - "Zo=(Rd*Zd)/(Rd+Zd)\n", - "Av=-(Yfs*((Rd*Rl)/(Rd+Rl)))/(1+Yfs*Rs)\n", - "Av=-((Rd*Rl)/(Rd+Rl))/Rs\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= -1.25 \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.4 Page No 451" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Yfs=3000.0*10**-6\n", - "Rgs=100.0*10**6\n", - "rd=50.0*10**3\n", - "Rs=5.6*10**3\n", - "Rl=12.0*10**3\n", - "R1=1.5*10**6\n", - "R2=1.0*10**6\n", - "\n", - "#Calculations\n", - "Zg=Rgs*(1+Yfs*((Rs*Rl)/(Rs+Rl)))\n", - "Zi=(R1*R2)/(R1+R2)\n", - "Zs=((1/Yfs)*rd)/((1/Yfs)+rd)\n", - "Zo=(Rs*Rl*(1/Yfs))/(Rs*Rl+Rs*(1/Yfs)+Rl*(1/Yfs))\n", - "Av=-(Yfs*((Rs*Rl)/(Rs+Rl)))/(1+Yfs*((Rs*Rl)/(Rs+Rl)))\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= -0.92 \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.5, Page No 456" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Yfs=3000.0*10**-6\n", - "rd=50.0*10**3\n", - "Rs=3.3*10**3\n", - "Rd=4.7*10**3\n", - "Rl=50.0*10**3\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Zs=1/Yfs\n", - "Zi=((1/Yfs)*Rs)/((1/Yfs)+Rs)\n", - "Zd=rd\n", - "Zo=(Rd*rd)/(Rd+rd)\n", - "Av=Yfs*((Rd*Rl)/(Rd+Rl))\n", - "print(\"overall volateg gain\")\n", - "Av=(Yfs*((Rd*Rl)/(Rd+Rl))*Zi)/(rs+Zi)\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall volateg gain\n", - "The value of Av= 4.32 \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.6 Page No 459" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vgs=2.3\n", - "\n", - "#Calculations\n", - "Rs=Vgs/Id\n", - "Rd=((Vdd-Vds)/Id)-Rs\n", - "\n", - "#Results\n", - "print('The value of Rd= %.2f ' %(Rd))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd= 4233.33 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.7 Page No 462" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Crss=1.0*10**-12\n", - "Ciss=5.0*10**-12\n", - "Yfs=2500.0*10**-6\n", - "Yos=75.0*10**-6\n", - "Rd=5.6*10**3\n", - "Rl=100.0*10**3\n", - "R1=3.3*10**6\n", - "R2=1.0*10**6\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Cgd=Crss\n", - "Cgs=Ciss-Crss\n", - "Av=Yfs*(((1/Yos)*Rd*Rl))/((Rd*Rl+(1/Yos)*Rd+(1/Yos)*Rl))\n", - "Cin=Cgs+(1+Av)*Cgd\n", - "Zi=(R1*R2)/(R1+R2)\n", - "f2=1/(2*3.14*Cin*((rs*Zi)/(rs+Zi)))\n", - "\n", - "#Results\n", - "print('The input capicitance limited = %.2f ' %(f2/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The input capicitance limited = 18.34 \n" - ] - } - ], - "prompt_number": 6 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter11_2.ipynb b/Electronic_Devices_and_Circuits/Chapter11_2.ipynb deleted file mode 100755 index e211f994..00000000 --- a/Electronic_Devices_and_Circuits/Chapter11_2.ipynb +++ /dev/null @@ -1,305 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 11 : Ac analysis of FEt circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.2, Page No 443" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Yos=10.0*10**-6\n", - "Yfs=3000.0*10**-6\n", - "R1=1.0*10**6\n", - "R2=5.6*10**6\n", - "Rd=2.7*10**3\n", - "Rl=Rd\n", - "\n", - "#Calculations\n", - "rd=1.0/Yos\n", - "Zi=((R1*R2)/(R1+R2))*10**-3\n", - "print(\"input impedance is %dKohm \" %Zi)\n", - "Zo=(Rd*rd)/(Rd+rd)\n", - "print(\" output inpedance is %dohm \" %Zo)\n", - "Av=-Yfs*((Rl*rd)/(Rl+rd))\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance is 848Kohm \n", - " output inpedance is 2629ohm \n", - "The value of Av= -7.89 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.03, Page No 447" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Yos=10.0*10**-6\n", - "Yfs=4000.0*10**-6\n", - "Ig=1.0*10**-9\n", - "Vgs=15.0\n", - "Rs=3.3*10**3\n", - "Rg=1.0*10**6\n", - "Rd=4.7*10**3\n", - "Rl=33*10**3\n", - "\n", - "#Calculations\n", - "rd=1.0/Yos\n", - "Rgs=(Vgs/Ig)\n", - "Zg=(Rgs*(1+Yfs*Rs))\n", - "Zi=Rg\n", - "Zd=rd+Rs+(Yfs*Rs*rd)\n", - "Zo=(Rd*Zd)/(Rd+Zd)\n", - "Av=-(Yfs*((Rd*Rl)/(Rd+Rl)))/(1+Yfs*Rs)\n", - "Av=-((Rd*Rl)/(Rd+Rl))/Rs\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= -1.25 \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.4 Page No 451" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Yfs=3000.0*10**-6\n", - "Rgs=100.0*10**6\n", - "rd=50.0*10**3\n", - "Rs=5.6*10**3\n", - "Rl=12.0*10**3\n", - "R1=1.5*10**6\n", - "R2=1.0*10**6\n", - "\n", - "#Calculations\n", - "Zg=Rgs*(1+Yfs*((Rs*Rl)/(Rs+Rl)))\n", - "Zi=(R1*R2)/(R1+R2)\n", - "Zs=((1/Yfs)*rd)/((1/Yfs)+rd)\n", - "Zo=(Rs*Rl*(1/Yfs))/(Rs*Rl+Rs*(1/Yfs)+Rl*(1/Yfs))\n", - "Av=-(Yfs*((Rs*Rl)/(Rs+Rl)))/(1+Yfs*((Rs*Rl)/(Rs+Rl)))\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= -0.92 \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.5, Page No 456" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Yfs=3000.0*10**-6\n", - "rd=50.0*10**3\n", - "Rs=3.3*10**3\n", - "Rd=4.7*10**3\n", - "Rl=50.0*10**3\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Zs=1/Yfs\n", - "Zi=((1/Yfs)*Rs)/((1/Yfs)+Rs)\n", - "Zd=rd\n", - "Zo=(Rd*rd)/(Rd+rd)\n", - "Av=Yfs*((Rd*Rl)/(Rd+Rl))\n", - "print(\"overall volateg gain\")\n", - "Av=(Yfs*((Rd*Rl)/(Rd+Rl))*Zi)/(rs+Zi)\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall volateg gain\n", - "The value of Av= 4.32 \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.6 Page No 459" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=3.0*10**-3\n", - "Vds=10.0\n", - "Vdd=25.0\n", - "Vgs=2.3\n", - "\n", - "#Calculations\n", - "Rs=Vgs/Id\n", - "Rd=((Vdd-Vds)/Id)-Rs\n", - "\n", - "#Results\n", - "print('The value of Rd= %.2f ' %(Rd))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rd= 4233.33 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 11.7 Page No 462" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Crss=1.0*10**-12\n", - "Ciss=5.0*10**-12\n", - "Yfs=2500.0*10**-6\n", - "Yos=75.0*10**-6\n", - "Rd=5.6*10**3\n", - "Rl=100.0*10**3\n", - "R1=3.3*10**6\n", - "R2=1.0*10**6\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Cgd=Crss\n", - "Cgs=Ciss-Crss\n", - "Av=Yfs*(((1/Yos)*Rd*Rl))/((Rd*Rl+(1/Yos)*Rd+(1/Yos)*Rl))\n", - "Cin=Cgs+(1+Av)*Cgd\n", - "Zi=(R1*R2)/(R1+R2)\n", - "f2=1/(2*3.14*Cin*((rs*Zi)/(rs+Zi)))\n", - "\n", - "#Results\n", - "print('The input capicitance limited = %.2f ' %(f2/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The input capicitance limited = 18.34 \n" - ] - } - ], - "prompt_number": 6 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter12.ipynb b/Electronic_Devices_and_Circuits/Chapter12.ipynb deleted file mode 100755 index b0fb9991..00000000 --- a/Electronic_Devices_and_Circuits/Chapter12.ipynb +++ /dev/null @@ -1,1196 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 12 : Small signal Amplifiers" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.1, Page No 474" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "hie=1.0*10**3\n", - "hib=20.0\n", - "f1=100.0\n", - "Rc=3.3*10**3\n", - "\n", - "#Calculations\n", - "Re=Rc\n", - "print(\" required capacitance\")\n", - "Xc2=hib\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "print(\" voltage gain with emitter terminal completely bypassed to ground\")\n", - "Av=-(hfe*Rc)/hie\n", - "print(\"voltage gain when f=100\")\n", - "Av=-(hfe*Rc)/math.sqrt(((hie**2)+((1+hfe)*Xc2)**2))\n", - "\n", - "#Results\n", - "print(\" voltage gain when C2 is incorrectly selected as Xc2=Re/10\")\n", - "Avx=-(hfe*Rc)/math.sqrt(((hie**2)+((1+hfe)*(Re/10))**2))\n", - "print('The value of Avx= %.2f ' %(Avx))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " required capacitance\n", - " voltage gain with emitter terminal completely bypassed to ground\n", - "voltage gain when f=100\n", - " voltage gain when C2 is incorrectly selected as Xc2=Re/10\n", - "The value of Avx= -9.79 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.2, Page No 477" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=24.0\n", - "Ve=5.0\n", - "Vce=3.0\n", - "Rl=120.0*10**3\n", - "Vbe=0.7\n", - "Rc=Rl/10.0\n", - "\n", - "#Calculations\n", - "Vrc=Vcc-Vce-Ve\n", - "Ic=Vrc/Rc\n", - "Re=Ve/Ic#use 3.9Kohm standard value to make Ic littel less than design level\n", - "Re=3.9*10**3\n", - "R2=10*Re\n", - "I2=(Ve+Vbe)/R2\n", - "R1=(Vcc-Ve-Vbe)/I2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f ' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 125.21 \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.3 Page No 477" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "Ie=1.3*10**-3\n", - "f1=100.0\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Rl=R1\n", - "re=(26*10**-3)/Ie\n", - "Xc2=re\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "C1=1/((2*3.14*f1*((Zi+rs)/10)))\n", - "C3=1/(2*3.14*f1*((Rc+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf ' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 0.12 mf \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.5, Page No 484" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "rs=600.0\n", - "f1=100.0\n", - "Yfs=6000.0*10**-6\n", - "R1=4.7*10**6\n", - "R2=1.0*10**6\n", - "Rd=6.8*10**3\n", - "Rl=120*10**3\n", - "\n", - "#Calculations\n", - "Xc2=1/Yfs\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "Zi=(R1*R2)/(R1+R2)\n", - "C1=1/(2*3.14*f1*(Zi+rs)/10)\n", - "C3=1/(2*3.14*f1*(Rd+Rl)/10)\n", - "\n", - "#Calculations\n", - "print('The value of C3= %.2f mF' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 0.13 mF\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.7 Page No 489" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "hie=2.0*10**3\n", - "R7=12.0*10**3\n", - "Zo=R7\n", - "R5=R1\n", - "R6=R2\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "R3=R7\n", - "Zl=R1\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Zi2=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Av1=-(hfe*((R3*Zi2)/(R3+Zi2)))/hie\n", - "Av2=-(hfe*((R7*Zl)/(R7+Zl)))/hie\n", - "Av=Av1*Av2\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= 44180.12 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.8 Page No 491" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ve1=5.0\n", - "Vce1=3.0\n", - "Vce2=3.0\n", - "Vbe=0.7\n", - "Vcc=14.0\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "Vb2=Ve1+Vce1\n", - "Vc1=Vb2\n", - "Ve2=Vb2-Vbe\n", - "Vr5=Vcc-Ve2-Vce2\n", - "R5=Rl/10#use 3.9Kohm satandard value\n", - "R5=3.9*10**3\n", - "Ic2=Vr5/R5\n", - "R6=Ve2/Ic2#use 8.2Kohm as standard and recalculate\n", - "R6=8.2*10**3\n", - "Ic2=Ve2/R6\n", - "Vr3=Vcc-Vc1\n", - "print(\" Ic1>>Ib2 %select Ic1=1mA\")\n", - "Ic1=1*10**-3\n", - "R3=Vr3/Ic1#use standard value as 5.6Kohm and recalculate Ic1 in order ti keep Vb2=8V\n", - "R3=5.6*10**3\n", - "Ic1=Vr3/R3\n", - "R4=Ve1/Ic1\n", - "Vr2=Ve1+Vbe\n", - "Vr1=Vcc-Ve1-Vbe\n", - "R2=10*R4\n", - "I2=(Ve1+Vbe)/R2\n", - "R1=(Vr1*R2)/Vr2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Ic1>>Ib2 %select Ic1=1mA\n", - "The value of R1= 67.95 kohm\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.9, Page No 493" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "re=26.0\n", - "R1=68.0*10**3\n", - "R2=47.0*10**3\n", - "rs=600.0\n", - "f1=75.0\n", - "R5=3.9*10**3\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Xc1=(Zi+rs)/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=.65*re\n", - "Xc3=Xc2\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "C3=C2\n", - "Xc4=(R5+Rl)/10\n", - "C4=1/(2*3.14*f1*Xc4)\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mf' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.48 mf\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.10, Page No 494" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "hie=1.3*10**3\n", - "R3=5.6*10**3\n", - "R5=3.9*10**3\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "Av1=-(hfe*((R3*hie)/(R3+hie)))/hie\n", - "Av2=-(hfe*((R5*Rl)/(R5+Rl)))/hie\n", - "\n", - "#Results\n", - "print(\" overall voltage gain is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " overall voltage gain is Av=Av1*Av2\n", - "The value of Av= 5546.20 \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.11 Page No 497" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Vp=100.0*10**-3\n", - "Rl=100.0\n", - "Vbe=0.7\n", - "Vcc=20.0\n", - "\n", - "#Calculations\n", - "ip=Vp/Rl\n", - "print(\"select Ie2>ip\")\n", - "Ie2=2.0*10**-3\n", - "Ve1=5.0\n", - "Vce1=3.0\n", - "Vb2=Ve1+Vce1\n", - "Vc1=Vb2\n", - "Ve2=Vb2-Vbe\n", - "R5=Ve2/Ie2#use 3.3Kohm standard value\n", - "R5=3.3*10**3\n", - "Ic1=1*10**-3\n", - "Vr3=Vcc-Vb2\n", - "R3=Vr3/Ic1\n", - "R4=Ve1/Ic1#use 4.7Kohm standard value\n", - "R4=4.7*10**3\n", - "Vb1=Ic1*R4+Vbe\n", - "R2=10*R4\n", - "R1=((Vcc-Vb1)*R2)/Vr2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select Ie2>ip\n", - "The value of R1= 120.39 kohm \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.12 Page No 498" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "Ie1=1.0*10**-3\n", - "hfe=50.0\n", - "R1=120.0*10**3\n", - "R2=47.0*10**3\n", - "f1=150.0\n", - "Ie2=2.0*10**-3\n", - "R5=3.3*10**3\n", - "R3=12.0*10**3\n", - "Rl=100.0\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie1\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Xc1=(Zi+rs)/10\n", - "C1=1/(2*3.14*f1*Xc1)#use 6*10**-6 as standard value\n", - "Xc2=.65*re\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "re2=26*10**-3/Ie2\n", - "Zo=(R5*(re2+R3/hfe))/(R5+(re2+R3/hfe))\n", - "Xc3=.65*(Rl+Zo)\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 4.88 mf\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.13 Page No 499" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ie2=2.0*10**-3\n", - "hfe=50.0\n", - "R5=3.3*10**3\n", - "Rl=100.0\n", - "hfc2=51.0\n", - "R3=12.0*10**3\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie2\n", - "hic=hfe*re\n", - "Zi2=hic+hfc2*((Rl*R5)/(Rl+R5))\n", - "Av1=-(hfe*((R3*Zi2)/(R3+Zi2)))/hie\n", - "Av2=1.0\n", - "\n", - "#Results\n", - "print(\"overall voltage gain is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall voltage gain is Av=Av1*Av2\n", - "The value of Av= -143.97 \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.14, Page No 503" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "vp=50.0*10**-3\n", - "Rl=50.0\n", - "Ve2=5.0\n", - "Vcc=12.0\n", - "Vbe=0.7\n", - "hFE=70.0\n", - "hfe=100.0\n", - "R2=120.0*10**3\n", - "f1=150.0\n", - "R3=150.0*10**3\n", - "R1=5.6*10**3\n", - "R4=2.2*10**3\n", - "\n", - "#Calculations\n", - "ip=vp/Rl\n", - "print(\"select Ie2>ip\")\n", - "Ie2=2*10**-3\n", - "R4=Ve2/Ie2#use standard 2.2Kohm\n", - "R4=2.2*10**3\n", - "Ie2=Ve2/R4\n", - "Ic1=1*10**-3\n", - "Vr1=Vcc-(Vbe+Ve2)\n", - "R1=Vr1/Ic1#use 5.6kohm and recalculate\n", - "R1=5.6*10**3\n", - "Ic1=Vr1/R1\n", - "Ib1=Ic1/hFE\n", - "hie=hfe*(26*10**-3/Ic1)\n", - "hie2=hfe*((26*10**-3)/(2.27*10**-3))\n", - "Zi1=(R2*hie)/(R2+hie)\n", - "Xc1=Zi1/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=R3/100\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "Zo=(((hie2+R1)/hfe)*R4)/(((hie2+R1)/hfe)+R4)\n", - "Xc3=Rl+Zo\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select Ie2>ip\n", - "The value of C3= 9.20 mf\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.15, Page No 407" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vgsoff=-6.0\n", - "Idss=20.0*10**-3\n", - "Yfs=4000.0*10**-6\n", - "Id=2.0*10**-3\n", - "Vcc=20.0\n", - "Zi=500.0*10**3\n", - "R2=560.0*10**3\n", - "Rl=80.0*10**3\n", - "Vbe=0.7\n", - "Vce=3.0\n", - "\n", - "#Calculations\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vds=(-Vgsoff)+1-(-Vgs)\n", - "Vr3=(Vcc-Vds)/2\n", - "Vr4=Vr3\n", - "R3=Vr4/Id#use 3.9kohm as standard and recalculate Vr3 and Vr4\n", - "R4=R3\n", - "R4=3.9*10**3\n", - "Vr3=Id*R4\n", - "Vr4=Vr3\n", - "Vr2=Vr4-(-Vgs)\n", - "Vr1=Vcc-Vr2\n", - "R1=(Vr1*R2)/Vr2\n", - "R6=Rl/10\n", - "Vr5=Vr3-Vbe\n", - "Vr6=Vcc-Vr5-Vce\n", - "Ic2=Vr6/R6\n", - "R5=Vr5/Ic2\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f kohm' %(R5/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R5= 5.74 kohm\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.16, Page No 508" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R1=2.7*10**6\n", - "R2=560.0*10**3\n", - "f1=150.0\n", - "Yfs=8000.0*10**-6\n", - "Ie=1.2*10**-3\n", - "Rl=80.0*10**3\n", - "R6=8.2*10**3\n", - "\n", - "#Calculations\n", - "Zi=(R1*R2)/(R1+R2)\n", - "Xc1=Zi/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=.65/Yfs\n", - "C2=1/(2*3.14*f1*Xc2)#use 15pF as standard value\n", - "re=26*10**-3/Ie\n", - "Xc3=.65*re\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "Xc4=(R6+Rl)/10\n", - "C4=1/(2*3.14*f1*Xc4)\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mf' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.12 mf\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.17, Page No 509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "re=22.0\n", - "hfe=100.0\n", - "R3=3.9*10**3\n", - "Yfs=4000*10**-6\n", - "R6=8.2*10**3\n", - "Rl=80.*10**3\n", - "\n", - "#Calculations\n", - "Zi2=hfe*re\n", - "Av1=-Yfs*((R3*Zi2)/(R3+Zi2))\n", - "Av2=-(hfe*((R6*Rl)/(R6+Rl)))/Zi2\n", - "\n", - "#Results\n", - "print(\"overall voltage is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall voltage is Av=Av1*Av2\n", - "The value of Av= 1902.09 \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.18, Page No 516" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hFE=60.0\n", - "hfe=60.0\n", - "hie=1.4*10**3\n", - "Rl=70.0*10**3\n", - "Vce=3.0\n", - "Vbe=.7\n", - "Vcc=10.0\n", - "\n", - "#Calculations\n", - "Rc2=Rl/10#use 6.8Kohm as standard value\n", - "Vrc2=Vcc+Vbe-Vce\n", - "Ic=Vrc2/Rc2\n", - "Ie=Ic\n", - "Re=(Vcc-Vbe)/(2*Ie)#use 4.7 as standard value\n", - "Re=4.7*10**3\n", - "Rb=Vbe/(10*(Ic/hFE))\n", - "Rb1=Rb\n", - "\n", - "#Results\n", - "print('The value of Rb= %.2f kohm ' %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb= 3.82 kohm \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.19, Page No 517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=60.0\n", - "Ie=1.13*10**-3\n", - "hfe=60.0\n", - "Rb=3.9*10**3\n", - "Rl=70.0*10**3\n", - "Rc=6.8*10**3\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie#use 20 as standard value\n", - "re=20\n", - "hie=hfe*re\n", - "Zb=2*hie\n", - "Zi=(Rb*Zb)/(Rb+Zb)\n", - "C1=1/(2*3.14*f1*Zi)\n", - "C2=1/(2*3.14*f1*(Rl/10))\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/(2*hie)\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= 154.95 \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.20, Page No 521" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=20.0\n", - "Rl=90.0*10**3\n", - "hfe=50.0\n", - "hie=1.2*10**3\n", - "hib=24.0\n", - "Vce=3\n", - "Vce1=Vce\n", - "Ve=5.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Rc=Rl/10#use 8.2kohm as standard value\n", - "Rc=8.2*10**3\n", - "Vrc=Vcc-Vce-Vce1-Ve\n", - "Ic=Vrc/Rc\n", - "Re=Ve/Ic\n", - "Re=4.7*10**3#use 4.7 as standard value\n", - "R3=10*Re\n", - "Vb1=Ve+Vbe\n", - "I3=Vb1/R3\n", - "Vb2=Ve+Vce+Vbe\n", - "Vr2=Vb2-Vb1\n", - "R2=Vr2/I3\n", - "R1=(Vcc-Vb2)/I3\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 93.18 kohm \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.21, Page No 522" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=25.0\n", - "R2=24.7*10**3\n", - "R3=47.0*10**3\n", - "hie=1.2*10**3\n", - "hib=24.0\n", - "Rc=9.0*10**3\n", - "Rl=90*10**3\n", - "\n", - "#Calculations\n", - "Zi=(R2*R3*hie)/(R2*R3+R2*hie+R3*hie)\n", - "C1=1/(2*3.14*f1*(Zi/10))\n", - "C2=1/(2*3.14*f1*(hie/10))\n", - "C3=1/(2*3.14*f1*hib)\n", - "C4=1/(2*3.14*f1*((Rc+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mF' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.64 mF\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.22, Page No 525" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hie=1.0\n", - "hfe=50.0\n", - "hoe=10.0*10**-6\n", - "Cc=5*10**-12\n", - "Cp=330*10**-12\n", - "Lp=75*10**-6\n", - "Rw=1.0\n", - "Rl=5.0\n", - "hfb=50.0\n", - "fo=1.0*10**6\n", - "\n", - "#Calculations\n", - "fo=1.0/(2.0*3.14*math.sqrt(Lp*(Cp+Cc)))\n", - "print(\"resonance frequency is %3fHz \" %fo)\n", - "Zp=Lp/((Cp+Cc)*Rw)\n", - "Rc=(1.0/hoe)/1000\n", - "RL=(Zp*Rc*Rl)/(Rl*Rc+Rc*Zp+Rl*Zp)\n", - "RL1=4.7 #as standard value\n", - "Av=(hfb*RL1)/hie\n", - "print(\" voltage gain is %d \" %Av)\n", - "Qp=7.6\n", - "QL=(2*3.14*fo*Lp)/Rw\n", - "print(\"since QL>Qp\")\n", - "fo=1\n", - "B=fo/Qp\n", - "\n", - "#Results\n", - "print(\"bandwidth is %.2f kHz \" %(B*10**3))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resonance frequency is 1004586.461587Hz \n", - " voltage gain is 235 \n", - "since QL>Qp\n", - "bandwidth is 131.58 kHz \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.23, Page No 528" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hie=1.0*10**3\n", - "hfe=50.0\n", - "hoe=10.0*10**-6\n", - "Cc=5.0*10**-12\n", - "Cp=330.0*10**-12\n", - "Lp=75.0*10**-6\n", - "Rw=1.0\n", - "Rl=5.0*10**3\n", - "fo=1.0*10**6\n", - "zP=224.0*10**3\n", - "rC=100.0*10**3\n", - "K=0.015\n", - "Ls=50.0*10**-6\n", - "\n", - "\n", - "#Calculations\n", - "RL=(Zp*Rc)/(Rc+Zp)\n", - "print(\"voltage gain from the input to the primary memory winding\")\n", - "Avp=(hfe*RL)/hie\n", - "Vsp=K*math.sqrt(Ls/Lp)\n", - "print(\"overall voltage gain from the input to teh secondary winding\")\n", - "Av=Avp*Vsp\n", - "Qp=Rc/(2*3.14*fo*Lp)\n", - "Ql=471\n", - "Q=(Ql*Qp)/(Ql+Qp)\n", - "B=fo/Q\n", - "\n", - "\n", - "#Results\n", - "print(\"bandwidth is %.2f kHz \" %(B/10**5))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain from the input to the primary memory winding\n", - "overall voltage gain from the input to teh secondary winding\n", - "bandwidth is 47.12 kHz \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.24, Page No 530" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=1.0*10**6\n", - "L2=50.0*10**-6\n", - "K=0.015\n", - "L1=75*10**-6\n", - "rs=5.0\n", - "Rw=1.0\n", - "Lp=100.0*10**-6\n", - "Cp=330.0*10**-12\n", - "Cc=5.0*10**-12\n", - "Rc=100.0*10**3\n", - "hfe=50.0\n", - "hie=1.0*10**3\n", - "\n", - "\n", - "#Calculations\n", - "C2=1/(((2*3.14*f)**2)*L2)\n", - "M=K*math.sqrt(L1*L2)\n", - "Rs=(((2*3.14*f)**2)*(M)**2)/rs\n", - "Rp=Rs+Rw\n", - "Zp=Lp/((Cp+Cc)*Rp)\n", - "Rl=(Zp*Rc)/(Zp+Rc)\n", - "print(\"voltage gain from the input to primary winding\")\n", - "Avp=(hfe*Rl)/hie\n", - "Vsp=12.2*10**-3\n", - "Vos=((2*3.14*f)*L2)/rs\n", - "\n", - "#Results\n", - "print(\"overall voltage gain from the input to secondary winding \")\n", - "Av=Avp*Vos*Vsp\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain from the input to primary winding\n", - "overall voltage gain from the input to secondary winding \n", - "The value of Av= 1074.71 \n" - ] - } - ], - "prompt_number": 22 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter12_1.ipynb b/Electronic_Devices_and_Circuits/Chapter12_1.ipynb deleted file mode 100755 index b0fb9991..00000000 --- a/Electronic_Devices_and_Circuits/Chapter12_1.ipynb +++ /dev/null @@ -1,1196 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 12 : Small signal Amplifiers" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.1, Page No 474" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "hie=1.0*10**3\n", - "hib=20.0\n", - "f1=100.0\n", - "Rc=3.3*10**3\n", - "\n", - "#Calculations\n", - "Re=Rc\n", - "print(\" required capacitance\")\n", - "Xc2=hib\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "print(\" voltage gain with emitter terminal completely bypassed to ground\")\n", - "Av=-(hfe*Rc)/hie\n", - "print(\"voltage gain when f=100\")\n", - "Av=-(hfe*Rc)/math.sqrt(((hie**2)+((1+hfe)*Xc2)**2))\n", - "\n", - "#Results\n", - "print(\" voltage gain when C2 is incorrectly selected as Xc2=Re/10\")\n", - "Avx=-(hfe*Rc)/math.sqrt(((hie**2)+((1+hfe)*(Re/10))**2))\n", - "print('The value of Avx= %.2f ' %(Avx))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " required capacitance\n", - " voltage gain with emitter terminal completely bypassed to ground\n", - "voltage gain when f=100\n", - " voltage gain when C2 is incorrectly selected as Xc2=Re/10\n", - "The value of Avx= -9.79 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.2, Page No 477" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=24.0\n", - "Ve=5.0\n", - "Vce=3.0\n", - "Rl=120.0*10**3\n", - "Vbe=0.7\n", - "Rc=Rl/10.0\n", - "\n", - "#Calculations\n", - "Vrc=Vcc-Vce-Ve\n", - "Ic=Vrc/Rc\n", - "Re=Ve/Ic#use 3.9Kohm standard value to make Ic littel less than design level\n", - "Re=3.9*10**3\n", - "R2=10*Re\n", - "I2=(Ve+Vbe)/R2\n", - "R1=(Vcc-Ve-Vbe)/I2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f ' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 125.21 \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.3 Page No 477" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "Ie=1.3*10**-3\n", - "f1=100.0\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Rl=R1\n", - "re=(26*10**-3)/Ie\n", - "Xc2=re\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "C1=1/((2*3.14*f1*((Zi+rs)/10)))\n", - "C3=1/(2*3.14*f1*((Rc+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf ' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 0.12 mf \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.5, Page No 484" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "rs=600.0\n", - "f1=100.0\n", - "Yfs=6000.0*10**-6\n", - "R1=4.7*10**6\n", - "R2=1.0*10**6\n", - "Rd=6.8*10**3\n", - "Rl=120*10**3\n", - "\n", - "#Calculations\n", - "Xc2=1/Yfs\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "Zi=(R1*R2)/(R1+R2)\n", - "C1=1/(2*3.14*f1*(Zi+rs)/10)\n", - "C3=1/(2*3.14*f1*(Rd+Rl)/10)\n", - "\n", - "#Calculations\n", - "print('The value of C3= %.2f mF' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 0.13 mF\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.7 Page No 489" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "hie=2.0*10**3\n", - "R7=12.0*10**3\n", - "Zo=R7\n", - "R5=R1\n", - "R6=R2\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "R3=R7\n", - "Zl=R1\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Zi2=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Av1=-(hfe*((R3*Zi2)/(R3+Zi2)))/hie\n", - "Av2=-(hfe*((R7*Zl)/(R7+Zl)))/hie\n", - "Av=Av1*Av2\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= 44180.12 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.8 Page No 491" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ve1=5.0\n", - "Vce1=3.0\n", - "Vce2=3.0\n", - "Vbe=0.7\n", - "Vcc=14.0\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "Vb2=Ve1+Vce1\n", - "Vc1=Vb2\n", - "Ve2=Vb2-Vbe\n", - "Vr5=Vcc-Ve2-Vce2\n", - "R5=Rl/10#use 3.9Kohm satandard value\n", - "R5=3.9*10**3\n", - "Ic2=Vr5/R5\n", - "R6=Ve2/Ic2#use 8.2Kohm as standard and recalculate\n", - "R6=8.2*10**3\n", - "Ic2=Ve2/R6\n", - "Vr3=Vcc-Vc1\n", - "print(\" Ic1>>Ib2 %select Ic1=1mA\")\n", - "Ic1=1*10**-3\n", - "R3=Vr3/Ic1#use standard value as 5.6Kohm and recalculate Ic1 in order ti keep Vb2=8V\n", - "R3=5.6*10**3\n", - "Ic1=Vr3/R3\n", - "R4=Ve1/Ic1\n", - "Vr2=Ve1+Vbe\n", - "Vr1=Vcc-Ve1-Vbe\n", - "R2=10*R4\n", - "I2=(Ve1+Vbe)/R2\n", - "R1=(Vr1*R2)/Vr2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Ic1>>Ib2 %select Ic1=1mA\n", - "The value of R1= 67.95 kohm\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.9, Page No 493" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "re=26.0\n", - "R1=68.0*10**3\n", - "R2=47.0*10**3\n", - "rs=600.0\n", - "f1=75.0\n", - "R5=3.9*10**3\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Xc1=(Zi+rs)/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=.65*re\n", - "Xc3=Xc2\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "C3=C2\n", - "Xc4=(R5+Rl)/10\n", - "C4=1/(2*3.14*f1*Xc4)\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mf' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.48 mf\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.10, Page No 494" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "hie=1.3*10**3\n", - "R3=5.6*10**3\n", - "R5=3.9*10**3\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "Av1=-(hfe*((R3*hie)/(R3+hie)))/hie\n", - "Av2=-(hfe*((R5*Rl)/(R5+Rl)))/hie\n", - "\n", - "#Results\n", - "print(\" overall voltage gain is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " overall voltage gain is Av=Av1*Av2\n", - "The value of Av= 5546.20 \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.11 Page No 497" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Vp=100.0*10**-3\n", - "Rl=100.0\n", - "Vbe=0.7\n", - "Vcc=20.0\n", - "\n", - "#Calculations\n", - "ip=Vp/Rl\n", - "print(\"select Ie2>ip\")\n", - "Ie2=2.0*10**-3\n", - "Ve1=5.0\n", - "Vce1=3.0\n", - "Vb2=Ve1+Vce1\n", - "Vc1=Vb2\n", - "Ve2=Vb2-Vbe\n", - "R5=Ve2/Ie2#use 3.3Kohm standard value\n", - "R5=3.3*10**3\n", - "Ic1=1*10**-3\n", - "Vr3=Vcc-Vb2\n", - "R3=Vr3/Ic1\n", - "R4=Ve1/Ic1#use 4.7Kohm standard value\n", - "R4=4.7*10**3\n", - "Vb1=Ic1*R4+Vbe\n", - "R2=10*R4\n", - "R1=((Vcc-Vb1)*R2)/Vr2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select Ie2>ip\n", - "The value of R1= 120.39 kohm \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.12 Page No 498" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "Ie1=1.0*10**-3\n", - "hfe=50.0\n", - "R1=120.0*10**3\n", - "R2=47.0*10**3\n", - "f1=150.0\n", - "Ie2=2.0*10**-3\n", - "R5=3.3*10**3\n", - "R3=12.0*10**3\n", - "Rl=100.0\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie1\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Xc1=(Zi+rs)/10\n", - "C1=1/(2*3.14*f1*Xc1)#use 6*10**-6 as standard value\n", - "Xc2=.65*re\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "re2=26*10**-3/Ie2\n", - "Zo=(R5*(re2+R3/hfe))/(R5+(re2+R3/hfe))\n", - "Xc3=.65*(Rl+Zo)\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 4.88 mf\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.13 Page No 499" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ie2=2.0*10**-3\n", - "hfe=50.0\n", - "R5=3.3*10**3\n", - "Rl=100.0\n", - "hfc2=51.0\n", - "R3=12.0*10**3\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie2\n", - "hic=hfe*re\n", - "Zi2=hic+hfc2*((Rl*R5)/(Rl+R5))\n", - "Av1=-(hfe*((R3*Zi2)/(R3+Zi2)))/hie\n", - "Av2=1.0\n", - "\n", - "#Results\n", - "print(\"overall voltage gain is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall voltage gain is Av=Av1*Av2\n", - "The value of Av= -143.97 \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.14, Page No 503" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "vp=50.0*10**-3\n", - "Rl=50.0\n", - "Ve2=5.0\n", - "Vcc=12.0\n", - "Vbe=0.7\n", - "hFE=70.0\n", - "hfe=100.0\n", - "R2=120.0*10**3\n", - "f1=150.0\n", - "R3=150.0*10**3\n", - "R1=5.6*10**3\n", - "R4=2.2*10**3\n", - "\n", - "#Calculations\n", - "ip=vp/Rl\n", - "print(\"select Ie2>ip\")\n", - "Ie2=2*10**-3\n", - "R4=Ve2/Ie2#use standard 2.2Kohm\n", - "R4=2.2*10**3\n", - "Ie2=Ve2/R4\n", - "Ic1=1*10**-3\n", - "Vr1=Vcc-(Vbe+Ve2)\n", - "R1=Vr1/Ic1#use 5.6kohm and recalculate\n", - "R1=5.6*10**3\n", - "Ic1=Vr1/R1\n", - "Ib1=Ic1/hFE\n", - "hie=hfe*(26*10**-3/Ic1)\n", - "hie2=hfe*((26*10**-3)/(2.27*10**-3))\n", - "Zi1=(R2*hie)/(R2+hie)\n", - "Xc1=Zi1/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=R3/100\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "Zo=(((hie2+R1)/hfe)*R4)/(((hie2+R1)/hfe)+R4)\n", - "Xc3=Rl+Zo\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select Ie2>ip\n", - "The value of C3= 9.20 mf\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.15, Page No 407" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vgsoff=-6.0\n", - "Idss=20.0*10**-3\n", - "Yfs=4000.0*10**-6\n", - "Id=2.0*10**-3\n", - "Vcc=20.0\n", - "Zi=500.0*10**3\n", - "R2=560.0*10**3\n", - "Rl=80.0*10**3\n", - "Vbe=0.7\n", - "Vce=3.0\n", - "\n", - "#Calculations\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vds=(-Vgsoff)+1-(-Vgs)\n", - "Vr3=(Vcc-Vds)/2\n", - "Vr4=Vr3\n", - "R3=Vr4/Id#use 3.9kohm as standard and recalculate Vr3 and Vr4\n", - "R4=R3\n", - "R4=3.9*10**3\n", - "Vr3=Id*R4\n", - "Vr4=Vr3\n", - "Vr2=Vr4-(-Vgs)\n", - "Vr1=Vcc-Vr2\n", - "R1=(Vr1*R2)/Vr2\n", - "R6=Rl/10\n", - "Vr5=Vr3-Vbe\n", - "Vr6=Vcc-Vr5-Vce\n", - "Ic2=Vr6/R6\n", - "R5=Vr5/Ic2\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f kohm' %(R5/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R5= 5.74 kohm\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.16, Page No 508" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R1=2.7*10**6\n", - "R2=560.0*10**3\n", - "f1=150.0\n", - "Yfs=8000.0*10**-6\n", - "Ie=1.2*10**-3\n", - "Rl=80.0*10**3\n", - "R6=8.2*10**3\n", - "\n", - "#Calculations\n", - "Zi=(R1*R2)/(R1+R2)\n", - "Xc1=Zi/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=.65/Yfs\n", - "C2=1/(2*3.14*f1*Xc2)#use 15pF as standard value\n", - "re=26*10**-3/Ie\n", - "Xc3=.65*re\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "Xc4=(R6+Rl)/10\n", - "C4=1/(2*3.14*f1*Xc4)\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mf' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.12 mf\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.17, Page No 509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "re=22.0\n", - "hfe=100.0\n", - "R3=3.9*10**3\n", - "Yfs=4000*10**-6\n", - "R6=8.2*10**3\n", - "Rl=80.*10**3\n", - "\n", - "#Calculations\n", - "Zi2=hfe*re\n", - "Av1=-Yfs*((R3*Zi2)/(R3+Zi2))\n", - "Av2=-(hfe*((R6*Rl)/(R6+Rl)))/Zi2\n", - "\n", - "#Results\n", - "print(\"overall voltage is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall voltage is Av=Av1*Av2\n", - "The value of Av= 1902.09 \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.18, Page No 516" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hFE=60.0\n", - "hfe=60.0\n", - "hie=1.4*10**3\n", - "Rl=70.0*10**3\n", - "Vce=3.0\n", - "Vbe=.7\n", - "Vcc=10.0\n", - "\n", - "#Calculations\n", - "Rc2=Rl/10#use 6.8Kohm as standard value\n", - "Vrc2=Vcc+Vbe-Vce\n", - "Ic=Vrc2/Rc2\n", - "Ie=Ic\n", - "Re=(Vcc-Vbe)/(2*Ie)#use 4.7 as standard value\n", - "Re=4.7*10**3\n", - "Rb=Vbe/(10*(Ic/hFE))\n", - "Rb1=Rb\n", - "\n", - "#Results\n", - "print('The value of Rb= %.2f kohm ' %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb= 3.82 kohm \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.19, Page No 517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=60.0\n", - "Ie=1.13*10**-3\n", - "hfe=60.0\n", - "Rb=3.9*10**3\n", - "Rl=70.0*10**3\n", - "Rc=6.8*10**3\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie#use 20 as standard value\n", - "re=20\n", - "hie=hfe*re\n", - "Zb=2*hie\n", - "Zi=(Rb*Zb)/(Rb+Zb)\n", - "C1=1/(2*3.14*f1*Zi)\n", - "C2=1/(2*3.14*f1*(Rl/10))\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/(2*hie)\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= 154.95 \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.20, Page No 521" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=20.0\n", - "Rl=90.0*10**3\n", - "hfe=50.0\n", - "hie=1.2*10**3\n", - "hib=24.0\n", - "Vce=3\n", - "Vce1=Vce\n", - "Ve=5.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Rc=Rl/10#use 8.2kohm as standard value\n", - "Rc=8.2*10**3\n", - "Vrc=Vcc-Vce-Vce1-Ve\n", - "Ic=Vrc/Rc\n", - "Re=Ve/Ic\n", - "Re=4.7*10**3#use 4.7 as standard value\n", - "R3=10*Re\n", - "Vb1=Ve+Vbe\n", - "I3=Vb1/R3\n", - "Vb2=Ve+Vce+Vbe\n", - "Vr2=Vb2-Vb1\n", - "R2=Vr2/I3\n", - "R1=(Vcc-Vb2)/I3\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 93.18 kohm \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.21, Page No 522" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=25.0\n", - "R2=24.7*10**3\n", - "R3=47.0*10**3\n", - "hie=1.2*10**3\n", - "hib=24.0\n", - "Rc=9.0*10**3\n", - "Rl=90*10**3\n", - "\n", - "#Calculations\n", - "Zi=(R2*R3*hie)/(R2*R3+R2*hie+R3*hie)\n", - "C1=1/(2*3.14*f1*(Zi/10))\n", - "C2=1/(2*3.14*f1*(hie/10))\n", - "C3=1/(2*3.14*f1*hib)\n", - "C4=1/(2*3.14*f1*((Rc+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mF' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.64 mF\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.22, Page No 525" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hie=1.0\n", - "hfe=50.0\n", - "hoe=10.0*10**-6\n", - "Cc=5*10**-12\n", - "Cp=330*10**-12\n", - "Lp=75*10**-6\n", - "Rw=1.0\n", - "Rl=5.0\n", - "hfb=50.0\n", - "fo=1.0*10**6\n", - "\n", - "#Calculations\n", - "fo=1.0/(2.0*3.14*math.sqrt(Lp*(Cp+Cc)))\n", - "print(\"resonance frequency is %3fHz \" %fo)\n", - "Zp=Lp/((Cp+Cc)*Rw)\n", - "Rc=(1.0/hoe)/1000\n", - "RL=(Zp*Rc*Rl)/(Rl*Rc+Rc*Zp+Rl*Zp)\n", - "RL1=4.7 #as standard value\n", - "Av=(hfb*RL1)/hie\n", - "print(\" voltage gain is %d \" %Av)\n", - "Qp=7.6\n", - "QL=(2*3.14*fo*Lp)/Rw\n", - "print(\"since QL>Qp\")\n", - "fo=1\n", - "B=fo/Qp\n", - "\n", - "#Results\n", - "print(\"bandwidth is %.2f kHz \" %(B*10**3))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resonance frequency is 1004586.461587Hz \n", - " voltage gain is 235 \n", - "since QL>Qp\n", - "bandwidth is 131.58 kHz \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.23, Page No 528" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hie=1.0*10**3\n", - "hfe=50.0\n", - "hoe=10.0*10**-6\n", - "Cc=5.0*10**-12\n", - "Cp=330.0*10**-12\n", - "Lp=75.0*10**-6\n", - "Rw=1.0\n", - "Rl=5.0*10**3\n", - "fo=1.0*10**6\n", - "zP=224.0*10**3\n", - "rC=100.0*10**3\n", - "K=0.015\n", - "Ls=50.0*10**-6\n", - "\n", - "\n", - "#Calculations\n", - "RL=(Zp*Rc)/(Rc+Zp)\n", - "print(\"voltage gain from the input to the primary memory winding\")\n", - "Avp=(hfe*RL)/hie\n", - "Vsp=K*math.sqrt(Ls/Lp)\n", - "print(\"overall voltage gain from the input to teh secondary winding\")\n", - "Av=Avp*Vsp\n", - "Qp=Rc/(2*3.14*fo*Lp)\n", - "Ql=471\n", - "Q=(Ql*Qp)/(Ql+Qp)\n", - "B=fo/Q\n", - "\n", - "\n", - "#Results\n", - "print(\"bandwidth is %.2f kHz \" %(B/10**5))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain from the input to the primary memory winding\n", - "overall voltage gain from the input to teh secondary winding\n", - "bandwidth is 47.12 kHz \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.24, Page No 530" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=1.0*10**6\n", - "L2=50.0*10**-6\n", - "K=0.015\n", - "L1=75*10**-6\n", - "rs=5.0\n", - "Rw=1.0\n", - "Lp=100.0*10**-6\n", - "Cp=330.0*10**-12\n", - "Cc=5.0*10**-12\n", - "Rc=100.0*10**3\n", - "hfe=50.0\n", - "hie=1.0*10**3\n", - "\n", - "\n", - "#Calculations\n", - "C2=1/(((2*3.14*f)**2)*L2)\n", - "M=K*math.sqrt(L1*L2)\n", - "Rs=(((2*3.14*f)**2)*(M)**2)/rs\n", - "Rp=Rs+Rw\n", - "Zp=Lp/((Cp+Cc)*Rp)\n", - "Rl=(Zp*Rc)/(Zp+Rc)\n", - "print(\"voltage gain from the input to primary winding\")\n", - "Avp=(hfe*Rl)/hie\n", - "Vsp=12.2*10**-3\n", - "Vos=((2*3.14*f)*L2)/rs\n", - "\n", - "#Results\n", - "print(\"overall voltage gain from the input to secondary winding \")\n", - "Av=Avp*Vos*Vsp\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain from the input to primary winding\n", - "overall voltage gain from the input to secondary winding \n", - "The value of Av= 1074.71 \n" - ] - } - ], - "prompt_number": 22 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter12_2.ipynb b/Electronic_Devices_and_Circuits/Chapter12_2.ipynb deleted file mode 100755 index b0fb9991..00000000 --- a/Electronic_Devices_and_Circuits/Chapter12_2.ipynb +++ /dev/null @@ -1,1196 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 12 : Small signal Amplifiers" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.1, Page No 474" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "hie=1.0*10**3\n", - "hib=20.0\n", - "f1=100.0\n", - "Rc=3.3*10**3\n", - "\n", - "#Calculations\n", - "Re=Rc\n", - "print(\" required capacitance\")\n", - "Xc2=hib\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "print(\" voltage gain with emitter terminal completely bypassed to ground\")\n", - "Av=-(hfe*Rc)/hie\n", - "print(\"voltage gain when f=100\")\n", - "Av=-(hfe*Rc)/math.sqrt(((hie**2)+((1+hfe)*Xc2)**2))\n", - "\n", - "#Results\n", - "print(\" voltage gain when C2 is incorrectly selected as Xc2=Re/10\")\n", - "Avx=-(hfe*Rc)/math.sqrt(((hie**2)+((1+hfe)*(Re/10))**2))\n", - "print('The value of Avx= %.2f ' %(Avx))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " required capacitance\n", - " voltage gain with emitter terminal completely bypassed to ground\n", - "voltage gain when f=100\n", - " voltage gain when C2 is incorrectly selected as Xc2=Re/10\n", - "The value of Avx= -9.79 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.2, Page No 477" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=24.0\n", - "Ve=5.0\n", - "Vce=3.0\n", - "Rl=120.0*10**3\n", - "Vbe=0.7\n", - "Rc=Rl/10.0\n", - "\n", - "#Calculations\n", - "Vrc=Vcc-Vce-Ve\n", - "Ic=Vrc/Rc\n", - "Re=Ve/Ic#use 3.9Kohm standard value to make Ic littel less than design level\n", - "Re=3.9*10**3\n", - "R2=10*Re\n", - "I2=(Ve+Vbe)/R2\n", - "R1=(Vcc-Ve-Vbe)/I2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f ' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 125.21 \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.3 Page No 477" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "Ie=1.3*10**-3\n", - "f1=100.0\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "Rl=R1\n", - "re=(26*10**-3)/Ie\n", - "Xc2=re\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "C1=1/((2*3.14*f1*((Zi+rs)/10)))\n", - "C3=1/(2*3.14*f1*((Rc+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf ' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 0.12 mf \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.5, Page No 484" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "rs=600.0\n", - "f1=100.0\n", - "Yfs=6000.0*10**-6\n", - "R1=4.7*10**6\n", - "R2=1.0*10**6\n", - "Rd=6.8*10**3\n", - "Rl=120*10**3\n", - "\n", - "#Calculations\n", - "Xc2=1/Yfs\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "Zi=(R1*R2)/(R1+R2)\n", - "C1=1/(2*3.14*f1*(Zi+rs)/10)\n", - "C3=1/(2*3.14*f1*(Rd+Rl)/10)\n", - "\n", - "#Calculations\n", - "print('The value of C3= %.2f mF' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 0.13 mF\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.7 Page No 489" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "hie=2.0*10**3\n", - "R7=12.0*10**3\n", - "Zo=R7\n", - "R5=R1\n", - "R6=R2\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "R3=R7\n", - "Zl=R1\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Zi2=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Av1=-(hfe*((R3*Zi2)/(R3+Zi2)))/hie\n", - "Av2=-(hfe*((R7*Zl)/(R7+Zl)))/hie\n", - "Av=Av1*Av2\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= 44180.12 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.8 Page No 491" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ve1=5.0\n", - "Vce1=3.0\n", - "Vce2=3.0\n", - "Vbe=0.7\n", - "Vcc=14.0\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "Vb2=Ve1+Vce1\n", - "Vc1=Vb2\n", - "Ve2=Vb2-Vbe\n", - "Vr5=Vcc-Ve2-Vce2\n", - "R5=Rl/10#use 3.9Kohm satandard value\n", - "R5=3.9*10**3\n", - "Ic2=Vr5/R5\n", - "R6=Ve2/Ic2#use 8.2Kohm as standard and recalculate\n", - "R6=8.2*10**3\n", - "Ic2=Ve2/R6\n", - "Vr3=Vcc-Vc1\n", - "print(\" Ic1>>Ib2 %select Ic1=1mA\")\n", - "Ic1=1*10**-3\n", - "R3=Vr3/Ic1#use standard value as 5.6Kohm and recalculate Ic1 in order ti keep Vb2=8V\n", - "R3=5.6*10**3\n", - "Ic1=Vr3/R3\n", - "R4=Ve1/Ic1\n", - "Vr2=Ve1+Vbe\n", - "Vr1=Vcc-Ve1-Vbe\n", - "R2=10*R4\n", - "I2=(Ve1+Vbe)/R2\n", - "R1=(Vr1*R2)/Vr2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Ic1>>Ib2 %select Ic1=1mA\n", - "The value of R1= 67.95 kohm\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.9, Page No 493" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "re=26.0\n", - "R1=68.0*10**3\n", - "R2=47.0*10**3\n", - "rs=600.0\n", - "f1=75.0\n", - "R5=3.9*10**3\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Xc1=(Zi+rs)/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=.65*re\n", - "Xc3=Xc2\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "C3=C2\n", - "Xc4=(R5+Rl)/10\n", - "C4=1/(2*3.14*f1*Xc4)\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mf' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.48 mf\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.10, Page No 494" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=50.0\n", - "hie=1.3*10**3\n", - "R3=5.6*10**3\n", - "R5=3.9*10**3\n", - "Rl=40.0*10**3\n", - "\n", - "#Calculations\n", - "Av1=-(hfe*((R3*hie)/(R3+hie)))/hie\n", - "Av2=-(hfe*((R5*Rl)/(R5+Rl)))/hie\n", - "\n", - "#Results\n", - "print(\" overall voltage gain is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " overall voltage gain is Av=Av1*Av2\n", - "The value of Av= 5546.20 \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.11 Page No 497" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Vp=100.0*10**-3\n", - "Rl=100.0\n", - "Vbe=0.7\n", - "Vcc=20.0\n", - "\n", - "#Calculations\n", - "ip=Vp/Rl\n", - "print(\"select Ie2>ip\")\n", - "Ie2=2.0*10**-3\n", - "Ve1=5.0\n", - "Vce1=3.0\n", - "Vb2=Ve1+Vce1\n", - "Vc1=Vb2\n", - "Ve2=Vb2-Vbe\n", - "R5=Ve2/Ie2#use 3.3Kohm standard value\n", - "R5=3.3*10**3\n", - "Ic1=1*10**-3\n", - "Vr3=Vcc-Vb2\n", - "R3=Vr3/Ic1\n", - "R4=Ve1/Ic1#use 4.7Kohm standard value\n", - "R4=4.7*10**3\n", - "Vb1=Ic1*R4+Vbe\n", - "R2=10*R4\n", - "R1=((Vcc-Vb1)*R2)/Vr2\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select Ie2>ip\n", - "The value of R1= 120.39 kohm \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.12 Page No 498" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "Ie1=1.0*10**-3\n", - "hfe=50.0\n", - "R1=120.0*10**3\n", - "R2=47.0*10**3\n", - "f1=150.0\n", - "Ie2=2.0*10**-3\n", - "R5=3.3*10**3\n", - "R3=12.0*10**3\n", - "Rl=100.0\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie1\n", - "hie=(1+hfe)*re\n", - "Zi=(R1*R2*hie)/(R1*R2+R1*hie+R2*hie)\n", - "Xc1=(Zi+rs)/10\n", - "C1=1/(2*3.14*f1*Xc1)#use 6*10**-6 as standard value\n", - "Xc2=.65*re\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "re2=26*10**-3/Ie2\n", - "Zo=(R5*(re2+R3/hfe))/(R5+(re2+R3/hfe))\n", - "Xc3=.65*(Rl+Zo)\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C3= 4.88 mf\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.13 Page No 499" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ie2=2.0*10**-3\n", - "hfe=50.0\n", - "R5=3.3*10**3\n", - "Rl=100.0\n", - "hfc2=51.0\n", - "R3=12.0*10**3\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie2\n", - "hic=hfe*re\n", - "Zi2=hic+hfc2*((Rl*R5)/(Rl+R5))\n", - "Av1=-(hfe*((R3*Zi2)/(R3+Zi2)))/hie\n", - "Av2=1.0\n", - "\n", - "#Results\n", - "print(\"overall voltage gain is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall voltage gain is Av=Av1*Av2\n", - "The value of Av= -143.97 \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.14, Page No 503" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "vp=50.0*10**-3\n", - "Rl=50.0\n", - "Ve2=5.0\n", - "Vcc=12.0\n", - "Vbe=0.7\n", - "hFE=70.0\n", - "hfe=100.0\n", - "R2=120.0*10**3\n", - "f1=150.0\n", - "R3=150.0*10**3\n", - "R1=5.6*10**3\n", - "R4=2.2*10**3\n", - "\n", - "#Calculations\n", - "ip=vp/Rl\n", - "print(\"select Ie2>ip\")\n", - "Ie2=2*10**-3\n", - "R4=Ve2/Ie2#use standard 2.2Kohm\n", - "R4=2.2*10**3\n", - "Ie2=Ve2/R4\n", - "Ic1=1*10**-3\n", - "Vr1=Vcc-(Vbe+Ve2)\n", - "R1=Vr1/Ic1#use 5.6kohm and recalculate\n", - "R1=5.6*10**3\n", - "Ic1=Vr1/R1\n", - "Ib1=Ic1/hFE\n", - "hie=hfe*(26*10**-3/Ic1)\n", - "hie2=hfe*((26*10**-3)/(2.27*10**-3))\n", - "Zi1=(R2*hie)/(R2+hie)\n", - "Xc1=Zi1/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=R3/100\n", - "C2=1/(2*3.14*f1*Xc2)\n", - "Zo=(((hie2+R1)/hfe)*R4)/(((hie2+R1)/hfe)+R4)\n", - "Xc3=Rl+Zo\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "\n", - "#Results\n", - "print('The value of C3= %.2f mf' %(C3*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select Ie2>ip\n", - "The value of C3= 9.20 mf\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.15, Page No 407" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vgsoff=-6.0\n", - "Idss=20.0*10**-3\n", - "Yfs=4000.0*10**-6\n", - "Id=2.0*10**-3\n", - "Vcc=20.0\n", - "Zi=500.0*10**3\n", - "R2=560.0*10**3\n", - "Rl=80.0*10**3\n", - "Vbe=0.7\n", - "Vce=3.0\n", - "\n", - "#Calculations\n", - "Vgs=Vgsoff*(1-math.sqrt(Id/Idss))\n", - "Vds=(-Vgsoff)+1-(-Vgs)\n", - "Vr3=(Vcc-Vds)/2\n", - "Vr4=Vr3\n", - "R3=Vr4/Id#use 3.9kohm as standard and recalculate Vr3 and Vr4\n", - "R4=R3\n", - "R4=3.9*10**3\n", - "Vr3=Id*R4\n", - "Vr4=Vr3\n", - "Vr2=Vr4-(-Vgs)\n", - "Vr1=Vcc-Vr2\n", - "R1=(Vr1*R2)/Vr2\n", - "R6=Rl/10\n", - "Vr5=Vr3-Vbe\n", - "Vr6=Vcc-Vr5-Vce\n", - "Ic2=Vr6/R6\n", - "R5=Vr5/Ic2\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f kohm' %(R5/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R5= 5.74 kohm\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.16, Page No 508" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R1=2.7*10**6\n", - "R2=560.0*10**3\n", - "f1=150.0\n", - "Yfs=8000.0*10**-6\n", - "Ie=1.2*10**-3\n", - "Rl=80.0*10**3\n", - "R6=8.2*10**3\n", - "\n", - "#Calculations\n", - "Zi=(R1*R2)/(R1+R2)\n", - "Xc1=Zi/10\n", - "C1=1/(2*3.14*f1*Xc1)\n", - "Xc2=.65/Yfs\n", - "C2=1/(2*3.14*f1*Xc2)#use 15pF as standard value\n", - "re=26*10**-3/Ie\n", - "Xc3=.65*re\n", - "C3=1/(2*3.14*f1*Xc3)\n", - "Xc4=(R6+Rl)/10\n", - "C4=1/(2*3.14*f1*Xc4)\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mf' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.12 mf\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.17, Page No 509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "re=22.0\n", - "hfe=100.0\n", - "R3=3.9*10**3\n", - "Yfs=4000*10**-6\n", - "R6=8.2*10**3\n", - "Rl=80.*10**3\n", - "\n", - "#Calculations\n", - "Zi2=hfe*re\n", - "Av1=-Yfs*((R3*Zi2)/(R3+Zi2))\n", - "Av2=-(hfe*((R6*Rl)/(R6+Rl)))/Zi2\n", - "\n", - "#Results\n", - "print(\"overall voltage is Av=Av1*Av2\")\n", - "Av=Av1*Av2\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "overall voltage is Av=Av1*Av2\n", - "The value of Av= 1902.09 \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.18, Page No 516" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hFE=60.0\n", - "hfe=60.0\n", - "hie=1.4*10**3\n", - "Rl=70.0*10**3\n", - "Vce=3.0\n", - "Vbe=.7\n", - "Vcc=10.0\n", - "\n", - "#Calculations\n", - "Rc2=Rl/10#use 6.8Kohm as standard value\n", - "Vrc2=Vcc+Vbe-Vce\n", - "Ic=Vrc2/Rc2\n", - "Ie=Ic\n", - "Re=(Vcc-Vbe)/(2*Ie)#use 4.7 as standard value\n", - "Re=4.7*10**3\n", - "Rb=Vbe/(10*(Ic/hFE))\n", - "Rb1=Rb\n", - "\n", - "#Results\n", - "print('The value of Rb= %.2f kohm ' %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb= 3.82 kohm \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.19, Page No 517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=60.0\n", - "Ie=1.13*10**-3\n", - "hfe=60.0\n", - "Rb=3.9*10**3\n", - "Rl=70.0*10**3\n", - "Rc=6.8*10**3\n", - "\n", - "#Calculations\n", - "re=26*10**-3/Ie#use 20 as standard value\n", - "re=20\n", - "hie=hfe*re\n", - "Zb=2*hie\n", - "Zi=(Rb*Zb)/(Rb+Zb)\n", - "C1=1/(2*3.14*f1*Zi)\n", - "C2=1/(2*3.14*f1*(Rl/10))\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/(2*hie)\n", - "\n", - "#Results\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Av= 154.95 \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.20, Page No 521" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=20.0\n", - "Rl=90.0*10**3\n", - "hfe=50.0\n", - "hie=1.2*10**3\n", - "hib=24.0\n", - "Vce=3\n", - "Vce1=Vce\n", - "Ve=5.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Rc=Rl/10#use 8.2kohm as standard value\n", - "Rc=8.2*10**3\n", - "Vrc=Vcc-Vce-Vce1-Ve\n", - "Ic=Vrc/Rc\n", - "Re=Ve/Ic\n", - "Re=4.7*10**3#use 4.7 as standard value\n", - "R3=10*Re\n", - "Vb1=Ve+Vbe\n", - "I3=Vb1/R3\n", - "Vb2=Ve+Vce+Vbe\n", - "Vr2=Vb2-Vb1\n", - "R2=Vr2/I3\n", - "R1=(Vcc-Vb2)/I3\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 93.18 kohm \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.21, Page No 522" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=25.0\n", - "R2=24.7*10**3\n", - "R3=47.0*10**3\n", - "hie=1.2*10**3\n", - "hib=24.0\n", - "Rc=9.0*10**3\n", - "Rl=90*10**3\n", - "\n", - "#Calculations\n", - "Zi=(R2*R3*hie)/(R2*R3+R2*hie+R3*hie)\n", - "C1=1/(2*3.14*f1*(Zi/10))\n", - "C2=1/(2*3.14*f1*(hie/10))\n", - "C3=1/(2*3.14*f1*hib)\n", - "C4=1/(2*3.14*f1*((Rc+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C4= %.2f mF' %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4= 0.64 mF\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.22, Page No 525" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hie=1.0\n", - "hfe=50.0\n", - "hoe=10.0*10**-6\n", - "Cc=5*10**-12\n", - "Cp=330*10**-12\n", - "Lp=75*10**-6\n", - "Rw=1.0\n", - "Rl=5.0\n", - "hfb=50.0\n", - "fo=1.0*10**6\n", - "\n", - "#Calculations\n", - "fo=1.0/(2.0*3.14*math.sqrt(Lp*(Cp+Cc)))\n", - "print(\"resonance frequency is %3fHz \" %fo)\n", - "Zp=Lp/((Cp+Cc)*Rw)\n", - "Rc=(1.0/hoe)/1000\n", - "RL=(Zp*Rc*Rl)/(Rl*Rc+Rc*Zp+Rl*Zp)\n", - "RL1=4.7 #as standard value\n", - "Av=(hfb*RL1)/hie\n", - "print(\" voltage gain is %d \" %Av)\n", - "Qp=7.6\n", - "QL=(2*3.14*fo*Lp)/Rw\n", - "print(\"since QL>Qp\")\n", - "fo=1\n", - "B=fo/Qp\n", - "\n", - "#Results\n", - "print(\"bandwidth is %.2f kHz \" %(B*10**3))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resonance frequency is 1004586.461587Hz \n", - " voltage gain is 235 \n", - "since QL>Qp\n", - "bandwidth is 131.58 kHz \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.23, Page No 528" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hie=1.0*10**3\n", - "hfe=50.0\n", - "hoe=10.0*10**-6\n", - "Cc=5.0*10**-12\n", - "Cp=330.0*10**-12\n", - "Lp=75.0*10**-6\n", - "Rw=1.0\n", - "Rl=5.0*10**3\n", - "fo=1.0*10**6\n", - "zP=224.0*10**3\n", - "rC=100.0*10**3\n", - "K=0.015\n", - "Ls=50.0*10**-6\n", - "\n", - "\n", - "#Calculations\n", - "RL=(Zp*Rc)/(Rc+Zp)\n", - "print(\"voltage gain from the input to the primary memory winding\")\n", - "Avp=(hfe*RL)/hie\n", - "Vsp=K*math.sqrt(Ls/Lp)\n", - "print(\"overall voltage gain from the input to teh secondary winding\")\n", - "Av=Avp*Vsp\n", - "Qp=Rc/(2*3.14*fo*Lp)\n", - "Ql=471\n", - "Q=(Ql*Qp)/(Ql+Qp)\n", - "B=fo/Q\n", - "\n", - "\n", - "#Results\n", - "print(\"bandwidth is %.2f kHz \" %(B/10**5))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain from the input to the primary memory winding\n", - "overall voltage gain from the input to teh secondary winding\n", - "bandwidth is 47.12 kHz \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 12.24, Page No 530" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=1.0*10**6\n", - "L2=50.0*10**-6\n", - "K=0.015\n", - "L1=75*10**-6\n", - "rs=5.0\n", - "Rw=1.0\n", - "Lp=100.0*10**-6\n", - "Cp=330.0*10**-12\n", - "Cc=5.0*10**-12\n", - "Rc=100.0*10**3\n", - "hfe=50.0\n", - "hie=1.0*10**3\n", - "\n", - "\n", - "#Calculations\n", - "C2=1/(((2*3.14*f)**2)*L2)\n", - "M=K*math.sqrt(L1*L2)\n", - "Rs=(((2*3.14*f)**2)*(M)**2)/rs\n", - "Rp=Rs+Rw\n", - "Zp=Lp/((Cp+Cc)*Rp)\n", - "Rl=(Zp*Rc)/(Zp+Rc)\n", - "print(\"voltage gain from the input to primary winding\")\n", - "Avp=(hfe*Rl)/hie\n", - "Vsp=12.2*10**-3\n", - "Vos=((2*3.14*f)*L2)/rs\n", - "\n", - "#Results\n", - "print(\"overall voltage gain from the input to secondary winding \")\n", - "Av=Avp*Vos*Vsp\n", - "print('The value of Av= %.2f ' %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain from the input to primary winding\n", - "overall voltage gain from the input to secondary winding \n", - "The value of Av= 1074.71 \n" - ] - } - ], - "prompt_number": 22 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter13.ipynb b/Electronic_Devices_and_Circuits/Chapter13.ipynb deleted file mode 100755 index 0a7d7550..00000000 --- a/Electronic_Devices_and_Circuits/Chapter13.ipynb +++ /dev/null @@ -1,733 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 13 : Amplifier with negative feedback" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.1, Page No 547" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Av=100000.0\n", - "B=1.0/100\n", - "print(\"when Av=100000\")\n", - "\n", - "#Calculations\n", - "Acl=Av/(1+Av*B)\n", - "print(\"when Av is 150000\")\n", - "Av=150000\n", - "Acl=Av/(1+Av*B)\n", - "\n", - "#Results\n", - "print(\"when Av is 50000\")\n", - "Av=50000\n", - "Acl=Av/(1+Av*B)\n", - "print('The value of Acl= %.2f ' %(Acl))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Av=100000\n", - "when Av is 150000\n", - "when Av is 50000\n", - "The value of Acl= 99.80 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.2, Page No 549" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Rf2=560.0\n", - "Rf1=56.0*10**3\n", - "Av=100000.0\n", - "Zb=1.0*10**3\n", - "R1=68.0*10**3\n", - "R2=33.0*10**3\n", - "\n", - "#Calculations\n", - "B=Rf2/(Rf2+Rf1)\n", - "Zi=(1+Av*B)*Zb\n", - "Zin=(Zi*R1*R2)/(R1*R2+R1*Zi+R2*Zi)\n", - "\n", - "#Results\n", - "print(\"input impedance with negative feedback is %.2f ohm \" %(Zin/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance with negative feedback is 21.73 ohm \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.3 Page No 552" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Zb=1.0*10**3\n", - "B=1.0/100\n", - "Av=5562.0\n", - "R1=68.0*10**3\n", - "R2=47.0*10**3\n", - "hoe=1.0/(50*10**3)\n", - "Rc=3.9*10**3\n", - "\n", - "#Calculations\n", - "Zi=(1+Av*B)*Zb\n", - "Zin=(R1*R2*Zi)/(R1*R2+R2*Zi+R1*Zi)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(Rc*Zo)/(Rc+Zo)\n", - "\n", - "#Results\n", - "print(\" circuit output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " circuit output impedance is 720.04 ohm \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.4, Page No 554" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Zb=1.0*10**3\n", - "hoe=1.0/(85*10**3)\n", - "Av=58000.0\n", - "Rf2=220.0\n", - "Rf1=16.2*10**3\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "R7=12.0*10**3\n", - "\n", - "#Calculations\n", - "B=Rf2/(Rf2+Rf1)\n", - "print(\"voltage gain\")\n", - "Acl=Av/(1+Av*B)\n", - "Zi=Zb*(1+Av*B)\n", - "Zin=(Zi*R1*R2)/(Zi*R1+R2*R1+R2*Zi)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(R7*Zo)/(R7+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain\n", - "output impedance is 108.25 ohm \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.5 Page No 558" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rf2=220.0\n", - "R4=3.9*10**3\n", - "Acl=75.0\n", - "f=100.0\n", - "\n", - "#Calculations\n", - "Rf1=(Acl-1)*Rf2\n", - "Xc2=Rf2\n", - "C2=1/(2*3.14*f*Rf2)\n", - "Xcf1=Rf1/100\n", - "Cf1=1/(2*3.14*f*Xcf1)\n", - "\n", - "#Results\n", - "print('The value of Cf1= %.2f mF' %(Cf1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Cf1= 9.78 mF\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.6 Page No 560" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Acl=300.0\n", - "Rf2=220.0\n", - "R4=4.7*10**3\n", - "f=100.0\n", - "\n", - "#Calculations\n", - "Rf1=(Acl-1)*Rf2\n", - "xc2=Rf2\n", - "C2=1.0/(2*3.14*f*Rf2)\n", - "\n", - "#Results\n", - "print('The value of C2= %.2f mf' %(C2*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C2= 7.24 mf\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.7, Page No 565" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "Vbe=0.7\n", - "Ic1=1.0*10**-3\n", - "\n", - "#Calculations\n", - "Ic2=Ic1\n", - "Ic3=Ic2\n", - "Ic4=Ic3\n", - "Vee=10.0\n", - "Vce=3.0\n", - "Acl=33.0\n", - "print(\"different resistor value of circuit\")\n", - "R1=Vbe/((10*Ic1)/hfe)\n", - "R3=(Vee-Vbe)/(Ic1+Ic2)\n", - "Vr2=Vee+Vbe-Vce\n", - "R4=Vr2/Ic1\n", - "R2=R4\n", - "R7=(Vr2-Vbe)/(Ic3+Ic4)\n", - "R8=Vee/Ic3\n", - "R6=6.8*10**3\n", - "R5=(Acl-1)*R6\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f kohm' %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "different resistor value of circuit\n", - "The value of R5= 217.60 kohm\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.8 Page No 566" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Av=25000.0\n", - "hie=2.0*10**3\n", - "hib=25.0\n", - "hoe=1.0/(100*10**3)\n", - "R6=6.8*10**3\n", - "R5=220.0*10**3\n", - "R1=R6\n", - "\n", - "#Calculations\n", - "R8=10*10**3\n", - "B=R6/(R5+R6)\n", - "Acl=Av/(1+Av*B)\n", - "Zi=2*hie*(1+Av*B)\n", - "Zin=(Zi*R1)/(Zi+R1)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(R8*Zo)/(R8+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output impedance is 131.48 ohm \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.9 Page No 568" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hic=2.0*10**3\n", - "hie=hic\n", - "hfe=100.0\n", - "hfc=100.0\n", - "Av=25000.0\n", - "B=1.0/33.4\n", - "\n", - "#Calculations\n", - "R8=10*10**3\n", - "R5=R8\n", - "Ze=(hic+R8)/hfc\n", - "Zo=Ze/(1+Av*B)\n", - "Zout=(R5*Zo)/(R5+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2fohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output impedance is 0.16ohm \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.10 Page No 570" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hfemin=100.0\n", - "hfemax=400.0\n", - "hiemin=2.0*10**3\n", - "hiemax=5.0*10**3\n", - "Rc=12.0*10**3\n", - "Rl=120.0*10**3\n", - "Re1=150.0\n", - "\n", - "#Calculations\n", - "print(\" voltage gain at extreme value \")\n", - "Avmax=(hfemax*((Rc*Rl)/(Rc+Rl)))/(hiemax+Re1*(1+hfemax))\n", - "Avmin=(hfemin*((Rc*Rl)/(Rc+Rl)))/(hiemin+Re1*(1+hfemin))\n", - "\n", - "\n", - "#Results\n", - "print(\"approximate voltage gain\")\n", - "Av=((Rc*Rl)/(Rc+Rl))/Re1" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage gain at extreme value \n", - "approximate voltage gain\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.11, Page No 571" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Av=70.0\n", - "f=100.0\n", - "rs=600.0\n", - "Rc=12.0*10**3\n", - "Rl=120*10**3\n", - "Re2=3.9*10**3\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R1=Rl\n", - "R2=39.0*10**3\n", - "Re1=150.0\n", - "\n", - "#Calculations\n", - "Zb=hie+Re1*(1+hfe)\n", - "Zin=(R1*R2*Zb)/(R1*R2+R1*Zb+R2*Zb)\n", - "C1=1/(2*3.14*f*((Zin+rs)/10))\n", - "C2=1/(2*3.14*f*Re1)\n", - "\n", - "#Results\n", - "print('The value of C2= %.2f mF ' %(C2*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C2= 10.62 mF \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.12, Page No 573" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Av=1000.0\n", - "f=100.0\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R8=12.0*10**3\n", - "Rl=120*10**3\n", - "R10=3.9*10**3\n", - "R6=Rl\n", - "R7=39.0*10**3\n", - "\n", - "#Calculations\n", - "R3=R8\n", - "Av1=math.sqrt(Av)\n", - "Av2=Av1\n", - "R9=((R8*Rl)/(R8+Rl))/Av2\n", - "R9=330#use standard value\n", - "Av2=((R8*Rl)/(R8+Rl))/R9\n", - "Av1=Av/Av2\n", - "Zb=hie+R9*(1+hfe)\n", - "Zin=(R6*R7*Zb)/(R6*R7+R6*Zb+R7*Zb)\n", - "R4=((R3*Zin)/(R3+Zin))/Av1\n", - "R5=R10-R4\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f ' %(R5/1000))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R5= 3.67 \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.13, Page No 574" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=100.0\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R8=12.0*10**3\n", - "Rl=120.0*10**3\n", - "R10=3.9*10**3\n", - "R6=Rl\n", - "R7=39.0*10**3\n", - "R3=R8\n", - "R4=220.0\n", - "rs=600.0\n", - "Zin2=16.0*10**3\n", - "R9=330.0\n", - "\n", - "#Calculations\n", - "Zb=hie+R4*(1+hfe)\n", - "Zin=(R1*R2*Zb)/(R1*R2+R1*Zb+R2*Zb)\n", - "C1=1.0/(2*3.14*f*((Zin+rs)/10))\n", - "Xc2=0.65*R4\n", - "C2=1.0/(2*3.14*f*Xc2)\n", - "C3=1.0/(2*3.14*f*((Zin2+R3)/10))\n", - "C4=1.0/(2*3.14*f*.65*R9)\n", - "C5=1.0/(2*3.14*f*((R8+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C5= %.2f mF ' %(C5*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C5= 0.12 mF \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.14, Page No 580" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "hie=2.0*10**3\n", - "R4=100.0\n", - "R1=5.6*10**3\n", - "R6=2.2*10**3\n", - "\n", - "#Calculations\n", - "Zi=hie+(1+hfe)*R4\n", - "print(\"open loop current gain\")\n", - "Ai=(hfe*hfe*R1)/(R1+Zi)\n", - "B=R4/(R4+R6)\n", - "print(\"closed loop gain\")\n", - "Acl=Ai/(1+Ai*B)\n", - "Zi=hie/(1+Ai*B)\n", - "\n", - "#Results\n", - "print('The value of Zi= %.2f ohm ' %(Zi))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "open loop current gain\n", - "closed loop gain\n", - "The value of Zi= 14.43 ohm \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.15, Page No 585" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Av=60000.0\n", - "Acl=300.0\n", - "f1=15.0*10**3\n", - "B=1.0/300\n", - "\n", - "#Calculations\n", - "f2=(Av*f1)/Acl\n", - "print(\"% distortion with NFB\")\n", - "NFB=(.1/(1+Av*B))*100.0\n", - "\n", - "#Results\n", - "print(\" percenatge distortion with NFB is %.3f percent \" %NFB)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "% distortion with NFB\n", - " percenatge distortion with NFB is 0.050 percent \n" - ] - } - ], - "prompt_number": 15 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter13_1.ipynb b/Electronic_Devices_and_Circuits/Chapter13_1.ipynb deleted file mode 100755 index 0a7d7550..00000000 --- a/Electronic_Devices_and_Circuits/Chapter13_1.ipynb +++ /dev/null @@ -1,733 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 13 : Amplifier with negative feedback" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.1, Page No 547" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Av=100000.0\n", - "B=1.0/100\n", - "print(\"when Av=100000\")\n", - "\n", - "#Calculations\n", - "Acl=Av/(1+Av*B)\n", - "print(\"when Av is 150000\")\n", - "Av=150000\n", - "Acl=Av/(1+Av*B)\n", - "\n", - "#Results\n", - "print(\"when Av is 50000\")\n", - "Av=50000\n", - "Acl=Av/(1+Av*B)\n", - "print('The value of Acl= %.2f ' %(Acl))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Av=100000\n", - "when Av is 150000\n", - "when Av is 50000\n", - "The value of Acl= 99.80 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.2, Page No 549" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Rf2=560.0\n", - "Rf1=56.0*10**3\n", - "Av=100000.0\n", - "Zb=1.0*10**3\n", - "R1=68.0*10**3\n", - "R2=33.0*10**3\n", - "\n", - "#Calculations\n", - "B=Rf2/(Rf2+Rf1)\n", - "Zi=(1+Av*B)*Zb\n", - "Zin=(Zi*R1*R2)/(R1*R2+R1*Zi+R2*Zi)\n", - "\n", - "#Results\n", - "print(\"input impedance with negative feedback is %.2f ohm \" %(Zin/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance with negative feedback is 21.73 ohm \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.3 Page No 552" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Zb=1.0*10**3\n", - "B=1.0/100\n", - "Av=5562.0\n", - "R1=68.0*10**3\n", - "R2=47.0*10**3\n", - "hoe=1.0/(50*10**3)\n", - "Rc=3.9*10**3\n", - "\n", - "#Calculations\n", - "Zi=(1+Av*B)*Zb\n", - "Zin=(R1*R2*Zi)/(R1*R2+R2*Zi+R1*Zi)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(Rc*Zo)/(Rc+Zo)\n", - "\n", - "#Results\n", - "print(\" circuit output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " circuit output impedance is 720.04 ohm \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.4, Page No 554" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Zb=1.0*10**3\n", - "hoe=1.0/(85*10**3)\n", - "Av=58000.0\n", - "Rf2=220.0\n", - "Rf1=16.2*10**3\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "R7=12.0*10**3\n", - "\n", - "#Calculations\n", - "B=Rf2/(Rf2+Rf1)\n", - "print(\"voltage gain\")\n", - "Acl=Av/(1+Av*B)\n", - "Zi=Zb*(1+Av*B)\n", - "Zin=(Zi*R1*R2)/(Zi*R1+R2*R1+R2*Zi)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(R7*Zo)/(R7+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain\n", - "output impedance is 108.25 ohm \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.5 Page No 558" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rf2=220.0\n", - "R4=3.9*10**3\n", - "Acl=75.0\n", - "f=100.0\n", - "\n", - "#Calculations\n", - "Rf1=(Acl-1)*Rf2\n", - "Xc2=Rf2\n", - "C2=1/(2*3.14*f*Rf2)\n", - "Xcf1=Rf1/100\n", - "Cf1=1/(2*3.14*f*Xcf1)\n", - "\n", - "#Results\n", - "print('The value of Cf1= %.2f mF' %(Cf1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Cf1= 9.78 mF\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.6 Page No 560" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Acl=300.0\n", - "Rf2=220.0\n", - "R4=4.7*10**3\n", - "f=100.0\n", - "\n", - "#Calculations\n", - "Rf1=(Acl-1)*Rf2\n", - "xc2=Rf2\n", - "C2=1.0/(2*3.14*f*Rf2)\n", - "\n", - "#Results\n", - "print('The value of C2= %.2f mf' %(C2*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C2= 7.24 mf\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.7, Page No 565" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "Vbe=0.7\n", - "Ic1=1.0*10**-3\n", - "\n", - "#Calculations\n", - "Ic2=Ic1\n", - "Ic3=Ic2\n", - "Ic4=Ic3\n", - "Vee=10.0\n", - "Vce=3.0\n", - "Acl=33.0\n", - "print(\"different resistor value of circuit\")\n", - "R1=Vbe/((10*Ic1)/hfe)\n", - "R3=(Vee-Vbe)/(Ic1+Ic2)\n", - "Vr2=Vee+Vbe-Vce\n", - "R4=Vr2/Ic1\n", - "R2=R4\n", - "R7=(Vr2-Vbe)/(Ic3+Ic4)\n", - "R8=Vee/Ic3\n", - "R6=6.8*10**3\n", - "R5=(Acl-1)*R6\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f kohm' %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "different resistor value of circuit\n", - "The value of R5= 217.60 kohm\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.8 Page No 566" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Av=25000.0\n", - "hie=2.0*10**3\n", - "hib=25.0\n", - "hoe=1.0/(100*10**3)\n", - "R6=6.8*10**3\n", - "R5=220.0*10**3\n", - "R1=R6\n", - "\n", - "#Calculations\n", - "R8=10*10**3\n", - "B=R6/(R5+R6)\n", - "Acl=Av/(1+Av*B)\n", - "Zi=2*hie*(1+Av*B)\n", - "Zin=(Zi*R1)/(Zi+R1)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(R8*Zo)/(R8+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output impedance is 131.48 ohm \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.9 Page No 568" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hic=2.0*10**3\n", - "hie=hic\n", - "hfe=100.0\n", - "hfc=100.0\n", - "Av=25000.0\n", - "B=1.0/33.4\n", - "\n", - "#Calculations\n", - "R8=10*10**3\n", - "R5=R8\n", - "Ze=(hic+R8)/hfc\n", - "Zo=Ze/(1+Av*B)\n", - "Zout=(R5*Zo)/(R5+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2fohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output impedance is 0.16ohm \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.10 Page No 570" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hfemin=100.0\n", - "hfemax=400.0\n", - "hiemin=2.0*10**3\n", - "hiemax=5.0*10**3\n", - "Rc=12.0*10**3\n", - "Rl=120.0*10**3\n", - "Re1=150.0\n", - "\n", - "#Calculations\n", - "print(\" voltage gain at extreme value \")\n", - "Avmax=(hfemax*((Rc*Rl)/(Rc+Rl)))/(hiemax+Re1*(1+hfemax))\n", - "Avmin=(hfemin*((Rc*Rl)/(Rc+Rl)))/(hiemin+Re1*(1+hfemin))\n", - "\n", - "\n", - "#Results\n", - "print(\"approximate voltage gain\")\n", - "Av=((Rc*Rl)/(Rc+Rl))/Re1" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage gain at extreme value \n", - "approximate voltage gain\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.11, Page No 571" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Av=70.0\n", - "f=100.0\n", - "rs=600.0\n", - "Rc=12.0*10**3\n", - "Rl=120*10**3\n", - "Re2=3.9*10**3\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R1=Rl\n", - "R2=39.0*10**3\n", - "Re1=150.0\n", - "\n", - "#Calculations\n", - "Zb=hie+Re1*(1+hfe)\n", - "Zin=(R1*R2*Zb)/(R1*R2+R1*Zb+R2*Zb)\n", - "C1=1/(2*3.14*f*((Zin+rs)/10))\n", - "C2=1/(2*3.14*f*Re1)\n", - "\n", - "#Results\n", - "print('The value of C2= %.2f mF ' %(C2*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C2= 10.62 mF \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.12, Page No 573" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Av=1000.0\n", - "f=100.0\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R8=12.0*10**3\n", - "Rl=120*10**3\n", - "R10=3.9*10**3\n", - "R6=Rl\n", - "R7=39.0*10**3\n", - "\n", - "#Calculations\n", - "R3=R8\n", - "Av1=math.sqrt(Av)\n", - "Av2=Av1\n", - "R9=((R8*Rl)/(R8+Rl))/Av2\n", - "R9=330#use standard value\n", - "Av2=((R8*Rl)/(R8+Rl))/R9\n", - "Av1=Av/Av2\n", - "Zb=hie+R9*(1+hfe)\n", - "Zin=(R6*R7*Zb)/(R6*R7+R6*Zb+R7*Zb)\n", - "R4=((R3*Zin)/(R3+Zin))/Av1\n", - "R5=R10-R4\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f ' %(R5/1000))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R5= 3.67 \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.13, Page No 574" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=100.0\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R8=12.0*10**3\n", - "Rl=120.0*10**3\n", - "R10=3.9*10**3\n", - "R6=Rl\n", - "R7=39.0*10**3\n", - "R3=R8\n", - "R4=220.0\n", - "rs=600.0\n", - "Zin2=16.0*10**3\n", - "R9=330.0\n", - "\n", - "#Calculations\n", - "Zb=hie+R4*(1+hfe)\n", - "Zin=(R1*R2*Zb)/(R1*R2+R1*Zb+R2*Zb)\n", - "C1=1.0/(2*3.14*f*((Zin+rs)/10))\n", - "Xc2=0.65*R4\n", - "C2=1.0/(2*3.14*f*Xc2)\n", - "C3=1.0/(2*3.14*f*((Zin2+R3)/10))\n", - "C4=1.0/(2*3.14*f*.65*R9)\n", - "C5=1.0/(2*3.14*f*((R8+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C5= %.2f mF ' %(C5*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C5= 0.12 mF \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.14, Page No 580" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "hie=2.0*10**3\n", - "R4=100.0\n", - "R1=5.6*10**3\n", - "R6=2.2*10**3\n", - "\n", - "#Calculations\n", - "Zi=hie+(1+hfe)*R4\n", - "print(\"open loop current gain\")\n", - "Ai=(hfe*hfe*R1)/(R1+Zi)\n", - "B=R4/(R4+R6)\n", - "print(\"closed loop gain\")\n", - "Acl=Ai/(1+Ai*B)\n", - "Zi=hie/(1+Ai*B)\n", - "\n", - "#Results\n", - "print('The value of Zi= %.2f ohm ' %(Zi))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "open loop current gain\n", - "closed loop gain\n", - "The value of Zi= 14.43 ohm \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.15, Page No 585" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Av=60000.0\n", - "Acl=300.0\n", - "f1=15.0*10**3\n", - "B=1.0/300\n", - "\n", - "#Calculations\n", - "f2=(Av*f1)/Acl\n", - "print(\"% distortion with NFB\")\n", - "NFB=(.1/(1+Av*B))*100.0\n", - "\n", - "#Results\n", - "print(\" percenatge distortion with NFB is %.3f percent \" %NFB)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "% distortion with NFB\n", - " percenatge distortion with NFB is 0.050 percent \n" - ] - } - ], - "prompt_number": 15 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter13_2.ipynb b/Electronic_Devices_and_Circuits/Chapter13_2.ipynb deleted file mode 100755 index 0a7d7550..00000000 --- a/Electronic_Devices_and_Circuits/Chapter13_2.ipynb +++ /dev/null @@ -1,733 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 13 : Amplifier with negative feedback" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.1, Page No 547" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Av=100000.0\n", - "B=1.0/100\n", - "print(\"when Av=100000\")\n", - "\n", - "#Calculations\n", - "Acl=Av/(1+Av*B)\n", - "print(\"when Av is 150000\")\n", - "Av=150000\n", - "Acl=Av/(1+Av*B)\n", - "\n", - "#Results\n", - "print(\"when Av is 50000\")\n", - "Av=50000\n", - "Acl=Av/(1+Av*B)\n", - "print('The value of Acl= %.2f ' %(Acl))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Av=100000\n", - "when Av is 150000\n", - "when Av is 50000\n", - "The value of Acl= 99.80 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.2, Page No 549" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Rf2=560.0\n", - "Rf1=56.0*10**3\n", - "Av=100000.0\n", - "Zb=1.0*10**3\n", - "R1=68.0*10**3\n", - "R2=33.0*10**3\n", - "\n", - "#Calculations\n", - "B=Rf2/(Rf2+Rf1)\n", - "Zi=(1+Av*B)*Zb\n", - "Zin=(Zi*R1*R2)/(R1*R2+R1*Zi+R2*Zi)\n", - "\n", - "#Results\n", - "print(\"input impedance with negative feedback is %.2f ohm \" %(Zin/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance with negative feedback is 21.73 ohm \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.3 Page No 552" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Zb=1.0*10**3\n", - "B=1.0/100\n", - "Av=5562.0\n", - "R1=68.0*10**3\n", - "R2=47.0*10**3\n", - "hoe=1.0/(50*10**3)\n", - "Rc=3.9*10**3\n", - "\n", - "#Calculations\n", - "Zi=(1+Av*B)*Zb\n", - "Zin=(R1*R2*Zi)/(R1*R2+R2*Zi+R1*Zi)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(Rc*Zo)/(Rc+Zo)\n", - "\n", - "#Results\n", - "print(\" circuit output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " circuit output impedance is 720.04 ohm \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.4, Page No 554" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Zb=1.0*10**3\n", - "hoe=1.0/(85*10**3)\n", - "Av=58000.0\n", - "Rf2=220.0\n", - "Rf1=16.2*10**3\n", - "R1=120.0*10**3\n", - "R2=39.0*10**3\n", - "R7=12.0*10**3\n", - "\n", - "#Calculations\n", - "B=Rf2/(Rf2+Rf1)\n", - "print(\"voltage gain\")\n", - "Acl=Av/(1+Av*B)\n", - "Zi=Zb*(1+Av*B)\n", - "Zin=(Zi*R1*R2)/(Zi*R1+R2*R1+R2*Zi)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(R7*Zo)/(R7+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain\n", - "output impedance is 108.25 ohm \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.5 Page No 558" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rf2=220.0\n", - "R4=3.9*10**3\n", - "Acl=75.0\n", - "f=100.0\n", - "\n", - "#Calculations\n", - "Rf1=(Acl-1)*Rf2\n", - "Xc2=Rf2\n", - "C2=1/(2*3.14*f*Rf2)\n", - "Xcf1=Rf1/100\n", - "Cf1=1/(2*3.14*f*Xcf1)\n", - "\n", - "#Results\n", - "print('The value of Cf1= %.2f mF' %(Cf1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Cf1= 9.78 mF\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.6 Page No 560" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Acl=300.0\n", - "Rf2=220.0\n", - "R4=4.7*10**3\n", - "f=100.0\n", - "\n", - "#Calculations\n", - "Rf1=(Acl-1)*Rf2\n", - "xc2=Rf2\n", - "C2=1.0/(2*3.14*f*Rf2)\n", - "\n", - "#Results\n", - "print('The value of C2= %.2f mf' %(C2*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C2= 7.24 mf\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.7, Page No 565" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "Vbe=0.7\n", - "Ic1=1.0*10**-3\n", - "\n", - "#Calculations\n", - "Ic2=Ic1\n", - "Ic3=Ic2\n", - "Ic4=Ic3\n", - "Vee=10.0\n", - "Vce=3.0\n", - "Acl=33.0\n", - "print(\"different resistor value of circuit\")\n", - "R1=Vbe/((10*Ic1)/hfe)\n", - "R3=(Vee-Vbe)/(Ic1+Ic2)\n", - "Vr2=Vee+Vbe-Vce\n", - "R4=Vr2/Ic1\n", - "R2=R4\n", - "R7=(Vr2-Vbe)/(Ic3+Ic4)\n", - "R8=Vee/Ic3\n", - "R6=6.8*10**3\n", - "R5=(Acl-1)*R6\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f kohm' %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "different resistor value of circuit\n", - "The value of R5= 217.60 kohm\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.8 Page No 566" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Av=25000.0\n", - "hie=2.0*10**3\n", - "hib=25.0\n", - "hoe=1.0/(100*10**3)\n", - "R6=6.8*10**3\n", - "R5=220.0*10**3\n", - "R1=R6\n", - "\n", - "#Calculations\n", - "R8=10*10**3\n", - "B=R6/(R5+R6)\n", - "Acl=Av/(1+Av*B)\n", - "Zi=2*hie*(1+Av*B)\n", - "Zin=(Zi*R1)/(Zi+R1)\n", - "Zo=(1/hoe)/(1+Av*B)\n", - "Zout=(R8*Zo)/(R8+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2f ohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output impedance is 131.48 ohm \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.9 Page No 568" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hic=2.0*10**3\n", - "hie=hic\n", - "hfe=100.0\n", - "hfc=100.0\n", - "Av=25000.0\n", - "B=1.0/33.4\n", - "\n", - "#Calculations\n", - "R8=10*10**3\n", - "R5=R8\n", - "Ze=(hic+R8)/hfc\n", - "Zo=Ze/(1+Av*B)\n", - "Zout=(R5*Zo)/(R5+Zo)\n", - "\n", - "#Results\n", - "print(\"output impedance is %.2fohm \" %Zout)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output impedance is 0.16ohm \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.10 Page No 570" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hfemin=100.0\n", - "hfemax=400.0\n", - "hiemin=2.0*10**3\n", - "hiemax=5.0*10**3\n", - "Rc=12.0*10**3\n", - "Rl=120.0*10**3\n", - "Re1=150.0\n", - "\n", - "#Calculations\n", - "print(\" voltage gain at extreme value \")\n", - "Avmax=(hfemax*((Rc*Rl)/(Rc+Rl)))/(hiemax+Re1*(1+hfemax))\n", - "Avmin=(hfemin*((Rc*Rl)/(Rc+Rl)))/(hiemin+Re1*(1+hfemin))\n", - "\n", - "\n", - "#Results\n", - "print(\"approximate voltage gain\")\n", - "Av=((Rc*Rl)/(Rc+Rl))/Re1" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage gain at extreme value \n", - "approximate voltage gain\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.11, Page No 571" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Av=70.0\n", - "f=100.0\n", - "rs=600.0\n", - "Rc=12.0*10**3\n", - "Rl=120*10**3\n", - "Re2=3.9*10**3\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R1=Rl\n", - "R2=39.0*10**3\n", - "Re1=150.0\n", - "\n", - "#Calculations\n", - "Zb=hie+Re1*(1+hfe)\n", - "Zin=(R1*R2*Zb)/(R1*R2+R1*Zb+R2*Zb)\n", - "C1=1/(2*3.14*f*((Zin+rs)/10))\n", - "C2=1/(2*3.14*f*Re1)\n", - "\n", - "#Results\n", - "print('The value of C2= %.2f mF ' %(C2*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C2= 10.62 mF \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.12, Page No 573" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Av=1000.0\n", - "f=100.0\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R8=12.0*10**3\n", - "Rl=120*10**3\n", - "R10=3.9*10**3\n", - "R6=Rl\n", - "R7=39.0*10**3\n", - "\n", - "#Calculations\n", - "R3=R8\n", - "Av1=math.sqrt(Av)\n", - "Av2=Av1\n", - "R9=((R8*Rl)/(R8+Rl))/Av2\n", - "R9=330#use standard value\n", - "Av2=((R8*Rl)/(R8+Rl))/R9\n", - "Av1=Av/Av2\n", - "Zb=hie+R9*(1+hfe)\n", - "Zin=(R6*R7*Zb)/(R6*R7+R6*Zb+R7*Zb)\n", - "R4=((R3*Zin)/(R3+Zin))/Av1\n", - "R5=R10-R4\n", - "\n", - "#Results\n", - "print('The value of R5= %.2f ' %(R5/1000))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R5= 3.67 \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.13, Page No 574" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=100.0\n", - "hie=2.0*10**3\n", - "hfe=100.0\n", - "R8=12.0*10**3\n", - "Rl=120.0*10**3\n", - "R10=3.9*10**3\n", - "R6=Rl\n", - "R7=39.0*10**3\n", - "R3=R8\n", - "R4=220.0\n", - "rs=600.0\n", - "Zin2=16.0*10**3\n", - "R9=330.0\n", - "\n", - "#Calculations\n", - "Zb=hie+R4*(1+hfe)\n", - "Zin=(R1*R2*Zb)/(R1*R2+R1*Zb+R2*Zb)\n", - "C1=1.0/(2*3.14*f*((Zin+rs)/10))\n", - "Xc2=0.65*R4\n", - "C2=1.0/(2*3.14*f*Xc2)\n", - "C3=1.0/(2*3.14*f*((Zin2+R3)/10))\n", - "C4=1.0/(2*3.14*f*.65*R9)\n", - "C5=1.0/(2*3.14*f*((R8+Rl)/10))\n", - "\n", - "#Results\n", - "print('The value of C5= %.2f mF ' %(C5*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C5= 0.12 mF \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.14, Page No 580" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hfe=100.0\n", - "hie=2.0*10**3\n", - "R4=100.0\n", - "R1=5.6*10**3\n", - "R6=2.2*10**3\n", - "\n", - "#Calculations\n", - "Zi=hie+(1+hfe)*R4\n", - "print(\"open loop current gain\")\n", - "Ai=(hfe*hfe*R1)/(R1+Zi)\n", - "B=R4/(R4+R6)\n", - "print(\"closed loop gain\")\n", - "Acl=Ai/(1+Ai*B)\n", - "Zi=hie/(1+Ai*B)\n", - "\n", - "#Results\n", - "print('The value of Zi= %.2f ohm ' %(Zi))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "open loop current gain\n", - "closed loop gain\n", - "The value of Zi= 14.43 ohm \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 13.15, Page No 585" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Av=60000.0\n", - "Acl=300.0\n", - "f1=15.0*10**3\n", - "B=1.0/300\n", - "\n", - "#Calculations\n", - "f2=(Av*f1)/Acl\n", - "print(\"% distortion with NFB\")\n", - "NFB=(.1/(1+Av*B))*100.0\n", - "\n", - "#Results\n", - "print(\" percenatge distortion with NFB is %.3f percent \" %NFB)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "% distortion with NFB\n", - " percenatge distortion with NFB is 0.050 percent \n" - ] - } - ], - "prompt_number": 15 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter14.ipynb b/Electronic_Devices_and_Circuits/Chapter14.ipynb deleted file mode 100755 index 90767c65..00000000 --- a/Electronic_Devices_and_Circuits/Chapter14.ipynb +++ /dev/null @@ -1,662 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 14 : Ic operational Amplifier and basic Op amp circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.1, Page No 597" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=0.7\n", - "Ib=500.0*10**-9\n", - "\n", - "#Calculations\n", - "R1=Vbe/(10.0*Ib)\n", - "R1=120.0*10**3#use standard value\n", - "R2=R1\n", - "I2=100.0*Ib\n", - "Vr1=15.0\n", - "Vr2=Vr1\n", - "R1=Vr1/I2\n", - "R1=270.0*10**3#use satndard value\n", - "R2=R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 135.00 kohm \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.2, Page No 599" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "R2=1.0*10**6\n", - "Vb=3.0\n", - "Vo=3.0\n", - "Vee=9.0\n", - "\n", - "#Calculations\n", - "Vr2=Vb-(-Vee)\n", - "Vr1=Vee-Vb\n", - "I2=Vr2/R2\n", - "R1=Vr1/I2\n", - "R3=0\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 500.00 kohm \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.3 Page No 601" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Av=200000.0\n", - "ri=2.0*10**6\n", - "ro=75.0\n", - "Vo=1.0\n", - "B=1.0\n", - "\n", - "#Calculations\n", - "Vd=Vo/Av\n", - "Zi=(1+Av*B)*ri\n", - "Zo=ro/(1+Av*B)\n", - "\n", - "#Results\n", - "print('The value of Zo= %.2f X 10^-3 kohm ' %(Zo*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Zo= 0.37 X 10^-3 kohm \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.4, Page No 603" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=70.0\n", - "Rl=4.0*10**3\n", - "Ib=500.0*10**-9\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "R1=Vbe/(10*Ib)\n", - "R1=120*10**3#use standard value\n", - "R2=R1\n", - "print(\" desire value of capacitor is C=1/2*3.14*f*R\")\n", - "C2=1/(2*3.14*f*Rl)\n", - "C1=1/(2*3.14*f*(R1/10))\n", - "\n", - "#Results\n", - "print('The value of C1= %.2f mF ' %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " desire value of capacitor is C=1/2*3.14*f*R\n", - "The value of C1= 0.19 mF \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.5 Page No 605" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ib=500.0*10**-9\n", - "Vi=50.0*10**-3\n", - "Vo=2.0\n", - "\n", - "#Calculations\n", - "I2=100.0*Ib\n", - "R3=Vi/I2\n", - "R2=(Vo/I2)-R3\n", - "R1=(R2*R3)/(R2+R3)\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 0.97 kohm \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.6 Page No 606" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Av=200000.0\n", - "ri=2.0*10**6\n", - "ro=75.0\n", - "R3=1.0*10**3\n", - "R2=39*10**3\n", - "\n", - "#Calculations\n", - "B=R3/(R2+R3)\n", - "Zi=(1+Av*B)*ri\n", - "\n", - "#Results\n", - "print(\" typical input impedance for non-inverting amplifier is %.2f ohm \" %Zi)\n", - "Zo=ro/(1+Av*B)\n", - "print('The value of Zo= %.2f kohm ' %(Zo*10))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " typical input impedance for non-inverting amplifier is 10002000000.00 ohm \n", - "The value of Zo= 0.15 kohm \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.7, Page No 607" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R2=50.0*10**3\n", - "R3=2.2*10**3\n", - "C2=8.2*10**-6\n", - "Rl=600.0\n", - "\n", - "#Calculations\n", - "print(\"voltage gain \")\n", - "Acl=(R3+R2)/R3\n", - "\n", - "#Results\n", - "print(\"lower cuttoff frequency \")\n", - "f=1/(2*3.14*C2*Rl)\n", - "print('The value of f= %.2f kohm ' %(f))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain \n", - "lower cuttoff frequency \n", - "The value of f= 32.36 kohm \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.8 Page No 610" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Acl=144.0\n", - "Vi=20.0*10**-3\n", - "Ib=500.0*10**-9\n", - "\n", - "#Calculations\n", - "I1=100.0*Ib\n", - "R1=Vi/I1\n", - "R1=390.0 #use standard value\n", - "R2=Acl*R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 387.31 kohm \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.9 Page No 612" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Acl=3.0\n", - "R4=1.0*10**6\n", - "Vi=1.0\n", - "\n", - "#Calculations\n", - "R1=R4/Acl\n", - "R1=330.0*10**3#use standard value \n", - "R2=R1\n", - "R3=R1\n", - "I1=Vi/R1\n", - "I2=I1\n", - "I3=I1\n", - "I4=I1+I2+I3\n", - "Vo=-I4*R4\n", - "\n", - "#Results\n", - "print('The value of Vo= %.2f v ' %(Vo))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vo= -9.09 v \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.10 Page No 615" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ib=500.0*10**-9\n", - "Vi=1.0\n", - "Acl=10.0\n", - "\n", - "#Calculations\n", - "I1=100*Ib\n", - "R1=Vi/I1\n", - "R1=18*10**3#use standard value\n", - "R2=Acl*R1\n", - "R4=R1\n", - "R3=R1/Acl\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 1.80 kohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.11, Page No 619" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vi=10*10**-3\n", - "Vn=1.0\n", - "R1=33.0*10**3\n", - "R2=300.0\n", - "R5=15.0*10**3\n", - "R4=15.0*10**3\n", - "Vi2=-10.0*10**-3\n", - "R3=R1\n", - "R6=15.0*10**3\n", - "\n", - "#Calculations\n", - "R7=R6\n", - "Acl=((2*R1+R2)/R2)*(R5/R4)\n", - "print(\"at junction of R1 and R2\")\n", - "Vb=Vi+Vn\n", - "print(\"at junction of R2 and R3\")\n", - "Vc=Vi2+Vn\n", - "print(\" current through R2\")\n", - "I2=(Vb-Vc)/R2\n", - "print(\"at the output of A1\")\n", - "Va=Vb+(I2*R1)\n", - "print(\"at output of A2\")\n", - "Vd=Vc-(I2*R3)\n", - "print(\"at junction of R6 and R7\")\n", - "Vf=Vd*(R7/(R6+R7))\n", - "print(\"at junction of R4 and R5\")\n", - "Ve=Vf\n", - "print(\"current through R4\")\n", - "I4=(Va-Ve)/R4\n", - "\n", - "#Results\n", - "print(\"at output of A3\")\n", - "Vg=Ve-(I4*R5)\n", - "print('The value of Vg= %.2f kohm ' %(Vg))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at junction of R1 and R2\n", - "at junction of R2 and R3\n", - " current through R2\n", - "at the output of A1\n", - "at output of A2\n", - "at junction of R6 and R7\n", - "at junction of R4 and R5\n", - "current through R4\n", - "at output of A3\n", - "The value of Vg= -4.42 kohm \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.12, Page No 623" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=15.0\n", - "Vee=-15.0\n", - "Av=200000.0\n", - "SR=0.5/10**-6\n", - "Vo=14.0\n", - "\n", - "#Calculations\n", - "V=(Vcc-1)-(Vee+1)\n", - "Vi=Vo/Av\n", - "print(\"rise time of output is \")\n", - "t=(V/SR)*10**6\n", - "\n", - "#Results\n", - "print(\"rise time of output is %d ms \" %t)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rise time of output is \n", - "rise time of output is 56 ms \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.13, Page No 627" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Ib=500.0*10**-9\n", - "UTP=5.0\n", - "Vcc=15.0\n", - "\n", - "#Calculations\n", - "I1=100.0*Ib\n", - "R2=UTP/I1\n", - "R1=((Vcc-1)-5)/I1\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 180.00 kohm \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.14, Page No 630" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=15.0\n", - "Vsat=Vcc\n", - "R2=150.0*10**3\n", - "Vf=0.7\n", - "R1=27.0*10**3\n", - "R3=120.0*10**3\n", - "\n", - "#Calculations\n", - "I2=(Vsat-Vf)/R2\n", - "UTP=I2*R1\n", - "\n", - "#Results\n", - "print(\" LTP calculation including Vf\")\n", - "I3=(Vsat-Vf)/R3\n", - "LTP=-I3*R1\n", - "print('The value of LTP= %.2f kohm ' %(LTP))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " LTP calculation including Vf\n", - "The value of LTP= -3.22 kohm \n" - ] - } - ], - "prompt_number": 14 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter14_1.ipynb b/Electronic_Devices_and_Circuits/Chapter14_1.ipynb deleted file mode 100755 index 90767c65..00000000 --- a/Electronic_Devices_and_Circuits/Chapter14_1.ipynb +++ /dev/null @@ -1,662 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 14 : Ic operational Amplifier and basic Op amp circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.1, Page No 597" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=0.7\n", - "Ib=500.0*10**-9\n", - "\n", - "#Calculations\n", - "R1=Vbe/(10.0*Ib)\n", - "R1=120.0*10**3#use standard value\n", - "R2=R1\n", - "I2=100.0*Ib\n", - "Vr1=15.0\n", - "Vr2=Vr1\n", - "R1=Vr1/I2\n", - "R1=270.0*10**3#use satndard value\n", - "R2=R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 135.00 kohm \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.2, Page No 599" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "R2=1.0*10**6\n", - "Vb=3.0\n", - "Vo=3.0\n", - "Vee=9.0\n", - "\n", - "#Calculations\n", - "Vr2=Vb-(-Vee)\n", - "Vr1=Vee-Vb\n", - "I2=Vr2/R2\n", - "R1=Vr1/I2\n", - "R3=0\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 500.00 kohm \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.3 Page No 601" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Av=200000.0\n", - "ri=2.0*10**6\n", - "ro=75.0\n", - "Vo=1.0\n", - "B=1.0\n", - "\n", - "#Calculations\n", - "Vd=Vo/Av\n", - "Zi=(1+Av*B)*ri\n", - "Zo=ro/(1+Av*B)\n", - "\n", - "#Results\n", - "print('The value of Zo= %.2f X 10^-3 kohm ' %(Zo*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Zo= 0.37 X 10^-3 kohm \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.4, Page No 603" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=70.0\n", - "Rl=4.0*10**3\n", - "Ib=500.0*10**-9\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "R1=Vbe/(10*Ib)\n", - "R1=120*10**3#use standard value\n", - "R2=R1\n", - "print(\" desire value of capacitor is C=1/2*3.14*f*R\")\n", - "C2=1/(2*3.14*f*Rl)\n", - "C1=1/(2*3.14*f*(R1/10))\n", - "\n", - "#Results\n", - "print('The value of C1= %.2f mF ' %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " desire value of capacitor is C=1/2*3.14*f*R\n", - "The value of C1= 0.19 mF \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.5 Page No 605" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ib=500.0*10**-9\n", - "Vi=50.0*10**-3\n", - "Vo=2.0\n", - "\n", - "#Calculations\n", - "I2=100.0*Ib\n", - "R3=Vi/I2\n", - "R2=(Vo/I2)-R3\n", - "R1=(R2*R3)/(R2+R3)\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 0.97 kohm \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.6 Page No 606" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Av=200000.0\n", - "ri=2.0*10**6\n", - "ro=75.0\n", - "R3=1.0*10**3\n", - "R2=39*10**3\n", - "\n", - "#Calculations\n", - "B=R3/(R2+R3)\n", - "Zi=(1+Av*B)*ri\n", - "\n", - "#Results\n", - "print(\" typical input impedance for non-inverting amplifier is %.2f ohm \" %Zi)\n", - "Zo=ro/(1+Av*B)\n", - "print('The value of Zo= %.2f kohm ' %(Zo*10))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " typical input impedance for non-inverting amplifier is 10002000000.00 ohm \n", - "The value of Zo= 0.15 kohm \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.7, Page No 607" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R2=50.0*10**3\n", - "R3=2.2*10**3\n", - "C2=8.2*10**-6\n", - "Rl=600.0\n", - "\n", - "#Calculations\n", - "print(\"voltage gain \")\n", - "Acl=(R3+R2)/R3\n", - "\n", - "#Results\n", - "print(\"lower cuttoff frequency \")\n", - "f=1/(2*3.14*C2*Rl)\n", - "print('The value of f= %.2f kohm ' %(f))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain \n", - "lower cuttoff frequency \n", - "The value of f= 32.36 kohm \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.8 Page No 610" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Acl=144.0\n", - "Vi=20.0*10**-3\n", - "Ib=500.0*10**-9\n", - "\n", - "#Calculations\n", - "I1=100.0*Ib\n", - "R1=Vi/I1\n", - "R1=390.0 #use standard value\n", - "R2=Acl*R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 387.31 kohm \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.9 Page No 612" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Acl=3.0\n", - "R4=1.0*10**6\n", - "Vi=1.0\n", - "\n", - "#Calculations\n", - "R1=R4/Acl\n", - "R1=330.0*10**3#use standard value \n", - "R2=R1\n", - "R3=R1\n", - "I1=Vi/R1\n", - "I2=I1\n", - "I3=I1\n", - "I4=I1+I2+I3\n", - "Vo=-I4*R4\n", - "\n", - "#Results\n", - "print('The value of Vo= %.2f v ' %(Vo))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vo= -9.09 v \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.10 Page No 615" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ib=500.0*10**-9\n", - "Vi=1.0\n", - "Acl=10.0\n", - "\n", - "#Calculations\n", - "I1=100*Ib\n", - "R1=Vi/I1\n", - "R1=18*10**3#use standard value\n", - "R2=Acl*R1\n", - "R4=R1\n", - "R3=R1/Acl\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 1.80 kohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.11, Page No 619" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vi=10*10**-3\n", - "Vn=1.0\n", - "R1=33.0*10**3\n", - "R2=300.0\n", - "R5=15.0*10**3\n", - "R4=15.0*10**3\n", - "Vi2=-10.0*10**-3\n", - "R3=R1\n", - "R6=15.0*10**3\n", - "\n", - "#Calculations\n", - "R7=R6\n", - "Acl=((2*R1+R2)/R2)*(R5/R4)\n", - "print(\"at junction of R1 and R2\")\n", - "Vb=Vi+Vn\n", - "print(\"at junction of R2 and R3\")\n", - "Vc=Vi2+Vn\n", - "print(\" current through R2\")\n", - "I2=(Vb-Vc)/R2\n", - "print(\"at the output of A1\")\n", - "Va=Vb+(I2*R1)\n", - "print(\"at output of A2\")\n", - "Vd=Vc-(I2*R3)\n", - "print(\"at junction of R6 and R7\")\n", - "Vf=Vd*(R7/(R6+R7))\n", - "print(\"at junction of R4 and R5\")\n", - "Ve=Vf\n", - "print(\"current through R4\")\n", - "I4=(Va-Ve)/R4\n", - "\n", - "#Results\n", - "print(\"at output of A3\")\n", - "Vg=Ve-(I4*R5)\n", - "print('The value of Vg= %.2f kohm ' %(Vg))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at junction of R1 and R2\n", - "at junction of R2 and R3\n", - " current through R2\n", - "at the output of A1\n", - "at output of A2\n", - "at junction of R6 and R7\n", - "at junction of R4 and R5\n", - "current through R4\n", - "at output of A3\n", - "The value of Vg= -4.42 kohm \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.12, Page No 623" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=15.0\n", - "Vee=-15.0\n", - "Av=200000.0\n", - "SR=0.5/10**-6\n", - "Vo=14.0\n", - "\n", - "#Calculations\n", - "V=(Vcc-1)-(Vee+1)\n", - "Vi=Vo/Av\n", - "print(\"rise time of output is \")\n", - "t=(V/SR)*10**6\n", - "\n", - "#Results\n", - "print(\"rise time of output is %d ms \" %t)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rise time of output is \n", - "rise time of output is 56 ms \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.13, Page No 627" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Ib=500.0*10**-9\n", - "UTP=5.0\n", - "Vcc=15.0\n", - "\n", - "#Calculations\n", - "I1=100.0*Ib\n", - "R2=UTP/I1\n", - "R1=((Vcc-1)-5)/I1\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 180.00 kohm \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.14, Page No 630" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=15.0\n", - "Vsat=Vcc\n", - "R2=150.0*10**3\n", - "Vf=0.7\n", - "R1=27.0*10**3\n", - "R3=120.0*10**3\n", - "\n", - "#Calculations\n", - "I2=(Vsat-Vf)/R2\n", - "UTP=I2*R1\n", - "\n", - "#Results\n", - "print(\" LTP calculation including Vf\")\n", - "I3=(Vsat-Vf)/R3\n", - "LTP=-I3*R1\n", - "print('The value of LTP= %.2f kohm ' %(LTP))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " LTP calculation including Vf\n", - "The value of LTP= -3.22 kohm \n" - ] - } - ], - "prompt_number": 14 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter14_2.ipynb b/Electronic_Devices_and_Circuits/Chapter14_2.ipynb deleted file mode 100755 index 90767c65..00000000 --- a/Electronic_Devices_and_Circuits/Chapter14_2.ipynb +++ /dev/null @@ -1,662 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 14 : Ic operational Amplifier and basic Op amp circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.1, Page No 597" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=0.7\n", - "Ib=500.0*10**-9\n", - "\n", - "#Calculations\n", - "R1=Vbe/(10.0*Ib)\n", - "R1=120.0*10**3#use standard value\n", - "R2=R1\n", - "I2=100.0*Ib\n", - "Vr1=15.0\n", - "Vr2=Vr1\n", - "R1=Vr1/I2\n", - "R1=270.0*10**3#use satndard value\n", - "R2=R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 135.00 kohm \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.2, Page No 599" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "R2=1.0*10**6\n", - "Vb=3.0\n", - "Vo=3.0\n", - "Vee=9.0\n", - "\n", - "#Calculations\n", - "Vr2=Vb-(-Vee)\n", - "Vr1=Vee-Vb\n", - "I2=Vr2/R2\n", - "R1=Vr1/I2\n", - "R3=0\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 500.00 kohm \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.3 Page No 601" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Av=200000.0\n", - "ri=2.0*10**6\n", - "ro=75.0\n", - "Vo=1.0\n", - "B=1.0\n", - "\n", - "#Calculations\n", - "Vd=Vo/Av\n", - "Zi=(1+Av*B)*ri\n", - "Zo=ro/(1+Av*B)\n", - "\n", - "#Results\n", - "print('The value of Zo= %.2f X 10^-3 kohm ' %(Zo*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Zo= 0.37 X 10^-3 kohm \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.4, Page No 603" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=70.0\n", - "Rl=4.0*10**3\n", - "Ib=500.0*10**-9\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "R1=Vbe/(10*Ib)\n", - "R1=120*10**3#use standard value\n", - "R2=R1\n", - "print(\" desire value of capacitor is C=1/2*3.14*f*R\")\n", - "C2=1/(2*3.14*f*Rl)\n", - "C1=1/(2*3.14*f*(R1/10))\n", - "\n", - "#Results\n", - "print('The value of C1= %.2f mF ' %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " desire value of capacitor is C=1/2*3.14*f*R\n", - "The value of C1= 0.19 mF \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.5 Page No 605" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ib=500.0*10**-9\n", - "Vi=50.0*10**-3\n", - "Vo=2.0\n", - "\n", - "#Calculations\n", - "I2=100.0*Ib\n", - "R3=Vi/I2\n", - "R2=(Vo/I2)-R3\n", - "R1=(R2*R3)/(R2+R3)\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 0.97 kohm \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.6 Page No 606" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Av=200000.0\n", - "ri=2.0*10**6\n", - "ro=75.0\n", - "R3=1.0*10**3\n", - "R2=39*10**3\n", - "\n", - "#Calculations\n", - "B=R3/(R2+R3)\n", - "Zi=(1+Av*B)*ri\n", - "\n", - "#Results\n", - "print(\" typical input impedance for non-inverting amplifier is %.2f ohm \" %Zi)\n", - "Zo=ro/(1+Av*B)\n", - "print('The value of Zo= %.2f kohm ' %(Zo*10))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " typical input impedance for non-inverting amplifier is 10002000000.00 ohm \n", - "The value of Zo= 0.15 kohm \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.7, Page No 607" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R2=50.0*10**3\n", - "R3=2.2*10**3\n", - "C2=8.2*10**-6\n", - "Rl=600.0\n", - "\n", - "#Calculations\n", - "print(\"voltage gain \")\n", - "Acl=(R3+R2)/R3\n", - "\n", - "#Results\n", - "print(\"lower cuttoff frequency \")\n", - "f=1/(2*3.14*C2*Rl)\n", - "print('The value of f= %.2f kohm ' %(f))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain \n", - "lower cuttoff frequency \n", - "The value of f= 32.36 kohm \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.8 Page No 610" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Acl=144.0\n", - "Vi=20.0*10**-3\n", - "Ib=500.0*10**-9\n", - "\n", - "#Calculations\n", - "I1=100.0*Ib\n", - "R1=Vi/I1\n", - "R1=390.0 #use standard value\n", - "R2=Acl*R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 387.31 kohm \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.9 Page No 612" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Acl=3.0\n", - "R4=1.0*10**6\n", - "Vi=1.0\n", - "\n", - "#Calculations\n", - "R1=R4/Acl\n", - "R1=330.0*10**3#use standard value \n", - "R2=R1\n", - "R3=R1\n", - "I1=Vi/R1\n", - "I2=I1\n", - "I3=I1\n", - "I4=I1+I2+I3\n", - "Vo=-I4*R4\n", - "\n", - "#Results\n", - "print('The value of Vo= %.2f v ' %(Vo))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vo= -9.09 v \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.10 Page No 615" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Ib=500.0*10**-9\n", - "Vi=1.0\n", - "Acl=10.0\n", - "\n", - "#Calculations\n", - "I1=100*Ib\n", - "R1=Vi/I1\n", - "R1=18*10**3#use standard value\n", - "R2=Acl*R1\n", - "R4=R1\n", - "R3=R1/Acl\n", - "\n", - "#Results\n", - "print('The value of R3= %.2f kohm ' %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3= 1.80 kohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.11, Page No 619" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vi=10*10**-3\n", - "Vn=1.0\n", - "R1=33.0*10**3\n", - "R2=300.0\n", - "R5=15.0*10**3\n", - "R4=15.0*10**3\n", - "Vi2=-10.0*10**-3\n", - "R3=R1\n", - "R6=15.0*10**3\n", - "\n", - "#Calculations\n", - "R7=R6\n", - "Acl=((2*R1+R2)/R2)*(R5/R4)\n", - "print(\"at junction of R1 and R2\")\n", - "Vb=Vi+Vn\n", - "print(\"at junction of R2 and R3\")\n", - "Vc=Vi2+Vn\n", - "print(\" current through R2\")\n", - "I2=(Vb-Vc)/R2\n", - "print(\"at the output of A1\")\n", - "Va=Vb+(I2*R1)\n", - "print(\"at output of A2\")\n", - "Vd=Vc-(I2*R3)\n", - "print(\"at junction of R6 and R7\")\n", - "Vf=Vd*(R7/(R6+R7))\n", - "print(\"at junction of R4 and R5\")\n", - "Ve=Vf\n", - "print(\"current through R4\")\n", - "I4=(Va-Ve)/R4\n", - "\n", - "#Results\n", - "print(\"at output of A3\")\n", - "Vg=Ve-(I4*R5)\n", - "print('The value of Vg= %.2f kohm ' %(Vg))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at junction of R1 and R2\n", - "at junction of R2 and R3\n", - " current through R2\n", - "at the output of A1\n", - "at output of A2\n", - "at junction of R6 and R7\n", - "at junction of R4 and R5\n", - "current through R4\n", - "at output of A3\n", - "The value of Vg= -4.42 kohm \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.12, Page No 623" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=15.0\n", - "Vee=-15.0\n", - "Av=200000.0\n", - "SR=0.5/10**-6\n", - "Vo=14.0\n", - "\n", - "#Calculations\n", - "V=(Vcc-1)-(Vee+1)\n", - "Vi=Vo/Av\n", - "print(\"rise time of output is \")\n", - "t=(V/SR)*10**6\n", - "\n", - "#Results\n", - "print(\"rise time of output is %d ms \" %t)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rise time of output is \n", - "rise time of output is 56 ms \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.13, Page No 627" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Ib=500.0*10**-9\n", - "UTP=5.0\n", - "Vcc=15.0\n", - "\n", - "#Calculations\n", - "I1=100.0*Ib\n", - "R2=UTP/I1\n", - "R1=((Vcc-1)-5)/I1\n", - "\n", - "#Results\n", - "print('The value of R1= %.2f kohm ' %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R1= 180.00 kohm \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 14.14, Page No 630" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=15.0\n", - "Vsat=Vcc\n", - "R2=150.0*10**3\n", - "Vf=0.7\n", - "R1=27.0*10**3\n", - "R3=120.0*10**3\n", - "\n", - "#Calculations\n", - "I2=(Vsat-Vf)/R2\n", - "UTP=I2*R1\n", - "\n", - "#Results\n", - "print(\" LTP calculation including Vf\")\n", - "I3=(Vsat-Vf)/R3\n", - "LTP=-I3*R1\n", - "print('The value of LTP= %.2f kohm ' %(LTP))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " LTP calculation including Vf\n", - "The value of LTP= -3.22 kohm \n" - ] - } - ], - "prompt_number": 14 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter15.ipynb b/Electronic_Devices_and_Circuits/Chapter15.ipynb deleted file mode 100755 index db5e05e2..00000000 --- a/Electronic_Devices_and_Circuits/Chapter15.ipynb +++ /dev/null @@ -1,282 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 15 : Operational amplifier frequency\n", - "Response and compensation" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.2, Page No 648" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R2=1.0*10**6\n", - "Acl=4.5\n", - "\n", - "#Calculations\n", - "R1=R2/Acl\n", - "R1=220*10**3#use standard value\n", - "R3=(R1*R2)/(R1+R2)\n", - "Cf=((R1*30*10**-12)/(R1+R2))*10**12\n", - "\n", - "#Results\n", - "print(\" suitable value of capacitor is %.2fpF \" %Cf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable value of capacitor is 5.41pF \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.3, Page No 649" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=35.0*10**3\n", - "Rf=68.0*10**3\n", - "\n", - "#Calculations\n", - "Cf=(1.0/(2*3.14*f*Rf))*10**12\n", - "\n", - "#Results\n", - "print(\" suitable miller effect capacitor is %.2f pF \" %Cf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable miller effect capacitor is 66.91 pF \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.5 Page No 652" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Acl=100.0\n", - "Av=10.0\n", - "print(\" for Cf=30pF\")\n", - "GBW=800.0*10**3\n", - "\n", - "#Calculations\n", - "F2=GBW/Acl\n", - "print(\" for Cf=3pF\")\n", - "GBW=(800*10**3)*Av\n", - "f2=GBW/Acl\n", - "\n", - "#Results\n", - "print(\" The value of f2 is %.2f pF \" %(f2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Cf=30pF\n", - " for Cf=3pF\n", - " The value of f2 is 80.00 pF \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.6, Page No 654" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vip=1.0\n", - "R2=39.0*10**3\n", - "R3=4.7*10**3\n", - "SR=250.0/10**-6\n", - "f=100.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" for the AD843\")\n", - "Vop=((R2+R3)/R3)*Vip\n", - "fp=SR/(2*3.14*Vop)\n", - "print(\"full power bandwidth is %dHz \" %fp)\n", - "print(\" for a 741\")\n", - "SR=0.5/10**-6\n", - "Vp=SR/(2*3.14*f)\n", - "\n", - "#Results\n", - "print(\" maximum peak output voltage is %3.2fV \" %Vp)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for the AD843\n", - "full power bandwidth is 4281508Hz \n", - " for a 741\n", - " maximum peak output voltage is 0.80V \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.7 Page No 656" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "R1=1.0*10**3\n", - "R2=10.0*10**3\n", - "f=800.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" stray capacitance\")\n", - "Cs=1/(2*3.14*f*10*(((rs+R1)*R2)/(rs+R1+R2)))\n", - "print(\"compensation capacitor\")\n", - "C2=((Cs*(rs+R1))/R2)*10**12\n", - "\n", - "#Results\n", - "print(\"compensation capacitor is %.2fpF \" %C2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " stray capacitance\n", - "compensation capacitor\n", - "compensation capacitor is 2.31pF \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.8 Page No 659" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "ro=25.0\n", - "f=2.0*10**6\n", - "R2=10.0*10**3\n", - "Rx=25.0\n", - "\n", - "#Calculations\n", - "Cl=(1.0/(2.0*3.14*f*(10*ro)))*10**+12\n", - "print(\" load capacitance is %3.2fpF \" %Cl)\n", - "Cl=0.1*10**-6\n", - "C2=((Cl*(ro+Rx))/R2)*10**12\n", - "\n", - "#Results\n", - "print(\" compensation capacitance is %.2f pF \" %C2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " load capacitance is 318.47pF \n", - " compensation capacitance is 500.00 pF \n" - ] - } - ], - "prompt_number": 14 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter15_1.ipynb b/Electronic_Devices_and_Circuits/Chapter15_1.ipynb deleted file mode 100755 index db5e05e2..00000000 --- a/Electronic_Devices_and_Circuits/Chapter15_1.ipynb +++ /dev/null @@ -1,282 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 15 : Operational amplifier frequency\n", - "Response and compensation" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.2, Page No 648" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R2=1.0*10**6\n", - "Acl=4.5\n", - "\n", - "#Calculations\n", - "R1=R2/Acl\n", - "R1=220*10**3#use standard value\n", - "R3=(R1*R2)/(R1+R2)\n", - "Cf=((R1*30*10**-12)/(R1+R2))*10**12\n", - "\n", - "#Results\n", - "print(\" suitable value of capacitor is %.2fpF \" %Cf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable value of capacitor is 5.41pF \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.3, Page No 649" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=35.0*10**3\n", - "Rf=68.0*10**3\n", - "\n", - "#Calculations\n", - "Cf=(1.0/(2*3.14*f*Rf))*10**12\n", - "\n", - "#Results\n", - "print(\" suitable miller effect capacitor is %.2f pF \" %Cf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable miller effect capacitor is 66.91 pF \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.5 Page No 652" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Acl=100.0\n", - "Av=10.0\n", - "print(\" for Cf=30pF\")\n", - "GBW=800.0*10**3\n", - "\n", - "#Calculations\n", - "F2=GBW/Acl\n", - "print(\" for Cf=3pF\")\n", - "GBW=(800*10**3)*Av\n", - "f2=GBW/Acl\n", - "\n", - "#Results\n", - "print(\" The value of f2 is %.2f pF \" %(f2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Cf=30pF\n", - " for Cf=3pF\n", - " The value of f2 is 80.00 pF \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.6, Page No 654" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vip=1.0\n", - "R2=39.0*10**3\n", - "R3=4.7*10**3\n", - "SR=250.0/10**-6\n", - "f=100.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" for the AD843\")\n", - "Vop=((R2+R3)/R3)*Vip\n", - "fp=SR/(2*3.14*Vop)\n", - "print(\"full power bandwidth is %dHz \" %fp)\n", - "print(\" for a 741\")\n", - "SR=0.5/10**-6\n", - "Vp=SR/(2*3.14*f)\n", - "\n", - "#Results\n", - "print(\" maximum peak output voltage is %3.2fV \" %Vp)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for the AD843\n", - "full power bandwidth is 4281508Hz \n", - " for a 741\n", - " maximum peak output voltage is 0.80V \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.7 Page No 656" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "R1=1.0*10**3\n", - "R2=10.0*10**3\n", - "f=800.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" stray capacitance\")\n", - "Cs=1/(2*3.14*f*10*(((rs+R1)*R2)/(rs+R1+R2)))\n", - "print(\"compensation capacitor\")\n", - "C2=((Cs*(rs+R1))/R2)*10**12\n", - "\n", - "#Results\n", - "print(\"compensation capacitor is %.2fpF \" %C2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " stray capacitance\n", - "compensation capacitor\n", - "compensation capacitor is 2.31pF \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.8 Page No 659" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "ro=25.0\n", - "f=2.0*10**6\n", - "R2=10.0*10**3\n", - "Rx=25.0\n", - "\n", - "#Calculations\n", - "Cl=(1.0/(2.0*3.14*f*(10*ro)))*10**+12\n", - "print(\" load capacitance is %3.2fpF \" %Cl)\n", - "Cl=0.1*10**-6\n", - "C2=((Cl*(ro+Rx))/R2)*10**12\n", - "\n", - "#Results\n", - "print(\" compensation capacitance is %.2f pF \" %C2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " load capacitance is 318.47pF \n", - " compensation capacitance is 500.00 pF \n" - ] - } - ], - "prompt_number": 14 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter15_2.ipynb b/Electronic_Devices_and_Circuits/Chapter15_2.ipynb deleted file mode 100755 index db5e05e2..00000000 --- a/Electronic_Devices_and_Circuits/Chapter15_2.ipynb +++ /dev/null @@ -1,282 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 15 : Operational amplifier frequency\n", - "Response and compensation" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.2, Page No 648" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R2=1.0*10**6\n", - "Acl=4.5\n", - "\n", - "#Calculations\n", - "R1=R2/Acl\n", - "R1=220*10**3#use standard value\n", - "R3=(R1*R2)/(R1+R2)\n", - "Cf=((R1*30*10**-12)/(R1+R2))*10**12\n", - "\n", - "#Results\n", - "print(\" suitable value of capacitor is %.2fpF \" %Cf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable value of capacitor is 5.41pF \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.3, Page No 649" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=35.0*10**3\n", - "Rf=68.0*10**3\n", - "\n", - "#Calculations\n", - "Cf=(1.0/(2*3.14*f*Rf))*10**12\n", - "\n", - "#Results\n", - "print(\" suitable miller effect capacitor is %.2f pF \" %Cf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable miller effect capacitor is 66.91 pF \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.5 Page No 652" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Acl=100.0\n", - "Av=10.0\n", - "print(\" for Cf=30pF\")\n", - "GBW=800.0*10**3\n", - "\n", - "#Calculations\n", - "F2=GBW/Acl\n", - "print(\" for Cf=3pF\")\n", - "GBW=(800*10**3)*Av\n", - "f2=GBW/Acl\n", - "\n", - "#Results\n", - "print(\" The value of f2 is %.2f pF \" %(f2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Cf=30pF\n", - " for Cf=3pF\n", - " The value of f2 is 80.00 pF \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.6, Page No 654" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vip=1.0\n", - "R2=39.0*10**3\n", - "R3=4.7*10**3\n", - "SR=250.0/10**-6\n", - "f=100.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" for the AD843\")\n", - "Vop=((R2+R3)/R3)*Vip\n", - "fp=SR/(2*3.14*Vop)\n", - "print(\"full power bandwidth is %dHz \" %fp)\n", - "print(\" for a 741\")\n", - "SR=0.5/10**-6\n", - "Vp=SR/(2*3.14*f)\n", - "\n", - "#Results\n", - "print(\" maximum peak output voltage is %3.2fV \" %Vp)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for the AD843\n", - "full power bandwidth is 4281508Hz \n", - " for a 741\n", - " maximum peak output voltage is 0.80V \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.7 Page No 656" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "R1=1.0*10**3\n", - "R2=10.0*10**3\n", - "f=800.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" stray capacitance\")\n", - "Cs=1/(2*3.14*f*10*(((rs+R1)*R2)/(rs+R1+R2)))\n", - "print(\"compensation capacitor\")\n", - "C2=((Cs*(rs+R1))/R2)*10**12\n", - "\n", - "#Results\n", - "print(\"compensation capacitor is %.2fpF \" %C2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " stray capacitance\n", - "compensation capacitor\n", - "compensation capacitor is 2.31pF \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 15.8 Page No 659" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "ro=25.0\n", - "f=2.0*10**6\n", - "R2=10.0*10**3\n", - "Rx=25.0\n", - "\n", - "#Calculations\n", - "Cl=(1.0/(2.0*3.14*f*(10*ro)))*10**+12\n", - "print(\" load capacitance is %3.2fpF \" %Cl)\n", - "Cl=0.1*10**-6\n", - "C2=((Cl*(ro+Rx))/R2)*10**12\n", - "\n", - "#Results\n", - "print(\" compensation capacitance is %.2f pF \" %C2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " load capacitance is 318.47pF \n", - " compensation capacitance is 500.00 pF \n" - ] - } - ], - "prompt_number": 14 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter16.ipynb b/Electronic_Devices_and_Circuits/Chapter16.ipynb deleted file mode 100755 index 9d8b3b5f..00000000 --- a/Electronic_Devices_and_Circuits/Chapter16.ipynb +++ /dev/null @@ -1,581 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 16 : Signal generators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.1, Page No 668" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=10.0\n", - "Ib=500.0*10**-9\n", - "Acl=29.0\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" phase shift oscillator\")\n", - "I1=100*Ib\n", - "vo=Vcc-1\n", - "vi=vo/Acl\n", - "R1=vi/I1\n", - "R1=5.6*10**3#use standard value 5.6Kohm\n", - "R2=Acl*R1\n", - "R2=180*10**3#use satndard value 180Kohm to give Acl>180\n", - "R3=R2R=R1\n", - "C=1.0/(2*3.14*R3*f*math.sqrt(6))\n", - "\n", - "#Results\n", - "print(\"The value of C = %.2f \" %(C*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " phase shift oscillator\n", - "The value of C = 11.61 \n" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.2, Page No 672" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=40.0*10**3\n", - "L=100.0*10**-3\n", - "vp=8.0\n", - "\n", - "#Calculations\n", - "print(\"colpitts oscillator\")\n", - "Ct=1/(4*3.14*3.14*(f**2)*L)\n", - "C1=10*Ct\n", - "C2=1/((1/Ct)-(1/C1))\n", - "C2=180*10**-12#use standard value\n", - "Xc2=1/(2*3.14*f*C2)\n", - "Xc1=1/(2*3.14*f*C1)\n", - "R1=10*Xc1\n", - "R1=27*10**3#use standard value\n", - "Acl=C1/C2\n", - "R2=Acl*R1\n", - "R2=270*10**3#use stabdard value\n", - "R3=(R1*R2)/(R1+R2)\n", - "f2=Acl*f\n", - "SR=2*3.14*f*vp\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "colpitts oscillator\n", - "The value of SR is 2009.60 \n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.3 Page No 678" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "vo=8.0\n", - "f=100.0*10**3\n", - "print(\" hartley oscillator\")\n", - "Vcc=vo+1\n", - "Xl2=1.0*10**3\n", - "\n", - "#Calculations\n", - "L2=Xl2/(2*3.14*f)\n", - "L2=1.5*10**-3#use standard value\n", - "L1=L2/10.0\n", - "Lt=L1+L2#(assuming M=0)\n", - "C1=1/(4*(3.14**2)*(f**2)*Lt)\n", - "C1=1500*10**-12#use 1500pF with aadditional parallel capacitance if necessary\n", - "#C1>>stray capacitance\n", - "Xl1=2*3.14*f*L1#R1>>Xl1\n", - "R1=1*10**3\n", - "Acl=L2/L1\n", - "R2=Acl*R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "print(\"full power bandwidth \")\n", - "f2=Acl*f\n", - "SR=2*3.14*f*vo\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " hartley oscillator\n", - "full power bandwidth \n", - "The value of SR is 5024.00 \n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.4, Page No 680" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=100.0*10**3\n", - "Vo=9.0\n", - "Acl=3.0\n", - "\n", - "#Calculations\n", - "print(\" design of wein bridge oscillator\")\n", - "Vcc=Vo+1\n", - "C1=1000.0*10**-12#standard value\n", - "C2=C1\n", - "R1=1.0/(2*3.14*f*C1)\n", - "R2=R1\n", - "R4=R2\n", - "R3=2*R4\n", - "R3=3.3*10**3#use standard value\n", - "print(\" minimum full power bandwidth\")\n", - "f2=Acl*f\n", - "SR=2*3.14*f*Vo\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " design of wein bridge oscillator\n", - " minimum full power bandwidth\n", - "The value of SR is 5652.00 \n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.5 Page No 683" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=5.0*10**3\n", - "vo=5.0\n", - "I1=1.0*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "print(\"phase shift oscillator\")\n", - "R1=(vo/29.0)/I1\n", - "R1=150#use standard value\n", - "R2=29*R1\n", - "R4=(2*Vf)/I1\n", - "R4=1.5*10**3#use 1.5kohm standard value\n", - "R5=R2-R4\n", - "R6=.4*R5\n", - "R7=.8*R5\n", - "R=R1\n", - "C=1.0/(2*3.14*R*f*math.sqrt(6))\n", - "\n", - "#Results\n", - "print(\"The value of C is %.2f mF\" %(C*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "phase shift oscillator\n", - "The value of C is 86.68 mF\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.6 Page No 686" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "rds=600.0\n", - "Vgs=1.0\n", - "Vd1=0.7\n", - "f=100.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"wien bridge ocillator\")\n", - "R4=560.0\n", - "R3=2*((R4*rds)/(R4+rds))\n", - "I5=200.0*10**-6\n", - "Vo=6\n", - "R6=Vgs/I5\n", - "R5=(Vo-(Vgs+Vd1))/I5\n", - "print(\" C4 discharge voltage \")\n", - "Vc=.1*Vgs\n", - "print(\"C4 discharge time\")\n", - "T=1/f\n", - "Ic=I5\n", - "C4=(Ic*T)/Vc\n", - "Xc3=rds/10#at oscillating frequency\n", - "C3=1/(2*3.14*f*Xc3)\n", - "\n", - "#Results\n", - "print(\"The value of C3 is %.2f mF\" %(C3*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "wien bridge ocillator\n", - " C4 discharge voltage \n", - "C4 discharge time\n", - "The value of C3 is 26.54 mF\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.7, Page No 689" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vo=14.0\n", - "Vr3=.5\n", - "Ib=500.0*10**-9\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"square wave generator\")\n", - "Vcc=Vo+1\n", - "UTP=Vr3\n", - "LTP=UTP\n", - "I2=100*Ib\n", - "R3=Vr3/I2\n", - "R2=(Vo-Vr3)/I2\n", - "t=1/(2*f)\n", - "V=UTP-(-LTP)\n", - "C1=.1*10**-6\n", - "I1=(C1*V)/t\n", - "R1=Vo/I1\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %.2f kohm\" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "square wave generator\n", - "The value of R1 is 70.00 kohm\n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.8 Page No 694" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "R1=2.2*10**3\n", - "R2=2.7*10**3\n", - "C2=.5*10**-6\n", - "Vcc=15.0\n", - "\n", - "#Calculations\n", - "t1=.693*C2*(R1+R2)\n", - "t2=.693*C2*R2\n", - "T=t1+t2\n", - "f=1/T\n", - "Ic1=(Vcc/3)/(R1+R2)\n", - "\n", - "#Results\n", - "print(\"The value of Ic1 is %.2f mA\" %(Ic1*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ic1 is 1.02 mA\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.10 Page No 699" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=9.0\n", - "Vo=3\n", - "I1=1.0*10**-3\n", - "f=500.0\n", - "UTP=3.0\n", - "\n", - "#Calculations\n", - "print(\"design the triangular wave\")\n", - "Vi=Vcc-1\n", - "V=Vo-(-Vo)\n", - "print(\" I1>>Ibmax for op-amp\")\n", - "R1=Vi/I1\n", - "t=1.0/(2*f)\n", - "C1=(I1*t)/V\n", - "print(\"schmitt design\")\n", - "I2=1.0*10**-3\n", - "R2=UTP/I2\n", - "R3=(Vcc-1)/I2\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "design the triangular wave\n", - " I1>>Ibmax for op-amp\n", - "schmitt design\n", - "The value of R3 is 8.00 kohm\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.11 Page No 705" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=100.0*10**3\n", - "Rs=1.5*10**3\n", - "R1=2.0*Rs\n", - "\n", - "\n", - "#Calculations\n", - "R1=2.7*10**3#use standard value\n", - "R2=R1+Rs\n", - "C1=1/(2*3.14*f*R2)\n", - "R4=R2\n", - "R3=2*R4\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3 is 8.40 kohm\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.12, Page No 705" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "fs=1.0*10**6\n", - "Rs=700.0\n", - "C1=1000.0*10**-12\n", - "C2=100.0*10**-12\n", - "R1=1.0*10**6\n", - "R2=10.0*10**3\n", - "Rs=700.0\n", - "Vdd=5\n", - "\n", - "#Calculations\n", - "Ct=(C1*C2)/(C1+C2)\n", - "print(\" at resonance Xl=Xct 2*pi*f*L=1/2*pi*f*Ct\")\n", - "L=1/(((2*3.14*f)**2)*Ct)\n", - "ip=Vdd/(R1+R2+Rs)\n", - "Pd=(((.707*ip)**2)*Rs)*10**9\n", - "\n", - "#Results\n", - "print(\" peak power dissipated is %.3fnW \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " at resonance Xl=Xct 2*pi*f*L=1/2*pi*f*Ct\n", - " peak power dissipated is 8.563nW \n" - ] - } - ], - "prompt_number": 38 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter16_1.ipynb b/Electronic_Devices_and_Circuits/Chapter16_1.ipynb deleted file mode 100755 index 9d8b3b5f..00000000 --- a/Electronic_Devices_and_Circuits/Chapter16_1.ipynb +++ /dev/null @@ -1,581 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 16 : Signal generators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.1, Page No 668" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=10.0\n", - "Ib=500.0*10**-9\n", - "Acl=29.0\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" phase shift oscillator\")\n", - "I1=100*Ib\n", - "vo=Vcc-1\n", - "vi=vo/Acl\n", - "R1=vi/I1\n", - "R1=5.6*10**3#use standard value 5.6Kohm\n", - "R2=Acl*R1\n", - "R2=180*10**3#use satndard value 180Kohm to give Acl>180\n", - "R3=R2R=R1\n", - "C=1.0/(2*3.14*R3*f*math.sqrt(6))\n", - "\n", - "#Results\n", - "print(\"The value of C = %.2f \" %(C*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " phase shift oscillator\n", - "The value of C = 11.61 \n" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.2, Page No 672" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=40.0*10**3\n", - "L=100.0*10**-3\n", - "vp=8.0\n", - "\n", - "#Calculations\n", - "print(\"colpitts oscillator\")\n", - "Ct=1/(4*3.14*3.14*(f**2)*L)\n", - "C1=10*Ct\n", - "C2=1/((1/Ct)-(1/C1))\n", - "C2=180*10**-12#use standard value\n", - "Xc2=1/(2*3.14*f*C2)\n", - "Xc1=1/(2*3.14*f*C1)\n", - "R1=10*Xc1\n", - "R1=27*10**3#use standard value\n", - "Acl=C1/C2\n", - "R2=Acl*R1\n", - "R2=270*10**3#use stabdard value\n", - "R3=(R1*R2)/(R1+R2)\n", - "f2=Acl*f\n", - "SR=2*3.14*f*vp\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "colpitts oscillator\n", - "The value of SR is 2009.60 \n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.3 Page No 678" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "vo=8.0\n", - "f=100.0*10**3\n", - "print(\" hartley oscillator\")\n", - "Vcc=vo+1\n", - "Xl2=1.0*10**3\n", - "\n", - "#Calculations\n", - "L2=Xl2/(2*3.14*f)\n", - "L2=1.5*10**-3#use standard value\n", - "L1=L2/10.0\n", - "Lt=L1+L2#(assuming M=0)\n", - "C1=1/(4*(3.14**2)*(f**2)*Lt)\n", - "C1=1500*10**-12#use 1500pF with aadditional parallel capacitance if necessary\n", - "#C1>>stray capacitance\n", - "Xl1=2*3.14*f*L1#R1>>Xl1\n", - "R1=1*10**3\n", - "Acl=L2/L1\n", - "R2=Acl*R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "print(\"full power bandwidth \")\n", - "f2=Acl*f\n", - "SR=2*3.14*f*vo\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " hartley oscillator\n", - "full power bandwidth \n", - "The value of SR is 5024.00 \n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.4, Page No 680" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=100.0*10**3\n", - "Vo=9.0\n", - "Acl=3.0\n", - "\n", - "#Calculations\n", - "print(\" design of wein bridge oscillator\")\n", - "Vcc=Vo+1\n", - "C1=1000.0*10**-12#standard value\n", - "C2=C1\n", - "R1=1.0/(2*3.14*f*C1)\n", - "R2=R1\n", - "R4=R2\n", - "R3=2*R4\n", - "R3=3.3*10**3#use standard value\n", - "print(\" minimum full power bandwidth\")\n", - "f2=Acl*f\n", - "SR=2*3.14*f*Vo\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " design of wein bridge oscillator\n", - " minimum full power bandwidth\n", - "The value of SR is 5652.00 \n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.5 Page No 683" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=5.0*10**3\n", - "vo=5.0\n", - "I1=1.0*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "print(\"phase shift oscillator\")\n", - "R1=(vo/29.0)/I1\n", - "R1=150#use standard value\n", - "R2=29*R1\n", - "R4=(2*Vf)/I1\n", - "R4=1.5*10**3#use 1.5kohm standard value\n", - "R5=R2-R4\n", - "R6=.4*R5\n", - "R7=.8*R5\n", - "R=R1\n", - "C=1.0/(2*3.14*R*f*math.sqrt(6))\n", - "\n", - "#Results\n", - "print(\"The value of C is %.2f mF\" %(C*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "phase shift oscillator\n", - "The value of C is 86.68 mF\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.6 Page No 686" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "rds=600.0\n", - "Vgs=1.0\n", - "Vd1=0.7\n", - "f=100.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"wien bridge ocillator\")\n", - "R4=560.0\n", - "R3=2*((R4*rds)/(R4+rds))\n", - "I5=200.0*10**-6\n", - "Vo=6\n", - "R6=Vgs/I5\n", - "R5=(Vo-(Vgs+Vd1))/I5\n", - "print(\" C4 discharge voltage \")\n", - "Vc=.1*Vgs\n", - "print(\"C4 discharge time\")\n", - "T=1/f\n", - "Ic=I5\n", - "C4=(Ic*T)/Vc\n", - "Xc3=rds/10#at oscillating frequency\n", - "C3=1/(2*3.14*f*Xc3)\n", - "\n", - "#Results\n", - "print(\"The value of C3 is %.2f mF\" %(C3*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "wien bridge ocillator\n", - " C4 discharge voltage \n", - "C4 discharge time\n", - "The value of C3 is 26.54 mF\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.7, Page No 689" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vo=14.0\n", - "Vr3=.5\n", - "Ib=500.0*10**-9\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"square wave generator\")\n", - "Vcc=Vo+1\n", - "UTP=Vr3\n", - "LTP=UTP\n", - "I2=100*Ib\n", - "R3=Vr3/I2\n", - "R2=(Vo-Vr3)/I2\n", - "t=1/(2*f)\n", - "V=UTP-(-LTP)\n", - "C1=.1*10**-6\n", - "I1=(C1*V)/t\n", - "R1=Vo/I1\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %.2f kohm\" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "square wave generator\n", - "The value of R1 is 70.00 kohm\n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.8 Page No 694" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "R1=2.2*10**3\n", - "R2=2.7*10**3\n", - "C2=.5*10**-6\n", - "Vcc=15.0\n", - "\n", - "#Calculations\n", - "t1=.693*C2*(R1+R2)\n", - "t2=.693*C2*R2\n", - "T=t1+t2\n", - "f=1/T\n", - "Ic1=(Vcc/3)/(R1+R2)\n", - "\n", - "#Results\n", - "print(\"The value of Ic1 is %.2f mA\" %(Ic1*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ic1 is 1.02 mA\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.10 Page No 699" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=9.0\n", - "Vo=3\n", - "I1=1.0*10**-3\n", - "f=500.0\n", - "UTP=3.0\n", - "\n", - "#Calculations\n", - "print(\"design the triangular wave\")\n", - "Vi=Vcc-1\n", - "V=Vo-(-Vo)\n", - "print(\" I1>>Ibmax for op-amp\")\n", - "R1=Vi/I1\n", - "t=1.0/(2*f)\n", - "C1=(I1*t)/V\n", - "print(\"schmitt design\")\n", - "I2=1.0*10**-3\n", - "R2=UTP/I2\n", - "R3=(Vcc-1)/I2\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "design the triangular wave\n", - " I1>>Ibmax for op-amp\n", - "schmitt design\n", - "The value of R3 is 8.00 kohm\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.11 Page No 705" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=100.0*10**3\n", - "Rs=1.5*10**3\n", - "R1=2.0*Rs\n", - "\n", - "\n", - "#Calculations\n", - "R1=2.7*10**3#use standard value\n", - "R2=R1+Rs\n", - "C1=1/(2*3.14*f*R2)\n", - "R4=R2\n", - "R3=2*R4\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3 is 8.40 kohm\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.12, Page No 705" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "fs=1.0*10**6\n", - "Rs=700.0\n", - "C1=1000.0*10**-12\n", - "C2=100.0*10**-12\n", - "R1=1.0*10**6\n", - "R2=10.0*10**3\n", - "Rs=700.0\n", - "Vdd=5\n", - "\n", - "#Calculations\n", - "Ct=(C1*C2)/(C1+C2)\n", - "print(\" at resonance Xl=Xct 2*pi*f*L=1/2*pi*f*Ct\")\n", - "L=1/(((2*3.14*f)**2)*Ct)\n", - "ip=Vdd/(R1+R2+Rs)\n", - "Pd=(((.707*ip)**2)*Rs)*10**9\n", - "\n", - "#Results\n", - "print(\" peak power dissipated is %.3fnW \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " at resonance Xl=Xct 2*pi*f*L=1/2*pi*f*Ct\n", - " peak power dissipated is 8.563nW \n" - ] - } - ], - "prompt_number": 38 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter16_2.ipynb b/Electronic_Devices_and_Circuits/Chapter16_2.ipynb deleted file mode 100755 index 9d8b3b5f..00000000 --- a/Electronic_Devices_and_Circuits/Chapter16_2.ipynb +++ /dev/null @@ -1,581 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 16 : Signal generators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.1, Page No 668" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=10.0\n", - "Ib=500.0*10**-9\n", - "Acl=29.0\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" phase shift oscillator\")\n", - "I1=100*Ib\n", - "vo=Vcc-1\n", - "vi=vo/Acl\n", - "R1=vi/I1\n", - "R1=5.6*10**3#use standard value 5.6Kohm\n", - "R2=Acl*R1\n", - "R2=180*10**3#use satndard value 180Kohm to give Acl>180\n", - "R3=R2R=R1\n", - "C=1.0/(2*3.14*R3*f*math.sqrt(6))\n", - "\n", - "#Results\n", - "print(\"The value of C = %.2f \" %(C*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " phase shift oscillator\n", - "The value of C = 11.61 \n" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.2, Page No 672" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=40.0*10**3\n", - "L=100.0*10**-3\n", - "vp=8.0\n", - "\n", - "#Calculations\n", - "print(\"colpitts oscillator\")\n", - "Ct=1/(4*3.14*3.14*(f**2)*L)\n", - "C1=10*Ct\n", - "C2=1/((1/Ct)-(1/C1))\n", - "C2=180*10**-12#use standard value\n", - "Xc2=1/(2*3.14*f*C2)\n", - "Xc1=1/(2*3.14*f*C1)\n", - "R1=10*Xc1\n", - "R1=27*10**3#use standard value\n", - "Acl=C1/C2\n", - "R2=Acl*R1\n", - "R2=270*10**3#use stabdard value\n", - "R3=(R1*R2)/(R1+R2)\n", - "f2=Acl*f\n", - "SR=2*3.14*f*vp\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "colpitts oscillator\n", - "The value of SR is 2009.60 \n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.3 Page No 678" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "vo=8.0\n", - "f=100.0*10**3\n", - "print(\" hartley oscillator\")\n", - "Vcc=vo+1\n", - "Xl2=1.0*10**3\n", - "\n", - "#Calculations\n", - "L2=Xl2/(2*3.14*f)\n", - "L2=1.5*10**-3#use standard value\n", - "L1=L2/10.0\n", - "Lt=L1+L2#(assuming M=0)\n", - "C1=1/(4*(3.14**2)*(f**2)*Lt)\n", - "C1=1500*10**-12#use 1500pF with aadditional parallel capacitance if necessary\n", - "#C1>>stray capacitance\n", - "Xl1=2*3.14*f*L1#R1>>Xl1\n", - "R1=1*10**3\n", - "Acl=L2/L1\n", - "R2=Acl*R1\n", - "R3=(R1*R2)/(R1+R2)\n", - "print(\"full power bandwidth \")\n", - "f2=Acl*f\n", - "SR=2*3.14*f*vo\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " hartley oscillator\n", - "full power bandwidth \n", - "The value of SR is 5024.00 \n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.4, Page No 680" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=100.0*10**3\n", - "Vo=9.0\n", - "Acl=3.0\n", - "\n", - "#Calculations\n", - "print(\" design of wein bridge oscillator\")\n", - "Vcc=Vo+1\n", - "C1=1000.0*10**-12#standard value\n", - "C2=C1\n", - "R1=1.0/(2*3.14*f*C1)\n", - "R2=R1\n", - "R4=R2\n", - "R3=2*R4\n", - "R3=3.3*10**3#use standard value\n", - "print(\" minimum full power bandwidth\")\n", - "f2=Acl*f\n", - "SR=2*3.14*f*Vo\n", - "\n", - "#Results\n", - "print(\"The value of SR is %.2f \" %(SR/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " design of wein bridge oscillator\n", - " minimum full power bandwidth\n", - "The value of SR is 5652.00 \n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.5 Page No 683" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=5.0*10**3\n", - "vo=5.0\n", - "I1=1.0*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "print(\"phase shift oscillator\")\n", - "R1=(vo/29.0)/I1\n", - "R1=150#use standard value\n", - "R2=29*R1\n", - "R4=(2*Vf)/I1\n", - "R4=1.5*10**3#use 1.5kohm standard value\n", - "R5=R2-R4\n", - "R6=.4*R5\n", - "R7=.8*R5\n", - "R=R1\n", - "C=1.0/(2*3.14*R*f*math.sqrt(6))\n", - "\n", - "#Results\n", - "print(\"The value of C is %.2f mF\" %(C*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "phase shift oscillator\n", - "The value of C is 86.68 mF\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.6 Page No 686" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "rds=600.0\n", - "Vgs=1.0\n", - "Vd1=0.7\n", - "f=100.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"wien bridge ocillator\")\n", - "R4=560.0\n", - "R3=2*((R4*rds)/(R4+rds))\n", - "I5=200.0*10**-6\n", - "Vo=6\n", - "R6=Vgs/I5\n", - "R5=(Vo-(Vgs+Vd1))/I5\n", - "print(\" C4 discharge voltage \")\n", - "Vc=.1*Vgs\n", - "print(\"C4 discharge time\")\n", - "T=1/f\n", - "Ic=I5\n", - "C4=(Ic*T)/Vc\n", - "Xc3=rds/10#at oscillating frequency\n", - "C3=1/(2*3.14*f*Xc3)\n", - "\n", - "#Results\n", - "print(\"The value of C3 is %.2f mF\" %(C3*10**9))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "wien bridge ocillator\n", - " C4 discharge voltage \n", - "C4 discharge time\n", - "The value of C3 is 26.54 mF\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.7, Page No 689" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vo=14.0\n", - "Vr3=.5\n", - "Ib=500.0*10**-9\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\"square wave generator\")\n", - "Vcc=Vo+1\n", - "UTP=Vr3\n", - "LTP=UTP\n", - "I2=100*Ib\n", - "R3=Vr3/I2\n", - "R2=(Vo-Vr3)/I2\n", - "t=1/(2*f)\n", - "V=UTP-(-LTP)\n", - "C1=.1*10**-6\n", - "I1=(C1*V)/t\n", - "R1=Vo/I1\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %.2f kohm\" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "square wave generator\n", - "The value of R1 is 70.00 kohm\n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.8 Page No 694" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "R1=2.2*10**3\n", - "R2=2.7*10**3\n", - "C2=.5*10**-6\n", - "Vcc=15.0\n", - "\n", - "#Calculations\n", - "t1=.693*C2*(R1+R2)\n", - "t2=.693*C2*R2\n", - "T=t1+t2\n", - "f=1/T\n", - "Ic1=(Vcc/3)/(R1+R2)\n", - "\n", - "#Results\n", - "print(\"The value of Ic1 is %.2f mA\" %(Ic1*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ic1 is 1.02 mA\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.10 Page No 699" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=9.0\n", - "Vo=3\n", - "I1=1.0*10**-3\n", - "f=500.0\n", - "UTP=3.0\n", - "\n", - "#Calculations\n", - "print(\"design the triangular wave\")\n", - "Vi=Vcc-1\n", - "V=Vo-(-Vo)\n", - "print(\" I1>>Ibmax for op-amp\")\n", - "R1=Vi/I1\n", - "t=1.0/(2*f)\n", - "C1=(I1*t)/V\n", - "print(\"schmitt design\")\n", - "I2=1.0*10**-3\n", - "R2=UTP/I2\n", - "R3=(Vcc-1)/I2\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "design the triangular wave\n", - " I1>>Ibmax for op-amp\n", - "schmitt design\n", - "The value of R3 is 8.00 kohm\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.11 Page No 705" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "f=100.0*10**3\n", - "Rs=1.5*10**3\n", - "R1=2.0*Rs\n", - "\n", - "\n", - "#Calculations\n", - "R1=2.7*10**3#use standard value\n", - "R2=R1+Rs\n", - "C1=1/(2*3.14*f*R2)\n", - "R4=R2\n", - "R3=2*R4\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R3 is 8.40 kohm\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 16.12, Page No 705" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "fs=1.0*10**6\n", - "Rs=700.0\n", - "C1=1000.0*10**-12\n", - "C2=100.0*10**-12\n", - "R1=1.0*10**6\n", - "R2=10.0*10**3\n", - "Rs=700.0\n", - "Vdd=5\n", - "\n", - "#Calculations\n", - "Ct=(C1*C2)/(C1+C2)\n", - "print(\" at resonance Xl=Xct 2*pi*f*L=1/2*pi*f*Ct\")\n", - "L=1/(((2*3.14*f)**2)*Ct)\n", - "ip=Vdd/(R1+R2+Rs)\n", - "Pd=(((.707*ip)**2)*Rs)*10**9\n", - "\n", - "#Results\n", - "print(\" peak power dissipated is %.3fnW \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " at resonance Xl=Xct 2*pi*f*L=1/2*pi*f*Ct\n", - " peak power dissipated is 8.563nW \n" - ] - } - ], - "prompt_number": 38 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter17.ipynb b/Electronic_Devices_and_Circuits/Chapter17.ipynb deleted file mode 100755 index 0bf01537..00000000 --- a/Electronic_Devices_and_Circuits/Chapter17.ipynb +++ /dev/null @@ -1,560 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 17 : Active filters" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.1, Page No 716" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "R1=12.0*10**3\n", - "Rl=100.0*10**3\n", - "C1=0.013*10**-6\n", - "\n", - "#Calculations\n", - "print(\"when Rl is not connected\")\n", - "fc=1.0/(2*3.14*R1*C1)\n", - "print(\" when Rl is connected\")\n", - "fc=1.0/(2*3.14*((R1*Rl)/(R1+Rl))*C1)\n", - "Attn=3#at fc attenuation is =3dB\n", - "falloffrate=6\n", - "print(\"attenuation at 2fc\")\n", - "Attn=3+6\n", - "print(\"attenuation at 2fc is %ddB \" %Attn)\n", - "Attn=3+6+6\n", - "\n", - "#Results\n", - "print(\" attenuation at 4fc is %ddB \" %Attn)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Rl is not connected\n", - " when Rl is connected\n", - "attenuation at 2fc\n", - "attenuation at 2fc is 9dB \n", - " attenuation at 4fc is 15dB \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.2, Page No 718" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ib=500.0*10**-9\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "R1=(70.0*10**-3)/Ib\n", - "R1=140*10**3#use standard value\n", - "R2=R1\n", - "C1=(1/(2*3.14*R1*f))*10**12\n", - "\n", - "#Results\n", - "print(\" capacitor used is of %.2f pF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " capacitor used is of 1137.40 pF \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.3 Page No 719" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "print(\"first order high pass active filter\")\n", - "f=5.0*10**3\n", - "C1=1000.0*10**-12\n", - "fu=1.0*10**6\n", - "\n", - "#Calculations\n", - "R1=1.0/(2*3.14*f*C1)\n", - "BW=fu-f\n", - "print(\" bandwidth is %.2f kHz \" %(BW/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "first order high pass active filter\n", - " bandwidth is 995.00 kHz \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.4, Page No 724" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=1.0*10**3\n", - "Ib=500.0*10**-9\n", - "print(\"butterworth second order filter\")\n", - "\n", - "#Calculations\n", - "R=(70.0*10**-3)/Ib\n", - "R1=R/2.0\n", - "R1=68.1*10**3#use standard value\n", - "R2=R1 \n", - "R3=2.0*R1\n", - "Xc1=math.sqrt(2)*R2\n", - "C1=1/(2*3.14*f*math.sqrt(2)*R2)\n", - "C2=2*C1\n", - "fc=1/(2*3.14*(math.sqrt(R1*R2*C1*C2)))\n", - "\n", - "#Results\n", - "print(\"actual cutoff frequency is %d kHz \" %(fc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "butterworth second order filter\n", - "actual cutoff frequency is 1 kHz \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.5 Page No 725" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=12.0*10**3\n", - "C1=1000.0*10**-12\n", - "print(\"butterworth second order filter\")\n", - "C2=C1\n", - "\n", - "#Calculations\n", - "R2=(math.sqrt(2))/(2*3.14*f*C1)\n", - "R1=.5*R2\n", - "R3=R2\n", - "fc=1.0/(2*3.14*(math.sqrt(R1*R2*C1*C2)))\n", - "\n", - "#Results\n", - "print(\"actual cutoff frequency is %d KHz \" %(fc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "butterworth second order filter\n", - "actual cutoff frequency is 11 KHz \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.6 Page No 729" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "f=30.0*10**3\n", - "C1=1000.0*10**-12\n", - "print(\" third order low pass filter\")\n", - "print(\"-20 dB per decade stage\")\n", - "\n", - "#Calculations\n", - "fc1=f/.65\n", - "R1=1.0/(2*3.14*fc1*C1)\n", - "R2=R1\n", - "print(\"-40dB per decade stage\")\n", - "C3=1000*10**-12\n", - "C2=2*C3\n", - "fc2=f/.8\n", - "R4=1/(2*3.14*fc2*C3*(math.sqrt(2)))\n", - "R3=R4\n", - "R5=R3+R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " third order low pass filter\n", - "-20 dB per decade stage\n", - "-40dB per decade stage\n", - "The value of R5 is 6.01 kohm\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.7, Page No 730" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=20.0*10**3\n", - "print(\"3rd order high pass filter\")\n", - "print(\"-20dB per decade stage\")\n", - "R1=121.0*10**3\n", - "\n", - "#Calculations\n", - "fc1=.65*f\n", - "C1=1/(2*3.14*fc1*R1)\n", - "#this is so small it might be effected by stray capacitor.redesign %first choosing a suitable capacitance C1\n", - "C1=100*10**-12\n", - "R1=1/(2*3.14*f*C1)\n", - "R2=R1\n", - "print(\"-40dB per decade stage\")\n", - "C3=1000*10**-12\n", - "R4=(math.sqrt(2))/(2*3.14*.8*f*C3)\n", - "C2=C3\n", - "R3=.5*R4\n", - "R5=R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "3rd order high pass filter\n", - "-20dB per decade stage\n", - "-40dB per decade stage\n", - "The value of R5 is 14.07 kohm\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.8 Page No 734" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "f1=300.0\n", - "f2=30.0*10**3\n", - "print(\" single stage band pass filter\")\n", - "\n", - "#Calculations\n", - "C2=1000*10**-12\n", - "R2=1/(2*3.14*f2*C2)\n", - "R1=R2\n", - "Xc1=R1#at voltage gain Av=1\n", - "C1=1/(2*3.14*f1*R1)\n", - "R3=R2\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " single stage band pass filter\n", - "The value of R3 is 5.31 kohm\n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.9 Page No 736" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=300.0\n", - "f2=30.0*10**3\n", - "\n", - "#Calculations\n", - "fo=math.sqrt(f1*f2)\n", - "BW=f2-f1\n", - "Q=fo/BW\n", - "\n", - "#Results\n", - "print(\"The value of Q is %.2f \" %(Q))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Q is 0.10 \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.10 Page No 737" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "R1=60.4*10**3\n", - "R4=1.21*10**3\n", - "C=.012*10**-6\n", - "R2=121.0*10**3\n", - "\n", - "#Calculations\n", - "Q=math.sqrt((R1+R4)/(2*R4))\n", - "fo=Q/(3.14*C*R2)\n", - "print(\" center frequency is %3.2fHz \" %fo)\n", - "BW=fo/Q\n", - "\n", - "#Results\n", - "print(\" bandwidth is %3.1fHz \" %BW)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " center frequency is 1106.68Hz \n", - " bandwidth is 219.3Hz \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.12, Page No 744" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "f1=10.3*10**3\n", - "f2=10.9*10**3\n", - "C1=1000.0*10**-12\n", - "\n", - "#Calculations\n", - "C2=C1\n", - "fo=math.sqrt(f1*f2)\n", - "R5=1.0/(2*3.14*fo*C1)\n", - "R1=R5\n", - "Q=fo/(f2-f1)\n", - "R2=R1*(2*Q-1)\n", - "\n", - "#Results\n", - "print(\"The value of R2 is %.2f kohm\" %(R2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R2 is 515.76 kohm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.13, Page No 750" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f1=10.3*10**3\n", - "f2=10.9*10**3\n", - "Hobp=34\n", - "\n", - "#Calculations\n", - "math.sqrt(f1*f2)\n", - "Q=fo/(f2-f1)\n", - "R3=120.0*10**3\n", - "R2=R3/Q\n", - "R1=R3/Hobp\n", - "k=50*fo\n", - "\n", - "#Results\n", - "print(\"The value of k is %.2f \" %(k/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of k is 529.79 \n" - ] - } - ], - "prompt_number": 27 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter17_1.ipynb b/Electronic_Devices_and_Circuits/Chapter17_1.ipynb deleted file mode 100755 index 0bf01537..00000000 --- a/Electronic_Devices_and_Circuits/Chapter17_1.ipynb +++ /dev/null @@ -1,560 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 17 : Active filters" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.1, Page No 716" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "R1=12.0*10**3\n", - "Rl=100.0*10**3\n", - "C1=0.013*10**-6\n", - "\n", - "#Calculations\n", - "print(\"when Rl is not connected\")\n", - "fc=1.0/(2*3.14*R1*C1)\n", - "print(\" when Rl is connected\")\n", - "fc=1.0/(2*3.14*((R1*Rl)/(R1+Rl))*C1)\n", - "Attn=3#at fc attenuation is =3dB\n", - "falloffrate=6\n", - "print(\"attenuation at 2fc\")\n", - "Attn=3+6\n", - "print(\"attenuation at 2fc is %ddB \" %Attn)\n", - "Attn=3+6+6\n", - "\n", - "#Results\n", - "print(\" attenuation at 4fc is %ddB \" %Attn)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Rl is not connected\n", - " when Rl is connected\n", - "attenuation at 2fc\n", - "attenuation at 2fc is 9dB \n", - " attenuation at 4fc is 15dB \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.2, Page No 718" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ib=500.0*10**-9\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "R1=(70.0*10**-3)/Ib\n", - "R1=140*10**3#use standard value\n", - "R2=R1\n", - "C1=(1/(2*3.14*R1*f))*10**12\n", - "\n", - "#Results\n", - "print(\" capacitor used is of %.2f pF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " capacitor used is of 1137.40 pF \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.3 Page No 719" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "print(\"first order high pass active filter\")\n", - "f=5.0*10**3\n", - "C1=1000.0*10**-12\n", - "fu=1.0*10**6\n", - "\n", - "#Calculations\n", - "R1=1.0/(2*3.14*f*C1)\n", - "BW=fu-f\n", - "print(\" bandwidth is %.2f kHz \" %(BW/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "first order high pass active filter\n", - " bandwidth is 995.00 kHz \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.4, Page No 724" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=1.0*10**3\n", - "Ib=500.0*10**-9\n", - "print(\"butterworth second order filter\")\n", - "\n", - "#Calculations\n", - "R=(70.0*10**-3)/Ib\n", - "R1=R/2.0\n", - "R1=68.1*10**3#use standard value\n", - "R2=R1 \n", - "R3=2.0*R1\n", - "Xc1=math.sqrt(2)*R2\n", - "C1=1/(2*3.14*f*math.sqrt(2)*R2)\n", - "C2=2*C1\n", - "fc=1/(2*3.14*(math.sqrt(R1*R2*C1*C2)))\n", - "\n", - "#Results\n", - "print(\"actual cutoff frequency is %d kHz \" %(fc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "butterworth second order filter\n", - "actual cutoff frequency is 1 kHz \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.5 Page No 725" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=12.0*10**3\n", - "C1=1000.0*10**-12\n", - "print(\"butterworth second order filter\")\n", - "C2=C1\n", - "\n", - "#Calculations\n", - "R2=(math.sqrt(2))/(2*3.14*f*C1)\n", - "R1=.5*R2\n", - "R3=R2\n", - "fc=1.0/(2*3.14*(math.sqrt(R1*R2*C1*C2)))\n", - "\n", - "#Results\n", - "print(\"actual cutoff frequency is %d KHz \" %(fc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "butterworth second order filter\n", - "actual cutoff frequency is 11 KHz \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.6 Page No 729" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "f=30.0*10**3\n", - "C1=1000.0*10**-12\n", - "print(\" third order low pass filter\")\n", - "print(\"-20 dB per decade stage\")\n", - "\n", - "#Calculations\n", - "fc1=f/.65\n", - "R1=1.0/(2*3.14*fc1*C1)\n", - "R2=R1\n", - "print(\"-40dB per decade stage\")\n", - "C3=1000*10**-12\n", - "C2=2*C3\n", - "fc2=f/.8\n", - "R4=1/(2*3.14*fc2*C3*(math.sqrt(2)))\n", - "R3=R4\n", - "R5=R3+R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " third order low pass filter\n", - "-20 dB per decade stage\n", - "-40dB per decade stage\n", - "The value of R5 is 6.01 kohm\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.7, Page No 730" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=20.0*10**3\n", - "print(\"3rd order high pass filter\")\n", - "print(\"-20dB per decade stage\")\n", - "R1=121.0*10**3\n", - "\n", - "#Calculations\n", - "fc1=.65*f\n", - "C1=1/(2*3.14*fc1*R1)\n", - "#this is so small it might be effected by stray capacitor.redesign %first choosing a suitable capacitance C1\n", - "C1=100*10**-12\n", - "R1=1/(2*3.14*f*C1)\n", - "R2=R1\n", - "print(\"-40dB per decade stage\")\n", - "C3=1000*10**-12\n", - "R4=(math.sqrt(2))/(2*3.14*.8*f*C3)\n", - "C2=C3\n", - "R3=.5*R4\n", - "R5=R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "3rd order high pass filter\n", - "-20dB per decade stage\n", - "-40dB per decade stage\n", - "The value of R5 is 14.07 kohm\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.8 Page No 734" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "f1=300.0\n", - "f2=30.0*10**3\n", - "print(\" single stage band pass filter\")\n", - "\n", - "#Calculations\n", - "C2=1000*10**-12\n", - "R2=1/(2*3.14*f2*C2)\n", - "R1=R2\n", - "Xc1=R1#at voltage gain Av=1\n", - "C1=1/(2*3.14*f1*R1)\n", - "R3=R2\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " single stage band pass filter\n", - "The value of R3 is 5.31 kohm\n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.9 Page No 736" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=300.0\n", - "f2=30.0*10**3\n", - "\n", - "#Calculations\n", - "fo=math.sqrt(f1*f2)\n", - "BW=f2-f1\n", - "Q=fo/BW\n", - "\n", - "#Results\n", - "print(\"The value of Q is %.2f \" %(Q))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Q is 0.10 \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.10 Page No 737" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "R1=60.4*10**3\n", - "R4=1.21*10**3\n", - "C=.012*10**-6\n", - "R2=121.0*10**3\n", - "\n", - "#Calculations\n", - "Q=math.sqrt((R1+R4)/(2*R4))\n", - "fo=Q/(3.14*C*R2)\n", - "print(\" center frequency is %3.2fHz \" %fo)\n", - "BW=fo/Q\n", - "\n", - "#Results\n", - "print(\" bandwidth is %3.1fHz \" %BW)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " center frequency is 1106.68Hz \n", - " bandwidth is 219.3Hz \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.12, Page No 744" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "f1=10.3*10**3\n", - "f2=10.9*10**3\n", - "C1=1000.0*10**-12\n", - "\n", - "#Calculations\n", - "C2=C1\n", - "fo=math.sqrt(f1*f2)\n", - "R5=1.0/(2*3.14*fo*C1)\n", - "R1=R5\n", - "Q=fo/(f2-f1)\n", - "R2=R1*(2*Q-1)\n", - "\n", - "#Results\n", - "print(\"The value of R2 is %.2f kohm\" %(R2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R2 is 515.76 kohm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.13, Page No 750" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f1=10.3*10**3\n", - "f2=10.9*10**3\n", - "Hobp=34\n", - "\n", - "#Calculations\n", - "math.sqrt(f1*f2)\n", - "Q=fo/(f2-f1)\n", - "R3=120.0*10**3\n", - "R2=R3/Q\n", - "R1=R3/Hobp\n", - "k=50*fo\n", - "\n", - "#Results\n", - "print(\"The value of k is %.2f \" %(k/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of k is 529.79 \n" - ] - } - ], - "prompt_number": 27 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter17_2.ipynb b/Electronic_Devices_and_Circuits/Chapter17_2.ipynb deleted file mode 100755 index 0bf01537..00000000 --- a/Electronic_Devices_and_Circuits/Chapter17_2.ipynb +++ /dev/null @@ -1,560 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 17 : Active filters" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.1, Page No 716" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "rs=600.0\n", - "R1=12.0*10**3\n", - "Rl=100.0*10**3\n", - "C1=0.013*10**-6\n", - "\n", - "#Calculations\n", - "print(\"when Rl is not connected\")\n", - "fc=1.0/(2*3.14*R1*C1)\n", - "print(\" when Rl is connected\")\n", - "fc=1.0/(2*3.14*((R1*Rl)/(R1+Rl))*C1)\n", - "Attn=3#at fc attenuation is =3dB\n", - "falloffrate=6\n", - "print(\"attenuation at 2fc\")\n", - "Attn=3+6\n", - "print(\"attenuation at 2fc is %ddB \" %Attn)\n", - "Attn=3+6+6\n", - "\n", - "#Results\n", - "print(\" attenuation at 4fc is %ddB \" %Attn)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Rl is not connected\n", - " when Rl is connected\n", - "attenuation at 2fc\n", - "attenuation at 2fc is 9dB \n", - " attenuation at 4fc is 15dB \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.2, Page No 718" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ib=500.0*10**-9\n", - "f=1.0*10**3\n", - "\n", - "#Calculations\n", - "R1=(70.0*10**-3)/Ib\n", - "R1=140*10**3#use standard value\n", - "R2=R1\n", - "C1=(1/(2*3.14*R1*f))*10**12\n", - "\n", - "#Results\n", - "print(\" capacitor used is of %.2f pF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " capacitor used is of 1137.40 pF \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.3 Page No 719" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "print(\"first order high pass active filter\")\n", - "f=5.0*10**3\n", - "C1=1000.0*10**-12\n", - "fu=1.0*10**6\n", - "\n", - "#Calculations\n", - "R1=1.0/(2*3.14*f*C1)\n", - "BW=fu-f\n", - "print(\" bandwidth is %.2f kHz \" %(BW/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "first order high pass active filter\n", - " bandwidth is 995.00 kHz \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.4, Page No 724" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=1.0*10**3\n", - "Ib=500.0*10**-9\n", - "print(\"butterworth second order filter\")\n", - "\n", - "#Calculations\n", - "R=(70.0*10**-3)/Ib\n", - "R1=R/2.0\n", - "R1=68.1*10**3#use standard value\n", - "R2=R1 \n", - "R3=2.0*R1\n", - "Xc1=math.sqrt(2)*R2\n", - "C1=1/(2*3.14*f*math.sqrt(2)*R2)\n", - "C2=2*C1\n", - "fc=1/(2*3.14*(math.sqrt(R1*R2*C1*C2)))\n", - "\n", - "#Results\n", - "print(\"actual cutoff frequency is %d kHz \" %(fc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "butterworth second order filter\n", - "actual cutoff frequency is 1 kHz \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.5 Page No 725" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=12.0*10**3\n", - "C1=1000.0*10**-12\n", - "print(\"butterworth second order filter\")\n", - "C2=C1\n", - "\n", - "#Calculations\n", - "R2=(math.sqrt(2))/(2*3.14*f*C1)\n", - "R1=.5*R2\n", - "R3=R2\n", - "fc=1.0/(2*3.14*(math.sqrt(R1*R2*C1*C2)))\n", - "\n", - "#Results\n", - "print(\"actual cutoff frequency is %d KHz \" %(fc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "butterworth second order filter\n", - "actual cutoff frequency is 11 KHz \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.6 Page No 729" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "f=30.0*10**3\n", - "C1=1000.0*10**-12\n", - "print(\" third order low pass filter\")\n", - "print(\"-20 dB per decade stage\")\n", - "\n", - "#Calculations\n", - "fc1=f/.65\n", - "R1=1.0/(2*3.14*fc1*C1)\n", - "R2=R1\n", - "print(\"-40dB per decade stage\")\n", - "C3=1000*10**-12\n", - "C2=2*C3\n", - "fc2=f/.8\n", - "R4=1/(2*3.14*fc2*C3*(math.sqrt(2)))\n", - "R3=R4\n", - "R5=R3+R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " third order low pass filter\n", - "-20 dB per decade stage\n", - "-40dB per decade stage\n", - "The value of R5 is 6.01 kohm\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.7, Page No 730" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=20.0*10**3\n", - "print(\"3rd order high pass filter\")\n", - "print(\"-20dB per decade stage\")\n", - "R1=121.0*10**3\n", - "\n", - "#Calculations\n", - "fc1=.65*f\n", - "C1=1/(2*3.14*fc1*R1)\n", - "#this is so small it might be effected by stray capacitor.redesign %first choosing a suitable capacitance C1\n", - "C1=100*10**-12\n", - "R1=1/(2*3.14*f*C1)\n", - "R2=R1\n", - "print(\"-40dB per decade stage\")\n", - "C3=1000*10**-12\n", - "R4=(math.sqrt(2))/(2*3.14*.8*f*C3)\n", - "C2=C3\n", - "R3=.5*R4\n", - "R5=R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "3rd order high pass filter\n", - "-20dB per decade stage\n", - "-40dB per decade stage\n", - "The value of R5 is 14.07 kohm\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.8 Page No 734" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "f1=300.0\n", - "f2=30.0*10**3\n", - "print(\" single stage band pass filter\")\n", - "\n", - "#Calculations\n", - "C2=1000*10**-12\n", - "R2=1/(2*3.14*f2*C2)\n", - "R1=R2\n", - "Xc1=R1#at voltage gain Av=1\n", - "C1=1/(2*3.14*f1*R1)\n", - "R3=R2\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " single stage band pass filter\n", - "The value of R3 is 5.31 kohm\n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.9 Page No 736" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f1=300.0\n", - "f2=30.0*10**3\n", - "\n", - "#Calculations\n", - "fo=math.sqrt(f1*f2)\n", - "BW=f2-f1\n", - "Q=fo/BW\n", - "\n", - "#Results\n", - "print(\"The value of Q is %.2f \" %(Q))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Q is 0.10 \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.10 Page No 737" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "R1=60.4*10**3\n", - "R4=1.21*10**3\n", - "C=.012*10**-6\n", - "R2=121.0*10**3\n", - "\n", - "#Calculations\n", - "Q=math.sqrt((R1+R4)/(2*R4))\n", - "fo=Q/(3.14*C*R2)\n", - "print(\" center frequency is %3.2fHz \" %fo)\n", - "BW=fo/Q\n", - "\n", - "#Results\n", - "print(\" bandwidth is %3.1fHz \" %BW)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " center frequency is 1106.68Hz \n", - " bandwidth is 219.3Hz \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.12, Page No 744" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "f1=10.3*10**3\n", - "f2=10.9*10**3\n", - "C1=1000.0*10**-12\n", - "\n", - "#Calculations\n", - "C2=C1\n", - "fo=math.sqrt(f1*f2)\n", - "R5=1.0/(2*3.14*fo*C1)\n", - "R1=R5\n", - "Q=fo/(f2-f1)\n", - "R2=R1*(2*Q-1)\n", - "\n", - "#Results\n", - "print(\"The value of R2 is %.2f kohm\" %(R2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R2 is 515.76 kohm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 17.13, Page No 750" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f1=10.3*10**3\n", - "f2=10.9*10**3\n", - "Hobp=34\n", - "\n", - "#Calculations\n", - "math.sqrt(f1*f2)\n", - "Q=fo/(f2-f1)\n", - "R3=120.0*10**3\n", - "R2=R3/Q\n", - "R1=R3/Hobp\n", - "k=50*fo\n", - "\n", - "#Results\n", - "print(\"The value of k is %.2f \" %(k/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of k is 529.79 \n" - ] - } - ], - "prompt_number": 27 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter18.ipynb b/Electronic_Devices_and_Circuits/Chapter18.ipynb deleted file mode 100755 index 4cac5251..00000000 --- a/Electronic_Devices_and_Circuits/Chapter18.ipynb +++ /dev/null @@ -1,684 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 18 : Linear and switching voltage regulators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.1, Page No 761" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vs=21.0\n", - "Vo=12.0\n", - "Av=100.0\n", - "\n", - "#Calculations\n", - "vo=(Vs*0.1)/Av#source effect is 10% of the Vs\n", - "print(\" source effect is %3.3fV \" %vo)\n", - "vo=(21-20)/100.0\n", - "print(\" laod effect is %3.3fV \" %vo)\n", - "LR=(21*10**-3 *100)/12.0\n", - "print(\"line regulation is %3.3fpercentage \" %LR)\n", - "LR=(10*10**-3*100)/12.0\n", - "print(\" load effect is %3.3fpercentage \" %LR)\n", - "RJ=20*math.log((1.0/Av),10)\n", - "\n", - "#Results\n", - "print(\"ripple rejection is %d dB \" %RJ)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " source effect is 0.021V \n", - " laod effect is 0.010V \n", - "line regulation is 0.175percentage \n", - " load effect is 0.083percentage \n", - "ripple rejection is -39 dB \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.2, Page No 762" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=12.0\n", - "Il=40.0*10**-3\n", - "Vs=20.0\n", - "Vbe=.7\n", - "Vz=0.75*Vo\n", - "print(\"for minimum D1 current select\")\n", - "Ir2=10.0*10**-3\n", - "\n", - "#Calculations\n", - "R2=(Vo-Vz)/Ir2\n", - "Ie1=Il+Ir2\n", - "print(\"specification for Q\")\n", - "Vce1=20 \n", - "Vs=Vce1\n", - "Ic1=50*10**-3\n", - "Pd=(Vs-Vo)*Ie1\n", - "hfe=50\n", - "Ib1=Ie1/hfe\n", - "Ic2=5*10**-3\n", - "R1=(Vs-(Vo+.7))/(Ic2+Ib1)\n", - "Iz=Ie1+Ir2\n", - "I4=1*10**-3\n", - "R4=(Vz+Vbe)/I4\n", - "R3=(Vo-(Vz+Vbe))/I4\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "for minimum D1 current select\n", - "specification for Q\n", - "The value of R3 is 2.30 kohm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.3 Page No 765" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "I4=1.0*10**-3\n", - "Vb2=9.8\n", - "\n", - "#Calculations\n", - "print(\" for Vo=11V moving contact at top of R5\")\n", - "Vo=11\n", - "R3=(Vo-Vb2)/I4\n", - "R=Vb2/I4#R=R4+R5\n", - "print(\" for Vo=13V moving contact at bottom of R5\")\n", - "Vo=13\n", - "I4=Vo/(R3+R)\n", - "R4=Vb2/I4\n", - "R5=R-R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Vo=11V moving contact at top of R5\n", - " for Vo=13V moving contact at bottom of R5\n", - "The value of R5 is 1.51 kohm\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.4, Page No 766" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hFE3=50.0\n", - "hFE1=20.0\n", - "Ie1=200.0*10**-3+10*10**-3\n", - "Ic2=1.0*1**-3\n", - "Vs=20.0\n", - "Vb3=13.4\n", - "Vo=12.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Ib1=Ie1/hFE1\n", - "Ib3=Ib1/hFE3\n", - "R1=(Vs-Vb3)/(Ic2+Ib3)\n", - "print(\"select I6=.5*10**-3\")\n", - "I6=.5*10**-3\n", - "R6=(Vo+Vbe)/I6\n", - "Pd=(Vs-Vo)*Ie1\n", - "\n", - "#Results\n", - "print(\" peak power dissipated is %.3fnW \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select I6=.5*10**-3\n", - " peak power dissipated is 1.680nW \n" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.5 Page No 769" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vr1=3.0\n", - "Ic2=1.0*10**-3\n", - "Ib3=0.21*10**-3\n", - "Vbe1=0.7\n", - "Vbe3=Vbe1\n", - "Vs=20.0\n", - "\n", - "#Calculations\n", - "R1=Vr1/(Ic2+Ib3)\n", - "Vz2=Vo+Vbe1+Vbe3+Vr1\n", - "Ir7=5*10**-3\n", - "R2=(Vs-Vz2)/Ir7\n", - "\n", - "#Results\n", - "print(\"The value of R2 is %.2f kohm\" %(R2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R2 is 0.72 kohm\n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.6 Page No 770" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vc5=9.8\n", - "Vb2=Vc5\n", - "Vce5=3.0\n", - "Vbe=0.7\n", - "Vo=12.0\n", - "\n", - "#Calculations\n", - "Vr9=Vc5-Vce5\n", - "Vz2=Vr9+Vbe\n", - "Ic5=1.0*10**-3\n", - "R8=(Vo-Vc5)/Ic5\n", - "Ir9=2*Ic5\n", - "R9=Vr9/Ir9\n", - "print(\" Iz2>>Ib5 and Iz2> Izk for the zener diode \")\n", - "Iz2=10*10**-3\n", - "R7=(Vo-Vz2)/Iz2\n", - "I4=1*10**-3\n", - "Vb6=7.5\n", - "Vz2=Vb6\n", - "print(\" when Vo=11V moving contact at top of R5 \")\n", - "Vo=11\n", - "R3=(Vo-Vb6)/I4\n", - "R3=3.3*10**3#use standard value\n", - "I4=(Vo-Vb6)/R3\n", - "R=Vb6/I4#R=R4+R5\n", - "print(\" when Vo=13V moving contact at bottom of R5\")\n", - "Vo=13.0\n", - "Vb6=7.5\n", - "I4=Vo/(R3+R)\n", - "R4=Vb6/I4\n", - "R5=R-R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Iz2>>Ib5 and Iz2> Izk for the zener diode \n", - " when Vo=11V moving contact at top of R5 \n", - " when Vo=13V moving contact at bottom of R5\n", - "The value of R5 is 1.09 kohm\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.7, Page No 770" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Isc=100.0*10**-3\n", - "Vr10=0.5\n", - "Vo=12.0\n", - "\n", - "#Calculations\n", - "R10=Vr10/Isc\n", - "R10=4.7#use standard value\n", - "Il=200.0*10**-3\n", - "Vr10=Il*R10\n", - "Vr11=Vr10-.5\n", - "I11=1.0*10**-3\n", - "R11=Vr11/I11\n", - "R12=(Vo+Vr10-Vr11)/I11\n", - "\n", - "#Results\n", - "print(\"The value of R12 is %.2f kohm\" %(R12/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R12 is 12.50 kohm\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.8 Page No 778" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=12.0\n", - "hFE1=20.0\n", - "hFE2=50.0\n", - "Il=250.0*10**-3\n", - "Vz=0.75*Vo\n", - "Vz=9.1#use standard value for 1N757 diode\n", - "Iz1=10.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=(Vo-Vz)/Iz1\n", - "I3=1.0*10**-3\n", - "print(\" when V0=12V(moving contact at top of R5)\")\n", - "R3=(Vo-Vz)/I3\n", - "R=Vz/I3\n", - "print(\" when Vo=15V moving contact at bottom of R5\")\n", - "Vo=15\n", - "I3=Vo/(R+R3)\n", - "R4=Vz/I3\n", - "R5=R-R4\n", - "Ir6=.5*10**-3\n", - "R6=Vo/Ir6\n", - "print(\" op-amp output current\")\n", - "Ib2=Il/(hFE1*hFE2)\n", - "\n", - "#Results\n", - "print(\"The value of Ib2 is %.2f mA\" %(Ib2*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " when V0=12V(moving contact at top of R5)\n", - " when Vo=15V moving contact at bottom of R5\n", - " op-amp output current\n", - "The value of Ib2 is 0.25 mA\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.9 Page No 782" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "I2=1.0*10**-3\n", - "Vr2=7.15\n", - "Vref=Vr2\n", - "Vo=10.0\n", - "Pdmax=1000.0*10**-3\n", - "\n", - "#Calculations\n", - "R2=Vref/I2\n", - "R2=6.8*10**3#use standard value and recalculate the I2\n", - "I2=Vref/R2\n", - "R1=(Vo-Vref)/I2\n", - "Vs=Vo+5#for satisfactory operation of series pass transistor\n", - "Iint=25*10**-3#internal circuit current\n", - "Pi=Vs*Iint\n", - "print(\"maximum power dissipated in series pass transistor\")\n", - "Pd=Pdmax-Pi\n", - "print(\"maximum load current is \")\n", - "Il=Pd/(Vs-Vo)\n", - "\n", - "#Results\n", - "print(\"The value of Il is %.2f mA\" %(Il*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum power dissipated in series pass transistor\n", - "maximum load current is \n", - "The value of Il is 125.00 mA\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.10 Page No 785" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "I1=1.0*10**-3\n", - "Vref=1.25\n", - "Vo=6.0\n", - "Vs=15.0\n", - "Il=200.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=Vref/I1\n", - "R2=(Vo-Vref)/I1\n", - "Pd=(Vs-Vo)*Il\n", - "\n", - "#Results\n", - "print(\"regulated power dissipation is %.2f W \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulated power dissipation is 1.80 W \n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.11, Page No 788" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=10.0\n", - "Io=1.0\n", - "Vce=7.0\n", - "Vf=1.0\n", - "\n", - "#Calculations\n", - "Po=Vo*Io\n", - "print(\" linear regulator\")\n", - "Pi=Po+(Vce*Io)\n", - "n=(Po*100.0)/Pi#efficiency\n", - "print(\" switching regulator\")\n", - "Vce=1\n", - "Pi=Po+Io*(Vce+Vf)\n", - "n=(Po*100.0)/Pi#efficiency\n", - "\n", - "#Results\n", - "print(\"The value of n is %.2f \" %(n))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " linear regulator\n", - " switching regulator\n", - "The value of n is 83.33 \n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.12, Page No 752" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=50.0*10**3\n", - "Vo=12.0\n", - "Vf=0.7\n", - "Vi=30.0\n", - "Vsat=1.0\n", - "Io=500.0*10**-3\n", - "Vr=100.0*10**-3\n", - "\n", - "#Calculations\n", - "T=1.0/f\n", - "t=(Vo+Vf)/(Vi-Vsat-Vo)\n", - "toff=T/1.75\n", - "ton=T-toff\n", - "Ip=2*Io\n", - "L1=((Vi-Vsat-Vo)*ton)/Ip\n", - "C1=Ip/(8.0*f*Vr)\n", - "\n", - "#Results\n", - "print(\"The value of C1 is %.2f pF\" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C1 is 25.00 pF\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.13, Page No 799" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "print(\" an MC34063 controller is for step down transformer\")\n", - "Ib=-400.0*10**-3\n", - "I1=1.0*10**-3\n", - "Vref=1.25\n", - "V0=12.0\n", - "Ip=1.0\n", - "\n", - "#Calculations\n", - "ton=8.6*10**-6\n", - "R1=Vref/I1\n", - "R1=1.2*10**3#use standard value\n", - "I1=Vref/R1\n", - "R2=(Vo-Vref)/I1\n", - "Rsc=.33/Ip\n", - "Ct=4.8*10**-5 *ton\n", - "\n", - "#Results\n", - "print(\"The value of Ct is %.2f pF\" %(Ct*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " an MC34063 controller is for step down transformer\n", - "The value of Ct is 0.00 pF\n" - ] - } - ], - "prompt_number": 37 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter18_1.ipynb b/Electronic_Devices_and_Circuits/Chapter18_1.ipynb deleted file mode 100755 index 4cac5251..00000000 --- a/Electronic_Devices_and_Circuits/Chapter18_1.ipynb +++ /dev/null @@ -1,684 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 18 : Linear and switching voltage regulators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.1, Page No 761" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vs=21.0\n", - "Vo=12.0\n", - "Av=100.0\n", - "\n", - "#Calculations\n", - "vo=(Vs*0.1)/Av#source effect is 10% of the Vs\n", - "print(\" source effect is %3.3fV \" %vo)\n", - "vo=(21-20)/100.0\n", - "print(\" laod effect is %3.3fV \" %vo)\n", - "LR=(21*10**-3 *100)/12.0\n", - "print(\"line regulation is %3.3fpercentage \" %LR)\n", - "LR=(10*10**-3*100)/12.0\n", - "print(\" load effect is %3.3fpercentage \" %LR)\n", - "RJ=20*math.log((1.0/Av),10)\n", - "\n", - "#Results\n", - "print(\"ripple rejection is %d dB \" %RJ)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " source effect is 0.021V \n", - " laod effect is 0.010V \n", - "line regulation is 0.175percentage \n", - " load effect is 0.083percentage \n", - "ripple rejection is -39 dB \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.2, Page No 762" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=12.0\n", - "Il=40.0*10**-3\n", - "Vs=20.0\n", - "Vbe=.7\n", - "Vz=0.75*Vo\n", - "print(\"for minimum D1 current select\")\n", - "Ir2=10.0*10**-3\n", - "\n", - "#Calculations\n", - "R2=(Vo-Vz)/Ir2\n", - "Ie1=Il+Ir2\n", - "print(\"specification for Q\")\n", - "Vce1=20 \n", - "Vs=Vce1\n", - "Ic1=50*10**-3\n", - "Pd=(Vs-Vo)*Ie1\n", - "hfe=50\n", - "Ib1=Ie1/hfe\n", - "Ic2=5*10**-3\n", - "R1=(Vs-(Vo+.7))/(Ic2+Ib1)\n", - "Iz=Ie1+Ir2\n", - "I4=1*10**-3\n", - "R4=(Vz+Vbe)/I4\n", - "R3=(Vo-(Vz+Vbe))/I4\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "for minimum D1 current select\n", - "specification for Q\n", - "The value of R3 is 2.30 kohm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.3 Page No 765" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "I4=1.0*10**-3\n", - "Vb2=9.8\n", - "\n", - "#Calculations\n", - "print(\" for Vo=11V moving contact at top of R5\")\n", - "Vo=11\n", - "R3=(Vo-Vb2)/I4\n", - "R=Vb2/I4#R=R4+R5\n", - "print(\" for Vo=13V moving contact at bottom of R5\")\n", - "Vo=13\n", - "I4=Vo/(R3+R)\n", - "R4=Vb2/I4\n", - "R5=R-R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Vo=11V moving contact at top of R5\n", - " for Vo=13V moving contact at bottom of R5\n", - "The value of R5 is 1.51 kohm\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.4, Page No 766" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hFE3=50.0\n", - "hFE1=20.0\n", - "Ie1=200.0*10**-3+10*10**-3\n", - "Ic2=1.0*1**-3\n", - "Vs=20.0\n", - "Vb3=13.4\n", - "Vo=12.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Ib1=Ie1/hFE1\n", - "Ib3=Ib1/hFE3\n", - "R1=(Vs-Vb3)/(Ic2+Ib3)\n", - "print(\"select I6=.5*10**-3\")\n", - "I6=.5*10**-3\n", - "R6=(Vo+Vbe)/I6\n", - "Pd=(Vs-Vo)*Ie1\n", - "\n", - "#Results\n", - "print(\" peak power dissipated is %.3fnW \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select I6=.5*10**-3\n", - " peak power dissipated is 1.680nW \n" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.5 Page No 769" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vr1=3.0\n", - "Ic2=1.0*10**-3\n", - "Ib3=0.21*10**-3\n", - "Vbe1=0.7\n", - "Vbe3=Vbe1\n", - "Vs=20.0\n", - "\n", - "#Calculations\n", - "R1=Vr1/(Ic2+Ib3)\n", - "Vz2=Vo+Vbe1+Vbe3+Vr1\n", - "Ir7=5*10**-3\n", - "R2=(Vs-Vz2)/Ir7\n", - "\n", - "#Results\n", - "print(\"The value of R2 is %.2f kohm\" %(R2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R2 is 0.72 kohm\n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.6 Page No 770" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vc5=9.8\n", - "Vb2=Vc5\n", - "Vce5=3.0\n", - "Vbe=0.7\n", - "Vo=12.0\n", - "\n", - "#Calculations\n", - "Vr9=Vc5-Vce5\n", - "Vz2=Vr9+Vbe\n", - "Ic5=1.0*10**-3\n", - "R8=(Vo-Vc5)/Ic5\n", - "Ir9=2*Ic5\n", - "R9=Vr9/Ir9\n", - "print(\" Iz2>>Ib5 and Iz2> Izk for the zener diode \")\n", - "Iz2=10*10**-3\n", - "R7=(Vo-Vz2)/Iz2\n", - "I4=1*10**-3\n", - "Vb6=7.5\n", - "Vz2=Vb6\n", - "print(\" when Vo=11V moving contact at top of R5 \")\n", - "Vo=11\n", - "R3=(Vo-Vb6)/I4\n", - "R3=3.3*10**3#use standard value\n", - "I4=(Vo-Vb6)/R3\n", - "R=Vb6/I4#R=R4+R5\n", - "print(\" when Vo=13V moving contact at bottom of R5\")\n", - "Vo=13.0\n", - "Vb6=7.5\n", - "I4=Vo/(R3+R)\n", - "R4=Vb6/I4\n", - "R5=R-R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Iz2>>Ib5 and Iz2> Izk for the zener diode \n", - " when Vo=11V moving contact at top of R5 \n", - " when Vo=13V moving contact at bottom of R5\n", - "The value of R5 is 1.09 kohm\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.7, Page No 770" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Isc=100.0*10**-3\n", - "Vr10=0.5\n", - "Vo=12.0\n", - "\n", - "#Calculations\n", - "R10=Vr10/Isc\n", - "R10=4.7#use standard value\n", - "Il=200.0*10**-3\n", - "Vr10=Il*R10\n", - "Vr11=Vr10-.5\n", - "I11=1.0*10**-3\n", - "R11=Vr11/I11\n", - "R12=(Vo+Vr10-Vr11)/I11\n", - "\n", - "#Results\n", - "print(\"The value of R12 is %.2f kohm\" %(R12/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R12 is 12.50 kohm\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.8 Page No 778" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=12.0\n", - "hFE1=20.0\n", - "hFE2=50.0\n", - "Il=250.0*10**-3\n", - "Vz=0.75*Vo\n", - "Vz=9.1#use standard value for 1N757 diode\n", - "Iz1=10.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=(Vo-Vz)/Iz1\n", - "I3=1.0*10**-3\n", - "print(\" when V0=12V(moving contact at top of R5)\")\n", - "R3=(Vo-Vz)/I3\n", - "R=Vz/I3\n", - "print(\" when Vo=15V moving contact at bottom of R5\")\n", - "Vo=15\n", - "I3=Vo/(R+R3)\n", - "R4=Vz/I3\n", - "R5=R-R4\n", - "Ir6=.5*10**-3\n", - "R6=Vo/Ir6\n", - "print(\" op-amp output current\")\n", - "Ib2=Il/(hFE1*hFE2)\n", - "\n", - "#Results\n", - "print(\"The value of Ib2 is %.2f mA\" %(Ib2*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " when V0=12V(moving contact at top of R5)\n", - " when Vo=15V moving contact at bottom of R5\n", - " op-amp output current\n", - "The value of Ib2 is 0.25 mA\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.9 Page No 782" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "I2=1.0*10**-3\n", - "Vr2=7.15\n", - "Vref=Vr2\n", - "Vo=10.0\n", - "Pdmax=1000.0*10**-3\n", - "\n", - "#Calculations\n", - "R2=Vref/I2\n", - "R2=6.8*10**3#use standard value and recalculate the I2\n", - "I2=Vref/R2\n", - "R1=(Vo-Vref)/I2\n", - "Vs=Vo+5#for satisfactory operation of series pass transistor\n", - "Iint=25*10**-3#internal circuit current\n", - "Pi=Vs*Iint\n", - "print(\"maximum power dissipated in series pass transistor\")\n", - "Pd=Pdmax-Pi\n", - "print(\"maximum load current is \")\n", - "Il=Pd/(Vs-Vo)\n", - "\n", - "#Results\n", - "print(\"The value of Il is %.2f mA\" %(Il*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum power dissipated in series pass transistor\n", - "maximum load current is \n", - "The value of Il is 125.00 mA\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.10 Page No 785" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "I1=1.0*10**-3\n", - "Vref=1.25\n", - "Vo=6.0\n", - "Vs=15.0\n", - "Il=200.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=Vref/I1\n", - "R2=(Vo-Vref)/I1\n", - "Pd=(Vs-Vo)*Il\n", - "\n", - "#Results\n", - "print(\"regulated power dissipation is %.2f W \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulated power dissipation is 1.80 W \n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.11, Page No 788" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=10.0\n", - "Io=1.0\n", - "Vce=7.0\n", - "Vf=1.0\n", - "\n", - "#Calculations\n", - "Po=Vo*Io\n", - "print(\" linear regulator\")\n", - "Pi=Po+(Vce*Io)\n", - "n=(Po*100.0)/Pi#efficiency\n", - "print(\" switching regulator\")\n", - "Vce=1\n", - "Pi=Po+Io*(Vce+Vf)\n", - "n=(Po*100.0)/Pi#efficiency\n", - "\n", - "#Results\n", - "print(\"The value of n is %.2f \" %(n))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " linear regulator\n", - " switching regulator\n", - "The value of n is 83.33 \n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.12, Page No 752" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=50.0*10**3\n", - "Vo=12.0\n", - "Vf=0.7\n", - "Vi=30.0\n", - "Vsat=1.0\n", - "Io=500.0*10**-3\n", - "Vr=100.0*10**-3\n", - "\n", - "#Calculations\n", - "T=1.0/f\n", - "t=(Vo+Vf)/(Vi-Vsat-Vo)\n", - "toff=T/1.75\n", - "ton=T-toff\n", - "Ip=2*Io\n", - "L1=((Vi-Vsat-Vo)*ton)/Ip\n", - "C1=Ip/(8.0*f*Vr)\n", - "\n", - "#Results\n", - "print(\"The value of C1 is %.2f pF\" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C1 is 25.00 pF\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.13, Page No 799" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "print(\" an MC34063 controller is for step down transformer\")\n", - "Ib=-400.0*10**-3\n", - "I1=1.0*10**-3\n", - "Vref=1.25\n", - "V0=12.0\n", - "Ip=1.0\n", - "\n", - "#Calculations\n", - "ton=8.6*10**-6\n", - "R1=Vref/I1\n", - "R1=1.2*10**3#use standard value\n", - "I1=Vref/R1\n", - "R2=(Vo-Vref)/I1\n", - "Rsc=.33/Ip\n", - "Ct=4.8*10**-5 *ton\n", - "\n", - "#Results\n", - "print(\"The value of Ct is %.2f pF\" %(Ct*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " an MC34063 controller is for step down transformer\n", - "The value of Ct is 0.00 pF\n" - ] - } - ], - "prompt_number": 37 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter18_2.ipynb b/Electronic_Devices_and_Circuits/Chapter18_2.ipynb deleted file mode 100755 index 4cac5251..00000000 --- a/Electronic_Devices_and_Circuits/Chapter18_2.ipynb +++ /dev/null @@ -1,684 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 18 : Linear and switching voltage regulators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.1, Page No 761" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vs=21.0\n", - "Vo=12.0\n", - "Av=100.0\n", - "\n", - "#Calculations\n", - "vo=(Vs*0.1)/Av#source effect is 10% of the Vs\n", - "print(\" source effect is %3.3fV \" %vo)\n", - "vo=(21-20)/100.0\n", - "print(\" laod effect is %3.3fV \" %vo)\n", - "LR=(21*10**-3 *100)/12.0\n", - "print(\"line regulation is %3.3fpercentage \" %LR)\n", - "LR=(10*10**-3*100)/12.0\n", - "print(\" load effect is %3.3fpercentage \" %LR)\n", - "RJ=20*math.log((1.0/Av),10)\n", - "\n", - "#Results\n", - "print(\"ripple rejection is %d dB \" %RJ)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " source effect is 0.021V \n", - " laod effect is 0.010V \n", - "line regulation is 0.175percentage \n", - " load effect is 0.083percentage \n", - "ripple rejection is -39 dB \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.2, Page No 762" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=12.0\n", - "Il=40.0*10**-3\n", - "Vs=20.0\n", - "Vbe=.7\n", - "Vz=0.75*Vo\n", - "print(\"for minimum D1 current select\")\n", - "Ir2=10.0*10**-3\n", - "\n", - "#Calculations\n", - "R2=(Vo-Vz)/Ir2\n", - "Ie1=Il+Ir2\n", - "print(\"specification for Q\")\n", - "Vce1=20 \n", - "Vs=Vce1\n", - "Ic1=50*10**-3\n", - "Pd=(Vs-Vo)*Ie1\n", - "hfe=50\n", - "Ib1=Ie1/hfe\n", - "Ic2=5*10**-3\n", - "R1=(Vs-(Vo+.7))/(Ic2+Ib1)\n", - "Iz=Ie1+Ir2\n", - "I4=1*10**-3\n", - "R4=(Vz+Vbe)/I4\n", - "R3=(Vo-(Vz+Vbe))/I4\n", - "\n", - "#Results\n", - "print(\"The value of R3 is %.2f kohm\" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "for minimum D1 current select\n", - "specification for Q\n", - "The value of R3 is 2.30 kohm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.3 Page No 765" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "I4=1.0*10**-3\n", - "Vb2=9.8\n", - "\n", - "#Calculations\n", - "print(\" for Vo=11V moving contact at top of R5\")\n", - "Vo=11\n", - "R3=(Vo-Vb2)/I4\n", - "R=Vb2/I4#R=R4+R5\n", - "print(\" for Vo=13V moving contact at bottom of R5\")\n", - "Vo=13\n", - "I4=Vo/(R3+R)\n", - "R4=Vb2/I4\n", - "R5=R-R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Vo=11V moving contact at top of R5\n", - " for Vo=13V moving contact at bottom of R5\n", - "The value of R5 is 1.51 kohm\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.4, Page No 766" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "hFE3=50.0\n", - "hFE1=20.0\n", - "Ie1=200.0*10**-3+10*10**-3\n", - "Ic2=1.0*1**-3\n", - "Vs=20.0\n", - "Vb3=13.4\n", - "Vo=12.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Ib1=Ie1/hFE1\n", - "Ib3=Ib1/hFE3\n", - "R1=(Vs-Vb3)/(Ic2+Ib3)\n", - "print(\"select I6=.5*10**-3\")\n", - "I6=.5*10**-3\n", - "R6=(Vo+Vbe)/I6\n", - "Pd=(Vs-Vo)*Ie1\n", - "\n", - "#Results\n", - "print(\" peak power dissipated is %.3fnW \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "select I6=.5*10**-3\n", - " peak power dissipated is 1.680nW \n" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.5 Page No 769" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vr1=3.0\n", - "Ic2=1.0*10**-3\n", - "Ib3=0.21*10**-3\n", - "Vbe1=0.7\n", - "Vbe3=Vbe1\n", - "Vs=20.0\n", - "\n", - "#Calculations\n", - "R1=Vr1/(Ic2+Ib3)\n", - "Vz2=Vo+Vbe1+Vbe3+Vr1\n", - "Ir7=5*10**-3\n", - "R2=(Vs-Vz2)/Ir7\n", - "\n", - "#Results\n", - "print(\"The value of R2 is %.2f kohm\" %(R2/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R2 is 0.72 kohm\n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.6 Page No 770" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vc5=9.8\n", - "Vb2=Vc5\n", - "Vce5=3.0\n", - "Vbe=0.7\n", - "Vo=12.0\n", - "\n", - "#Calculations\n", - "Vr9=Vc5-Vce5\n", - "Vz2=Vr9+Vbe\n", - "Ic5=1.0*10**-3\n", - "R8=(Vo-Vc5)/Ic5\n", - "Ir9=2*Ic5\n", - "R9=Vr9/Ir9\n", - "print(\" Iz2>>Ib5 and Iz2> Izk for the zener diode \")\n", - "Iz2=10*10**-3\n", - "R7=(Vo-Vz2)/Iz2\n", - "I4=1*10**-3\n", - "Vb6=7.5\n", - "Vz2=Vb6\n", - "print(\" when Vo=11V moving contact at top of R5 \")\n", - "Vo=11\n", - "R3=(Vo-Vb6)/I4\n", - "R3=3.3*10**3#use standard value\n", - "I4=(Vo-Vb6)/R3\n", - "R=Vb6/I4#R=R4+R5\n", - "print(\" when Vo=13V moving contact at bottom of R5\")\n", - "Vo=13.0\n", - "Vb6=7.5\n", - "I4=Vo/(R3+R)\n", - "R4=Vb6/I4\n", - "R5=R-R4\n", - "\n", - "#Results\n", - "print(\"The value of R5 is %.2f kohm\" %(R5/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Iz2>>Ib5 and Iz2> Izk for the zener diode \n", - " when Vo=11V moving contact at top of R5 \n", - " when Vo=13V moving contact at bottom of R5\n", - "The value of R5 is 1.09 kohm\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.7, Page No 770" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Isc=100.0*10**-3\n", - "Vr10=0.5\n", - "Vo=12.0\n", - "\n", - "#Calculations\n", - "R10=Vr10/Isc\n", - "R10=4.7#use standard value\n", - "Il=200.0*10**-3\n", - "Vr10=Il*R10\n", - "Vr11=Vr10-.5\n", - "I11=1.0*10**-3\n", - "R11=Vr11/I11\n", - "R12=(Vo+Vr10-Vr11)/I11\n", - "\n", - "#Results\n", - "print(\"The value of R12 is %.2f kohm\" %(R12/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R12 is 12.50 kohm\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.8 Page No 778" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=12.0\n", - "hFE1=20.0\n", - "hFE2=50.0\n", - "Il=250.0*10**-3\n", - "Vz=0.75*Vo\n", - "Vz=9.1#use standard value for 1N757 diode\n", - "Iz1=10.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=(Vo-Vz)/Iz1\n", - "I3=1.0*10**-3\n", - "print(\" when V0=12V(moving contact at top of R5)\")\n", - "R3=(Vo-Vz)/I3\n", - "R=Vz/I3\n", - "print(\" when Vo=15V moving contact at bottom of R5\")\n", - "Vo=15\n", - "I3=Vo/(R+R3)\n", - "R4=Vz/I3\n", - "R5=R-R4\n", - "Ir6=.5*10**-3\n", - "R6=Vo/Ir6\n", - "print(\" op-amp output current\")\n", - "Ib2=Il/(hFE1*hFE2)\n", - "\n", - "#Results\n", - "print(\"The value of Ib2 is %.2f mA\" %(Ib2*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " when V0=12V(moving contact at top of R5)\n", - " when Vo=15V moving contact at bottom of R5\n", - " op-amp output current\n", - "The value of Ib2 is 0.25 mA\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.9 Page No 782" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "I2=1.0*10**-3\n", - "Vr2=7.15\n", - "Vref=Vr2\n", - "Vo=10.0\n", - "Pdmax=1000.0*10**-3\n", - "\n", - "#Calculations\n", - "R2=Vref/I2\n", - "R2=6.8*10**3#use standard value and recalculate the I2\n", - "I2=Vref/R2\n", - "R1=(Vo-Vref)/I2\n", - "Vs=Vo+5#for satisfactory operation of series pass transistor\n", - "Iint=25*10**-3#internal circuit current\n", - "Pi=Vs*Iint\n", - "print(\"maximum power dissipated in series pass transistor\")\n", - "Pd=Pdmax-Pi\n", - "print(\"maximum load current is \")\n", - "Il=Pd/(Vs-Vo)\n", - "\n", - "#Results\n", - "print(\"The value of Il is %.2f mA\" %(Il*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum power dissipated in series pass transistor\n", - "maximum load current is \n", - "The value of Il is 125.00 mA\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.10 Page No 785" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "I1=1.0*10**-3\n", - "Vref=1.25\n", - "Vo=6.0\n", - "Vs=15.0\n", - "Il=200.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=Vref/I1\n", - "R2=(Vo-Vref)/I1\n", - "Pd=(Vs-Vo)*Il\n", - "\n", - "#Results\n", - "print(\"regulated power dissipation is %.2f W \" %Pd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulated power dissipation is 1.80 W \n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.11, Page No 788" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vo=10.0\n", - "Io=1.0\n", - "Vce=7.0\n", - "Vf=1.0\n", - "\n", - "#Calculations\n", - "Po=Vo*Io\n", - "print(\" linear regulator\")\n", - "Pi=Po+(Vce*Io)\n", - "n=(Po*100.0)/Pi#efficiency\n", - "print(\" switching regulator\")\n", - "Vce=1\n", - "Pi=Po+Io*(Vce+Vf)\n", - "n=(Po*100.0)/Pi#efficiency\n", - "\n", - "#Results\n", - "print(\"The value of n is %.2f \" %(n))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " linear regulator\n", - " switching regulator\n", - "The value of n is 83.33 \n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.12, Page No 752" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=50.0*10**3\n", - "Vo=12.0\n", - "Vf=0.7\n", - "Vi=30.0\n", - "Vsat=1.0\n", - "Io=500.0*10**-3\n", - "Vr=100.0*10**-3\n", - "\n", - "#Calculations\n", - "T=1.0/f\n", - "t=(Vo+Vf)/(Vi-Vsat-Vo)\n", - "toff=T/1.75\n", - "ton=T-toff\n", - "Ip=2*Io\n", - "L1=((Vi-Vsat-Vo)*ton)/Ip\n", - "C1=Ip/(8.0*f*Vr)\n", - "\n", - "#Results\n", - "print(\"The value of C1 is %.2f pF\" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C1 is 25.00 pF\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 18.13, Page No 799" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "print(\" an MC34063 controller is for step down transformer\")\n", - "Ib=-400.0*10**-3\n", - "I1=1.0*10**-3\n", - "Vref=1.25\n", - "V0=12.0\n", - "Ip=1.0\n", - "\n", - "#Calculations\n", - "ton=8.6*10**-6\n", - "R1=Vref/I1\n", - "R1=1.2*10**3#use standard value\n", - "I1=Vref/R1\n", - "R2=(Vo-Vref)/I1\n", - "Rsc=.33/Ip\n", - "Ct=4.8*10**-5 *ton\n", - "\n", - "#Results\n", - "print(\"The value of Ct is %.2f pF\" %(Ct*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " an MC34063 controller is for step down transformer\n", - "The value of Ct is 0.00 pF\n" - ] - } - ], - "prompt_number": 37 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter19.ipynb b/Electronic_Devices_and_Circuits/Chapter19.ipynb deleted file mode 100755 index f144d168..00000000 --- a/Electronic_Devices_and_Circuits/Chapter19.ipynb +++ /dev/null @@ -1,1316 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 19 : Power amplifiers" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.1, Page No 810" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "Rpy=40.0\n", - "N1=74.0\n", - "N2=14.0\n", - "R2=3.7*10**3\n", - "R1=4.7*10**3\n", - "Vbe=0.7\n", - "Re=1.0*10**3\n", - "Vcc=13.0\n", - "Rl=56.0\n", - "\n", - "#Calculations\n", - "print(\"Q-point\")\n", - "Vb=Vcc*(R2/(R1+R2))\n", - "Ic=(Vb-Vbe)/Re\n", - "Ie=Ic\n", - "Vce=Vcc-Ic*(Rpy+Re)\n", - "rl=(N1/N2)**2 *Rl\n", - "rl=rl+Rpy\n", - "Ic=5*10**-3\n", - "Vce=Ic*rl\n", - "\n", - "#Results\n", - "print(\"The value of Vce is %.2f v \" %Vce)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Q-point\n", - "The value of Vce is 8.02 v \n" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.2, Page No 814" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=13.0\n", - "Icq=5.0*10**-3\n", - "Vceq=8.0\n", - "Vp=Vceq\n", - "Ip=Icq\n", - "nt=0.8\n", - "\n", - "#Calculations\n", - "Pi=Vcc*Icq\n", - "Po=.5*Vp*Ip\n", - "P0=nt*Po\n", - "n=(P0/Pi)*100.0\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum efficiency is 24.62 percentage \n" - ] - } - ], - "prompt_number": 45 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.4 Page No 821" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "N1=60.0\n", - "N2=10.0\n", - "Rl=16.0\n", - "Rpy=0\n", - "R6=56.0\n", - "Vcc=27.0\n", - "Vce=0.5\n", - "n=0.79\n", - "\n", - "#Calculations\n", - "print(\" Referred laod\")\n", - "rl=(N1/N2)**2 *Rl\n", - "print(\" tatol ac load line in series with each of Q2 and Q3\")\n", - "Rl=rl+R6+Rpy\n", - "print(\" peak primary current\")\n", - "Ip=(Vcc-Vce)/Rl\n", - "print(\"peak primary voltage\")\n", - "Vp=Vcc-Vce-(Ip*R6)\n", - "print(\"power delivered to primary\")\n", - "Po=.5*Vp*Ip\n", - "\n", - "#Calculations\n", - "Po=Po*n#n is power efficiency\n", - "print(\"power delivered to the load %.2f W \" %Po)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Referred laod\n", - " tatol ac load line in series with each of Q2 and Q3\n", - " peak primary current\n", - "peak primary voltage\n", - "power delivered to primary\n", - "power delivered to the load 0.40 W \n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.5, Page No 824" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Po=4.0\n", - "nt=0.8\n", - "Vcc=30.0\n", - "Vp=Vcc\n", - "Rl=16.0\n", - "\n", - "#Calculations\n", - "P0=Po/nt\n", - "rl=(Vp)**2 /(2*P0)\n", - "rl=4*rl\n", - "print(\"transformer specification Po=4 %Rl=16 rl=360\")\n", - "Vce=2.0*Vcc\n", - "Ip=(2.0*P0)/Vp\n", - "Pi=Vcc*.636*Ip\n", - "Pt=0.5*(Pi-P0)\n", - "\n", - "#Results\n", - "print(\" transistor specification is Py=.68W Vce=60 Ip=333mA\")\n", - "print(\"power delivered to the load Pi = %.2f W \" %Pi)\n", - "print(\"power delivered to the load Pt = %.2f W \" %Pt)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "transformer specification Po=4 %Rl=16 rl=360\n", - " transistor specification is Py=.68W Vce=60 Ip=333mA\n", - "power delivered to the load Pi = 6.36 W \n", - "power delivered to the load Pt = 0.68 W \n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.6 Page No 830" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rl=50.0\n", - "Po=1.0\n", - "hFE=50.0\n", - "Vbe=0.7\n", - "Vrc=4.0\n", - "Vre=1.0\n", - "Vd1=0.7\n", - "\n", - "#Calculations\n", - "Vd2=Vd1\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "Re3=.1*Rl\n", - "Re2=4.7#use stabdard value\n", - "Re2=Re3\n", - "Icq=.1*Ip\n", - "Vb=Vbe+Icq*(Re2+Re3)+Vbe\n", - "Vc1=Vrc\n", - "Ib2=Ip/hFE\n", - "Irc=Ib2+1*10**-3\n", - "Rc=Vrc/Irc\n", - "Rc=680.0 #use standard value\n", - "Vcc=2.0*(Vp+Vre+Vbe+Vrc)\n", - "Vcc=32#use standard value\n", - "Vrcdc=.5*(Vcc-Vb)\n", - "Ic1=Vrcdc/Rc\n", - "Rb=(Vb-Vd1-Vd2)/Ic1\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kOhm \" %Rb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 8.95 kOhm \n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.7 Page No 832" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=32.0\n", - "Vce=32.0\n", - "Ip=200.0*10**-3\n", - "Po=1.0\n", - "\n", - "#Calculations\n", - "Ic=1.1*Ip\n", - "Pi=0.35*Vcc*Ip\n", - "Pt=0.5*(Pi-Po)\n", - "\n", - "#Results\n", - "print(\"power delivered to the load Pi = %.2f \" %Pi)\n", - "print(\"power delivered to the load Pt = %.2f \" %Pt)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power delivered to the load Pi = 2.24 \n", - "power delivered to the load Pt = 0.62 \n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.8, Page No 832" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=50.0\n", - "hib=2.0\n", - "Rl=50.0\n", - "\n", - "#Calculations\n", - "Ce=1.0/(2*3.14*f*hib)\n", - "Co=1.0/(2*3.14*50*.1*Rl)\n", - "\n", - "#Results\n", - "print(\"The value of Ce is %.2f pF \" %(Ce*10**3))\n", - "print(\"The value of Co is %.2f pF \" %(Co*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ce is 1.59 pF \n", - "The value of Co is 0.64 pF \n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.9 Page No 834" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hFE=2000.0\n", - "Vbe=1.4\n", - "Vp=10.0\n", - "Ip=200.0*10**-3\n", - "Icq2=20.0*10**-3\n", - "Re3=4.7\n", - "Re2=4.7\n", - "Vd=0.7\n", - "Ve1=3.0\n", - "Vc1=15.2\n", - "\n", - "#Calculations\n", - "Vrc=Vc1\n", - "Vb=Vbe+Icq*(Re2+Re3)+Vbe\n", - "Vcc=Vrc+Vc1+Vb\n", - "Ib2=Ip/hFE\n", - "Irc=1.0*10**-3\n", - "Vrcac=4.0\n", - "Rc=Vrcac/Irc\n", - "Ic1=Vrc/Rc\n", - "Rb=(Vb-(4*Vd))/Ic1\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kohm \" %Rb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 49.47 kohm \n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.10 Page No 838" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vb=3.2\n", - "Ic1=5*10**-3\n", - "Vce=3.2\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vbmin=Vb-0.5\n", - "Vbmax=Vb+0.5\n", - "I10=.1*Ic1\n", - "R10=(Vce-Vbe)/I10\n", - "R10=4.7*10**3#use standard value\n", - "print(\" for Vce=3.7\")\n", - "Vce=3.7\n", - "I10max=(Vce-Vbe)/R10\n", - "print(\"Vce=2.7V\")\n", - "Vce=2.7\n", - "I10min=(Vce-Vbe)/R10\n", - "R=Vbe/I10min\n", - "R11=Vbe/I10max\n", - "R12=R-R11\n", - "\n", - "#Results\n", - "print(\"The value of R12 is %.2f kohm \" %R12)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Vce=3.7\n", - "Vce=2.7V\n", - "The value of R12 is 548.33 kohm \n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.11 Page No 843" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Rl=16.0\n", - "Po=6.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2.0*Rl*Po)\n", - "Vr14=0.1*Vp\n", - "Vr15=Vr14\n", - "R14=0.1*Rl\n", - "R15=R14\n", - "Vce3=1.0\n", - "Vce4=Vce3\n", - "Vr9=3.0\n", - "Vr11=Vr9\n", - "Vcc=(Vp+Vr14+Vbe+Vce3+Vr9)\n", - "Vee=-Vcc\n", - "Ip=Vp/Rl\n", - "print(\" DC power inpit from supply line\")\n", - "Pi=(Vcc-Vee)*.35*Ip\n", - "Pt=.5*(Pi-Po)\n", - "Vce=2*Vcc\n", - "Ic=1.1*Ip\n", - "\n", - "#Results\n", - "print(\" output transistor specification %.2f mA\" %Ic)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " DC power inpit from supply line\n", - " output transistor specification 0.95 mA\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.12, Page No 844" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "hFE7=20.0\n", - "Icbo=50.0*10**-6\n", - "hFE5=70.0\n", - "Vr9=3.0\n", - "Ip=869.0*10**-3\n", - "R15=1.5\n", - "R8=15.0*10**3\n", - "Vbe=0.7\n", - "Vr11=3.0\n", - "Vee=20.0\n", - "\n", - "#Calculations\n", - "R12=0.01/Icbo\n", - "R12=220#use standard value\n", - "R13=R12\n", - "Ib5=Ip/(hFE7*hFE5)\n", - "Ic3=2.0*10**-3\n", - "R9=Vr9/Ic3\n", - "R11=R9\n", - "Iq78=0.1*Ip\n", - "Vr14=Iq78*R15\n", - "Vr15=Vr14\n", - "Vr10=(Vr14+Vr15)+(Vr14+Vr15)/2\n", - "R10=Vr10/Ic3\n", - "Ir8=(Vr11+Vbe)/R8\n", - "R7=(Vee-(Vr11+Vbe))/Ir8\n", - "\n", - "#Results\n", - "print(\"The value of R7 is %.2f kohm \" %(R7/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R7 is 66.08 kohm \n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.13, Page No 848" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rl=20.0\n", - "Po=2.5\n", - "Rd=4.0\n", - "Vr6=1.0\n", - "Vr9=Vr6\n", - "Vth=1.0\n", - "gFS=250.0*10**-3\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "Vcc=(Vp+Ip*Rd)\n", - "vr6=Ip/gFS\n", - "Vr2=vr6+1\n", - "Vce=Vr2\n", - "Vce3=1.0\n", - "Vr2=Vcc-Vce\n", - "Vee=Vcc\n", - "Vr3=Vee-Vbe\n", - "Vr7=Vr2-Vr6\n", - "Vr8=Vcc-(-Vee)-Vr6-Vr7-Vr9\n", - "\n", - "#Results\n", - "print(\"The value of Vr8 is %.2f V \" %Vr8)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vr8 is 14.00 V \n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.14, Page No 849" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R6=100.0*10**3\n", - "R9=R6\n", - "Vth=1.0\n", - "Vr7=8.0\n", - "Vr8=14.0\n", - "Vr3=11.3\n", - "Vpout=10.0\n", - "Vpin=800.0*10**-3\n", - "\n", - "#Calculations\n", - "I6=Vth/R6\n", - "R7=Vr7/I6\n", - "R8=Vr8/I6\n", - "Ic1=1*10**-4\n", - "Ic2=Ic1\n", - "Vr2=9\n", - "R2=Vr2/Ic1\n", - "R3=Vr3/(Ic1+Ic2)\n", - "R5=4.7*10**3\n", - "Acl=Vpout/Vpin\n", - "R4=R5/(Acl-1.0)\n", - "\n", - "#Results\n", - "print(\"The value of R4 is %.2f kohm \" %(R4/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R4 is 0.41 kohm \n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.15, Page No 854" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vce=1.5\n", - "Vcc=17.0\n", - "Vd1=0.7\n", - "R8=1.5*10**3\n", - "R9=R8\n", - "Rl=100.0\n", - "R6=8.2\n", - "\n", - "#Calculations\n", - "I4=(Vcc-Vd1)/(R8+R9)\n", - "Vc3=Vcc-(I4*R8)\n", - "print(\" bootstrap capacitance terminal voltage is %3.1fV \" %Vc3)\n", - "V=Vcc-Vce#V=Vp+Vr6\n", - "Ip=V/(Rl+R6)\n", - "Vp=Ip*Rl\n", - "print(\" peak output voltage is %3.1fV \" %Vp)\n", - "Po=(Vp)**2.0/(2.0*Rl)\n", - "\n", - "#Results\n", - "print(\" peak output power is %dW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " bootstrap capacitance terminal voltage is 8.8V \n", - " peak output voltage is 14.3V \n", - " peak output power is 1W \n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.16, Page No 856" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rl=8.0\n", - "Po=6.0\n", - "vs=0.1\n", - "hFE=1000.0\n", - "Vce=2.0\n", - "f=50.0*10**3\n", - "Vd1=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "R6=.1*Rl\n", - "R7=R6\n", - "Vcc=Vp+Ip*R6+Vce\n", - "Ib=Ip/hFE\n", - "I4=2*10**-3\n", - "R4=(Vcc-Vd1-Vd1)/I4\n", - "R8=.5*R4\n", - "Acl=Vp/vs\n", - "R3=100*10**3\n", - "R2=R3/(Acl-1)\n", - "SR=(2*3.14*f*Vp)*10**-6\n", - "\n", - "#Results\n", - "print(\" slew rate is %.2f V/us \" %SR)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " slew rate is 3.08 V/us \n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.17, Page No 856" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=50.0\n", - "R1=100.0*10**3\n", - "R2=1.0*10**3\n", - "R8=2.7*10**3\n", - "\n", - "#Calculations\n", - "R9=R8\n", - "C1=1/(2*3.14*f*.1*R1)\n", - "C2=1/(2*3.14*f*R2)\n", - "Xc3=.1*((R8*R9)/(R8+R9))\n", - "C3=1/(2*3.14*f*Xc3)\n", - "C4=C3\n", - "\n", - "#Results\n", - "print(\"The value of C4 is %.2f pF \" %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4 is 23.59 pF \n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.18, Page No 860" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ismin=1.8*10**-3\n", - "Ismax=3.4*10**-3\n", - "R7=820.0\n", - "R5=390.0\n", - "R6=18.0*10**3\n", - "Vi=100.0*10**-3\n", - "Rl=10.0\n", - "\n", - "#Calculations\n", - "Vgsmin=Ismin*R7\n", - "Vgsmax=Ismax*R7\n", - "Acl=(R5+R6)/R5\n", - "Vp=Acl*Vi\n", - "Ip=Vp/Rl\n", - "print(\"peak output current is %3.3fA \" %Ip)\n", - "Po=(Vp*Ip)/2.0\n", - "\n", - "#Results\n", - "print(\"peak output power is %3.2fW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak output current is 0.472A \n", - "peak output power is 1.11W \n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.19, Page No 862" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vbe=0.7\n", - "R2=560.0\n", - "R3min=0\n", - "R3max=1.0*10**3\n", - "Is=2.0*10**-3\n", - "\n", - "#Calculations\n", - "Ic2max=Vbe/(R2+R3min)\n", - "Ic2min=Vbe/(R2+R3max)\n", - "Vgsmin=(Is+Ic2min)*820.0\n", - "Vgsmax=(Is+Ic2max)*820.0\n", - "\n", - "#Results\n", - "print(\"The value of Vgsmax is %.2f v \" %Vgsmax)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vgsmax is 2.67 v \n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.20, Page No 865" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=12.0\n", - "Rl=10.0\n", - "Rd=0.5\n", - "gfs=2.5\n", - "R7=820.0\n", - "V9=1.0*10**3\n", - "\n", - "#Calculations\n", - "R10=R9\n", - "Vp=(Vcc*Rl)/(Rd+Rl)\n", - "Ip=Vp/Rl\n", - "Vgs=Ip/gfs\n", - "Vr7=Is*R7\n", - "Vs=Vcc-Vr7-Vgs\n", - "Vr9=(Vp*R9)/(R9+R10)\n", - "\n", - "#Results\n", - "print(\"op-amp peak output voltage is %.2f v \" %Vr9)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "op-amp peak output voltage is 5.71 v \n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.21, Page No 867" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=0.7\n", - "R2=470.0\n", - "R3=1.0*10**3\n", - "Is=0.5*10**-3\n", - "R7=1.5*10**3\n", - "Vcc=15\n", - "\n", - "#Calculations\n", - "Ic2max=Vbe/R2\n", - "Ic2min=Vbe/(R2+R3)\n", - "Vgs=(Is+Ic2max)*R7\n", - "print(\" MOSFET maximum gate source voltage is %.1fV \" %Vgs)\n", - "Vs=Vcc-Vgs\n", - "\n", - "#Results\n", - "print(\" op-amp minimum suppy is %.2fV \" %Vs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " MOSFET maximum gate source voltage is 3.0V \n", - " op-amp minimum suppy is 12.02V \n" - ] - } - ], - "prompt_number": 63 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.22, Page No 868" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=15.0\n", - "Rl=15.0\n", - "Rd=0.3\n", - "R5=2.2*10**3\n", - "R6=33.0*10**3\n", - "C2=3.9*10**-6\n", - "C4=100.0*10**-12\n", - "\n", - "#Calculations\n", - "print(\" power output\")\n", - "Vp=(Vcc*Rl)/(Rd+Rl)\n", - "Ip=Vp/Rl\n", - "Po=(Vp*Ip)/2.0\n", - "print(\" voltage gain\")\n", - "Av=(R5+R6)/R5\n", - "print(\"cutoff frequency\")\n", - "f1=1.0/(2*3.14*C2*R5)\n", - "f2=1.0/(2*3.14*C4*R6)\n", - "\n", - "#Results\n", - "print(\" cutoff frequency f1 %.2f \" %f1)\n", - "print(\" cutoff frequency f2 %.2f \" %f2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " power output\n", - " voltage gain\n", - "cutoff frequency\n", - " cutoff frequency f1 18.56 \n", - " cutoff frequency f2 48253.23 \n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.23, Page No 871" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=23.0\n", - "Rl=8.0\n", - "Rf2=100.0*10**3\n", - "Rf1=5.6*10**3\n", - "Cf=1.0*10**-6\n", - "Vp=Vcc-5\n", - "\n", - "#Calculations\n", - "Po=(Vp)**2/(2*Rl)\n", - "print(\"maximum output power is %3.2fW \" %Po)\n", - "Acl=(Rf1+Rf2)/Rf1\n", - "print(\" voltage gain %3.1f \" %Acl)\n", - "f=1/(2*3.14*Cf*Rf1)\n", - "\n", - "#Results\n", - "print(\"lower cutoff frequency is %dHz \" %f)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum output power is 20.25W \n", - " voltage gain 18.9 \n", - "lower cutoff frequency is 28Hz \n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.24, Page No 875" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rf=15.0*10**3\n", - "R1=5.6*10**3\n", - "vs=0.5\n", - "Vp=2.7\n", - "\n", - "#Calculations\n", - "Acl=(2.0*Rf)/R1\n", - "Vo=Acl*vs\n", - "Po=(Vp)**2.0/(2.0*Rl)\n", - "\n", - "#Results\n", - "print(\"load power dissipation is %.2fW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load power dissipation is 0.46W \n" - ] - } - ], - "prompt_number": 66 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.24, Page No 875" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=10.0\n", - "Rl=1.0*10**3\n", - "f=3.0*10**6\n", - "Ip=25.0*10**-3\n", - "Vce=0.3\n", - "\n", - "#Calculations\n", - "Vp=Vcc-Vce\n", - "Po=(Vp)**2 /(2*Rl)\n", - "T=1.0/f\n", - "t=(Po*T)/(Ip*Vp)\n", - "angle=(t/T)*360\n", - "print(\" conduction angle is %3.1fdegree \" %angle)\n", - "Idc=Po/Vp\n", - "Pi=Vcc*Idc\n", - "print( \"dc input power is %3.4fW \" %Pi)\n", - "n=(Po/Pi)*100#efficiency\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " conduction angle is 69.8degree \n", - "dc input power is 0.0485W \n", - " maximum efficiency is 97.00 percentage \n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.26, Page No 882" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=1.0*10**6\n", - "Xc=120.0\n", - "Vce=0.5\n", - "Vcc=30.0\n", - "Rl=1.2*10**3\n", - "O=100.0\n", - "\n", - "#Calculations\n", - "Cp=1.0/(2*3.14*f*Xc)\n", - "Cp=1300*10**-12#use standard value\n", - "Lp=1/(((2*3.14*f)**2)*Cp)\n", - "Vp=Vcc-Vce\n", - "Po=((Vp)**2) /(2*Rl)\n", - "Idc=Po/Vp\n", - "T=1.0/f\n", - "t=(O*T)/360.0\n", - "Ip=(Idc*T)/t\n", - "\n", - "#Results\n", - "print(\"The value of Ip is %.2f mA \" %(Ip*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ip is 44.25 mA \n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.27, Page No 883" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rw=0.1\n", - "f=1.0*10**6\n", - "Lp=19.5*10**-6\n", - "Rl=1.2*10**3\n", - "Vcc=30.0\n", - "\n", - "#Calculations\n", - "Idc=12.3*10**-3\n", - "QL=(2*3.14*f*Lp)/Rw\n", - "Qp=Rl/(2*3.14*f*Lp)\n", - "B=f/Qp\n", - "Il=(.707*Vp)/(2*3.14*f*Lp)\n", - "Pl=(Il)**2 *Rw\n", - "Pi=(Vcc*Idc)+Pl\n", - "n=(Po/Pi)*100.0\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum efficiency is 97.50 percentage \n" - ] - } - ], - "prompt_number": 69 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter19_1.ipynb b/Electronic_Devices_and_Circuits/Chapter19_1.ipynb deleted file mode 100755 index f144d168..00000000 --- a/Electronic_Devices_and_Circuits/Chapter19_1.ipynb +++ /dev/null @@ -1,1316 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 19 : Power amplifiers" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.1, Page No 810" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "Rpy=40.0\n", - "N1=74.0\n", - "N2=14.0\n", - "R2=3.7*10**3\n", - "R1=4.7*10**3\n", - "Vbe=0.7\n", - "Re=1.0*10**3\n", - "Vcc=13.0\n", - "Rl=56.0\n", - "\n", - "#Calculations\n", - "print(\"Q-point\")\n", - "Vb=Vcc*(R2/(R1+R2))\n", - "Ic=(Vb-Vbe)/Re\n", - "Ie=Ic\n", - "Vce=Vcc-Ic*(Rpy+Re)\n", - "rl=(N1/N2)**2 *Rl\n", - "rl=rl+Rpy\n", - "Ic=5*10**-3\n", - "Vce=Ic*rl\n", - "\n", - "#Results\n", - "print(\"The value of Vce is %.2f v \" %Vce)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Q-point\n", - "The value of Vce is 8.02 v \n" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.2, Page No 814" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=13.0\n", - "Icq=5.0*10**-3\n", - "Vceq=8.0\n", - "Vp=Vceq\n", - "Ip=Icq\n", - "nt=0.8\n", - "\n", - "#Calculations\n", - "Pi=Vcc*Icq\n", - "Po=.5*Vp*Ip\n", - "P0=nt*Po\n", - "n=(P0/Pi)*100.0\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum efficiency is 24.62 percentage \n" - ] - } - ], - "prompt_number": 45 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.4 Page No 821" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "N1=60.0\n", - "N2=10.0\n", - "Rl=16.0\n", - "Rpy=0\n", - "R6=56.0\n", - "Vcc=27.0\n", - "Vce=0.5\n", - "n=0.79\n", - "\n", - "#Calculations\n", - "print(\" Referred laod\")\n", - "rl=(N1/N2)**2 *Rl\n", - "print(\" tatol ac load line in series with each of Q2 and Q3\")\n", - "Rl=rl+R6+Rpy\n", - "print(\" peak primary current\")\n", - "Ip=(Vcc-Vce)/Rl\n", - "print(\"peak primary voltage\")\n", - "Vp=Vcc-Vce-(Ip*R6)\n", - "print(\"power delivered to primary\")\n", - "Po=.5*Vp*Ip\n", - "\n", - "#Calculations\n", - "Po=Po*n#n is power efficiency\n", - "print(\"power delivered to the load %.2f W \" %Po)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Referred laod\n", - " tatol ac load line in series with each of Q2 and Q3\n", - " peak primary current\n", - "peak primary voltage\n", - "power delivered to primary\n", - "power delivered to the load 0.40 W \n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.5, Page No 824" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Po=4.0\n", - "nt=0.8\n", - "Vcc=30.0\n", - "Vp=Vcc\n", - "Rl=16.0\n", - "\n", - "#Calculations\n", - "P0=Po/nt\n", - "rl=(Vp)**2 /(2*P0)\n", - "rl=4*rl\n", - "print(\"transformer specification Po=4 %Rl=16 rl=360\")\n", - "Vce=2.0*Vcc\n", - "Ip=(2.0*P0)/Vp\n", - "Pi=Vcc*.636*Ip\n", - "Pt=0.5*(Pi-P0)\n", - "\n", - "#Results\n", - "print(\" transistor specification is Py=.68W Vce=60 Ip=333mA\")\n", - "print(\"power delivered to the load Pi = %.2f W \" %Pi)\n", - "print(\"power delivered to the load Pt = %.2f W \" %Pt)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "transformer specification Po=4 %Rl=16 rl=360\n", - " transistor specification is Py=.68W Vce=60 Ip=333mA\n", - "power delivered to the load Pi = 6.36 W \n", - "power delivered to the load Pt = 0.68 W \n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.6 Page No 830" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rl=50.0\n", - "Po=1.0\n", - "hFE=50.0\n", - "Vbe=0.7\n", - "Vrc=4.0\n", - "Vre=1.0\n", - "Vd1=0.7\n", - "\n", - "#Calculations\n", - "Vd2=Vd1\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "Re3=.1*Rl\n", - "Re2=4.7#use stabdard value\n", - "Re2=Re3\n", - "Icq=.1*Ip\n", - "Vb=Vbe+Icq*(Re2+Re3)+Vbe\n", - "Vc1=Vrc\n", - "Ib2=Ip/hFE\n", - "Irc=Ib2+1*10**-3\n", - "Rc=Vrc/Irc\n", - "Rc=680.0 #use standard value\n", - "Vcc=2.0*(Vp+Vre+Vbe+Vrc)\n", - "Vcc=32#use standard value\n", - "Vrcdc=.5*(Vcc-Vb)\n", - "Ic1=Vrcdc/Rc\n", - "Rb=(Vb-Vd1-Vd2)/Ic1\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kOhm \" %Rb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 8.95 kOhm \n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.7 Page No 832" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=32.0\n", - "Vce=32.0\n", - "Ip=200.0*10**-3\n", - "Po=1.0\n", - "\n", - "#Calculations\n", - "Ic=1.1*Ip\n", - "Pi=0.35*Vcc*Ip\n", - "Pt=0.5*(Pi-Po)\n", - "\n", - "#Results\n", - "print(\"power delivered to the load Pi = %.2f \" %Pi)\n", - "print(\"power delivered to the load Pt = %.2f \" %Pt)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power delivered to the load Pi = 2.24 \n", - "power delivered to the load Pt = 0.62 \n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.8, Page No 832" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=50.0\n", - "hib=2.0\n", - "Rl=50.0\n", - "\n", - "#Calculations\n", - "Ce=1.0/(2*3.14*f*hib)\n", - "Co=1.0/(2*3.14*50*.1*Rl)\n", - "\n", - "#Results\n", - "print(\"The value of Ce is %.2f pF \" %(Ce*10**3))\n", - "print(\"The value of Co is %.2f pF \" %(Co*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ce is 1.59 pF \n", - "The value of Co is 0.64 pF \n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.9 Page No 834" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hFE=2000.0\n", - "Vbe=1.4\n", - "Vp=10.0\n", - "Ip=200.0*10**-3\n", - "Icq2=20.0*10**-3\n", - "Re3=4.7\n", - "Re2=4.7\n", - "Vd=0.7\n", - "Ve1=3.0\n", - "Vc1=15.2\n", - "\n", - "#Calculations\n", - "Vrc=Vc1\n", - "Vb=Vbe+Icq*(Re2+Re3)+Vbe\n", - "Vcc=Vrc+Vc1+Vb\n", - "Ib2=Ip/hFE\n", - "Irc=1.0*10**-3\n", - "Vrcac=4.0\n", - "Rc=Vrcac/Irc\n", - "Ic1=Vrc/Rc\n", - "Rb=(Vb-(4*Vd))/Ic1\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kohm \" %Rb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 49.47 kohm \n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.10 Page No 838" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vb=3.2\n", - "Ic1=5*10**-3\n", - "Vce=3.2\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vbmin=Vb-0.5\n", - "Vbmax=Vb+0.5\n", - "I10=.1*Ic1\n", - "R10=(Vce-Vbe)/I10\n", - "R10=4.7*10**3#use standard value\n", - "print(\" for Vce=3.7\")\n", - "Vce=3.7\n", - "I10max=(Vce-Vbe)/R10\n", - "print(\"Vce=2.7V\")\n", - "Vce=2.7\n", - "I10min=(Vce-Vbe)/R10\n", - "R=Vbe/I10min\n", - "R11=Vbe/I10max\n", - "R12=R-R11\n", - "\n", - "#Results\n", - "print(\"The value of R12 is %.2f kohm \" %R12)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Vce=3.7\n", - "Vce=2.7V\n", - "The value of R12 is 548.33 kohm \n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.11 Page No 843" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Rl=16.0\n", - "Po=6.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2.0*Rl*Po)\n", - "Vr14=0.1*Vp\n", - "Vr15=Vr14\n", - "R14=0.1*Rl\n", - "R15=R14\n", - "Vce3=1.0\n", - "Vce4=Vce3\n", - "Vr9=3.0\n", - "Vr11=Vr9\n", - "Vcc=(Vp+Vr14+Vbe+Vce3+Vr9)\n", - "Vee=-Vcc\n", - "Ip=Vp/Rl\n", - "print(\" DC power inpit from supply line\")\n", - "Pi=(Vcc-Vee)*.35*Ip\n", - "Pt=.5*(Pi-Po)\n", - "Vce=2*Vcc\n", - "Ic=1.1*Ip\n", - "\n", - "#Results\n", - "print(\" output transistor specification %.2f mA\" %Ic)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " DC power inpit from supply line\n", - " output transistor specification 0.95 mA\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.12, Page No 844" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "hFE7=20.0\n", - "Icbo=50.0*10**-6\n", - "hFE5=70.0\n", - "Vr9=3.0\n", - "Ip=869.0*10**-3\n", - "R15=1.5\n", - "R8=15.0*10**3\n", - "Vbe=0.7\n", - "Vr11=3.0\n", - "Vee=20.0\n", - "\n", - "#Calculations\n", - "R12=0.01/Icbo\n", - "R12=220#use standard value\n", - "R13=R12\n", - "Ib5=Ip/(hFE7*hFE5)\n", - "Ic3=2.0*10**-3\n", - "R9=Vr9/Ic3\n", - "R11=R9\n", - "Iq78=0.1*Ip\n", - "Vr14=Iq78*R15\n", - "Vr15=Vr14\n", - "Vr10=(Vr14+Vr15)+(Vr14+Vr15)/2\n", - "R10=Vr10/Ic3\n", - "Ir8=(Vr11+Vbe)/R8\n", - "R7=(Vee-(Vr11+Vbe))/Ir8\n", - "\n", - "#Results\n", - "print(\"The value of R7 is %.2f kohm \" %(R7/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R7 is 66.08 kohm \n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.13, Page No 848" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rl=20.0\n", - "Po=2.5\n", - "Rd=4.0\n", - "Vr6=1.0\n", - "Vr9=Vr6\n", - "Vth=1.0\n", - "gFS=250.0*10**-3\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "Vcc=(Vp+Ip*Rd)\n", - "vr6=Ip/gFS\n", - "Vr2=vr6+1\n", - "Vce=Vr2\n", - "Vce3=1.0\n", - "Vr2=Vcc-Vce\n", - "Vee=Vcc\n", - "Vr3=Vee-Vbe\n", - "Vr7=Vr2-Vr6\n", - "Vr8=Vcc-(-Vee)-Vr6-Vr7-Vr9\n", - "\n", - "#Results\n", - "print(\"The value of Vr8 is %.2f V \" %Vr8)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vr8 is 14.00 V \n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.14, Page No 849" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R6=100.0*10**3\n", - "R9=R6\n", - "Vth=1.0\n", - "Vr7=8.0\n", - "Vr8=14.0\n", - "Vr3=11.3\n", - "Vpout=10.0\n", - "Vpin=800.0*10**-3\n", - "\n", - "#Calculations\n", - "I6=Vth/R6\n", - "R7=Vr7/I6\n", - "R8=Vr8/I6\n", - "Ic1=1*10**-4\n", - "Ic2=Ic1\n", - "Vr2=9\n", - "R2=Vr2/Ic1\n", - "R3=Vr3/(Ic1+Ic2)\n", - "R5=4.7*10**3\n", - "Acl=Vpout/Vpin\n", - "R4=R5/(Acl-1.0)\n", - "\n", - "#Results\n", - "print(\"The value of R4 is %.2f kohm \" %(R4/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R4 is 0.41 kohm \n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.15, Page No 854" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vce=1.5\n", - "Vcc=17.0\n", - "Vd1=0.7\n", - "R8=1.5*10**3\n", - "R9=R8\n", - "Rl=100.0\n", - "R6=8.2\n", - "\n", - "#Calculations\n", - "I4=(Vcc-Vd1)/(R8+R9)\n", - "Vc3=Vcc-(I4*R8)\n", - "print(\" bootstrap capacitance terminal voltage is %3.1fV \" %Vc3)\n", - "V=Vcc-Vce#V=Vp+Vr6\n", - "Ip=V/(Rl+R6)\n", - "Vp=Ip*Rl\n", - "print(\" peak output voltage is %3.1fV \" %Vp)\n", - "Po=(Vp)**2.0/(2.0*Rl)\n", - "\n", - "#Results\n", - "print(\" peak output power is %dW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " bootstrap capacitance terminal voltage is 8.8V \n", - " peak output voltage is 14.3V \n", - " peak output power is 1W \n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.16, Page No 856" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rl=8.0\n", - "Po=6.0\n", - "vs=0.1\n", - "hFE=1000.0\n", - "Vce=2.0\n", - "f=50.0*10**3\n", - "Vd1=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "R6=.1*Rl\n", - "R7=R6\n", - "Vcc=Vp+Ip*R6+Vce\n", - "Ib=Ip/hFE\n", - "I4=2*10**-3\n", - "R4=(Vcc-Vd1-Vd1)/I4\n", - "R8=.5*R4\n", - "Acl=Vp/vs\n", - "R3=100*10**3\n", - "R2=R3/(Acl-1)\n", - "SR=(2*3.14*f*Vp)*10**-6\n", - "\n", - "#Results\n", - "print(\" slew rate is %.2f V/us \" %SR)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " slew rate is 3.08 V/us \n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.17, Page No 856" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=50.0\n", - "R1=100.0*10**3\n", - "R2=1.0*10**3\n", - "R8=2.7*10**3\n", - "\n", - "#Calculations\n", - "R9=R8\n", - "C1=1/(2*3.14*f*.1*R1)\n", - "C2=1/(2*3.14*f*R2)\n", - "Xc3=.1*((R8*R9)/(R8+R9))\n", - "C3=1/(2*3.14*f*Xc3)\n", - "C4=C3\n", - "\n", - "#Results\n", - "print(\"The value of C4 is %.2f pF \" %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4 is 23.59 pF \n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.18, Page No 860" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ismin=1.8*10**-3\n", - "Ismax=3.4*10**-3\n", - "R7=820.0\n", - "R5=390.0\n", - "R6=18.0*10**3\n", - "Vi=100.0*10**-3\n", - "Rl=10.0\n", - "\n", - "#Calculations\n", - "Vgsmin=Ismin*R7\n", - "Vgsmax=Ismax*R7\n", - "Acl=(R5+R6)/R5\n", - "Vp=Acl*Vi\n", - "Ip=Vp/Rl\n", - "print(\"peak output current is %3.3fA \" %Ip)\n", - "Po=(Vp*Ip)/2.0\n", - "\n", - "#Results\n", - "print(\"peak output power is %3.2fW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak output current is 0.472A \n", - "peak output power is 1.11W \n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.19, Page No 862" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vbe=0.7\n", - "R2=560.0\n", - "R3min=0\n", - "R3max=1.0*10**3\n", - "Is=2.0*10**-3\n", - "\n", - "#Calculations\n", - "Ic2max=Vbe/(R2+R3min)\n", - "Ic2min=Vbe/(R2+R3max)\n", - "Vgsmin=(Is+Ic2min)*820.0\n", - "Vgsmax=(Is+Ic2max)*820.0\n", - "\n", - "#Results\n", - "print(\"The value of Vgsmax is %.2f v \" %Vgsmax)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vgsmax is 2.67 v \n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.20, Page No 865" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=12.0\n", - "Rl=10.0\n", - "Rd=0.5\n", - "gfs=2.5\n", - "R7=820.0\n", - "V9=1.0*10**3\n", - "\n", - "#Calculations\n", - "R10=R9\n", - "Vp=(Vcc*Rl)/(Rd+Rl)\n", - "Ip=Vp/Rl\n", - "Vgs=Ip/gfs\n", - "Vr7=Is*R7\n", - "Vs=Vcc-Vr7-Vgs\n", - "Vr9=(Vp*R9)/(R9+R10)\n", - "\n", - "#Results\n", - "print(\"op-amp peak output voltage is %.2f v \" %Vr9)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "op-amp peak output voltage is 5.71 v \n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.21, Page No 867" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=0.7\n", - "R2=470.0\n", - "R3=1.0*10**3\n", - "Is=0.5*10**-3\n", - "R7=1.5*10**3\n", - "Vcc=15\n", - "\n", - "#Calculations\n", - "Ic2max=Vbe/R2\n", - "Ic2min=Vbe/(R2+R3)\n", - "Vgs=(Is+Ic2max)*R7\n", - "print(\" MOSFET maximum gate source voltage is %.1fV \" %Vgs)\n", - "Vs=Vcc-Vgs\n", - "\n", - "#Results\n", - "print(\" op-amp minimum suppy is %.2fV \" %Vs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " MOSFET maximum gate source voltage is 3.0V \n", - " op-amp minimum suppy is 12.02V \n" - ] - } - ], - "prompt_number": 63 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.22, Page No 868" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=15.0\n", - "Rl=15.0\n", - "Rd=0.3\n", - "R5=2.2*10**3\n", - "R6=33.0*10**3\n", - "C2=3.9*10**-6\n", - "C4=100.0*10**-12\n", - "\n", - "#Calculations\n", - "print(\" power output\")\n", - "Vp=(Vcc*Rl)/(Rd+Rl)\n", - "Ip=Vp/Rl\n", - "Po=(Vp*Ip)/2.0\n", - "print(\" voltage gain\")\n", - "Av=(R5+R6)/R5\n", - "print(\"cutoff frequency\")\n", - "f1=1.0/(2*3.14*C2*R5)\n", - "f2=1.0/(2*3.14*C4*R6)\n", - "\n", - "#Results\n", - "print(\" cutoff frequency f1 %.2f \" %f1)\n", - "print(\" cutoff frequency f2 %.2f \" %f2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " power output\n", - " voltage gain\n", - "cutoff frequency\n", - " cutoff frequency f1 18.56 \n", - " cutoff frequency f2 48253.23 \n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.23, Page No 871" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=23.0\n", - "Rl=8.0\n", - "Rf2=100.0*10**3\n", - "Rf1=5.6*10**3\n", - "Cf=1.0*10**-6\n", - "Vp=Vcc-5\n", - "\n", - "#Calculations\n", - "Po=(Vp)**2/(2*Rl)\n", - "print(\"maximum output power is %3.2fW \" %Po)\n", - "Acl=(Rf1+Rf2)/Rf1\n", - "print(\" voltage gain %3.1f \" %Acl)\n", - "f=1/(2*3.14*Cf*Rf1)\n", - "\n", - "#Results\n", - "print(\"lower cutoff frequency is %dHz \" %f)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum output power is 20.25W \n", - " voltage gain 18.9 \n", - "lower cutoff frequency is 28Hz \n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.24, Page No 875" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rf=15.0*10**3\n", - "R1=5.6*10**3\n", - "vs=0.5\n", - "Vp=2.7\n", - "\n", - "#Calculations\n", - "Acl=(2.0*Rf)/R1\n", - "Vo=Acl*vs\n", - "Po=(Vp)**2.0/(2.0*Rl)\n", - "\n", - "#Results\n", - "print(\"load power dissipation is %.2fW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load power dissipation is 0.46W \n" - ] - } - ], - "prompt_number": 66 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.24, Page No 875" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=10.0\n", - "Rl=1.0*10**3\n", - "f=3.0*10**6\n", - "Ip=25.0*10**-3\n", - "Vce=0.3\n", - "\n", - "#Calculations\n", - "Vp=Vcc-Vce\n", - "Po=(Vp)**2 /(2*Rl)\n", - "T=1.0/f\n", - "t=(Po*T)/(Ip*Vp)\n", - "angle=(t/T)*360\n", - "print(\" conduction angle is %3.1fdegree \" %angle)\n", - "Idc=Po/Vp\n", - "Pi=Vcc*Idc\n", - "print( \"dc input power is %3.4fW \" %Pi)\n", - "n=(Po/Pi)*100#efficiency\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " conduction angle is 69.8degree \n", - "dc input power is 0.0485W \n", - " maximum efficiency is 97.00 percentage \n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.26, Page No 882" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=1.0*10**6\n", - "Xc=120.0\n", - "Vce=0.5\n", - "Vcc=30.0\n", - "Rl=1.2*10**3\n", - "O=100.0\n", - "\n", - "#Calculations\n", - "Cp=1.0/(2*3.14*f*Xc)\n", - "Cp=1300*10**-12#use standard value\n", - "Lp=1/(((2*3.14*f)**2)*Cp)\n", - "Vp=Vcc-Vce\n", - "Po=((Vp)**2) /(2*Rl)\n", - "Idc=Po/Vp\n", - "T=1.0/f\n", - "t=(O*T)/360.0\n", - "Ip=(Idc*T)/t\n", - "\n", - "#Results\n", - "print(\"The value of Ip is %.2f mA \" %(Ip*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ip is 44.25 mA \n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.27, Page No 883" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rw=0.1\n", - "f=1.0*10**6\n", - "Lp=19.5*10**-6\n", - "Rl=1.2*10**3\n", - "Vcc=30.0\n", - "\n", - "#Calculations\n", - "Idc=12.3*10**-3\n", - "QL=(2*3.14*f*Lp)/Rw\n", - "Qp=Rl/(2*3.14*f*Lp)\n", - "B=f/Qp\n", - "Il=(.707*Vp)/(2*3.14*f*Lp)\n", - "Pl=(Il)**2 *Rw\n", - "Pi=(Vcc*Idc)+Pl\n", - "n=(Po/Pi)*100.0\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum efficiency is 97.50 percentage \n" - ] - } - ], - "prompt_number": 69 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter19_2.ipynb b/Electronic_Devices_and_Circuits/Chapter19_2.ipynb deleted file mode 100755 index f144d168..00000000 --- a/Electronic_Devices_and_Circuits/Chapter19_2.ipynb +++ /dev/null @@ -1,1316 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 19 : Power amplifiers" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.1, Page No 810" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "Rpy=40.0\n", - "N1=74.0\n", - "N2=14.0\n", - "R2=3.7*10**3\n", - "R1=4.7*10**3\n", - "Vbe=0.7\n", - "Re=1.0*10**3\n", - "Vcc=13.0\n", - "Rl=56.0\n", - "\n", - "#Calculations\n", - "print(\"Q-point\")\n", - "Vb=Vcc*(R2/(R1+R2))\n", - "Ic=(Vb-Vbe)/Re\n", - "Ie=Ic\n", - "Vce=Vcc-Ic*(Rpy+Re)\n", - "rl=(N1/N2)**2 *Rl\n", - "rl=rl+Rpy\n", - "Ic=5*10**-3\n", - "Vce=Ic*rl\n", - "\n", - "#Results\n", - "print(\"The value of Vce is %.2f v \" %Vce)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Q-point\n", - "The value of Vce is 8.02 v \n" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.2, Page No 814" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=13.0\n", - "Icq=5.0*10**-3\n", - "Vceq=8.0\n", - "Vp=Vceq\n", - "Ip=Icq\n", - "nt=0.8\n", - "\n", - "#Calculations\n", - "Pi=Vcc*Icq\n", - "Po=.5*Vp*Ip\n", - "P0=nt*Po\n", - "n=(P0/Pi)*100.0\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum efficiency is 24.62 percentage \n" - ] - } - ], - "prompt_number": 45 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.4 Page No 821" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "N1=60.0\n", - "N2=10.0\n", - "Rl=16.0\n", - "Rpy=0\n", - "R6=56.0\n", - "Vcc=27.0\n", - "Vce=0.5\n", - "n=0.79\n", - "\n", - "#Calculations\n", - "print(\" Referred laod\")\n", - "rl=(N1/N2)**2 *Rl\n", - "print(\" tatol ac load line in series with each of Q2 and Q3\")\n", - "Rl=rl+R6+Rpy\n", - "print(\" peak primary current\")\n", - "Ip=(Vcc-Vce)/Rl\n", - "print(\"peak primary voltage\")\n", - "Vp=Vcc-Vce-(Ip*R6)\n", - "print(\"power delivered to primary\")\n", - "Po=.5*Vp*Ip\n", - "\n", - "#Calculations\n", - "Po=Po*n#n is power efficiency\n", - "print(\"power delivered to the load %.2f W \" %Po)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Referred laod\n", - " tatol ac load line in series with each of Q2 and Q3\n", - " peak primary current\n", - "peak primary voltage\n", - "power delivered to primary\n", - "power delivered to the load 0.40 W \n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.5, Page No 824" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Po=4.0\n", - "nt=0.8\n", - "Vcc=30.0\n", - "Vp=Vcc\n", - "Rl=16.0\n", - "\n", - "#Calculations\n", - "P0=Po/nt\n", - "rl=(Vp)**2 /(2*P0)\n", - "rl=4*rl\n", - "print(\"transformer specification Po=4 %Rl=16 rl=360\")\n", - "Vce=2.0*Vcc\n", - "Ip=(2.0*P0)/Vp\n", - "Pi=Vcc*.636*Ip\n", - "Pt=0.5*(Pi-P0)\n", - "\n", - "#Results\n", - "print(\" transistor specification is Py=.68W Vce=60 Ip=333mA\")\n", - "print(\"power delivered to the load Pi = %.2f W \" %Pi)\n", - "print(\"power delivered to the load Pt = %.2f W \" %Pt)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "transformer specification Po=4 %Rl=16 rl=360\n", - " transistor specification is Py=.68W Vce=60 Ip=333mA\n", - "power delivered to the load Pi = 6.36 W \n", - "power delivered to the load Pt = 0.68 W \n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.6 Page No 830" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rl=50.0\n", - "Po=1.0\n", - "hFE=50.0\n", - "Vbe=0.7\n", - "Vrc=4.0\n", - "Vre=1.0\n", - "Vd1=0.7\n", - "\n", - "#Calculations\n", - "Vd2=Vd1\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "Re3=.1*Rl\n", - "Re2=4.7#use stabdard value\n", - "Re2=Re3\n", - "Icq=.1*Ip\n", - "Vb=Vbe+Icq*(Re2+Re3)+Vbe\n", - "Vc1=Vrc\n", - "Ib2=Ip/hFE\n", - "Irc=Ib2+1*10**-3\n", - "Rc=Vrc/Irc\n", - "Rc=680.0 #use standard value\n", - "Vcc=2.0*(Vp+Vre+Vbe+Vrc)\n", - "Vcc=32#use standard value\n", - "Vrcdc=.5*(Vcc-Vb)\n", - "Ic1=Vrcdc/Rc\n", - "Rb=(Vb-Vd1-Vd2)/Ic1\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kOhm \" %Rb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 8.95 kOhm \n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.7 Page No 832" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Vcc=32.0\n", - "Vce=32.0\n", - "Ip=200.0*10**-3\n", - "Po=1.0\n", - "\n", - "#Calculations\n", - "Ic=1.1*Ip\n", - "Pi=0.35*Vcc*Ip\n", - "Pt=0.5*(Pi-Po)\n", - "\n", - "#Results\n", - "print(\"power delivered to the load Pi = %.2f \" %Pi)\n", - "print(\"power delivered to the load Pt = %.2f \" %Pt)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power delivered to the load Pi = 2.24 \n", - "power delivered to the load Pt = 0.62 \n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.8, Page No 832" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=50.0\n", - "hib=2.0\n", - "Rl=50.0\n", - "\n", - "#Calculations\n", - "Ce=1.0/(2*3.14*f*hib)\n", - "Co=1.0/(2*3.14*50*.1*Rl)\n", - "\n", - "#Results\n", - "print(\"The value of Ce is %.2f pF \" %(Ce*10**3))\n", - "print(\"The value of Co is %.2f pF \" %(Co*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ce is 1.59 pF \n", - "The value of Co is 0.64 pF \n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.9 Page No 834" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hFE=2000.0\n", - "Vbe=1.4\n", - "Vp=10.0\n", - "Ip=200.0*10**-3\n", - "Icq2=20.0*10**-3\n", - "Re3=4.7\n", - "Re2=4.7\n", - "Vd=0.7\n", - "Ve1=3.0\n", - "Vc1=15.2\n", - "\n", - "#Calculations\n", - "Vrc=Vc1\n", - "Vb=Vbe+Icq*(Re2+Re3)+Vbe\n", - "Vcc=Vrc+Vc1+Vb\n", - "Ib2=Ip/hFE\n", - "Irc=1.0*10**-3\n", - "Vrcac=4.0\n", - "Rc=Vrcac/Irc\n", - "Ic1=Vrc/Rc\n", - "Rb=(Vb-(4*Vd))/Ic1\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kohm \" %Rb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 49.47 kohm \n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.10 Page No 838" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vb=3.2\n", - "Ic1=5*10**-3\n", - "Vce=3.2\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vbmin=Vb-0.5\n", - "Vbmax=Vb+0.5\n", - "I10=.1*Ic1\n", - "R10=(Vce-Vbe)/I10\n", - "R10=4.7*10**3#use standard value\n", - "print(\" for Vce=3.7\")\n", - "Vce=3.7\n", - "I10max=(Vce-Vbe)/R10\n", - "print(\"Vce=2.7V\")\n", - "Vce=2.7\n", - "I10min=(Vce-Vbe)/R10\n", - "R=Vbe/I10min\n", - "R11=Vbe/I10max\n", - "R12=R-R11\n", - "\n", - "#Results\n", - "print(\"The value of R12 is %.2f kohm \" %R12)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for Vce=3.7\n", - "Vce=2.7V\n", - "The value of R12 is 548.33 kohm \n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.11 Page No 843" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Rl=16.0\n", - "Po=6.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2.0*Rl*Po)\n", - "Vr14=0.1*Vp\n", - "Vr15=Vr14\n", - "R14=0.1*Rl\n", - "R15=R14\n", - "Vce3=1.0\n", - "Vce4=Vce3\n", - "Vr9=3.0\n", - "Vr11=Vr9\n", - "Vcc=(Vp+Vr14+Vbe+Vce3+Vr9)\n", - "Vee=-Vcc\n", - "Ip=Vp/Rl\n", - "print(\" DC power inpit from supply line\")\n", - "Pi=(Vcc-Vee)*.35*Ip\n", - "Pt=.5*(Pi-Po)\n", - "Vce=2*Vcc\n", - "Ic=1.1*Ip\n", - "\n", - "#Results\n", - "print(\" output transistor specification %.2f mA\" %Ic)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " DC power inpit from supply line\n", - " output transistor specification 0.95 mA\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.12, Page No 844" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "hFE7=20.0\n", - "Icbo=50.0*10**-6\n", - "hFE5=70.0\n", - "Vr9=3.0\n", - "Ip=869.0*10**-3\n", - "R15=1.5\n", - "R8=15.0*10**3\n", - "Vbe=0.7\n", - "Vr11=3.0\n", - "Vee=20.0\n", - "\n", - "#Calculations\n", - "R12=0.01/Icbo\n", - "R12=220#use standard value\n", - "R13=R12\n", - "Ib5=Ip/(hFE7*hFE5)\n", - "Ic3=2.0*10**-3\n", - "R9=Vr9/Ic3\n", - "R11=R9\n", - "Iq78=0.1*Ip\n", - "Vr14=Iq78*R15\n", - "Vr15=Vr14\n", - "Vr10=(Vr14+Vr15)+(Vr14+Vr15)/2\n", - "R10=Vr10/Ic3\n", - "Ir8=(Vr11+Vbe)/R8\n", - "R7=(Vee-(Vr11+Vbe))/Ir8\n", - "\n", - "#Results\n", - "print(\"The value of R7 is %.2f kohm \" %(R7/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R7 is 66.08 kohm \n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.13, Page No 848" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rl=20.0\n", - "Po=2.5\n", - "Rd=4.0\n", - "Vr6=1.0\n", - "Vr9=Vr6\n", - "Vth=1.0\n", - "gFS=250.0*10**-3\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "Vcc=(Vp+Ip*Rd)\n", - "vr6=Ip/gFS\n", - "Vr2=vr6+1\n", - "Vce=Vr2\n", - "Vce3=1.0\n", - "Vr2=Vcc-Vce\n", - "Vee=Vcc\n", - "Vr3=Vee-Vbe\n", - "Vr7=Vr2-Vr6\n", - "Vr8=Vcc-(-Vee)-Vr6-Vr7-Vr9\n", - "\n", - "#Results\n", - "print(\"The value of Vr8 is %.2f V \" %Vr8)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vr8 is 14.00 V \n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.14, Page No 849" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "R6=100.0*10**3\n", - "R9=R6\n", - "Vth=1.0\n", - "Vr7=8.0\n", - "Vr8=14.0\n", - "Vr3=11.3\n", - "Vpout=10.0\n", - "Vpin=800.0*10**-3\n", - "\n", - "#Calculations\n", - "I6=Vth/R6\n", - "R7=Vr7/I6\n", - "R8=Vr8/I6\n", - "Ic1=1*10**-4\n", - "Ic2=Ic1\n", - "Vr2=9\n", - "R2=Vr2/Ic1\n", - "R3=Vr3/(Ic1+Ic2)\n", - "R5=4.7*10**3\n", - "Acl=Vpout/Vpin\n", - "R4=R5/(Acl-1.0)\n", - "\n", - "#Results\n", - "print(\"The value of R4 is %.2f kohm \" %(R4/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of R4 is 0.41 kohm \n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.15, Page No 854" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vce=1.5\n", - "Vcc=17.0\n", - "Vd1=0.7\n", - "R8=1.5*10**3\n", - "R9=R8\n", - "Rl=100.0\n", - "R6=8.2\n", - "\n", - "#Calculations\n", - "I4=(Vcc-Vd1)/(R8+R9)\n", - "Vc3=Vcc-(I4*R8)\n", - "print(\" bootstrap capacitance terminal voltage is %3.1fV \" %Vc3)\n", - "V=Vcc-Vce#V=Vp+Vr6\n", - "Ip=V/(Rl+R6)\n", - "Vp=Ip*Rl\n", - "print(\" peak output voltage is %3.1fV \" %Vp)\n", - "Po=(Vp)**2.0/(2.0*Rl)\n", - "\n", - "#Results\n", - "print(\" peak output power is %dW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " bootstrap capacitance terminal voltage is 8.8V \n", - " peak output voltage is 14.3V \n", - " peak output power is 1W \n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.16, Page No 856" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rl=8.0\n", - "Po=6.0\n", - "vs=0.1\n", - "hFE=1000.0\n", - "Vce=2.0\n", - "f=50.0*10**3\n", - "Vd1=0.7\n", - "\n", - "#Calculations\n", - "Vp=math.sqrt(2*Rl*Po)\n", - "Ip=Vp/Rl\n", - "R6=.1*Rl\n", - "R7=R6\n", - "Vcc=Vp+Ip*R6+Vce\n", - "Ib=Ip/hFE\n", - "I4=2*10**-3\n", - "R4=(Vcc-Vd1-Vd1)/I4\n", - "R8=.5*R4\n", - "Acl=Vp/vs\n", - "R3=100*10**3\n", - "R2=R3/(Acl-1)\n", - "SR=(2*3.14*f*Vp)*10**-6\n", - "\n", - "#Results\n", - "print(\" slew rate is %.2f V/us \" %SR)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " slew rate is 3.08 V/us \n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.17, Page No 856" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "f=50.0\n", - "R1=100.0*10**3\n", - "R2=1.0*10**3\n", - "R8=2.7*10**3\n", - "\n", - "#Calculations\n", - "R9=R8\n", - "C1=1/(2*3.14*f*.1*R1)\n", - "C2=1/(2*3.14*f*R2)\n", - "Xc3=.1*((R8*R9)/(R8+R9))\n", - "C3=1/(2*3.14*f*Xc3)\n", - "C4=C3\n", - "\n", - "#Results\n", - "print(\"The value of C4 is %.2f pF \" %(C4*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of C4 is 23.59 pF \n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.18, Page No 860" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ismin=1.8*10**-3\n", - "Ismax=3.4*10**-3\n", - "R7=820.0\n", - "R5=390.0\n", - "R6=18.0*10**3\n", - "Vi=100.0*10**-3\n", - "Rl=10.0\n", - "\n", - "#Calculations\n", - "Vgsmin=Ismin*R7\n", - "Vgsmax=Ismax*R7\n", - "Acl=(R5+R6)/R5\n", - "Vp=Acl*Vi\n", - "Ip=Vp/Rl\n", - "print(\"peak output current is %3.3fA \" %Ip)\n", - "Po=(Vp*Ip)/2.0\n", - "\n", - "#Results\n", - "print(\"peak output power is %3.2fW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak output current is 0.472A \n", - "peak output power is 1.11W \n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.19, Page No 862" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vbe=0.7\n", - "R2=560.0\n", - "R3min=0\n", - "R3max=1.0*10**3\n", - "Is=2.0*10**-3\n", - "\n", - "#Calculations\n", - "Ic2max=Vbe/(R2+R3min)\n", - "Ic2min=Vbe/(R2+R3max)\n", - "Vgsmin=(Is+Ic2min)*820.0\n", - "Vgsmax=(Is+Ic2max)*820.0\n", - "\n", - "#Results\n", - "print(\"The value of Vgsmax is %.2f v \" %Vgsmax)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Vgsmax is 2.67 v \n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.20, Page No 865" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=12.0\n", - "Rl=10.0\n", - "Rd=0.5\n", - "gfs=2.5\n", - "R7=820.0\n", - "V9=1.0*10**3\n", - "\n", - "#Calculations\n", - "R10=R9\n", - "Vp=(Vcc*Rl)/(Rd+Rl)\n", - "Ip=Vp/Rl\n", - "Vgs=Ip/gfs\n", - "Vr7=Is*R7\n", - "Vs=Vcc-Vr7-Vgs\n", - "Vr9=(Vp*R9)/(R9+R10)\n", - "\n", - "#Results\n", - "print(\"op-amp peak output voltage is %.2f v \" %Vr9)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "op-amp peak output voltage is 5.71 v \n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.21, Page No 867" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=0.7\n", - "R2=470.0\n", - "R3=1.0*10**3\n", - "Is=0.5*10**-3\n", - "R7=1.5*10**3\n", - "Vcc=15\n", - "\n", - "#Calculations\n", - "Ic2max=Vbe/R2\n", - "Ic2min=Vbe/(R2+R3)\n", - "Vgs=(Is+Ic2max)*R7\n", - "print(\" MOSFET maximum gate source voltage is %.1fV \" %Vgs)\n", - "Vs=Vcc-Vgs\n", - "\n", - "#Results\n", - "print(\" op-amp minimum suppy is %.2fV \" %Vs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " MOSFET maximum gate source voltage is 3.0V \n", - " op-amp minimum suppy is 12.02V \n" - ] - } - ], - "prompt_number": 63 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.22, Page No 868" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=15.0\n", - "Rl=15.0\n", - "Rd=0.3\n", - "R5=2.2*10**3\n", - "R6=33.0*10**3\n", - "C2=3.9*10**-6\n", - "C4=100.0*10**-12\n", - "\n", - "#Calculations\n", - "print(\" power output\")\n", - "Vp=(Vcc*Rl)/(Rd+Rl)\n", - "Ip=Vp/Rl\n", - "Po=(Vp*Ip)/2.0\n", - "print(\" voltage gain\")\n", - "Av=(R5+R6)/R5\n", - "print(\"cutoff frequency\")\n", - "f1=1.0/(2*3.14*C2*R5)\n", - "f2=1.0/(2*3.14*C4*R6)\n", - "\n", - "#Results\n", - "print(\" cutoff frequency f1 %.2f \" %f1)\n", - "print(\" cutoff frequency f2 %.2f \" %f2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " power output\n", - " voltage gain\n", - "cutoff frequency\n", - " cutoff frequency f1 18.56 \n", - " cutoff frequency f2 48253.23 \n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.23, Page No 871" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=23.0\n", - "Rl=8.0\n", - "Rf2=100.0*10**3\n", - "Rf1=5.6*10**3\n", - "Cf=1.0*10**-6\n", - "Vp=Vcc-5\n", - "\n", - "#Calculations\n", - "Po=(Vp)**2/(2*Rl)\n", - "print(\"maximum output power is %3.2fW \" %Po)\n", - "Acl=(Rf1+Rf2)/Rf1\n", - "print(\" voltage gain %3.1f \" %Acl)\n", - "f=1/(2*3.14*Cf*Rf1)\n", - "\n", - "#Results\n", - "print(\"lower cutoff frequency is %dHz \" %f)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum output power is 20.25W \n", - " voltage gain 18.9 \n", - "lower cutoff frequency is 28Hz \n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.24, Page No 875" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rf=15.0*10**3\n", - "R1=5.6*10**3\n", - "vs=0.5\n", - "Vp=2.7\n", - "\n", - "#Calculations\n", - "Acl=(2.0*Rf)/R1\n", - "Vo=Acl*vs\n", - "Po=(Vp)**2.0/(2.0*Rl)\n", - "\n", - "#Results\n", - "print(\"load power dissipation is %.2fW \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load power dissipation is 0.46W \n" - ] - } - ], - "prompt_number": 66 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.24, Page No 875" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=10.0\n", - "Rl=1.0*10**3\n", - "f=3.0*10**6\n", - "Ip=25.0*10**-3\n", - "Vce=0.3\n", - "\n", - "#Calculations\n", - "Vp=Vcc-Vce\n", - "Po=(Vp)**2 /(2*Rl)\n", - "T=1.0/f\n", - "t=(Po*T)/(Ip*Vp)\n", - "angle=(t/T)*360\n", - "print(\" conduction angle is %3.1fdegree \" %angle)\n", - "Idc=Po/Vp\n", - "Pi=Vcc*Idc\n", - "print( \"dc input power is %3.4fW \" %Pi)\n", - "n=(Po/Pi)*100#efficiency\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " conduction angle is 69.8degree \n", - "dc input power is 0.0485W \n", - " maximum efficiency is 97.00 percentage \n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.26, Page No 882" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=1.0*10**6\n", - "Xc=120.0\n", - "Vce=0.5\n", - "Vcc=30.0\n", - "Rl=1.2*10**3\n", - "O=100.0\n", - "\n", - "#Calculations\n", - "Cp=1.0/(2*3.14*f*Xc)\n", - "Cp=1300*10**-12#use standard value\n", - "Lp=1/(((2*3.14*f)**2)*Cp)\n", - "Vp=Vcc-Vce\n", - "Po=((Vp)**2) /(2*Rl)\n", - "Idc=Po/Vp\n", - "T=1.0/f\n", - "t=(O*T)/360.0\n", - "Ip=(Idc*T)/t\n", - "\n", - "#Results\n", - "print(\"The value of Ip is %.2f mA \" %(Ip*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ip is 44.25 mA \n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 19.27, Page No 883" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rw=0.1\n", - "f=1.0*10**6\n", - "Lp=19.5*10**-6\n", - "Rl=1.2*10**3\n", - "Vcc=30.0\n", - "\n", - "#Calculations\n", - "Idc=12.3*10**-3\n", - "QL=(2*3.14*f*Lp)/Rw\n", - "Qp=Rl/(2*3.14*f*Lp)\n", - "B=f/Qp\n", - "Il=(.707*Vp)/(2*3.14*f*Lp)\n", - "Pl=(Il)**2 *Rw\n", - "Pi=(Vcc*Idc)+Pl\n", - "n=(Po/Pi)*100.0\n", - "\n", - "#Results\n", - "print(\" maximum efficiency is %3.2f percentage \" %n)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum efficiency is 97.50 percentage \n" - ] - } - ], - "prompt_number": 69 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter1_1.ipynb b/Electronic_Devices_and_Circuits/Chapter1_1.ipynb deleted file mode 100755 index 47b8b5fc..00000000 --- a/Electronic_Devices_and_Circuits/Chapter1_1.ipynb +++ /dev/null @@ -1,307 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 01 : Basic semiconductor and pn junction theory" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.1, Page No 15" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Nd=3*10**14\n", - "Na=0.5*10**14 #all in atom/cm**3\n", - "ni=1.5*10**10\n", - "\n", - "#Calculations\n", - "print(\"resultant densities of free electrons and hole\")\n", - "ne=(-(Na-Nd)+(math.sqrt(((Na-Nd)**2)+4*ni**2)))/2\n", - "print(\"Electron densities = %.1f x 10^14 electron/cm**3\" %(ne/(10**14))) #electron densities in electron/cm**3\n", - "Nd>Na\n", - "n=Nd-Na\n", - "print(n)\n", - "p=(ni**2)/n\n", - "\n", - "#Results\n", - "\n", - "print(\"densities of hole is =%.1f X 10^6 dhole/cm3\" %(p/(10**6)))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resultant densities of free electrons and hole\n", - "Electron densities = 2.5 x 10^14 electron/cm**3\n", - "2.5e+14\n", - "densities of hole is =0.9 X 10^6 dhole/cm3\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.2, Page No 18" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "l=1*10**-3\n", - "E=10\n", - "\n", - "#Calculations\n", - "un=1500*10**-4\n", - "up=500*10-4\n", - "Vn=-(un*E)/l\n", - "\n", - "#Results\n", - "print(\"drift current is =%.2dm/s\\n\" %Vn)\n", - "print(\"drift current of hole\")\n", - "Vp=(up*E)/l\n", - "print(\"drift current is =%.f dm/s\\n\" %(Vp/10**5))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "drift current is =-1500m/s\n", - "\n", - "drift current of hole\n", - "drift current is =500 dm/s\n", - "\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.3 Page No 19" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "l=1*10**-3\n", - "a=0.1*10**-4\n", - "ni=1.5*10**10\n", - "p=1.5*10**10\n", - "un=1500\n", - "up=500 #in cm3/V.s\n", - "q=1.6*10**-19\n", - "\n", - "#Calculations\n", - "m=q*((ni*un)+(p*up))*10**6\n", - "print( \"mobility is =%.1fmicro/ohmcm\" %m)\n", - "R=l/(m*a)\n", - "print(\" resistance is =%.1fMohm\" %R)\n", - "\n", - "#for doped material\n", - "n=8*10**13\n", - "p=(ni**2)/n\n", - "m=q*((n*un)+(p*up))\n", - "\n", - "#Results\n", - "print(\"mobility is =%3.4f/ohmcm\" %m)\n", - "R=l/(m*a)\n", - "print(\" resistance is %.2f Kohm\" %(R/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mobility is =4.8micro/ohmcm\n", - " resistance is =20.8Mohm\n", - "mobility is =0.0192/ohmcm\n", - " resistance is 5.21 Kohm\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.4, Page No 25" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "T1=25.0\n", - "T2=35.0\n", - "T3=45.0\n", - "I0=30.0 # nA\n", - "print(\"I0(35)=I0*2**(T2-T1)/10\")\n", - "#on solving\n", - "I035=I0*2**((T2-T1)/10)\n", - "print(\"Current at 35c is =%.2f nA\\n\" %I035)\n", - "print(\"I0(45)=I0*2**(T3-T1)/10\")\n", - "#on solving\n", - "I045=30*2**2\n", - "print(\"current at 45c is =%.2f nA\\n\" %I045)\n", - "I_CS=100.0 \n", - "V_CC=200.0 \n", - "t_on=40*10**-6" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "I0(35)=I0*2**(T2-T1)/10\n", - "Current at 35c is =60.00 nA\n", - "\n", - "I0(45)=I0*2**(T3-T1)/10\n", - "current at 45c is =120.00 nA\n", - "\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.5, Page No 28" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "I0=30\n", - "Vd=0.7\n", - "n=2\n", - "\n", - "#Calculations\n", - "Vt=26.0*10**-3\n", - "k=Vd/(n*Vt)\n", - "Id=I0*((2.7**k)-1)*10**-6 #Junction current\n", - "print(\" a) Forward bais current is =%.2f mA\\n\" %Id)\n", - "Vd=-10 #reverse bais\n", - "k=Vd/(n*Vt)\n", - "Id=I0*((2.7**k)-1)\n", - "\n", - "#Results\n", - "print(\" b) Forward bais current is =%.2f nA\" %Id)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " a) Forward bais current is =19.23 mA\n", - "\n", - " b) Forward bais current is =-30.00 nA\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.6, Page No 29" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=.1*10**-3\n", - "n=2\n", - "vt=26*10**-3\n", - "I0=30*10**-9\n", - "\n", - "#Calculations\n", - "Vd=(n*Vt)*math.log(Id/I0)*10**3\n", - "print(\" a) Forward bais current is =%.2f mV\\n\" %Vd)\n", - "Id=10*10**-3\n", - "Vd=(n*Vt)*math.log(Id/I0)*10**3\n", - "\n", - "#Results\n", - "print(\"b) forward bais current is %dmV\\n\" %Vd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " a) Forward bais current is =421.81 mV\n", - "\n", - "b) forward bais current is 661mV\n", - "\n" - ] - } - ], - "prompt_number": 6 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter1_2.ipynb b/Electronic_Devices_and_Circuits/Chapter1_2.ipynb deleted file mode 100755 index 47b8b5fc..00000000 --- a/Electronic_Devices_and_Circuits/Chapter1_2.ipynb +++ /dev/null @@ -1,307 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 01 : Basic semiconductor and pn junction theory" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.1, Page No 15" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Nd=3*10**14\n", - "Na=0.5*10**14 #all in atom/cm**3\n", - "ni=1.5*10**10\n", - "\n", - "#Calculations\n", - "print(\"resultant densities of free electrons and hole\")\n", - "ne=(-(Na-Nd)+(math.sqrt(((Na-Nd)**2)+4*ni**2)))/2\n", - "print(\"Electron densities = %.1f x 10^14 electron/cm**3\" %(ne/(10**14))) #electron densities in electron/cm**3\n", - "Nd>Na\n", - "n=Nd-Na\n", - "print(n)\n", - "p=(ni**2)/n\n", - "\n", - "#Results\n", - "\n", - "print(\"densities of hole is =%.1f X 10^6 dhole/cm3\" %(p/(10**6)))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resultant densities of free electrons and hole\n", - "Electron densities = 2.5 x 10^14 electron/cm**3\n", - "2.5e+14\n", - "densities of hole is =0.9 X 10^6 dhole/cm3\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.2, Page No 18" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "l=1*10**-3\n", - "E=10\n", - "\n", - "#Calculations\n", - "un=1500*10**-4\n", - "up=500*10-4\n", - "Vn=-(un*E)/l\n", - "\n", - "#Results\n", - "print(\"drift current is =%.2dm/s\\n\" %Vn)\n", - "print(\"drift current of hole\")\n", - "Vp=(up*E)/l\n", - "print(\"drift current is =%.f dm/s\\n\" %(Vp/10**5))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "drift current is =-1500m/s\n", - "\n", - "drift current of hole\n", - "drift current is =500 dm/s\n", - "\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.3 Page No 19" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "l=1*10**-3\n", - "a=0.1*10**-4\n", - "ni=1.5*10**10\n", - "p=1.5*10**10\n", - "un=1500\n", - "up=500 #in cm3/V.s\n", - "q=1.6*10**-19\n", - "\n", - "#Calculations\n", - "m=q*((ni*un)+(p*up))*10**6\n", - "print( \"mobility is =%.1fmicro/ohmcm\" %m)\n", - "R=l/(m*a)\n", - "print(\" resistance is =%.1fMohm\" %R)\n", - "\n", - "#for doped material\n", - "n=8*10**13\n", - "p=(ni**2)/n\n", - "m=q*((n*un)+(p*up))\n", - "\n", - "#Results\n", - "print(\"mobility is =%3.4f/ohmcm\" %m)\n", - "R=l/(m*a)\n", - "print(\" resistance is %.2f Kohm\" %(R/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mobility is =4.8micro/ohmcm\n", - " resistance is =20.8Mohm\n", - "mobility is =0.0192/ohmcm\n", - " resistance is 5.21 Kohm\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.4, Page No 25" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "T1=25.0\n", - "T2=35.0\n", - "T3=45.0\n", - "I0=30.0 # nA\n", - "print(\"I0(35)=I0*2**(T2-T1)/10\")\n", - "#on solving\n", - "I035=I0*2**((T2-T1)/10)\n", - "print(\"Current at 35c is =%.2f nA\\n\" %I035)\n", - "print(\"I0(45)=I0*2**(T3-T1)/10\")\n", - "#on solving\n", - "I045=30*2**2\n", - "print(\"current at 45c is =%.2f nA\\n\" %I045)\n", - "I_CS=100.0 \n", - "V_CC=200.0 \n", - "t_on=40*10**-6" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "I0(35)=I0*2**(T2-T1)/10\n", - "Current at 35c is =60.00 nA\n", - "\n", - "I0(45)=I0*2**(T3-T1)/10\n", - "current at 45c is =120.00 nA\n", - "\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.5, Page No 28" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "I0=30\n", - "Vd=0.7\n", - "n=2\n", - "\n", - "#Calculations\n", - "Vt=26.0*10**-3\n", - "k=Vd/(n*Vt)\n", - "Id=I0*((2.7**k)-1)*10**-6 #Junction current\n", - "print(\" a) Forward bais current is =%.2f mA\\n\" %Id)\n", - "Vd=-10 #reverse bais\n", - "k=Vd/(n*Vt)\n", - "Id=I0*((2.7**k)-1)\n", - "\n", - "#Results\n", - "print(\" b) Forward bais current is =%.2f nA\" %Id)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " a) Forward bais current is =19.23 mA\n", - "\n", - " b) Forward bais current is =-30.00 nA\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.6, Page No 29" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Id=.1*10**-3\n", - "n=2\n", - "vt=26*10**-3\n", - "I0=30*10**-9\n", - "\n", - "#Calculations\n", - "Vd=(n*Vt)*math.log(Id/I0)*10**3\n", - "print(\" a) Forward bais current is =%.2f mV\\n\" %Vd)\n", - "Id=10*10**-3\n", - "Vd=(n*Vt)*math.log(Id/I0)*10**3\n", - "\n", - "#Results\n", - "print(\"b) forward bais current is %dmV\\n\" %Vd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " a) Forward bais current is =421.81 mV\n", - "\n", - "b) forward bais current is 661mV\n", - "\n" - ] - } - ], - "prompt_number": 6 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter2.ipynb b/Electronic_Devices_and_Circuits/Chapter2.ipynb deleted file mode 100755 index 1c97e28b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter2.ipynb +++ /dev/null @@ -1,571 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 02 : Semiconductor diodes" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.1, Page No 37" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=100*10**-3\n", - "Vf=.75 #given\n", - "print(\"a)\")\n", - "print(\"forward resistance\")\n", - "\n", - "#Calculations\n", - "Rf=Vf/If\n", - "print(\"forward resistnace is %3.1fohm \" %Rf)\n", - "print(\"b)\")\n", - "Vr=50\n", - "Ir=100*10**-9\n", - "Rr=(Vr/Ir)\n", - "\n", - "#Results\n", - "print(\"reverse resistnace is %.1fohm \" %(Rr/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)\n", - "forward resistance\n", - "forward resistnace is 7.5ohm \n", - "b)\n", - "reverse resistnace is 500.0ohm \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.2, Page No 39" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=70*10**-3\n", - "\n", - "#Calculations\n", - "rd=(26*10**-3)/If\n", - "print(\"dynamic resistance is %.2fohm \" %rd)\n", - "If=60*10**-3\n", - "Vf=.025\n", - "rd=Vf/If\n", - "\n", - "#Results\n", - "print(\"dynamic resistance is %.2fohm \" %rd)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dynamic resistance is 0.37ohm \n", - "dynamic resistance is 0.42ohm \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.3 Page No 40" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=4.7*10**3\n", - "E=15.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "print(\"diode current is E=If*R1+Vf\")\n", - "If=((E-Vf)/R1)*10**3\n", - "\n", - "#Results\n", - "print(\" diode current is %.2fmA \" %If) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "diode current is E=If*R1+Vf\n", - " diode current is 3.04mA \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.5, Page No 41" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=1.5\n", - "Vf=0.7\n", - "R1=10\n", - "rd=.25\n", - "\n", - "#Calculations\n", - "print(\"a)\")\n", - "If=(E-Vf)/R1\n", - "print(\" forward current is %0.1fmA \" %(If*1000))\n", - "print(\"b)\")\n", - "If=(E-Vf)/(R1+rd)\n", - "\n", - "#Results\n", - "print(\" forward current is %0.1fmA \" %(If*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)\n", - " forward current is 80.0mA \n", - "b)\n", - " forward current is 78.0mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.6 Page No 43" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=0\n", - "Vf=5.0\n", - "R1=100.0\n", - "\n", - "#Calculations\n", - "E=(If*R1)+Vf\n", - "print(\"B)\")\n", - "Vf=0\n", - "E=5.0\n", - "R1=100.0\n", - "If=(E/R1)*1000\n", - "\n", - "#Results\n", - "print(\"resistance is %dmA \" %If) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "B)\n", - "resistance is 50mA \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.8 Page No 45" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=50*10**-3\n", - "Vf=1.1\n", - "R1=100.0\n", - "\n", - "#Calculations\n", - "Vf1=If*R1\n", - "E=Vf1+Vf\n", - "\n", - "#Results\n", - "print(\" new supply voltage is %.2fV \" %E)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " new supply voltage is 6.10V \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.9, Page No 48" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "P1=700.0*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "If=P1/Vf\n", - "#at 65C\n", - "D=5*10**-3\n", - "T=65-25\n", - "P2=P1-D*T\n", - "If=P2/Vf\n", - "\n", - "#Results\n", - "print( \"maximum forward current at 65C is %.1fA \" %(If*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum forward current at 65C is 714.3A \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.10 Page No 49" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vf1=0.7\n", - "Vf=-1.8*10**-3\n", - "If=26.0*10**-3\n", - "T=100-25\n", - "\n", - "#Calculations\n", - "Vf2=Vf1+(T*Vf)\n", - "print(\" voltage at 100C is %.3f V \" %Vf2)\n", - "print(\"At 25C\")\n", - "T1=25.0\n", - "rd=(26*10**-3/If)*((T1+273)/298)\n", - "print(\" resistance at 25 C is %.2f ohm \" %rd)\n", - "print(\" At 100C\")\n", - "T2=100.0\n", - "rd=(26*10**-3/If)*((T2+273)/298)\n", - "\n", - "#Results\n", - "print(\" resistance at 100 C is %.2fohm \" %rd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage at 100C is 0.565 V \n", - "At 25C\n", - " resistance at 25 C is 1.00 ohm \n", - " At 100C\n", - " resistance at 100 C is 1.25ohm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.11 Page No 51" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variablesV_s=230\n", - "If=10*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "t=70.0*10**-9\n", - "Cd=((t*If)/Vf)*10**9\n", - "\n", - "#Results\n", - "print(\" diffusion capacitance is %.2f nF \" %Cd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " diffusion capacitance is 1.00 nF \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.12 Page No 53" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "print(\"A\")\n", - "trr=10.0*10**-9\n", - "\n", - "#Calculations\n", - "tf=10.0*trr*10**9\n", - "print(\"minimum fall times is %d ns \" %tf)\n", - "print(\"B)\")\n", - "trr=3.0\n", - "tf=10*trr\n", - "\n", - "#Results\n", - "print(\"minimum fall times is %d ns \" %tf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "A\n", - "minimum fall times is 100 ns \n", - "B)\n", - "minimum fall times is 30 ns \n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.14, Page No 58" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Io=75.0*10**-3\n", - "#vertical scale of 5mA/cm \n", - "\n", - "#Calculations\n", - "If=Io/5*10**-3\n", - "R1=15/(75*10**-3)\n", - "P=((Io)**2)*R1\n", - "\n", - "#Results\n", - "print(\"Pr1 = %1.1f W \" %P)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Pr1 = 1.1 W \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.15, Page No 63" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=7.5\n", - "Pd=400.0*10**-3\n", - "D=3.2*10**-3\n", - "\n", - "#Calculations\n", - "Izm=Pd/Vz\n", - "print(\"current at 50C is %.1fA \" %(Izm*1000))\n", - "print(\"At 100C\")\n", - "P2=Pd-((100-50)*D)\n", - "print(\" power at 100C is %.3fW \" %P2)\n", - "Izm=P2/Vz\n", - "\n", - "#Results\n", - "print(\" current at 100C is %.1fA \" %(Izm*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current at 50C is 53.3A \n", - "At 100C\n", - " power at 100C is 0.240W \n", - " current at 100C is 32.0A \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.16, Page No 64" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=20.0\n", - "R1=620.0\n", - "Vz=7.5\n", - "\n", - "#Calculations\n", - "Vr1=E-Vz\n", - "Iz=Vr1/R1\n", - "print(\" diode current is %.1f mA \" %(Iz*1000))\n", - "Pd=Vz*Iz\n", - "\n", - "#Results\n", - "print( \"power dissipation is %.1f mW \" %(Pd*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " diode current is 20.2 mA \n", - "power dissipation is 151.2 mW \n" - ] - } - ], - "prompt_number": 26 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter20.ipynb b/Electronic_Devices_and_Circuits/Chapter20.ipynb deleted file mode 100755 index dcf6cb7f..00000000 --- a/Electronic_Devices_and_Circuits/Chapter20.ipynb +++ /dev/null @@ -1,434 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 20 : Thyristors " - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.1, Page No 902" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vs=25.0\n", - "Vtm=1.7\n", - "Rl=25.0\n", - "Ih=5*10**-3\n", - "\n", - "#Calculations\n", - "Vspk=1.414*Vs\n", - "Ilpk=(Vs-Vtm)/Rl\n", - "print(\" for half wave rectifier sinusodial waveform\")\n", - "Ilrms=.5*Ilpk\n", - "es=Vtm+(Ih*Rl)\n", - "\n", - "#Results\n", - "print(\" switch-off voltage =%.2f v\" %es)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for half wave rectifier sinusodial waveform\n", - " switch-off voltage =1.82 v\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.2, Page No 905" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vs=30.0\n", - "Vd1=.7\n", - "Vg=.8\n", - "Ig=200*10**-6\n", - "\n", - "#Calculations\n", - "Vspk=1.414*Vs\n", - "print(\" at 5 degree\")\n", - "es=Vspk*.087 # sin5=.087\n", - "print(\" at 90 degree\")\n", - "es=Vspk\n", - "Vt=Vd1+Vg\n", - "print(\" to trigger at es=3.7V the R2 moving contact is at the top\")\n", - "es=3.7\n", - "Vr1=es-Vt\n", - "I1=1*10**-3\n", - "R1=Vr1/I1\n", - "R=Vt/I1 #R=R2+R3\n", - "es=42.4\n", - "Vr3=Vt\n", - "I1=es/(R+R1)\n", - "R3=Vt/I1\n", - "R2=R-R3\n", - "\n", - "#Results\n", - "print(\" To trigger at es =42.4 the R2 moving contact at the bottom =%.2f\" %R2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " at 5 degree\n", - " at 90 degree\n", - " to trigger at es=3.7V the R2 moving contact is at the top\n", - " To trigger at es =42.4 the R2 moving contact at the bottom =1369.10\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.3 Page No 906" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "R1=2.2*10**3\n", - "R2=1.5*10**3\n", - "R3=120.0\n", - "Vt=1.5\n", - "\n", - "#Calculations\n", - "Vak1=Vt*((R1+R2+R3)/(R3+.5*R2))\n", - "Vak2=Vt*((R1+R2+R3)/R3)\n", - "\n", - "\n", - "#Results\n", - "print(\" with R2 contact at center = %.2f\" %Vak1)\n", - "print(\" with R2 contact at zero = %.2f\" %Vak2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R2 contact at center = 6.59\n", - " with R2 contact at zero = 47.75\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.4, Page No 911" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vs=5.0\n", - "Ilmax=300*10**-3\n", - "Vl=7.0\n", - "Vg=0.8\n", - "\n", - "\n", - "#Calculations\n", - "Vz=Vl-Vg\n", - "print(\" for D1, select a 1N753 with Vz=6.2\")\n", - "Izmin=1*10**-3\n", - "R1=Vg/Izmin\n", - "\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %d kohm \" %R1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for D1, select a 1N753 with Vz=6.2\n", - "The value of R1 is 800 kohm \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.5 Page No 911" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=25*10**3\n", - "R2=2.7*10**3\n", - "C1=3*10**-6\n", - "Vg=0.8\n", - "Vd1=8.0\n", - "Vs=115.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Vc1=Vd1+Vg\n", - "#assume the average charging voltage is\n", - "Vac=1.414*Vs\n", - "E=.636*Vac\n", - "#average charging\n", - "Ic=E/(R1+R2)\n", - "#charging time\n", - "t=(C1*Vc1)/Ic\n", - "T=1/f\n", - "q=(t*360)/T\n", - "a=180-q\n", - "\n", - "#Results\n", - "print(\"Conduction angle =%.2f degrees\" %a)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Conduction angle =27.27 degrees\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.6 Page No 925" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vs=10.0\n", - "Vf=1.7\n", - "Is=500*10**-6\n", - "Ih=1.5*10**-3\n", - "E=30.0\n", - "\n", - "#Calculations\n", - "R=27*10**3\n", - "C=0.5*10**-6\n", - "R1max=(E-Vs)/Is\n", - "R1min=(E-Vf)/Ih\n", - "t=C*R*math.log((E-Vf)/(E-Vs))\n", - "\n", - "\n", - "#Results\n", - "print(\"Capacitor charging time is %3.4f s\" %t)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Capacitor charging time is 0.0047 s\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.7, Page No 931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rbb=4.0*10**3\n", - "Pd25=360.0*10**-3\n", - "D=2.4*10**-3\n", - "T2=100.0\n", - "\n", - "#Calculations\n", - "Pd=Pd25-D*(T2-25)\n", - "Vb1b1=math.sqrt(Rbb*Pd)\n", - "\n", - "#Results\n", - "print(\"Maximum Vb1b1 that should be used at a temp 100 is %3.1fV \" %Vb1b1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Maximum Vb1b1 that should be used at a temp 100 is 26.8V \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.8 Page No 931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Vb1b1=25\n", - "nmax=0.86\n", - "nmin=0.74\n", - "Vd=0.7\n", - "\n", - "#Calculations\n", - "Vpmax=Vd+(nmax*Vb1b1)\n", - "Vpmin=Vd+(nmin*Vb1b1)\n", - "\n", - "#Results\n", - "print(\"Maximum Vpmax that should be is %3.1fV \" %Vpmax)\n", - "print(\"Minimum Vpmin that should be is %3.1fV \" %Vpmin)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Maximum Vpmax that should be is 22.2V \n", - "Minimum Vpmin that should be is 19.2V \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.9 Page No 933" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Ip=.6*10**-6\n", - "Iv=2*10**-3\n", - "Veb1=2.5\n", - "Vpmin=19.2\n", - "Vpmax=22.2\n", - "Vbb=25.0\n", - "C=1*10**-6\n", - "R=18*10**3\n", - "Vp=20.0\n", - "\n", - "\n", - "#Calculations\n", - "Vpmin=(Vbb-Vpmax)/Ip\n", - "Remax=(Vbb-Veb1)/Iv\n", - "t=C*R*math.log((Vbb-Veb1)/(Vbb-Vp))\n", - "f=1.0/t\n", - "\n", - "#Results\n", - "print(\"The value of f is %.2f \" %f)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of f is 36.94 \n" - ] - } - ], - "prompt_number": 23 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter20_1.ipynb b/Electronic_Devices_and_Circuits/Chapter20_1.ipynb deleted file mode 100755 index dcf6cb7f..00000000 --- a/Electronic_Devices_and_Circuits/Chapter20_1.ipynb +++ /dev/null @@ -1,434 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 20 : Thyristors " - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.1, Page No 902" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vs=25.0\n", - "Vtm=1.7\n", - "Rl=25.0\n", - "Ih=5*10**-3\n", - "\n", - "#Calculations\n", - "Vspk=1.414*Vs\n", - "Ilpk=(Vs-Vtm)/Rl\n", - "print(\" for half wave rectifier sinusodial waveform\")\n", - "Ilrms=.5*Ilpk\n", - "es=Vtm+(Ih*Rl)\n", - "\n", - "#Results\n", - "print(\" switch-off voltage =%.2f v\" %es)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for half wave rectifier sinusodial waveform\n", - " switch-off voltage =1.82 v\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.2, Page No 905" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vs=30.0\n", - "Vd1=.7\n", - "Vg=.8\n", - "Ig=200*10**-6\n", - "\n", - "#Calculations\n", - "Vspk=1.414*Vs\n", - "print(\" at 5 degree\")\n", - "es=Vspk*.087 # sin5=.087\n", - "print(\" at 90 degree\")\n", - "es=Vspk\n", - "Vt=Vd1+Vg\n", - "print(\" to trigger at es=3.7V the R2 moving contact is at the top\")\n", - "es=3.7\n", - "Vr1=es-Vt\n", - "I1=1*10**-3\n", - "R1=Vr1/I1\n", - "R=Vt/I1 #R=R2+R3\n", - "es=42.4\n", - "Vr3=Vt\n", - "I1=es/(R+R1)\n", - "R3=Vt/I1\n", - "R2=R-R3\n", - "\n", - "#Results\n", - "print(\" To trigger at es =42.4 the R2 moving contact at the bottom =%.2f\" %R2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " at 5 degree\n", - " at 90 degree\n", - " to trigger at es=3.7V the R2 moving contact is at the top\n", - " To trigger at es =42.4 the R2 moving contact at the bottom =1369.10\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.3 Page No 906" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "R1=2.2*10**3\n", - "R2=1.5*10**3\n", - "R3=120.0\n", - "Vt=1.5\n", - "\n", - "#Calculations\n", - "Vak1=Vt*((R1+R2+R3)/(R3+.5*R2))\n", - "Vak2=Vt*((R1+R2+R3)/R3)\n", - "\n", - "\n", - "#Results\n", - "print(\" with R2 contact at center = %.2f\" %Vak1)\n", - "print(\" with R2 contact at zero = %.2f\" %Vak2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R2 contact at center = 6.59\n", - " with R2 contact at zero = 47.75\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.4, Page No 911" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vs=5.0\n", - "Ilmax=300*10**-3\n", - "Vl=7.0\n", - "Vg=0.8\n", - "\n", - "\n", - "#Calculations\n", - "Vz=Vl-Vg\n", - "print(\" for D1, select a 1N753 with Vz=6.2\")\n", - "Izmin=1*10**-3\n", - "R1=Vg/Izmin\n", - "\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %d kohm \" %R1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for D1, select a 1N753 with Vz=6.2\n", - "The value of R1 is 800 kohm \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.5 Page No 911" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=25*10**3\n", - "R2=2.7*10**3\n", - "C1=3*10**-6\n", - "Vg=0.8\n", - "Vd1=8.0\n", - "Vs=115.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Vc1=Vd1+Vg\n", - "#assume the average charging voltage is\n", - "Vac=1.414*Vs\n", - "E=.636*Vac\n", - "#average charging\n", - "Ic=E/(R1+R2)\n", - "#charging time\n", - "t=(C1*Vc1)/Ic\n", - "T=1/f\n", - "q=(t*360)/T\n", - "a=180-q\n", - "\n", - "#Results\n", - "print(\"Conduction angle =%.2f degrees\" %a)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Conduction angle =27.27 degrees\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.6 Page No 925" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vs=10.0\n", - "Vf=1.7\n", - "Is=500*10**-6\n", - "Ih=1.5*10**-3\n", - "E=30.0\n", - "\n", - "#Calculations\n", - "R=27*10**3\n", - "C=0.5*10**-6\n", - "R1max=(E-Vs)/Is\n", - "R1min=(E-Vf)/Ih\n", - "t=C*R*math.log((E-Vf)/(E-Vs))\n", - "\n", - "\n", - "#Results\n", - "print(\"Capacitor charging time is %3.4f s\" %t)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Capacitor charging time is 0.0047 s\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.7, Page No 931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rbb=4.0*10**3\n", - "Pd25=360.0*10**-3\n", - "D=2.4*10**-3\n", - "T2=100.0\n", - "\n", - "#Calculations\n", - "Pd=Pd25-D*(T2-25)\n", - "Vb1b1=math.sqrt(Rbb*Pd)\n", - "\n", - "#Results\n", - "print(\"Maximum Vb1b1 that should be used at a temp 100 is %3.1fV \" %Vb1b1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Maximum Vb1b1 that should be used at a temp 100 is 26.8V \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.8 Page No 931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Vb1b1=25\n", - "nmax=0.86\n", - "nmin=0.74\n", - "Vd=0.7\n", - "\n", - "#Calculations\n", - "Vpmax=Vd+(nmax*Vb1b1)\n", - "Vpmin=Vd+(nmin*Vb1b1)\n", - "\n", - "#Results\n", - "print(\"Maximum Vpmax that should be is %3.1fV \" %Vpmax)\n", - "print(\"Minimum Vpmin that should be is %3.1fV \" %Vpmin)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Maximum Vpmax that should be is 22.2V \n", - "Minimum Vpmin that should be is 19.2V \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.9 Page No 933" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Ip=.6*10**-6\n", - "Iv=2*10**-3\n", - "Veb1=2.5\n", - "Vpmin=19.2\n", - "Vpmax=22.2\n", - "Vbb=25.0\n", - "C=1*10**-6\n", - "R=18*10**3\n", - "Vp=20.0\n", - "\n", - "\n", - "#Calculations\n", - "Vpmin=(Vbb-Vpmax)/Ip\n", - "Remax=(Vbb-Veb1)/Iv\n", - "t=C*R*math.log((Vbb-Veb1)/(Vbb-Vp))\n", - "f=1.0/t\n", - "\n", - "#Results\n", - "print(\"The value of f is %.2f \" %f)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of f is 36.94 \n" - ] - } - ], - "prompt_number": 23 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter20_2.ipynb b/Electronic_Devices_and_Circuits/Chapter20_2.ipynb deleted file mode 100755 index dcf6cb7f..00000000 --- a/Electronic_Devices_and_Circuits/Chapter20_2.ipynb +++ /dev/null @@ -1,434 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 20 : Thyristors " - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.1, Page No 902" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vs=25.0\n", - "Vtm=1.7\n", - "Rl=25.0\n", - "Ih=5*10**-3\n", - "\n", - "#Calculations\n", - "Vspk=1.414*Vs\n", - "Ilpk=(Vs-Vtm)/Rl\n", - "print(\" for half wave rectifier sinusodial waveform\")\n", - "Ilrms=.5*Ilpk\n", - "es=Vtm+(Ih*Rl)\n", - "\n", - "#Results\n", - "print(\" switch-off voltage =%.2f v\" %es)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for half wave rectifier sinusodial waveform\n", - " switch-off voltage =1.82 v\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.2, Page No 905" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vs=30.0\n", - "Vd1=.7\n", - "Vg=.8\n", - "Ig=200*10**-6\n", - "\n", - "#Calculations\n", - "Vspk=1.414*Vs\n", - "print(\" at 5 degree\")\n", - "es=Vspk*.087 # sin5=.087\n", - "print(\" at 90 degree\")\n", - "es=Vspk\n", - "Vt=Vd1+Vg\n", - "print(\" to trigger at es=3.7V the R2 moving contact is at the top\")\n", - "es=3.7\n", - "Vr1=es-Vt\n", - "I1=1*10**-3\n", - "R1=Vr1/I1\n", - "R=Vt/I1 #R=R2+R3\n", - "es=42.4\n", - "Vr3=Vt\n", - "I1=es/(R+R1)\n", - "R3=Vt/I1\n", - "R2=R-R3\n", - "\n", - "#Results\n", - "print(\" To trigger at es =42.4 the R2 moving contact at the bottom =%.2f\" %R2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " at 5 degree\n", - " at 90 degree\n", - " to trigger at es=3.7V the R2 moving contact is at the top\n", - " To trigger at es =42.4 the R2 moving contact at the bottom =1369.10\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.3 Page No 906" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "R1=2.2*10**3\n", - "R2=1.5*10**3\n", - "R3=120.0\n", - "Vt=1.5\n", - "\n", - "#Calculations\n", - "Vak1=Vt*((R1+R2+R3)/(R3+.5*R2))\n", - "Vak2=Vt*((R1+R2+R3)/R3)\n", - "\n", - "\n", - "#Results\n", - "print(\" with R2 contact at center = %.2f\" %Vak1)\n", - "print(\" with R2 contact at zero = %.2f\" %Vak2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R2 contact at center = 6.59\n", - " with R2 contact at zero = 47.75\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.4, Page No 911" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vs=5.0\n", - "Ilmax=300*10**-3\n", - "Vl=7.0\n", - "Vg=0.8\n", - "\n", - "\n", - "#Calculations\n", - "Vz=Vl-Vg\n", - "print(\" for D1, select a 1N753 with Vz=6.2\")\n", - "Izmin=1*10**-3\n", - "R1=Vg/Izmin\n", - "\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %d kohm \" %R1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " for D1, select a 1N753 with Vz=6.2\n", - "The value of R1 is 800 kohm \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.5 Page No 911" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=25*10**3\n", - "R2=2.7*10**3\n", - "C1=3*10**-6\n", - "Vg=0.8\n", - "Vd1=8.0\n", - "Vs=115.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Vc1=Vd1+Vg\n", - "#assume the average charging voltage is\n", - "Vac=1.414*Vs\n", - "E=.636*Vac\n", - "#average charging\n", - "Ic=E/(R1+R2)\n", - "#charging time\n", - "t=(C1*Vc1)/Ic\n", - "T=1/f\n", - "q=(t*360)/T\n", - "a=180-q\n", - "\n", - "#Results\n", - "print(\"Conduction angle =%.2f degrees\" %a)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Conduction angle =27.27 degrees\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.6 Page No 925" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vs=10.0\n", - "Vf=1.7\n", - "Is=500*10**-6\n", - "Ih=1.5*10**-3\n", - "E=30.0\n", - "\n", - "#Calculations\n", - "R=27*10**3\n", - "C=0.5*10**-6\n", - "R1max=(E-Vs)/Is\n", - "R1min=(E-Vf)/Ih\n", - "t=C*R*math.log((E-Vf)/(E-Vs))\n", - "\n", - "\n", - "#Results\n", - "print(\"Capacitor charging time is %3.4f s\" %t)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Capacitor charging time is 0.0047 s\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.7, Page No 931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rbb=4.0*10**3\n", - "Pd25=360.0*10**-3\n", - "D=2.4*10**-3\n", - "T2=100.0\n", - "\n", - "#Calculations\n", - "Pd=Pd25-D*(T2-25)\n", - "Vb1b1=math.sqrt(Rbb*Pd)\n", - "\n", - "#Results\n", - "print(\"Maximum Vb1b1 that should be used at a temp 100 is %3.1fV \" %Vb1b1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Maximum Vb1b1 that should be used at a temp 100 is 26.8V \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.8 Page No 931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Vb1b1=25\n", - "nmax=0.86\n", - "nmin=0.74\n", - "Vd=0.7\n", - "\n", - "#Calculations\n", - "Vpmax=Vd+(nmax*Vb1b1)\n", - "Vpmin=Vd+(nmin*Vb1b1)\n", - "\n", - "#Results\n", - "print(\"Maximum Vpmax that should be is %3.1fV \" %Vpmax)\n", - "print(\"Minimum Vpmin that should be is %3.1fV \" %Vpmin)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Maximum Vpmax that should be is 22.2V \n", - "Minimum Vpmin that should be is 19.2V \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 20.9 Page No 933" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Ip=.6*10**-6\n", - "Iv=2*10**-3\n", - "Veb1=2.5\n", - "Vpmin=19.2\n", - "Vpmax=22.2\n", - "Vbb=25.0\n", - "C=1*10**-6\n", - "R=18*10**3\n", - "Vp=20.0\n", - "\n", - "\n", - "#Calculations\n", - "Vpmin=(Vbb-Vpmax)/Ip\n", - "Remax=(Vbb-Veb1)/Iv\n", - "t=C*R*math.log((Vbb-Veb1)/(Vbb-Vp))\n", - "f=1.0/t\n", - "\n", - "#Results\n", - "print(\"The value of f is %.2f \" %f)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of f is 36.94 \n" - ] - } - ], - "prompt_number": 23 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter21.ipynb b/Electronic_Devices_and_Circuits/Chapter21.ipynb deleted file mode 100755 index adcb4972..00000000 --- a/Electronic_Devices_and_Circuits/Chapter21.ipynb +++ /dev/null @@ -1,241 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 21 : Optoelectronic Devices" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.1, Page No 947" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "r=3.0\n", - "Os=25.0\n", - "area=0.25\n", - "\n", - "#Calculations\n", - "Ea=Os/(4.0*3.14*(r)**2)\n", - "Tf=Ea*area\n", - "\n", - "#Results\n", - "print(\" total flux is %3.3fW \" %Tf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " total flux is 0.055W \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.3, Page No 951" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=9.0\n", - "Vf=1.6\n", - "Vb=7.0\n", - "hFE=100.0\n", - "Vce=0.2\n", - "Ic=10.0*10**-3\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "R2=(Vcc-Vf-Vce)/Ic\n", - "R2=680#use standard value\n", - "Ic=(Vcc-Vf-Vce)/R2\n", - "Ib=Ic/hFE\n", - "Rb=(Vb-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %d kohm\" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 59 kohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.4 Page No 952" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=5.0\n", - "N=(3*7.0)+(1.0*2)\n", - "\n", - "#Calculations\n", - "It=N*10.0*10**-3\n", - "P=It*Vcc\n", - "\n", - "#Results\n", - "print(\"The value of power is %.2f W\" %P)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of power is 1.15 W\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.5, Page No 957" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=1.0*10**3\n", - "I=10.0*10**-3\n", - "E=30.0\n", - "\n", - "#Calculations\n", - "R1=E/I -Rc\n", - "R1=1.8*10**3#use standard value\n", - "print(\" when dark Rc=100Kohm\")\n", - "Rc=100*10**3\n", - "I=E/(R1+Rc)\n", - "\n", - "#Results\n", - "print(\"The value of I is %.2f mA\" %(I*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " when dark Rc=100Kohm\n", - "The value of I is 0.29 mA\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.6 Page No 958" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vee=6.0\n", - "Vbe=0.7\n", - "Ib=200.0*10**-6\n", - "Vb=0.7\n", - "Vcc=6.0\n", - "\n", - "#Calculations\n", - "print(\"when cell is dark Rc=100Kohm\")\n", - "Rc=100.0*10**3\n", - "Vrc=Vee+Vbe\n", - "Irc=Vrc/Rc\n", - "Ir1=Irc+Ib\n", - "Vr1=Vcc-Vb\n", - "R1=Vr1/Ir1\n", - "R1=18.0*10**3#use standard value\n", - "print(\" when Q1 is off\")\n", - "Vr1=6.0\n", - "Vrc=6.0\n", - "Ir1=Vr1/R1\n", - "Rc=Vrc/Ir1\n", - "\n", - "#Results\n", - "print(\"The value of Rc is %d kohm\" %(Rc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when cell is dark Rc=100Kohm\n", - " when Q1 is off\n", - "The value of Rc is 18 kohm\n" - ] - } - ], - "prompt_number": 17 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter21_1.ipynb b/Electronic_Devices_and_Circuits/Chapter21_1.ipynb deleted file mode 100755 index adcb4972..00000000 --- a/Electronic_Devices_and_Circuits/Chapter21_1.ipynb +++ /dev/null @@ -1,241 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 21 : Optoelectronic Devices" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.1, Page No 947" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "r=3.0\n", - "Os=25.0\n", - "area=0.25\n", - "\n", - "#Calculations\n", - "Ea=Os/(4.0*3.14*(r)**2)\n", - "Tf=Ea*area\n", - "\n", - "#Results\n", - "print(\" total flux is %3.3fW \" %Tf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " total flux is 0.055W \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.3, Page No 951" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=9.0\n", - "Vf=1.6\n", - "Vb=7.0\n", - "hFE=100.0\n", - "Vce=0.2\n", - "Ic=10.0*10**-3\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "R2=(Vcc-Vf-Vce)/Ic\n", - "R2=680#use standard value\n", - "Ic=(Vcc-Vf-Vce)/R2\n", - "Ib=Ic/hFE\n", - "Rb=(Vb-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %d kohm\" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 59 kohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.4 Page No 952" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=5.0\n", - "N=(3*7.0)+(1.0*2)\n", - "\n", - "#Calculations\n", - "It=N*10.0*10**-3\n", - "P=It*Vcc\n", - "\n", - "#Results\n", - "print(\"The value of power is %.2f W\" %P)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of power is 1.15 W\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.5, Page No 957" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=1.0*10**3\n", - "I=10.0*10**-3\n", - "E=30.0\n", - "\n", - "#Calculations\n", - "R1=E/I -Rc\n", - "R1=1.8*10**3#use standard value\n", - "print(\" when dark Rc=100Kohm\")\n", - "Rc=100*10**3\n", - "I=E/(R1+Rc)\n", - "\n", - "#Results\n", - "print(\"The value of I is %.2f mA\" %(I*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " when dark Rc=100Kohm\n", - "The value of I is 0.29 mA\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.6 Page No 958" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vee=6.0\n", - "Vbe=0.7\n", - "Ib=200.0*10**-6\n", - "Vb=0.7\n", - "Vcc=6.0\n", - "\n", - "#Calculations\n", - "print(\"when cell is dark Rc=100Kohm\")\n", - "Rc=100.0*10**3\n", - "Vrc=Vee+Vbe\n", - "Irc=Vrc/Rc\n", - "Ir1=Irc+Ib\n", - "Vr1=Vcc-Vb\n", - "R1=Vr1/Ir1\n", - "R1=18.0*10**3#use standard value\n", - "print(\" when Q1 is off\")\n", - "Vr1=6.0\n", - "Vrc=6.0\n", - "Ir1=Vr1/R1\n", - "Rc=Vrc/Ir1\n", - "\n", - "#Results\n", - "print(\"The value of Rc is %d kohm\" %(Rc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when cell is dark Rc=100Kohm\n", - " when Q1 is off\n", - "The value of Rc is 18 kohm\n" - ] - } - ], - "prompt_number": 17 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter21_2.ipynb b/Electronic_Devices_and_Circuits/Chapter21_2.ipynb deleted file mode 100755 index adcb4972..00000000 --- a/Electronic_Devices_and_Circuits/Chapter21_2.ipynb +++ /dev/null @@ -1,241 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 21 : Optoelectronic Devices" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.1, Page No 947" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "r=3.0\n", - "Os=25.0\n", - "area=0.25\n", - "\n", - "#Calculations\n", - "Ea=Os/(4.0*3.14*(r)**2)\n", - "Tf=Ea*area\n", - "\n", - "#Results\n", - "print(\" total flux is %3.3fW \" %Tf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " total flux is 0.055W \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.3, Page No 951" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=9.0\n", - "Vf=1.6\n", - "Vb=7.0\n", - "hFE=100.0\n", - "Vce=0.2\n", - "Ic=10.0*10**-3\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "R2=(Vcc-Vf-Vce)/Ic\n", - "R2=680#use standard value\n", - "Ic=(Vcc-Vf-Vce)/R2\n", - "Ib=Ic/hFE\n", - "Rb=(Vb-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %d kohm\" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 59 kohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.4 Page No 952" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=5.0\n", - "N=(3*7.0)+(1.0*2)\n", - "\n", - "#Calculations\n", - "It=N*10.0*10**-3\n", - "P=It*Vcc\n", - "\n", - "#Results\n", - "print(\"The value of power is %.2f W\" %P)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of power is 1.15 W\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.5, Page No 957" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=1.0*10**3\n", - "I=10.0*10**-3\n", - "E=30.0\n", - "\n", - "#Calculations\n", - "R1=E/I -Rc\n", - "R1=1.8*10**3#use standard value\n", - "print(\" when dark Rc=100Kohm\")\n", - "Rc=100*10**3\n", - "I=E/(R1+Rc)\n", - "\n", - "#Results\n", - "print(\"The value of I is %.2f mA\" %(I*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " when dark Rc=100Kohm\n", - "The value of I is 0.29 mA\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 21.6 Page No 958" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vee=6.0\n", - "Vbe=0.7\n", - "Ib=200.0*10**-6\n", - "Vb=0.7\n", - "Vcc=6.0\n", - "\n", - "#Calculations\n", - "print(\"when cell is dark Rc=100Kohm\")\n", - "Rc=100.0*10**3\n", - "Vrc=Vee+Vbe\n", - "Irc=Vrc/Rc\n", - "Ir1=Irc+Ib\n", - "Vr1=Vcc-Vb\n", - "R1=Vr1/Ir1\n", - "R1=18.0*10**3#use standard value\n", - "print(\" when Q1 is off\")\n", - "Vr1=6.0\n", - "Vrc=6.0\n", - "Ir1=Vr1/R1\n", - "Rc=Vrc/Ir1\n", - "\n", - "#Results\n", - "print(\"The value of Rc is %d kohm\" %(Rc/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when cell is dark Rc=100Kohm\n", - " when Q1 is off\n", - "The value of Rc is 18 kohm\n" - ] - } - ], - "prompt_number": 17 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter2_1.ipynb b/Electronic_Devices_and_Circuits/Chapter2_1.ipynb deleted file mode 100755 index 1c97e28b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter2_1.ipynb +++ /dev/null @@ -1,571 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 02 : Semiconductor diodes" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.1, Page No 37" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=100*10**-3\n", - "Vf=.75 #given\n", - "print(\"a)\")\n", - "print(\"forward resistance\")\n", - "\n", - "#Calculations\n", - "Rf=Vf/If\n", - "print(\"forward resistnace is %3.1fohm \" %Rf)\n", - "print(\"b)\")\n", - "Vr=50\n", - "Ir=100*10**-9\n", - "Rr=(Vr/Ir)\n", - "\n", - "#Results\n", - "print(\"reverse resistnace is %.1fohm \" %(Rr/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)\n", - "forward resistance\n", - "forward resistnace is 7.5ohm \n", - "b)\n", - "reverse resistnace is 500.0ohm \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.2, Page No 39" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=70*10**-3\n", - "\n", - "#Calculations\n", - "rd=(26*10**-3)/If\n", - "print(\"dynamic resistance is %.2fohm \" %rd)\n", - "If=60*10**-3\n", - "Vf=.025\n", - "rd=Vf/If\n", - "\n", - "#Results\n", - "print(\"dynamic resistance is %.2fohm \" %rd)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dynamic resistance is 0.37ohm \n", - "dynamic resistance is 0.42ohm \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.3 Page No 40" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=4.7*10**3\n", - "E=15.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "print(\"diode current is E=If*R1+Vf\")\n", - "If=((E-Vf)/R1)*10**3\n", - "\n", - "#Results\n", - "print(\" diode current is %.2fmA \" %If) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "diode current is E=If*R1+Vf\n", - " diode current is 3.04mA \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.5, Page No 41" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=1.5\n", - "Vf=0.7\n", - "R1=10\n", - "rd=.25\n", - "\n", - "#Calculations\n", - "print(\"a)\")\n", - "If=(E-Vf)/R1\n", - "print(\" forward current is %0.1fmA \" %(If*1000))\n", - "print(\"b)\")\n", - "If=(E-Vf)/(R1+rd)\n", - "\n", - "#Results\n", - "print(\" forward current is %0.1fmA \" %(If*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)\n", - " forward current is 80.0mA \n", - "b)\n", - " forward current is 78.0mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.6 Page No 43" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=0\n", - "Vf=5.0\n", - "R1=100.0\n", - "\n", - "#Calculations\n", - "E=(If*R1)+Vf\n", - "print(\"B)\")\n", - "Vf=0\n", - "E=5.0\n", - "R1=100.0\n", - "If=(E/R1)*1000\n", - "\n", - "#Results\n", - "print(\"resistance is %dmA \" %If) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "B)\n", - "resistance is 50mA \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.8 Page No 45" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=50*10**-3\n", - "Vf=1.1\n", - "R1=100.0\n", - "\n", - "#Calculations\n", - "Vf1=If*R1\n", - "E=Vf1+Vf\n", - "\n", - "#Results\n", - "print(\" new supply voltage is %.2fV \" %E)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " new supply voltage is 6.10V \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.9, Page No 48" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "P1=700.0*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "If=P1/Vf\n", - "#at 65C\n", - "D=5*10**-3\n", - "T=65-25\n", - "P2=P1-D*T\n", - "If=P2/Vf\n", - "\n", - "#Results\n", - "print( \"maximum forward current at 65C is %.1fA \" %(If*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum forward current at 65C is 714.3A \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.10 Page No 49" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vf1=0.7\n", - "Vf=-1.8*10**-3\n", - "If=26.0*10**-3\n", - "T=100-25\n", - "\n", - "#Calculations\n", - "Vf2=Vf1+(T*Vf)\n", - "print(\" voltage at 100C is %.3f V \" %Vf2)\n", - "print(\"At 25C\")\n", - "T1=25.0\n", - "rd=(26*10**-3/If)*((T1+273)/298)\n", - "print(\" resistance at 25 C is %.2f ohm \" %rd)\n", - "print(\" At 100C\")\n", - "T2=100.0\n", - "rd=(26*10**-3/If)*((T2+273)/298)\n", - "\n", - "#Results\n", - "print(\" resistance at 100 C is %.2fohm \" %rd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage at 100C is 0.565 V \n", - "At 25C\n", - " resistance at 25 C is 1.00 ohm \n", - " At 100C\n", - " resistance at 100 C is 1.25ohm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.11 Page No 51" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variablesV_s=230\n", - "If=10*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "t=70.0*10**-9\n", - "Cd=((t*If)/Vf)*10**9\n", - "\n", - "#Results\n", - "print(\" diffusion capacitance is %.2f nF \" %Cd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " diffusion capacitance is 1.00 nF \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.12 Page No 53" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "print(\"A\")\n", - "trr=10.0*10**-9\n", - "\n", - "#Calculations\n", - "tf=10.0*trr*10**9\n", - "print(\"minimum fall times is %d ns \" %tf)\n", - "print(\"B)\")\n", - "trr=3.0\n", - "tf=10*trr\n", - "\n", - "#Results\n", - "print(\"minimum fall times is %d ns \" %tf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "A\n", - "minimum fall times is 100 ns \n", - "B)\n", - "minimum fall times is 30 ns \n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.14, Page No 58" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Io=75.0*10**-3\n", - "#vertical scale of 5mA/cm \n", - "\n", - "#Calculations\n", - "If=Io/5*10**-3\n", - "R1=15/(75*10**-3)\n", - "P=((Io)**2)*R1\n", - "\n", - "#Results\n", - "print(\"Pr1 = %1.1f W \" %P)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Pr1 = 1.1 W \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.15, Page No 63" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=7.5\n", - "Pd=400.0*10**-3\n", - "D=3.2*10**-3\n", - "\n", - "#Calculations\n", - "Izm=Pd/Vz\n", - "print(\"current at 50C is %.1fA \" %(Izm*1000))\n", - "print(\"At 100C\")\n", - "P2=Pd-((100-50)*D)\n", - "print(\" power at 100C is %.3fW \" %P2)\n", - "Izm=P2/Vz\n", - "\n", - "#Results\n", - "print(\" current at 100C is %.1fA \" %(Izm*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current at 50C is 53.3A \n", - "At 100C\n", - " power at 100C is 0.240W \n", - " current at 100C is 32.0A \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.16, Page No 64" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=20.0\n", - "R1=620.0\n", - "Vz=7.5\n", - "\n", - "#Calculations\n", - "Vr1=E-Vz\n", - "Iz=Vr1/R1\n", - "print(\" diode current is %.1f mA \" %(Iz*1000))\n", - "Pd=Vz*Iz\n", - "\n", - "#Results\n", - "print( \"power dissipation is %.1f mW \" %(Pd*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " diode current is 20.2 mA \n", - "power dissipation is 151.2 mW \n" - ] - } - ], - "prompt_number": 26 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter2_2.ipynb b/Electronic_Devices_and_Circuits/Chapter2_2.ipynb deleted file mode 100755 index 1c97e28b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter2_2.ipynb +++ /dev/null @@ -1,571 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 02 : Semiconductor diodes" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.1, Page No 37" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=100*10**-3\n", - "Vf=.75 #given\n", - "print(\"a)\")\n", - "print(\"forward resistance\")\n", - "\n", - "#Calculations\n", - "Rf=Vf/If\n", - "print(\"forward resistnace is %3.1fohm \" %Rf)\n", - "print(\"b)\")\n", - "Vr=50\n", - "Ir=100*10**-9\n", - "Rr=(Vr/Ir)\n", - "\n", - "#Results\n", - "print(\"reverse resistnace is %.1fohm \" %(Rr/10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)\n", - "forward resistance\n", - "forward resistnace is 7.5ohm \n", - "b)\n", - "reverse resistnace is 500.0ohm \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.2, Page No 39" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=70*10**-3\n", - "\n", - "#Calculations\n", - "rd=(26*10**-3)/If\n", - "print(\"dynamic resistance is %.2fohm \" %rd)\n", - "If=60*10**-3\n", - "Vf=.025\n", - "rd=Vf/If\n", - "\n", - "#Results\n", - "print(\"dynamic resistance is %.2fohm \" %rd)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dynamic resistance is 0.37ohm \n", - "dynamic resistance is 0.42ohm \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.3 Page No 40" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=4.7*10**3\n", - "E=15.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "print(\"diode current is E=If*R1+Vf\")\n", - "If=((E-Vf)/R1)*10**3\n", - "\n", - "#Results\n", - "print(\" diode current is %.2fmA \" %If) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "diode current is E=If*R1+Vf\n", - " diode current is 3.04mA \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.5, Page No 41" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=1.5\n", - "Vf=0.7\n", - "R1=10\n", - "rd=.25\n", - "\n", - "#Calculations\n", - "print(\"a)\")\n", - "If=(E-Vf)/R1\n", - "print(\" forward current is %0.1fmA \" %(If*1000))\n", - "print(\"b)\")\n", - "If=(E-Vf)/(R1+rd)\n", - "\n", - "#Results\n", - "print(\" forward current is %0.1fmA \" %(If*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)\n", - " forward current is 80.0mA \n", - "b)\n", - " forward current is 78.0mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.6 Page No 43" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=0\n", - "Vf=5.0\n", - "R1=100.0\n", - "\n", - "#Calculations\n", - "E=(If*R1)+Vf\n", - "print(\"B)\")\n", - "Vf=0\n", - "E=5.0\n", - "R1=100.0\n", - "If=(E/R1)*1000\n", - "\n", - "#Results\n", - "print(\"resistance is %dmA \" %If) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "B)\n", - "resistance is 50mA \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.8 Page No 45" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "If=50*10**-3\n", - "Vf=1.1\n", - "R1=100.0\n", - "\n", - "#Calculations\n", - "Vf1=If*R1\n", - "E=Vf1+Vf\n", - "\n", - "#Results\n", - "print(\" new supply voltage is %.2fV \" %E)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " new supply voltage is 6.10V \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.9, Page No 48" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "P1=700.0*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "If=P1/Vf\n", - "#at 65C\n", - "D=5*10**-3\n", - "T=65-25\n", - "P2=P1-D*T\n", - "If=P2/Vf\n", - "\n", - "#Results\n", - "print( \"maximum forward current at 65C is %.1fA \" %(If*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum forward current at 65C is 714.3A \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.10 Page No 49" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vf1=0.7\n", - "Vf=-1.8*10**-3\n", - "If=26.0*10**-3\n", - "T=100-25\n", - "\n", - "#Calculations\n", - "Vf2=Vf1+(T*Vf)\n", - "print(\" voltage at 100C is %.3f V \" %Vf2)\n", - "print(\"At 25C\")\n", - "T1=25.0\n", - "rd=(26*10**-3/If)*((T1+273)/298)\n", - "print(\" resistance at 25 C is %.2f ohm \" %rd)\n", - "print(\" At 100C\")\n", - "T2=100.0\n", - "rd=(26*10**-3/If)*((T2+273)/298)\n", - "\n", - "#Results\n", - "print(\" resistance at 100 C is %.2fohm \" %rd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage at 100C is 0.565 V \n", - "At 25C\n", - " resistance at 25 C is 1.00 ohm \n", - " At 100C\n", - " resistance at 100 C is 1.25ohm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.11 Page No 51" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variablesV_s=230\n", - "If=10*10**-3\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "t=70.0*10**-9\n", - "Cd=((t*If)/Vf)*10**9\n", - "\n", - "#Results\n", - "print(\" diffusion capacitance is %.2f nF \" %Cd)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " diffusion capacitance is 1.00 nF \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.12 Page No 53" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "print(\"A\")\n", - "trr=10.0*10**-9\n", - "\n", - "#Calculations\n", - "tf=10.0*trr*10**9\n", - "print(\"minimum fall times is %d ns \" %tf)\n", - "print(\"B)\")\n", - "trr=3.0\n", - "tf=10*trr\n", - "\n", - "#Results\n", - "print(\"minimum fall times is %d ns \" %tf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "A\n", - "minimum fall times is 100 ns \n", - "B)\n", - "minimum fall times is 30 ns \n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.14, Page No 58" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Io=75.0*10**-3\n", - "#vertical scale of 5mA/cm \n", - "\n", - "#Calculations\n", - "If=Io/5*10**-3\n", - "R1=15/(75*10**-3)\n", - "P=((Io)**2)*R1\n", - "\n", - "#Results\n", - "print(\"Pr1 = %1.1f W \" %P)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Pr1 = 1.1 W \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.15, Page No 63" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=7.5\n", - "Pd=400.0*10**-3\n", - "D=3.2*10**-3\n", - "\n", - "#Calculations\n", - "Izm=Pd/Vz\n", - "print(\"current at 50C is %.1fA \" %(Izm*1000))\n", - "print(\"At 100C\")\n", - "P2=Pd-((100-50)*D)\n", - "print(\" power at 100C is %.3fW \" %P2)\n", - "Izm=P2/Vz\n", - "\n", - "#Results\n", - "print(\" current at 100C is %.1fA \" %(Izm*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current at 50C is 53.3A \n", - "At 100C\n", - " power at 100C is 0.240W \n", - " current at 100C is 32.0A \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 2.16, Page No 64" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=20.0\n", - "R1=620.0\n", - "Vz=7.5\n", - "\n", - "#Calculations\n", - "Vr1=E-Vz\n", - "Iz=Vr1/R1\n", - "print(\" diode current is %.1f mA \" %(Iz*1000))\n", - "Pd=Vz*Iz\n", - "\n", - "#Results\n", - "print( \"power dissipation is %.1f mW \" %(Pd*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " diode current is 20.2 mA \n", - "power dissipation is 151.2 mW \n" - ] - } - ], - "prompt_number": 26 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter3.ipynb b/Electronic_Devices_and_Circuits/Chapter3.ipynb deleted file mode 100755 index 8f8a6a3b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter3.ipynb +++ /dev/null @@ -1,1201 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 03 : Diode applications" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.1, Page No 73" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=.7\n", - "Rl=500.0\n", - "Vi=22.0\n", - "Vpi=1.414*Vi\n", - "\n", - "#Calculations\n", - "Vpo=Vpi-Vf\n", - "print(\" peak vouput voltage is %3.2fV \" %Vpo)\n", - "Ip=Vpo/Rl\n", - "\n", - "#Results\n", - "print(\"peak load current is %3.4fA \" %Ip)\n", - "PIV=Vpi\n", - "print(\"diode paek reverse voltage %3.2fV \" %PIV)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " peak vouput voltage is 30.41V \n", - "peak load current is 0.0608A \n", - "diode paek reverse voltage 31.11V \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.2, Page No 79" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vi=30.0\n", - "Rl=300.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "Vpi=1.414*Vi\n", - "Vpo=Vpi-2*Vf\n", - "print(\" peak output voltage %.3f V \" %Vpo)\n", - "Ip=Vpo/Rl\n", - "\n", - "#Results\n", - "print(\" current bridge is %.1f mA \" %(Ip*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " peak output voltage 41.020 V \n", - " current bridge is 136.7 mA \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.3 Page No 83" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "C1=680.0*10**-6\n", - "Eo=28.0\n", - "Rl=200.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Il=Eo/Rl\n", - "T=1/f\n", - "t1=T\n", - "Vr=(Il*t1)/C1\n", - "\n", - "#Results\n", - "print(\"peak to peak ripple voltage is %.2f V \" %Vr)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak to peak ripple voltage is 3.43 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.4, Page No 84" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "Rl=500.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Vr=(10*Eo)/100#10% of Eo\n", - "Il=Eo/Rl\n", - "T=1/f\n", - "t1=T\n", - "C1=((Il*t1)/Vr)*10**6\n", - "\n", - "#Results\n", - "print(\"Reservior capacitance is %.2f uF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Reservior capacitance is 333.33 uF \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.5 Page No 85" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "f=60.0\n", - "Rl=500.0\n", - "Il=Eo/Rl\n", - "\n", - "#Calculations\n", - "Vr=(10.0*Eo)/100\n", - "print(\"10percent of Eo is %.2f V \" %Vr)\n", - "Eomin=Eo-0.5*Vr\n", - "Eomax=Eo+0.5*Vr\n", - "Q1=math.asin(Eomin/Eomax)\n", - "Q1=65\n", - "Q2=90-Q1\n", - "T=1/f\n", - "t2=(Q2*T)/360\n", - "print(\" charging time is %.2fs \" %t2)\n", - "t1=T-t2\n", - "print(\"discharging time is %.2fs \" %t1)\n", - "C1=((Il*t1)/Vr)*10**6\n", - "\n", - "#Results\n", - "print(\"reservior capacitance is %.2f uF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "10percent of Eo is 2.00 V \n", - " charging time is 0.00s \n", - "discharging time is 0.02s \n", - "reservior capacitance is 310.19 uF \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.6 Page No 88" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "t1=1.16*10**-3\n", - "t2=15.54*10**-3\n", - "Vp=Eo+Vf\n", - "Vr=2*Vp\n", - "Il=40*10**-4\n", - "Ifrm=(Il*(t1+t2))/t2\n", - "Ifsm=30.0\n", - "Rs=Vp/Ifsm\n", - "\n", - "#Results\n", - "print(\" surge limiting resistance is %3.2fohm \" %Rs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " surge limiting resistance is 0.72ohm \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.7, Page No 89 " - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=.7\n", - "Eo=21.0\n", - "\n", - "#Calculations\n", - "Il=40*10**-3\n", - "Vp=115.0\n", - "Vs=.707*(Vf+Eo)\n", - "print(\" Vrms voltage is %3.3fV \" %Vs)\n", - "Is=3.6*Il\n", - "print(\" rms current is %.2f mA \" %(Is*1000))\n", - "Ip=(Vs*Is)/Vp\n", - "\n", - "#Results\n", - "print(\"primary current is %.2f mA \" %(Ip*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Vrms voltage is 15.342V \n", - " rms current is 144.00 mA \n", - "primary current is 19.21 mA \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.8 Page No 92" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Vr=2.0\n", - "T=16.7*10**-3\n", - "t2=1.16*10**-3\n", - "\n", - "#Calculations\n", - "Il=40.0*10**-3#from example 3.5\n", - "t1=(T/2.0)-t2\n", - "C1=(Il*t1)/Vr\n", - "\n", - "#Results\n", - "print(\" resrvior capacitor is %.2f mF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " resrvior capacitor is 143.80 mF \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.9 Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vr=2.0\n", - "T=16.7*10**-3\n", - "Il=40.0*10**-3\n", - "\n", - "#Calculations\n", - "t1=T/2\n", - "C1=(Il*t1)/Vr\n", - "\n", - "#Results\n", - "print(\" reservior capacitance is %.1fF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " reservior capacitance is 167.0F \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.10 Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "Il=40.0*10**-3\n", - "t1=7.19*10**-3\n", - "t2=1.16*10**-3\n", - "\n", - "#Calculations\n", - "Vp=Eo+(2*Vf)\n", - "Vr=Vp\n", - "If=Il/2\n", - "Ifrm=Il*(t1+t2)/t2\n", - "Ifsm=30\n", - "Rs=Vp/Ifsm\n", - "\n", - "#Results\n", - "print(\"surge limiting resistance is %.3fohm \" %Rs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "surge limiting resistance is 0.747ohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.11, Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "Il=40*10**-3\n", - "Vp=115.0\n", - "\n", - "#Calculations\n", - "Vs=0.707*(Eo+2*Vf)\n", - "Is=1.6*Il\n", - "Ip=(Vs*Is)/Vp\n", - "\n", - "#Results\n", - "print(\" supply current is %.1f mA \" %(Ip*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " supply current is 8.8 mA \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.12, Page No 97" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "Il=40.0*10**-3\n", - "R1=22.0\n", - "Vr=2.0\n", - "C1=150*10**-6\n", - "C2=C1\n", - "fr=120\n", - "\n", - "#Calculations\n", - "Vo=Eo-Il*R1\n", - "vi=Vr/3.14\n", - "Xc2=1/(2*3.14*fr*C2)\n", - "vo=(vi*Xc2)/math.sqrt((R1**2) + (Xc2**2))\n", - "print(\" dc output voltage is %.3fV \" %vo)\n", - "Vpp=2*vo\n", - "\n", - "#Results\n", - "print(\" peak to peak voltage is %.1fV \" %(Vpp*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " dc output voltage is 0.238V \n", - " peak to peak voltage is 475.3V \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.13, Page No 98" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "C1=150*10**-6\n", - "C2=C1\n", - "vi=4.0\n", - "vo=1.0\n", - "f=120.0\n", - "\n", - "#Calculations\n", - "Xc2=8.84 #FROM EXAMPLE 3.12\n", - "Xl=Xc2*((vi/vo)+1)\n", - "L1=Xl/(2*3.14*f)\n", - "\n", - "#Results\n", - "print(\" suitable value of L1 is %.3fH \" %(L1*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable value of L1 is 58.652H \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.14, Page No 101" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Edc=20.0\n", - "vo=0.24\n", - "Vo=20.0\n", - "Il=40*10**-3\n", - "fr=120.0\n", - "\n", - "#Calculations\n", - "Eomax=(3.14*Edc)/2\n", - "Epeak=(4*Eomax)/(3*3.14)\n", - "vi=Epeak\n", - "Rl=Vo/Il\n", - "Xlc=(2*Rl)/3\n", - "Lc=Xlc/(2*3.14*fr)\n", - "L=1.25*Lc\n", - "Xl=2*3.14*fr*L\n", - "Xc=Xl/((vi/vo)+1)\n", - "C1=1/(2*3.14*fr*Xc)\n", - "\n", - "#Results\n", - "print(\"The value of c1 = %.2f mF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of c1 = 180.11 mF \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.15, Page No 105" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "E0=20-19.7 #load effect\n", - "\n", - "#Calculations\n", - "loadregulation =(E0*100)/Eo#percentage\n", - "sourceeffect=20.2-20\n", - "lineregulation =(sourceeffect*100)/Eo\n", - "\n", - "#Results\n", - "print(\"Line regulation = %.1f percent \" %lineregulation)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line regulation = 1.0 percent \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.16, Page No 108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=9.1\n", - "Izt=20*10**-3\n", - "Es=30.0\n", - "\n", - "#Calculations\n", - "R1=(Es-Vz)/Izt\n", - "Pr1=(Izt**2)*R1\n", - "Es=27\n", - "Iz=(Es-Vz)/R1\n", - "\n", - "#Results\n", - "print(\"The circuit current is %.2f mA \" %(Iz*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The circuit current is 17.13 mA \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.17, Page No 110" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=6.2\n", - "Pd=400.0*10**-3\n", - "Es=16.0\n", - "\n", - "#Calculations\n", - "Izm=Pd/Vz\n", - "R1=(Es-Vz)/Izm\n", - "Pr1=(Izm**2)*R1\n", - "Izmin=5.0*10**-3\n", - "Izmax=Izm-Izmin\n", - "\n", - "#Results\n", - "print(\"maximum current is %3.2f mA \" %(Izmax*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum current is 59.52 mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.18, Page No 112" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Zz=7.0\n", - "Es=16.0\n", - "Vo=6.2\n", - "Il=59.5*10**-3\n", - "\n", - "#Calculations\n", - "es=(10*Es)/100.0 #10% os Es\n", - "Rl=Vo/Il\n", - "print(\"es*Zz||Rl/R1+Zz||Rl\")\n", - "V0=es*((Zz*Rl)/(Zz+Rl))/(R1+((Zz*Rl)/(Zz+Rl)))\n", - "lineregulation=(V0*100)/Vo\n", - "print(\"line regulation voltage is %3.3fpercentage \" %lineregulation)\n", - "V0=Il*((Zz*R1)/(Zz+R1))\n", - "loadregulation=(V0*100)/Vo\n", - "print(\"loadregulation voltage is %3.3fpercentage \" %loadregulation)\n", - "Rr=((Zz*Rl)/(Zz+Rl))/(R1+(Zz*Rl)/(Zz+Rl))\n", - "\n", - "#Results\n", - "print(\"ripple rejection is %3.2f X 10^-2 \" %(Rr*10**2))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "es*Zz||Rl/R1+Zz||Rl\n", - "line regulation voltage is 1.068percentage \n", - "loadregulation voltage is 6.422percentage \n", - "ripple rejection is 4.14 X 10^-2 \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.19, Page No 114" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "E=9.0\n", - "Vf=.7\n", - "\n", - "#Calculations\n", - "If=1.0*10**-3\n", - "Vo=E-Vf\n", - "R1=Vo/If\n", - "Vr=E\n", - "\n", - "#Results\n", - "print(\"diode forward voltage is %3.2fohm \" %Vr)\n", - "print(\"diode forward current is %3.1fA \" %(If*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "diode forward voltage is 9.00ohm \n", - "diode forward current is 1.0A \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.20, Page No 117" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=5.0\n", - "Vo=4.5\n", - "Il=2.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=(E-Vo)/Il\n", - "print(\" suitable resistance is %dohm \" %R1)\n", - "Vr=E\n", - "print(\"when diode is forward baised\")\n", - "If=(E-Vf)/R1\n", - "\n", - "#Results\n", - "print(\" diode forward current is %3.2fA \" %(If*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable resistance is 250ohm \n", - "when diode is forward baised\n", - " diode forward current is 17.20A \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.21, Page No 119" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vo=2.7\n", - "Vf=.7\n", - "E=9.0\n", - "If=1*10**-3\n", - "\n", - "#Calculations\n", - "Il=If\n", - "Vb=Vo-Vf\n", - "R1=(E-Vo)/(Il+If)\n", - "\n", - "#Results\n", - "print(\"resistance is %.2f kOhm \" %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance is 3.15 kOhm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.22, Page No 120" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vo=5.0\n", - "Vf=0.7\n", - "Iz=5.0\n", - "Il=1.0\n", - "E=20.0\n", - "\n", - "#Calculations\n", - "Vz=Vo-Vf\n", - "R1=(E-Vo)/(Il+Iz)\n", - "\n", - "#Results\n", - "print(\"zener diode resistance si %.2f ohm \" %R1)\n", - "#Answer in the book is wrong" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "zener diode resistance si 2.50 ohm \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.23, Page No 122" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=10.0\n", - "R1=56.0*10**3\n", - "f=1000.0\n", - "C1=1.0*10**-6\n", - "\n", - "#Calculations\n", - "Vo=2*E\n", - "Ic=Vo/R1\n", - "t=1/(2*f)\n", - "Vc=(Ic*t)/C1\n", - "\n", - "#Results\n", - "print(\" tilt output voltage is %3.2fV \" %(Vc*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " tilt output voltage is 178.57V \n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.24, Page No 124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=500.0\n", - "Rs=600.0\n", - "E=8.0\n", - "\n", - "#Calculations\n", - "t=1.0/(2*f)\n", - "PW=t\n", - "C1=PW/Rs\n", - "Vo=2.0*E\n", - "Vc=(1*Vo)/100#1% of the Vo\n", - "Ic=(Vc*C1)/t\n", - "R1=(2*E)/(Ic*1000)\n", - "\n", - "#Results\n", - "print(\"suitable value of R1 is %.2f ohm \" %R1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "suitable value of R1 is 60.00 ohm \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.25, Page No 125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=0.7\n", - "E=6.0\n", - "Vb1=3.0\n", - "\n", - "#Calculations\n", - "Vc=Vb1-Vf-(-E)\n", - "Vo=Vb1-Vf\n", - "print(\"when input is -E\")\n", - "Vo=E+Vc\n", - "Vo=Vb1+Vf\n", - "print(\"Capicitor voltage is %.2f ohm \" %Vc)\n", - "print(\"when input is +E\")\n", - "Vo=E+(Vc)\n", - "\n", - "#Results\n", - "print(\"Capicitor voltage is %.2f ohm \" %Vo)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when input is -E\n", - "Capicitor voltage is 8.30 ohm \n", - "when input is +E\n", - "Capicitor voltage is 14.30 ohm \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.26, Page No 130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=12.0\n", - "Vf=0.7\n", - "Rl=47*10**3\n", - "f=5000.0\n", - "\n", - "#Calculations\n", - "Vo=2*(E-Vf)\n", - "Il=Vo/Rl\n", - "print(\" capacitor discharge time\")\n", - "t=1.0/(2*f)\n", - "print(\" for 1% ripple allow .5% due to discharge of C2 %.5%due to discharge of C1\")\n", - "Vc=(.5*Vo)/100\n", - "C2=((Il*t)/Vc)*10**6\n", - "print(\" value of capacitor C2 is %3.2fuF \" %C2)\n", - "C1=2*C2\n", - "\n", - "#Results\n", - "print(\"value of capacitor C1 is %3.2fuF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " capacitor discharge time\n", - " for 1% ripple allow .5% due to discharge of C2 %.5%due to discharge of C1\n", - " value of capacitor C2 is 0.43uF \n", - "value of capacitor C1 is 0.85uF \n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.27, Page No 133" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=5.0\n", - "Vf=.7\n", - "R1=3.3*10**3\n", - "\n", - "#Calculations\n", - "print(\"A)\")\n", - "Ir1=(Vcc-Vf)/R1\n", - "print(\"diode forward current when all input are low is %3.4fA \" %Ir1)\n", - "print(\"for each diode\")\n", - "If=Ir1/3\n", - "print(\"B)\")\n", - "If2=Ir1/2\n", - "If3=If2\n", - "print(\" forward current when input A is high is %3.5fA \" %If3)\n", - "print(\"C)\")\n", - "If3=Ir1\n", - "\n", - "#Results\n", - "print(\" forward current when input A and B are high and C is low %3.2fA \" %(If3*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "A)\n", - "diode forward current when all input are low is 0.0013A \n", - "for each diode\n", - "B)\n", - " forward current when input A is high is 0.00065A \n", - "C)\n", - " forward current when input A and B are high and C is low 1.30A \n" - ] - } - ], - "prompt_number": 27 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter3_1.ipynb b/Electronic_Devices_and_Circuits/Chapter3_1.ipynb deleted file mode 100755 index 8f8a6a3b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter3_1.ipynb +++ /dev/null @@ -1,1201 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 03 : Diode applications" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.1, Page No 73" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=.7\n", - "Rl=500.0\n", - "Vi=22.0\n", - "Vpi=1.414*Vi\n", - "\n", - "#Calculations\n", - "Vpo=Vpi-Vf\n", - "print(\" peak vouput voltage is %3.2fV \" %Vpo)\n", - "Ip=Vpo/Rl\n", - "\n", - "#Results\n", - "print(\"peak load current is %3.4fA \" %Ip)\n", - "PIV=Vpi\n", - "print(\"diode paek reverse voltage %3.2fV \" %PIV)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " peak vouput voltage is 30.41V \n", - "peak load current is 0.0608A \n", - "diode paek reverse voltage 31.11V \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.2, Page No 79" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vi=30.0\n", - "Rl=300.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "Vpi=1.414*Vi\n", - "Vpo=Vpi-2*Vf\n", - "print(\" peak output voltage %.3f V \" %Vpo)\n", - "Ip=Vpo/Rl\n", - "\n", - "#Results\n", - "print(\" current bridge is %.1f mA \" %(Ip*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " peak output voltage 41.020 V \n", - " current bridge is 136.7 mA \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.3 Page No 83" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "C1=680.0*10**-6\n", - "Eo=28.0\n", - "Rl=200.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Il=Eo/Rl\n", - "T=1/f\n", - "t1=T\n", - "Vr=(Il*t1)/C1\n", - "\n", - "#Results\n", - "print(\"peak to peak ripple voltage is %.2f V \" %Vr)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak to peak ripple voltage is 3.43 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.4, Page No 84" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "Rl=500.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Vr=(10*Eo)/100#10% of Eo\n", - "Il=Eo/Rl\n", - "T=1/f\n", - "t1=T\n", - "C1=((Il*t1)/Vr)*10**6\n", - "\n", - "#Results\n", - "print(\"Reservior capacitance is %.2f uF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Reservior capacitance is 333.33 uF \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.5 Page No 85" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "f=60.0\n", - "Rl=500.0\n", - "Il=Eo/Rl\n", - "\n", - "#Calculations\n", - "Vr=(10.0*Eo)/100\n", - "print(\"10percent of Eo is %.2f V \" %Vr)\n", - "Eomin=Eo-0.5*Vr\n", - "Eomax=Eo+0.5*Vr\n", - "Q1=math.asin(Eomin/Eomax)\n", - "Q1=65\n", - "Q2=90-Q1\n", - "T=1/f\n", - "t2=(Q2*T)/360\n", - "print(\" charging time is %.2fs \" %t2)\n", - "t1=T-t2\n", - "print(\"discharging time is %.2fs \" %t1)\n", - "C1=((Il*t1)/Vr)*10**6\n", - "\n", - "#Results\n", - "print(\"reservior capacitance is %.2f uF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "10percent of Eo is 2.00 V \n", - " charging time is 0.00s \n", - "discharging time is 0.02s \n", - "reservior capacitance is 310.19 uF \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.6 Page No 88" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "t1=1.16*10**-3\n", - "t2=15.54*10**-3\n", - "Vp=Eo+Vf\n", - "Vr=2*Vp\n", - "Il=40*10**-4\n", - "Ifrm=(Il*(t1+t2))/t2\n", - "Ifsm=30.0\n", - "Rs=Vp/Ifsm\n", - "\n", - "#Results\n", - "print(\" surge limiting resistance is %3.2fohm \" %Rs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " surge limiting resistance is 0.72ohm \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.7, Page No 89 " - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=.7\n", - "Eo=21.0\n", - "\n", - "#Calculations\n", - "Il=40*10**-3\n", - "Vp=115.0\n", - "Vs=.707*(Vf+Eo)\n", - "print(\" Vrms voltage is %3.3fV \" %Vs)\n", - "Is=3.6*Il\n", - "print(\" rms current is %.2f mA \" %(Is*1000))\n", - "Ip=(Vs*Is)/Vp\n", - "\n", - "#Results\n", - "print(\"primary current is %.2f mA \" %(Ip*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Vrms voltage is 15.342V \n", - " rms current is 144.00 mA \n", - "primary current is 19.21 mA \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.8 Page No 92" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Vr=2.0\n", - "T=16.7*10**-3\n", - "t2=1.16*10**-3\n", - "\n", - "#Calculations\n", - "Il=40.0*10**-3#from example 3.5\n", - "t1=(T/2.0)-t2\n", - "C1=(Il*t1)/Vr\n", - "\n", - "#Results\n", - "print(\" resrvior capacitor is %.2f mF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " resrvior capacitor is 143.80 mF \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.9 Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vr=2.0\n", - "T=16.7*10**-3\n", - "Il=40.0*10**-3\n", - "\n", - "#Calculations\n", - "t1=T/2\n", - "C1=(Il*t1)/Vr\n", - "\n", - "#Results\n", - "print(\" reservior capacitance is %.1fF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " reservior capacitance is 167.0F \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.10 Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "Il=40.0*10**-3\n", - "t1=7.19*10**-3\n", - "t2=1.16*10**-3\n", - "\n", - "#Calculations\n", - "Vp=Eo+(2*Vf)\n", - "Vr=Vp\n", - "If=Il/2\n", - "Ifrm=Il*(t1+t2)/t2\n", - "Ifsm=30\n", - "Rs=Vp/Ifsm\n", - "\n", - "#Results\n", - "print(\"surge limiting resistance is %.3fohm \" %Rs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "surge limiting resistance is 0.747ohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.11, Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "Il=40*10**-3\n", - "Vp=115.0\n", - "\n", - "#Calculations\n", - "Vs=0.707*(Eo+2*Vf)\n", - "Is=1.6*Il\n", - "Ip=(Vs*Is)/Vp\n", - "\n", - "#Results\n", - "print(\" supply current is %.1f mA \" %(Ip*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " supply current is 8.8 mA \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.12, Page No 97" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "Il=40.0*10**-3\n", - "R1=22.0\n", - "Vr=2.0\n", - "C1=150*10**-6\n", - "C2=C1\n", - "fr=120\n", - "\n", - "#Calculations\n", - "Vo=Eo-Il*R1\n", - "vi=Vr/3.14\n", - "Xc2=1/(2*3.14*fr*C2)\n", - "vo=(vi*Xc2)/math.sqrt((R1**2) + (Xc2**2))\n", - "print(\" dc output voltage is %.3fV \" %vo)\n", - "Vpp=2*vo\n", - "\n", - "#Results\n", - "print(\" peak to peak voltage is %.1fV \" %(Vpp*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " dc output voltage is 0.238V \n", - " peak to peak voltage is 475.3V \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.13, Page No 98" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "C1=150*10**-6\n", - "C2=C1\n", - "vi=4.0\n", - "vo=1.0\n", - "f=120.0\n", - "\n", - "#Calculations\n", - "Xc2=8.84 #FROM EXAMPLE 3.12\n", - "Xl=Xc2*((vi/vo)+1)\n", - "L1=Xl/(2*3.14*f)\n", - "\n", - "#Results\n", - "print(\" suitable value of L1 is %.3fH \" %(L1*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable value of L1 is 58.652H \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.14, Page No 101" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Edc=20.0\n", - "vo=0.24\n", - "Vo=20.0\n", - "Il=40*10**-3\n", - "fr=120.0\n", - "\n", - "#Calculations\n", - "Eomax=(3.14*Edc)/2\n", - "Epeak=(4*Eomax)/(3*3.14)\n", - "vi=Epeak\n", - "Rl=Vo/Il\n", - "Xlc=(2*Rl)/3\n", - "Lc=Xlc/(2*3.14*fr)\n", - "L=1.25*Lc\n", - "Xl=2*3.14*fr*L\n", - "Xc=Xl/((vi/vo)+1)\n", - "C1=1/(2*3.14*fr*Xc)\n", - "\n", - "#Results\n", - "print(\"The value of c1 = %.2f mF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of c1 = 180.11 mF \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.15, Page No 105" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "E0=20-19.7 #load effect\n", - "\n", - "#Calculations\n", - "loadregulation =(E0*100)/Eo#percentage\n", - "sourceeffect=20.2-20\n", - "lineregulation =(sourceeffect*100)/Eo\n", - "\n", - "#Results\n", - "print(\"Line regulation = %.1f percent \" %lineregulation)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line regulation = 1.0 percent \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.16, Page No 108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=9.1\n", - "Izt=20*10**-3\n", - "Es=30.0\n", - "\n", - "#Calculations\n", - "R1=(Es-Vz)/Izt\n", - "Pr1=(Izt**2)*R1\n", - "Es=27\n", - "Iz=(Es-Vz)/R1\n", - "\n", - "#Results\n", - "print(\"The circuit current is %.2f mA \" %(Iz*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The circuit current is 17.13 mA \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.17, Page No 110" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=6.2\n", - "Pd=400.0*10**-3\n", - "Es=16.0\n", - "\n", - "#Calculations\n", - "Izm=Pd/Vz\n", - "R1=(Es-Vz)/Izm\n", - "Pr1=(Izm**2)*R1\n", - "Izmin=5.0*10**-3\n", - "Izmax=Izm-Izmin\n", - "\n", - "#Results\n", - "print(\"maximum current is %3.2f mA \" %(Izmax*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum current is 59.52 mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.18, Page No 112" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Zz=7.0\n", - "Es=16.0\n", - "Vo=6.2\n", - "Il=59.5*10**-3\n", - "\n", - "#Calculations\n", - "es=(10*Es)/100.0 #10% os Es\n", - "Rl=Vo/Il\n", - "print(\"es*Zz||Rl/R1+Zz||Rl\")\n", - "V0=es*((Zz*Rl)/(Zz+Rl))/(R1+((Zz*Rl)/(Zz+Rl)))\n", - "lineregulation=(V0*100)/Vo\n", - "print(\"line regulation voltage is %3.3fpercentage \" %lineregulation)\n", - "V0=Il*((Zz*R1)/(Zz+R1))\n", - "loadregulation=(V0*100)/Vo\n", - "print(\"loadregulation voltage is %3.3fpercentage \" %loadregulation)\n", - "Rr=((Zz*Rl)/(Zz+Rl))/(R1+(Zz*Rl)/(Zz+Rl))\n", - "\n", - "#Results\n", - "print(\"ripple rejection is %3.2f X 10^-2 \" %(Rr*10**2))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "es*Zz||Rl/R1+Zz||Rl\n", - "line regulation voltage is 1.068percentage \n", - "loadregulation voltage is 6.422percentage \n", - "ripple rejection is 4.14 X 10^-2 \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.19, Page No 114" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "E=9.0\n", - "Vf=.7\n", - "\n", - "#Calculations\n", - "If=1.0*10**-3\n", - "Vo=E-Vf\n", - "R1=Vo/If\n", - "Vr=E\n", - "\n", - "#Results\n", - "print(\"diode forward voltage is %3.2fohm \" %Vr)\n", - "print(\"diode forward current is %3.1fA \" %(If*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "diode forward voltage is 9.00ohm \n", - "diode forward current is 1.0A \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.20, Page No 117" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=5.0\n", - "Vo=4.5\n", - "Il=2.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=(E-Vo)/Il\n", - "print(\" suitable resistance is %dohm \" %R1)\n", - "Vr=E\n", - "print(\"when diode is forward baised\")\n", - "If=(E-Vf)/R1\n", - "\n", - "#Results\n", - "print(\" diode forward current is %3.2fA \" %(If*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable resistance is 250ohm \n", - "when diode is forward baised\n", - " diode forward current is 17.20A \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.21, Page No 119" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vo=2.7\n", - "Vf=.7\n", - "E=9.0\n", - "If=1*10**-3\n", - "\n", - "#Calculations\n", - "Il=If\n", - "Vb=Vo-Vf\n", - "R1=(E-Vo)/(Il+If)\n", - "\n", - "#Results\n", - "print(\"resistance is %.2f kOhm \" %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance is 3.15 kOhm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.22, Page No 120" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vo=5.0\n", - "Vf=0.7\n", - "Iz=5.0\n", - "Il=1.0\n", - "E=20.0\n", - "\n", - "#Calculations\n", - "Vz=Vo-Vf\n", - "R1=(E-Vo)/(Il+Iz)\n", - "\n", - "#Results\n", - "print(\"zener diode resistance si %.2f ohm \" %R1)\n", - "#Answer in the book is wrong" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "zener diode resistance si 2.50 ohm \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.23, Page No 122" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=10.0\n", - "R1=56.0*10**3\n", - "f=1000.0\n", - "C1=1.0*10**-6\n", - "\n", - "#Calculations\n", - "Vo=2*E\n", - "Ic=Vo/R1\n", - "t=1/(2*f)\n", - "Vc=(Ic*t)/C1\n", - "\n", - "#Results\n", - "print(\" tilt output voltage is %3.2fV \" %(Vc*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " tilt output voltage is 178.57V \n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.24, Page No 124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=500.0\n", - "Rs=600.0\n", - "E=8.0\n", - "\n", - "#Calculations\n", - "t=1.0/(2*f)\n", - "PW=t\n", - "C1=PW/Rs\n", - "Vo=2.0*E\n", - "Vc=(1*Vo)/100#1% of the Vo\n", - "Ic=(Vc*C1)/t\n", - "R1=(2*E)/(Ic*1000)\n", - "\n", - "#Results\n", - "print(\"suitable value of R1 is %.2f ohm \" %R1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "suitable value of R1 is 60.00 ohm \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.25, Page No 125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=0.7\n", - "E=6.0\n", - "Vb1=3.0\n", - "\n", - "#Calculations\n", - "Vc=Vb1-Vf-(-E)\n", - "Vo=Vb1-Vf\n", - "print(\"when input is -E\")\n", - "Vo=E+Vc\n", - "Vo=Vb1+Vf\n", - "print(\"Capicitor voltage is %.2f ohm \" %Vc)\n", - "print(\"when input is +E\")\n", - "Vo=E+(Vc)\n", - "\n", - "#Results\n", - "print(\"Capicitor voltage is %.2f ohm \" %Vo)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when input is -E\n", - "Capicitor voltage is 8.30 ohm \n", - "when input is +E\n", - "Capicitor voltage is 14.30 ohm \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.26, Page No 130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=12.0\n", - "Vf=0.7\n", - "Rl=47*10**3\n", - "f=5000.0\n", - "\n", - "#Calculations\n", - "Vo=2*(E-Vf)\n", - "Il=Vo/Rl\n", - "print(\" capacitor discharge time\")\n", - "t=1.0/(2*f)\n", - "print(\" for 1% ripple allow .5% due to discharge of C2 %.5%due to discharge of C1\")\n", - "Vc=(.5*Vo)/100\n", - "C2=((Il*t)/Vc)*10**6\n", - "print(\" value of capacitor C2 is %3.2fuF \" %C2)\n", - "C1=2*C2\n", - "\n", - "#Results\n", - "print(\"value of capacitor C1 is %3.2fuF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " capacitor discharge time\n", - " for 1% ripple allow .5% due to discharge of C2 %.5%due to discharge of C1\n", - " value of capacitor C2 is 0.43uF \n", - "value of capacitor C1 is 0.85uF \n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.27, Page No 133" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=5.0\n", - "Vf=.7\n", - "R1=3.3*10**3\n", - "\n", - "#Calculations\n", - "print(\"A)\")\n", - "Ir1=(Vcc-Vf)/R1\n", - "print(\"diode forward current when all input are low is %3.4fA \" %Ir1)\n", - "print(\"for each diode\")\n", - "If=Ir1/3\n", - "print(\"B)\")\n", - "If2=Ir1/2\n", - "If3=If2\n", - "print(\" forward current when input A is high is %3.5fA \" %If3)\n", - "print(\"C)\")\n", - "If3=Ir1\n", - "\n", - "#Results\n", - "print(\" forward current when input A and B are high and C is low %3.2fA \" %(If3*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "A)\n", - "diode forward current when all input are low is 0.0013A \n", - "for each diode\n", - "B)\n", - " forward current when input A is high is 0.00065A \n", - "C)\n", - " forward current when input A and B are high and C is low 1.30A \n" - ] - } - ], - "prompt_number": 27 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter3_2.ipynb b/Electronic_Devices_and_Circuits/Chapter3_2.ipynb deleted file mode 100755 index 8f8a6a3b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter3_2.ipynb +++ /dev/null @@ -1,1201 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 03 : Diode applications" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.1, Page No 73" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=.7\n", - "Rl=500.0\n", - "Vi=22.0\n", - "Vpi=1.414*Vi\n", - "\n", - "#Calculations\n", - "Vpo=Vpi-Vf\n", - "print(\" peak vouput voltage is %3.2fV \" %Vpo)\n", - "Ip=Vpo/Rl\n", - "\n", - "#Results\n", - "print(\"peak load current is %3.4fA \" %Ip)\n", - "PIV=Vpi\n", - "print(\"diode paek reverse voltage %3.2fV \" %PIV)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " peak vouput voltage is 30.41V \n", - "peak load current is 0.0608A \n", - "diode paek reverse voltage 31.11V \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.2, Page No 79" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vi=30.0\n", - "Rl=300.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "Vpi=1.414*Vi\n", - "Vpo=Vpi-2*Vf\n", - "print(\" peak output voltage %.3f V \" %Vpo)\n", - "Ip=Vpo/Rl\n", - "\n", - "#Results\n", - "print(\" current bridge is %.1f mA \" %(Ip*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " peak output voltage 41.020 V \n", - " current bridge is 136.7 mA \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.3 Page No 83" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "C1=680.0*10**-6\n", - "Eo=28.0\n", - "Rl=200.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Il=Eo/Rl\n", - "T=1/f\n", - "t1=T\n", - "Vr=(Il*t1)/C1\n", - "\n", - "#Results\n", - "print(\"peak to peak ripple voltage is %.2f V \" %Vr)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak to peak ripple voltage is 3.43 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.4, Page No 84" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "Rl=500.0\n", - "f=60.0\n", - "\n", - "#Calculations\n", - "Vr=(10*Eo)/100#10% of Eo\n", - "Il=Eo/Rl\n", - "T=1/f\n", - "t1=T\n", - "C1=((Il*t1)/Vr)*10**6\n", - "\n", - "#Results\n", - "print(\"Reservior capacitance is %.2f uF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Reservior capacitance is 333.33 uF \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.5 Page No 85" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "f=60.0\n", - "Rl=500.0\n", - "Il=Eo/Rl\n", - "\n", - "#Calculations\n", - "Vr=(10.0*Eo)/100\n", - "print(\"10percent of Eo is %.2f V \" %Vr)\n", - "Eomin=Eo-0.5*Vr\n", - "Eomax=Eo+0.5*Vr\n", - "Q1=math.asin(Eomin/Eomax)\n", - "Q1=65\n", - "Q2=90-Q1\n", - "T=1/f\n", - "t2=(Q2*T)/360\n", - "print(\" charging time is %.2fs \" %t2)\n", - "t1=T-t2\n", - "print(\"discharging time is %.2fs \" %t1)\n", - "C1=((Il*t1)/Vr)*10**6\n", - "\n", - "#Results\n", - "print(\"reservior capacitance is %.2f uF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "10percent of Eo is 2.00 V \n", - " charging time is 0.00s \n", - "discharging time is 0.02s \n", - "reservior capacitance is 310.19 uF \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.6 Page No 88" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "\n", - "#Calculations\n", - "t1=1.16*10**-3\n", - "t2=15.54*10**-3\n", - "Vp=Eo+Vf\n", - "Vr=2*Vp\n", - "Il=40*10**-4\n", - "Ifrm=(Il*(t1+t2))/t2\n", - "Ifsm=30.0\n", - "Rs=Vp/Ifsm\n", - "\n", - "#Results\n", - "print(\" surge limiting resistance is %3.2fohm \" %Rs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " surge limiting resistance is 0.72ohm \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.7, Page No 89 " - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=.7\n", - "Eo=21.0\n", - "\n", - "#Calculations\n", - "Il=40*10**-3\n", - "Vp=115.0\n", - "Vs=.707*(Vf+Eo)\n", - "print(\" Vrms voltage is %3.3fV \" %Vs)\n", - "Is=3.6*Il\n", - "print(\" rms current is %.2f mA \" %(Is*1000))\n", - "Ip=(Vs*Is)/Vp\n", - "\n", - "#Results\n", - "print(\"primary current is %.2f mA \" %(Ip*1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Vrms voltage is 15.342V \n", - " rms current is 144.00 mA \n", - "primary current is 19.21 mA \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.8 Page No 92" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Vr=2.0\n", - "T=16.7*10**-3\n", - "t2=1.16*10**-3\n", - "\n", - "#Calculations\n", - "Il=40.0*10**-3#from example 3.5\n", - "t1=(T/2.0)-t2\n", - "C1=(Il*t1)/Vr\n", - "\n", - "#Results\n", - "print(\" resrvior capacitor is %.2f mF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " resrvior capacitor is 143.80 mF \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.9 Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vr=2.0\n", - "T=16.7*10**-3\n", - "Il=40.0*10**-3\n", - "\n", - "#Calculations\n", - "t1=T/2\n", - "C1=(Il*t1)/Vr\n", - "\n", - "#Results\n", - "print(\" reservior capacitance is %.1fF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " reservior capacitance is 167.0F \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.10 Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "Il=40.0*10**-3\n", - "t1=7.19*10**-3\n", - "t2=1.16*10**-3\n", - "\n", - "#Calculations\n", - "Vp=Eo+(2*Vf)\n", - "Vr=Vp\n", - "If=Il/2\n", - "Ifrm=Il*(t1+t2)/t2\n", - "Ifsm=30\n", - "Rs=Vp/Ifsm\n", - "\n", - "#Results\n", - "print(\"surge limiting resistance is %.3fohm \" %Rs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "surge limiting resistance is 0.747ohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.11, Page No 93" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Eo=21.0\n", - "Vf=0.7\n", - "Il=40*10**-3\n", - "Vp=115.0\n", - "\n", - "#Calculations\n", - "Vs=0.707*(Eo+2*Vf)\n", - "Is=1.6*Il\n", - "Ip=(Vs*Is)/Vp\n", - "\n", - "#Results\n", - "print(\" supply current is %.1f mA \" %(Ip*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " supply current is 8.8 mA \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.12, Page No 97" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "Il=40.0*10**-3\n", - "R1=22.0\n", - "Vr=2.0\n", - "C1=150*10**-6\n", - "C2=C1\n", - "fr=120\n", - "\n", - "#Calculations\n", - "Vo=Eo-Il*R1\n", - "vi=Vr/3.14\n", - "Xc2=1/(2*3.14*fr*C2)\n", - "vo=(vi*Xc2)/math.sqrt((R1**2) + (Xc2**2))\n", - "print(\" dc output voltage is %.3fV \" %vo)\n", - "Vpp=2*vo\n", - "\n", - "#Results\n", - "print(\" peak to peak voltage is %.1fV \" %(Vpp*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " dc output voltage is 0.238V \n", - " peak to peak voltage is 475.3V \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.13, Page No 98" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "C1=150*10**-6\n", - "C2=C1\n", - "vi=4.0\n", - "vo=1.0\n", - "f=120.0\n", - "\n", - "#Calculations\n", - "Xc2=8.84 #FROM EXAMPLE 3.12\n", - "Xl=Xc2*((vi/vo)+1)\n", - "L1=Xl/(2*3.14*f)\n", - "\n", - "#Results\n", - "print(\" suitable value of L1 is %.3fH \" %(L1*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable value of L1 is 58.652H \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.14, Page No 101" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Edc=20.0\n", - "vo=0.24\n", - "Vo=20.0\n", - "Il=40*10**-3\n", - "fr=120.0\n", - "\n", - "#Calculations\n", - "Eomax=(3.14*Edc)/2\n", - "Epeak=(4*Eomax)/(3*3.14)\n", - "vi=Epeak\n", - "Rl=Vo/Il\n", - "Xlc=(2*Rl)/3\n", - "Lc=Xlc/(2*3.14*fr)\n", - "L=1.25*Lc\n", - "Xl=2*3.14*fr*L\n", - "Xc=Xl/((vi/vo)+1)\n", - "C1=1/(2*3.14*fr*Xc)\n", - "\n", - "#Results\n", - "print(\"The value of c1 = %.2f mF \" %(C1*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of c1 = 180.11 mF \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.15, Page No 105" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Eo=20.0\n", - "E0=20-19.7 #load effect\n", - "\n", - "#Calculations\n", - "loadregulation =(E0*100)/Eo#percentage\n", - "sourceeffect=20.2-20\n", - "lineregulation =(sourceeffect*100)/Eo\n", - "\n", - "#Results\n", - "print(\"Line regulation = %.1f percent \" %lineregulation)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line regulation = 1.0 percent \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.16, Page No 108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=9.1\n", - "Izt=20*10**-3\n", - "Es=30.0\n", - "\n", - "#Calculations\n", - "R1=(Es-Vz)/Izt\n", - "Pr1=(Izt**2)*R1\n", - "Es=27\n", - "Iz=(Es-Vz)/R1\n", - "\n", - "#Results\n", - "print(\"The circuit current is %.2f mA \" %(Iz*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The circuit current is 17.13 mA \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.17, Page No 110" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vz=6.2\n", - "Pd=400.0*10**-3\n", - "Es=16.0\n", - "\n", - "#Calculations\n", - "Izm=Pd/Vz\n", - "R1=(Es-Vz)/Izm\n", - "Pr1=(Izm**2)*R1\n", - "Izmin=5.0*10**-3\n", - "Izmax=Izm-Izmin\n", - "\n", - "#Results\n", - "print(\"maximum current is %3.2f mA \" %(Izmax*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum current is 59.52 mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.18, Page No 112" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Zz=7.0\n", - "Es=16.0\n", - "Vo=6.2\n", - "Il=59.5*10**-3\n", - "\n", - "#Calculations\n", - "es=(10*Es)/100.0 #10% os Es\n", - "Rl=Vo/Il\n", - "print(\"es*Zz||Rl/R1+Zz||Rl\")\n", - "V0=es*((Zz*Rl)/(Zz+Rl))/(R1+((Zz*Rl)/(Zz+Rl)))\n", - "lineregulation=(V0*100)/Vo\n", - "print(\"line regulation voltage is %3.3fpercentage \" %lineregulation)\n", - "V0=Il*((Zz*R1)/(Zz+R1))\n", - "loadregulation=(V0*100)/Vo\n", - "print(\"loadregulation voltage is %3.3fpercentage \" %loadregulation)\n", - "Rr=((Zz*Rl)/(Zz+Rl))/(R1+(Zz*Rl)/(Zz+Rl))\n", - "\n", - "#Results\n", - "print(\"ripple rejection is %3.2f X 10^-2 \" %(Rr*10**2))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "es*Zz||Rl/R1+Zz||Rl\n", - "line regulation voltage is 1.068percentage \n", - "loadregulation voltage is 6.422percentage \n", - "ripple rejection is 4.14 X 10^-2 \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.19, Page No 114" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "E=9.0\n", - "Vf=.7\n", - "\n", - "#Calculations\n", - "If=1.0*10**-3\n", - "Vo=E-Vf\n", - "R1=Vo/If\n", - "Vr=E\n", - "\n", - "#Results\n", - "print(\"diode forward voltage is %3.2fohm \" %Vr)\n", - "print(\"diode forward current is %3.1fA \" %(If*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "diode forward voltage is 9.00ohm \n", - "diode forward current is 1.0A \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.20, Page No 117" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=5.0\n", - "Vo=4.5\n", - "Il=2.0*10**-3\n", - "\n", - "#Calculations\n", - "R1=(E-Vo)/Il\n", - "print(\" suitable resistance is %dohm \" %R1)\n", - "Vr=E\n", - "print(\"when diode is forward baised\")\n", - "If=(E-Vf)/R1\n", - "\n", - "#Results\n", - "print(\" diode forward current is %3.2fA \" %(If*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable resistance is 250ohm \n", - "when diode is forward baised\n", - " diode forward current is 17.20A \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.21, Page No 119" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vo=2.7\n", - "Vf=.7\n", - "E=9.0\n", - "If=1*10**-3\n", - "\n", - "#Calculations\n", - "Il=If\n", - "Vb=Vo-Vf\n", - "R1=(E-Vo)/(Il+If)\n", - "\n", - "#Results\n", - "print(\"resistance is %.2f kOhm \" %(R1/10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance is 3.15 kOhm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.22, Page No 120" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vo=5.0\n", - "Vf=0.7\n", - "Iz=5.0\n", - "Il=1.0\n", - "E=20.0\n", - "\n", - "#Calculations\n", - "Vz=Vo-Vf\n", - "R1=(E-Vo)/(Il+Iz)\n", - "\n", - "#Results\n", - "print(\"zener diode resistance si %.2f ohm \" %R1)\n", - "#Answer in the book is wrong" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "zener diode resistance si 2.50 ohm \n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.23, Page No 122" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=10.0\n", - "R1=56.0*10**3\n", - "f=1000.0\n", - "C1=1.0*10**-6\n", - "\n", - "#Calculations\n", - "Vo=2*E\n", - "Ic=Vo/R1\n", - "t=1/(2*f)\n", - "Vc=(Ic*t)/C1\n", - "\n", - "#Results\n", - "print(\" tilt output voltage is %3.2fV \" %(Vc*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " tilt output voltage is 178.57V \n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.24, Page No 124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "f=500.0\n", - "Rs=600.0\n", - "E=8.0\n", - "\n", - "#Calculations\n", - "t=1.0/(2*f)\n", - "PW=t\n", - "C1=PW/Rs\n", - "Vo=2.0*E\n", - "Vc=(1*Vo)/100#1% of the Vo\n", - "Ic=(Vc*C1)/t\n", - "R1=(2*E)/(Ic*1000)\n", - "\n", - "#Results\n", - "print(\"suitable value of R1 is %.2f ohm \" %R1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "suitable value of R1 is 60.00 ohm \n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.25, Page No 125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vf=0.7\n", - "E=6.0\n", - "Vb1=3.0\n", - "\n", - "#Calculations\n", - "Vc=Vb1-Vf-(-E)\n", - "Vo=Vb1-Vf\n", - "print(\"when input is -E\")\n", - "Vo=E+Vc\n", - "Vo=Vb1+Vf\n", - "print(\"Capicitor voltage is %.2f ohm \" %Vc)\n", - "print(\"when input is +E\")\n", - "Vo=E+(Vc)\n", - "\n", - "#Results\n", - "print(\"Capicitor voltage is %.2f ohm \" %Vo)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when input is -E\n", - "Capicitor voltage is 8.30 ohm \n", - "when input is +E\n", - "Capicitor voltage is 14.30 ohm \n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.26, Page No 130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "E=12.0\n", - "Vf=0.7\n", - "Rl=47*10**3\n", - "f=5000.0\n", - "\n", - "#Calculations\n", - "Vo=2*(E-Vf)\n", - "Il=Vo/Rl\n", - "print(\" capacitor discharge time\")\n", - "t=1.0/(2*f)\n", - "print(\" for 1% ripple allow .5% due to discharge of C2 %.5%due to discharge of C1\")\n", - "Vc=(.5*Vo)/100\n", - "C2=((Il*t)/Vc)*10**6\n", - "print(\" value of capacitor C2 is %3.2fuF \" %C2)\n", - "C1=2*C2\n", - "\n", - "#Results\n", - "print(\"value of capacitor C1 is %3.2fuF \" %C1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " capacitor discharge time\n", - " for 1% ripple allow .5% due to discharge of C2 %.5%due to discharge of C1\n", - " value of capacitor C2 is 0.43uF \n", - "value of capacitor C1 is 0.85uF \n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 3.27, Page No 133" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Vcc=5.0\n", - "Vf=.7\n", - "R1=3.3*10**3\n", - "\n", - "#Calculations\n", - "print(\"A)\")\n", - "Ir1=(Vcc-Vf)/R1\n", - "print(\"diode forward current when all input are low is %3.4fA \" %Ir1)\n", - "print(\"for each diode\")\n", - "If=Ir1/3\n", - "print(\"B)\")\n", - "If2=Ir1/2\n", - "If3=If2\n", - "print(\" forward current when input A is high is %3.5fA \" %If3)\n", - "print(\"C)\")\n", - "If3=Ir1\n", - "\n", - "#Results\n", - "print(\" forward current when input A and B are high and C is low %3.2fA \" %(If3*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "A)\n", - "diode forward current when all input are low is 0.0013A \n", - "for each diode\n", - "B)\n", - " forward current when input A is high is 0.00065A \n", - "C)\n", - " forward current when input A and B are high and C is low 1.30A \n" - ] - } - ], - "prompt_number": 27 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter4.ipynb b/Electronic_Devices_and_Circuits/Chapter4.ipynb deleted file mode 100755 index eb199d80..00000000 --- a/Electronic_Devices_and_Circuits/Chapter4.ipynb +++ /dev/null @@ -1,237 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 04 : Bipolar junction transistors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.1, Page No 153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Adc=.98\n", - "Ib=100*10**-6\n", - "\n", - "#Calculations\n", - "Ic=(Adc*Ib)/(1-Adc)\n", - "print(\"value of Ic is %3.3fA \" %Ic)\n", - "Ie=Ic/Adc\n", - "\n", - "#Results\n", - "print(\" value of Ie is %3.3fA \" %Ie)\n", - "Bdc=Adc/(1-Adc)\n", - "print(\"The value of Bdc = %.2f \" %Bdc) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "value of Ic is 0.005A \n", - " value of Ie is 0.005A \n", - "The value of Bdc = 49.00 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.2, Page No 153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ic=1.0*10**-3\n", - "Ib=25.0*10**-6\n", - "\n", - "#Calculations\n", - "Bdc=Ic/Ib\n", - "Ie=Ic+Ib\n", - "Adc=Ic/Ie\n", - "Ic=5\n", - "Ib=Ic/Bdc\n", - "\n", - "print(\"The new base current = %.2f mA\" %(Ib*10**3)) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The new base current = 125.00 mA\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.3 Page No 157" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Bdc=80.0\n", - "Bac=Bdc\n", - "Vcc=18.0\n", - "R1=10.0*10**3\n", - "\n", - "#Calculations\n", - "Ib=15.0*10**-6#for Vb=.7\n", - "Ic=Bdc*Ib\n", - "Vc=Vcc-(Ic*R1)\n", - "\n", - "#Results\n", - "print(\"dc collector voltage is %dV \" %Vc)\n", - "print(\" when vi=50mV\")\n", - "Ib=3.0*10**-6\n", - "Vi=50.0*10**-3\n", - "Ic=Bdc*Ib\n", - "Vo=Ic*R1\n", - "Av=Vo/Vi\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dc collector voltage is 6V \n", - " when vi=50mV\n", - "Current voltage is 48.0 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.4, Page No 160" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=5.0\n", - "Vce=.2\n", - "R2=4.7*10**3\n", - "Vi=2\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "R1=12.0*10**3\n", - "Ic=(Vcc-Vce)/R2\n", - "Ib=(Vi-Vbe)/R1\n", - "hFE=Ic/Ib\n", - "\n", - "#Results\n", - "print(\"Transistor current gain is %.2f V \" %(hFE))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Transistor current gain is 9.43 V \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.6 Page No 169" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=.7\n", - "Vce=-6\n", - "\n", - "#Calculations\n", - "Ib=20.0*10**-6\n", - "Ic=2.5*10**-3#from output characteristics\n", - "Bdc=Ic/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Bdc is %.1f V \" %Bdc)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Bdc is 125.0 V \n" - ] - } - ], - "prompt_number": 5 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter4_1.ipynb b/Electronic_Devices_and_Circuits/Chapter4_1.ipynb deleted file mode 100755 index eb199d80..00000000 --- a/Electronic_Devices_and_Circuits/Chapter4_1.ipynb +++ /dev/null @@ -1,237 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 04 : Bipolar junction transistors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.1, Page No 153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Adc=.98\n", - "Ib=100*10**-6\n", - "\n", - "#Calculations\n", - "Ic=(Adc*Ib)/(1-Adc)\n", - "print(\"value of Ic is %3.3fA \" %Ic)\n", - "Ie=Ic/Adc\n", - "\n", - "#Results\n", - "print(\" value of Ie is %3.3fA \" %Ie)\n", - "Bdc=Adc/(1-Adc)\n", - "print(\"The value of Bdc = %.2f \" %Bdc) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "value of Ic is 0.005A \n", - " value of Ie is 0.005A \n", - "The value of Bdc = 49.00 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.2, Page No 153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ic=1.0*10**-3\n", - "Ib=25.0*10**-6\n", - "\n", - "#Calculations\n", - "Bdc=Ic/Ib\n", - "Ie=Ic+Ib\n", - "Adc=Ic/Ie\n", - "Ic=5\n", - "Ib=Ic/Bdc\n", - "\n", - "print(\"The new base current = %.2f mA\" %(Ib*10**3)) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The new base current = 125.00 mA\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.3 Page No 157" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Bdc=80.0\n", - "Bac=Bdc\n", - "Vcc=18.0\n", - "R1=10.0*10**3\n", - "\n", - "#Calculations\n", - "Ib=15.0*10**-6#for Vb=.7\n", - "Ic=Bdc*Ib\n", - "Vc=Vcc-(Ic*R1)\n", - "\n", - "#Results\n", - "print(\"dc collector voltage is %dV \" %Vc)\n", - "print(\" when vi=50mV\")\n", - "Ib=3.0*10**-6\n", - "Vi=50.0*10**-3\n", - "Ic=Bdc*Ib\n", - "Vo=Ic*R1\n", - "Av=Vo/Vi\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dc collector voltage is 6V \n", - " when vi=50mV\n", - "Current voltage is 48.0 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.4, Page No 160" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=5.0\n", - "Vce=.2\n", - "R2=4.7*10**3\n", - "Vi=2\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "R1=12.0*10**3\n", - "Ic=(Vcc-Vce)/R2\n", - "Ib=(Vi-Vbe)/R1\n", - "hFE=Ic/Ib\n", - "\n", - "#Results\n", - "print(\"Transistor current gain is %.2f V \" %(hFE))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Transistor current gain is 9.43 V \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.6 Page No 169" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=.7\n", - "Vce=-6\n", - "\n", - "#Calculations\n", - "Ib=20.0*10**-6\n", - "Ic=2.5*10**-3#from output characteristics\n", - "Bdc=Ic/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Bdc is %.1f V \" %Bdc)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Bdc is 125.0 V \n" - ] - } - ], - "prompt_number": 5 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter4_2.ipynb b/Electronic_Devices_and_Circuits/Chapter4_2.ipynb deleted file mode 100755 index eb199d80..00000000 --- a/Electronic_Devices_and_Circuits/Chapter4_2.ipynb +++ /dev/null @@ -1,237 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 04 : Bipolar junction transistors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.1, Page No 153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Adc=.98\n", - "Ib=100*10**-6\n", - "\n", - "#Calculations\n", - "Ic=(Adc*Ib)/(1-Adc)\n", - "print(\"value of Ic is %3.3fA \" %Ic)\n", - "Ie=Ic/Adc\n", - "\n", - "#Results\n", - "print(\" value of Ie is %3.3fA \" %Ie)\n", - "Bdc=Adc/(1-Adc)\n", - "print(\"The value of Bdc = %.2f \" %Bdc) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "value of Ic is 0.005A \n", - " value of Ie is 0.005A \n", - "The value of Bdc = 49.00 \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.2, Page No 153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ic=1.0*10**-3\n", - "Ib=25.0*10**-6\n", - "\n", - "#Calculations\n", - "Bdc=Ic/Ib\n", - "Ie=Ic+Ib\n", - "Adc=Ic/Ie\n", - "Ic=5\n", - "Ib=Ic/Bdc\n", - "\n", - "print(\"The new base current = %.2f mA\" %(Ib*10**3)) " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The new base current = 125.00 mA\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.3 Page No 157" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Bdc=80.0\n", - "Bac=Bdc\n", - "Vcc=18.0\n", - "R1=10.0*10**3\n", - "\n", - "#Calculations\n", - "Ib=15.0*10**-6#for Vb=.7\n", - "Ic=Bdc*Ib\n", - "Vc=Vcc-(Ic*R1)\n", - "\n", - "#Results\n", - "print(\"dc collector voltage is %dV \" %Vc)\n", - "print(\" when vi=50mV\")\n", - "Ib=3.0*10**-6\n", - "Vi=50.0*10**-3\n", - "Ic=Bdc*Ib\n", - "Vo=Ic*R1\n", - "Av=Vo/Vi\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Av))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dc collector voltage is 6V \n", - " when vi=50mV\n", - "Current voltage is 48.0 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.4, Page No 160" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=5.0\n", - "Vce=.2\n", - "R2=4.7*10**3\n", - "Vi=2\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "R1=12.0*10**3\n", - "Ic=(Vcc-Vce)/R2\n", - "Ib=(Vi-Vbe)/R1\n", - "hFE=Ic/Ib\n", - "\n", - "#Results\n", - "print(\"Transistor current gain is %.2f V \" %(hFE))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Transistor current gain is 9.43 V \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4.6 Page No 169" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vbe=.7\n", - "Vce=-6\n", - "\n", - "#Calculations\n", - "Ib=20.0*10**-6\n", - "Ic=2.5*10**-3#from output characteristics\n", - "Bdc=Ic/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Bdc is %.1f V \" %Bdc)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Bdc is 125.0 V \n" - ] - } - ], - "prompt_number": 5 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter5.ipynb b/Electronic_Devices_and_Circuits/Chapter5.ipynb deleted file mode 100755 index 07d0da6b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter5.ipynb +++ /dev/null @@ -1,1022 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 05 : BJT biasing" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.1, Page No 182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=12.0*10**3\n", - "Vcc=20.0\n", - "print(\" When Ic=0\")\n", - "Ic=0\n", - "\n", - "#Calculations\n", - "Vce=Vcc-Ic*Rc\n", - "print(\" At point A Ic=0 nad Vce=20\")\n", - "print(\"When Vce=0\")\n", - "Vce=0\n", - "Ic=Vcc/Rc\n", - "\n", - "#Results\n", - "print(\" At point B Ic=1.7mA and Vce=0\")\n", - "print(\"Ic is %.1f mA \" %(Ic*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " When Ic=0\n", - " At point A Ic=0 nad Vce=20\n", - "When Vce=0\n", - " At point B Ic=1.7mA and Vce=0\n", - "Ic is 1.7 mA \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.2 Page No 186" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=18.0\n", - "Rc=2.2*10**3\n", - "Ib=40.0*10**-6\n", - "\n", - "#Calculations\n", - "print(\"when Ic=0\")\n", - "Ic=0\n", - "Vce=Vcc-Ic*Rc\n", - "print(\"At point A Ic=0 and Vce=18\")\n", - "print(\"when Vce=0\")\n", - "Ic=Vcc/Rc\n", - "\n", - "#Results\n", - "print(\" at point B Ic=8.2mA and Vce=0\")\n", - "print(\"Ic = %.1f mA \" %(Ic*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Ic=0\n", - "At point A Ic=0 and Vce=18\n", - "when Vce=0\n", - " at point B Ic=8.2mA and Vce=0\n", - "Ic = 8.2 mA \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.3 Page No 189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Rb=470*10**3\n", - "Rc=2.2*10**3\n", - "Vcc=18.0\n", - "hfe=100\n", - "Vee=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vee)/Rb\n", - "Ic=hfe*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.9 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.4, Page No 189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hFEmin=50.0\n", - "hFEmax=200.0\n", - "Vcc=18.0\n", - "Vbe=0.7\n", - "Rb=470.0*10**3\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vbe)/Rb\n", - "Ic=hFEmin*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "Ic=hFEmax*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 1.8 V \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.5 Page No 193" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rb=270*10**3\n", - "Rc=2.2*10**3\n", - "Vcc=18.0\n", - "hFE=100\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vbe)/(Rb+Rc*(hFE+1))\n", - "Ic=hFE*Ib\n", - "Vce=Vcc-Rc*(Ic+Ib)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 10.2 V \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.7 Page No 197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "R1=33.0*10**3\n", - "R2=12.0*10**3\n", - "Rc=1.2*10**3\n", - "Re=1*10**3\n", - "Vcc=18.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "Ve=Vb-Vbe\n", - "Ie=(Vb-Vbe)/Re\n", - "Ic=Ie\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.0 V \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.8, Page No 199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=18.0\n", - "Vbe=.7\n", - "hfe=100.0\n", - "R1=33*10**3\n", - "R2=12.0*10**3\n", - "Re=1.0*10**3\n", - "\n", - "#Calculations\n", - "Vt=(Vcc*R2)/(R1+R2)\n", - "Rt=(R1*R2)/(R1+R2)\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.7 V \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.9 Page No 200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hfe=50.0\n", - "Vt=4.8\n", - "Rt=8.8*10**3#from example 5.7\n", - "Re=1.0*10**3\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 10.4 V \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.10 Page No 201" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vt=4.8\n", - "Rt=8.8*10**3#from example 5.8\n", - "Re=1*10**3\n", - "Vbe=.7\n", - "hfe=200.0\n", - "\n", - "#Calculations\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.4 V \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.11 Page No 208" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ic=5*10**-3\n", - "Vcc=15.0\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "Rc=(Vcc-Vce)/Ic\n", - "Ib=Ic/hfe\n", - "Rb=(Vcc-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rv is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rv is 286.0 kohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.12, Page No 209" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ic=5*10**-3\n", - "Vcc=15.0\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "Ib=Ic/hfe\n", - "Rc=(Vcc-Vce)/(Ic+Ib)\n", - "Rb=(Vce-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 86.0 kohm \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.13, Page No 211" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ve=Vce\n", - "Ic=5.0*10**-3\n", - "hFE=100.0\n", - "Vcc=15.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "Re=Ve/Ie\n", - "Rc=(Vcc-Vce-Ve)/Ic\n", - "I2=Ic/10\n", - "Vb=Ve+Vbe\n", - "R2=Vb/I2\n", - "R1=(Vcc-Vb)/I2\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kOhm \" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 18.6 kOhm \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.14, Page No 212" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=3.0\n", - "Ve=5.0\n", - "Ic=1*10**-3\n", - "Vcc=12.0\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "R4=Ve/Ie\n", - "print(\" with Ic=1mA and R4=4.7Kohm\")\n", - "R4=4.7*10**3\n", - "Ve=Ic*R4\n", - "Vc=Ve+Vce\n", - "Vr3=Vcc-Vc\n", - "R3=Vr3/Ic\n", - "Vb=Ve+Vbe\n", - "I2=Ic/10\n", - "R2=Vb/I2\n", - "print(\" with R2=56Kohm and Vb=5.4V\")\n", - "R2=56*10**3\n", - "I2=Vb/R2\n", - "R1=(Vcc-Vb)/I2\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %.1f V \" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with Ic=1mA and R4=4.7Kohm\n", - " with R2=56Kohm and Vb=5.4V\n", - "The value of R1 is 68.4 V \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.15, Page No 214" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=9.0\n", - "Ve=4.0\n", - "Ic=4*10**-3\n", - "Vcc=18.0\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "R4=Ve/Ie\n", - "Vb=Ve+Vbe\n", - "I2=Ic/10\n", - "R2=Vb/I2\n", - "print(\" with R2=12Kohm standard\")\n", - "R2=12*10**3\n", - "I2=Vb/R2\n", - "R1=(Vce+Ve-Vb)/I2\n", - "print(\" with R1=22kohm standard\")\n", - "R1=22*10**3\n", - "Vr3=Vcc-Vce-Ve\n", - "R3=Vr3/(Ic+I2)\n", - "\n", - "#Results\n", - "print(\"The value of R3 %.2f V \" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R2=12Kohm standard\n", - " with R1=22kohm standard\n", - "The value of R3 1.14 V \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.16, Page No 216" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vc=5.0\n", - "Ic=1.0*10**-3\n", - "hFE=70.0\n", - "Vbe=.7\n", - "Vee=9.0\n", - "Vcc=Vee\n", - "Re=8.2*10**3\n", - "\n", - "#Calculations\n", - "Ve=Vee-Vbe\n", - "Ie=Ic\n", - "R3=Ve/Ie\n", - "print(\" with R3=8.2kohm standard value\")\n", - "R3=8.2*10**3\n", - "Ie=Ve/R3\n", - "Vr2=Vcc-Vc\n", - "R2=Vr2/Ic\n", - "Ib=Ic/hFE\n", - "Vr1=Vbe/10\n", - "R1=Vr1/Ib\n", - "print(\" use 4.7Kohm as standard\")\n", - "#the transistor emitter terminal is .7 below ground and voltage across Re is\n", - "Ve=Vee-Vbe\n", - "Ie=Ve/Re\n", - "Vc=Vcc-(Ie*3.9*10**3)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vc))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R3=8.2kohm standard value\n", - " use 4.7Kohm as standard\n", - "Current voltage is 5.1 V \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.17, Page No 220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hFE=100.0\n", - "Rc=2.2*10**3\n", - "Rb=270.0*10**3\n", - "Re=1.0*10**3\n", - "R1=33.0*10**3\n", - "R2=12*10**3\n", - "\n", - "#Calculations\n", - "S=1+hFE\n", - "print(\"for collector to base bias\")\n", - "S=(1+hFE)/(1+(hFE*Rc)/(Rc+Rb))\n", - "print(\" for voltage divider bias\")\n", - "print(\"S=(1+hFE)/(1+hFE*Re(Re+R1||R2))\")\n", - "S=(1+hFE)/(1+(hFE*Re)/(Re+(R1*R2)/(R1+R2)))\n", - "\n", - "#Results\n", - "print(\"Voltage-divider bias is %.2f \" %(S))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "for collector to base bias\n", - " for voltage divider bias\n", - "S=(1+hFE)/(1+hFE*Re(Re+R1||R2))\n", - "Voltage-divider bias is 9.01 \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.18, Page No 221" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Icbo1=15.0*10**-9# at 25C\n", - "S=101.0\n", - "print(\"chnage in temp\")\n", - "T=105-25\n", - "print(\" n=T in 10 step\")\n", - "n=T/10.0\n", - "\n", - "#Calculations\n", - "Icbo2=Icbo1*2**n\n", - "Icbo=Icbo2-Icbo1\n", - "print(\" for base bais\")\n", - "Ic=S*Icbo\n", - "print(\" for collector to base bais\")\n", - "S=56\n", - "Ic=S*Icbo\n", - "print(\" for voltage divider bais\")\n", - "S=8.2\n", - "Ic=S*Icbo\n", - "\n", - "#Results\n", - "print(\"The value of Ic is %.1f mA \" %(Ic*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "chnage in temp\n", - " n=T in 10 step\n", - " for base bais\n", - " for collector to base bais\n", - " for voltage divider bais\n", - "The value of Ic is 31.4 mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.19, Page No 223" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Re=4.7*10**3\n", - "T=125-25\n", - "\n", - "#Calculations\n", - "Vbe=T*(1.8*10**-3)\n", - "Ie=Vbe/Re\n", - "\n", - "#Results\n", - "print(\"The value of Ie is %.1f V \" %(Ie*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ie is 38.3 V \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.20, Page No 223" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=10.0\n", - "Rc=1.0*10**3\n", - "Rb=6.8*10**3\n", - "Vs=5.0\n", - "\n", - "#Calculations\n", - "print(\" hFE calculation\")\n", - "Ic=Vcc/Rc\n", - "Ib=(Vs-Vbe)/Rb\n", - "hFE=Ic/Ib\n", - "print(\"when hFE=10\")\n", - "hFE=10\n", - "Ic=hFE*Ib\n", - "Vce=Vcc-(Ic*Rc)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " hFE calculation\n", - "when hFE=10\n", - "Current voltage is 2.9 V \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.21, Page No 227" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Vcc=15.0\n", - "Rc=3.3*10**3\n", - "Vbe=.7\n", - "Rb=56.0*10**3\n", - "\n", - "#Calculations\n", - "Ic=Vcc/Rc\n", - "Ib=(Vcc-Vbe)/Rb\n", - "hFE=Ic/Ib\n", - "\n", - "#Results\n", - "print(\" minimum hFE is %3.2f \" %hFE)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " minimum hFE is 17.80 \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.22, Page No 229" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Vcc=12.0\n", - "Ic=1.5*10**-3\n", - "Vs=5.0\n", - "hFE=10.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Rc=Vcc/Ic\n", - "Ib=Ic/hFE\n", - "Rb=(Vs-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 28.7 kohm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.23, Page No 229" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#Calculations\n", - "Vcc=9.0\n", - "Ic=2*10**-3\n", - "hFE=10.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Rc=Vcc/Ic\n", - "Ib=Ic/hFE\n", - "Rb=(Vcc-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 41.50 kohm \n" - ] - } - ], - "prompt_number": 22 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter5_1.ipynb b/Electronic_Devices_and_Circuits/Chapter5_1.ipynb deleted file mode 100755 index 07d0da6b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter5_1.ipynb +++ /dev/null @@ -1,1022 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 05 : BJT biasing" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.1, Page No 182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=12.0*10**3\n", - "Vcc=20.0\n", - "print(\" When Ic=0\")\n", - "Ic=0\n", - "\n", - "#Calculations\n", - "Vce=Vcc-Ic*Rc\n", - "print(\" At point A Ic=0 nad Vce=20\")\n", - "print(\"When Vce=0\")\n", - "Vce=0\n", - "Ic=Vcc/Rc\n", - "\n", - "#Results\n", - "print(\" At point B Ic=1.7mA and Vce=0\")\n", - "print(\"Ic is %.1f mA \" %(Ic*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " When Ic=0\n", - " At point A Ic=0 nad Vce=20\n", - "When Vce=0\n", - " At point B Ic=1.7mA and Vce=0\n", - "Ic is 1.7 mA \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.2 Page No 186" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=18.0\n", - "Rc=2.2*10**3\n", - "Ib=40.0*10**-6\n", - "\n", - "#Calculations\n", - "print(\"when Ic=0\")\n", - "Ic=0\n", - "Vce=Vcc-Ic*Rc\n", - "print(\"At point A Ic=0 and Vce=18\")\n", - "print(\"when Vce=0\")\n", - "Ic=Vcc/Rc\n", - "\n", - "#Results\n", - "print(\" at point B Ic=8.2mA and Vce=0\")\n", - "print(\"Ic = %.1f mA \" %(Ic*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Ic=0\n", - "At point A Ic=0 and Vce=18\n", - "when Vce=0\n", - " at point B Ic=8.2mA and Vce=0\n", - "Ic = 8.2 mA \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.3 Page No 189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Rb=470*10**3\n", - "Rc=2.2*10**3\n", - "Vcc=18.0\n", - "hfe=100\n", - "Vee=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vee)/Rb\n", - "Ic=hfe*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.9 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.4, Page No 189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hFEmin=50.0\n", - "hFEmax=200.0\n", - "Vcc=18.0\n", - "Vbe=0.7\n", - "Rb=470.0*10**3\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vbe)/Rb\n", - "Ic=hFEmin*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "Ic=hFEmax*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 1.8 V \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.5 Page No 193" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rb=270*10**3\n", - "Rc=2.2*10**3\n", - "Vcc=18.0\n", - "hFE=100\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vbe)/(Rb+Rc*(hFE+1))\n", - "Ic=hFE*Ib\n", - "Vce=Vcc-Rc*(Ic+Ib)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 10.2 V \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.7 Page No 197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "R1=33.0*10**3\n", - "R2=12.0*10**3\n", - "Rc=1.2*10**3\n", - "Re=1*10**3\n", - "Vcc=18.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "Ve=Vb-Vbe\n", - "Ie=(Vb-Vbe)/Re\n", - "Ic=Ie\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.0 V \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.8, Page No 199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=18.0\n", - "Vbe=.7\n", - "hfe=100.0\n", - "R1=33*10**3\n", - "R2=12.0*10**3\n", - "Re=1.0*10**3\n", - "\n", - "#Calculations\n", - "Vt=(Vcc*R2)/(R1+R2)\n", - "Rt=(R1*R2)/(R1+R2)\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.7 V \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.9 Page No 200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hfe=50.0\n", - "Vt=4.8\n", - "Rt=8.8*10**3#from example 5.7\n", - "Re=1.0*10**3\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 10.4 V \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.10 Page No 201" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vt=4.8\n", - "Rt=8.8*10**3#from example 5.8\n", - "Re=1*10**3\n", - "Vbe=.7\n", - "hfe=200.0\n", - "\n", - "#Calculations\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.4 V \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.11 Page No 208" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ic=5*10**-3\n", - "Vcc=15.0\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "Rc=(Vcc-Vce)/Ic\n", - "Ib=Ic/hfe\n", - "Rb=(Vcc-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rv is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rv is 286.0 kohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.12, Page No 209" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ic=5*10**-3\n", - "Vcc=15.0\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "Ib=Ic/hfe\n", - "Rc=(Vcc-Vce)/(Ic+Ib)\n", - "Rb=(Vce-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 86.0 kohm \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.13, Page No 211" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ve=Vce\n", - "Ic=5.0*10**-3\n", - "hFE=100.0\n", - "Vcc=15.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "Re=Ve/Ie\n", - "Rc=(Vcc-Vce-Ve)/Ic\n", - "I2=Ic/10\n", - "Vb=Ve+Vbe\n", - "R2=Vb/I2\n", - "R1=(Vcc-Vb)/I2\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kOhm \" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 18.6 kOhm \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.14, Page No 212" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=3.0\n", - "Ve=5.0\n", - "Ic=1*10**-3\n", - "Vcc=12.0\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "R4=Ve/Ie\n", - "print(\" with Ic=1mA and R4=4.7Kohm\")\n", - "R4=4.7*10**3\n", - "Ve=Ic*R4\n", - "Vc=Ve+Vce\n", - "Vr3=Vcc-Vc\n", - "R3=Vr3/Ic\n", - "Vb=Ve+Vbe\n", - "I2=Ic/10\n", - "R2=Vb/I2\n", - "print(\" with R2=56Kohm and Vb=5.4V\")\n", - "R2=56*10**3\n", - "I2=Vb/R2\n", - "R1=(Vcc-Vb)/I2\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %.1f V \" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with Ic=1mA and R4=4.7Kohm\n", - " with R2=56Kohm and Vb=5.4V\n", - "The value of R1 is 68.4 V \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.15, Page No 214" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=9.0\n", - "Ve=4.0\n", - "Ic=4*10**-3\n", - "Vcc=18.0\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "R4=Ve/Ie\n", - "Vb=Ve+Vbe\n", - "I2=Ic/10\n", - "R2=Vb/I2\n", - "print(\" with R2=12Kohm standard\")\n", - "R2=12*10**3\n", - "I2=Vb/R2\n", - "R1=(Vce+Ve-Vb)/I2\n", - "print(\" with R1=22kohm standard\")\n", - "R1=22*10**3\n", - "Vr3=Vcc-Vce-Ve\n", - "R3=Vr3/(Ic+I2)\n", - "\n", - "#Results\n", - "print(\"The value of R3 %.2f V \" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R2=12Kohm standard\n", - " with R1=22kohm standard\n", - "The value of R3 1.14 V \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.16, Page No 216" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vc=5.0\n", - "Ic=1.0*10**-3\n", - "hFE=70.0\n", - "Vbe=.7\n", - "Vee=9.0\n", - "Vcc=Vee\n", - "Re=8.2*10**3\n", - "\n", - "#Calculations\n", - "Ve=Vee-Vbe\n", - "Ie=Ic\n", - "R3=Ve/Ie\n", - "print(\" with R3=8.2kohm standard value\")\n", - "R3=8.2*10**3\n", - "Ie=Ve/R3\n", - "Vr2=Vcc-Vc\n", - "R2=Vr2/Ic\n", - "Ib=Ic/hFE\n", - "Vr1=Vbe/10\n", - "R1=Vr1/Ib\n", - "print(\" use 4.7Kohm as standard\")\n", - "#the transistor emitter terminal is .7 below ground and voltage across Re is\n", - "Ve=Vee-Vbe\n", - "Ie=Ve/Re\n", - "Vc=Vcc-(Ie*3.9*10**3)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vc))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R3=8.2kohm standard value\n", - " use 4.7Kohm as standard\n", - "Current voltage is 5.1 V \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.17, Page No 220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hFE=100.0\n", - "Rc=2.2*10**3\n", - "Rb=270.0*10**3\n", - "Re=1.0*10**3\n", - "R1=33.0*10**3\n", - "R2=12*10**3\n", - "\n", - "#Calculations\n", - "S=1+hFE\n", - "print(\"for collector to base bias\")\n", - "S=(1+hFE)/(1+(hFE*Rc)/(Rc+Rb))\n", - "print(\" for voltage divider bias\")\n", - "print(\"S=(1+hFE)/(1+hFE*Re(Re+R1||R2))\")\n", - "S=(1+hFE)/(1+(hFE*Re)/(Re+(R1*R2)/(R1+R2)))\n", - "\n", - "#Results\n", - "print(\"Voltage-divider bias is %.2f \" %(S))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "for collector to base bias\n", - " for voltage divider bias\n", - "S=(1+hFE)/(1+hFE*Re(Re+R1||R2))\n", - "Voltage-divider bias is 9.01 \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.18, Page No 221" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Icbo1=15.0*10**-9# at 25C\n", - "S=101.0\n", - "print(\"chnage in temp\")\n", - "T=105-25\n", - "print(\" n=T in 10 step\")\n", - "n=T/10.0\n", - "\n", - "#Calculations\n", - "Icbo2=Icbo1*2**n\n", - "Icbo=Icbo2-Icbo1\n", - "print(\" for base bais\")\n", - "Ic=S*Icbo\n", - "print(\" for collector to base bais\")\n", - "S=56\n", - "Ic=S*Icbo\n", - "print(\" for voltage divider bais\")\n", - "S=8.2\n", - "Ic=S*Icbo\n", - "\n", - "#Results\n", - "print(\"The value of Ic is %.1f mA \" %(Ic*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "chnage in temp\n", - " n=T in 10 step\n", - " for base bais\n", - " for collector to base bais\n", - " for voltage divider bais\n", - "The value of Ic is 31.4 mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.19, Page No 223" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Re=4.7*10**3\n", - "T=125-25\n", - "\n", - "#Calculations\n", - "Vbe=T*(1.8*10**-3)\n", - "Ie=Vbe/Re\n", - "\n", - "#Results\n", - "print(\"The value of Ie is %.1f V \" %(Ie*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ie is 38.3 V \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.20, Page No 223" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=10.0\n", - "Rc=1.0*10**3\n", - "Rb=6.8*10**3\n", - "Vs=5.0\n", - "\n", - "#Calculations\n", - "print(\" hFE calculation\")\n", - "Ic=Vcc/Rc\n", - "Ib=(Vs-Vbe)/Rb\n", - "hFE=Ic/Ib\n", - "print(\"when hFE=10\")\n", - "hFE=10\n", - "Ic=hFE*Ib\n", - "Vce=Vcc-(Ic*Rc)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " hFE calculation\n", - "when hFE=10\n", - "Current voltage is 2.9 V \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.21, Page No 227" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Vcc=15.0\n", - "Rc=3.3*10**3\n", - "Vbe=.7\n", - "Rb=56.0*10**3\n", - "\n", - "#Calculations\n", - "Ic=Vcc/Rc\n", - "Ib=(Vcc-Vbe)/Rb\n", - "hFE=Ic/Ib\n", - "\n", - "#Results\n", - "print(\" minimum hFE is %3.2f \" %hFE)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " minimum hFE is 17.80 \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.22, Page No 229" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Vcc=12.0\n", - "Ic=1.5*10**-3\n", - "Vs=5.0\n", - "hFE=10.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Rc=Vcc/Ic\n", - "Ib=Ic/hFE\n", - "Rb=(Vs-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 28.7 kohm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.23, Page No 229" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#Calculations\n", - "Vcc=9.0\n", - "Ic=2*10**-3\n", - "hFE=10.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Rc=Vcc/Ic\n", - "Ib=Ic/hFE\n", - "Rb=(Vcc-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 41.50 kohm \n" - ] - } - ], - "prompt_number": 22 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter5_2.ipynb b/Electronic_Devices_and_Circuits/Chapter5_2.ipynb deleted file mode 100755 index 07d0da6b..00000000 --- a/Electronic_Devices_and_Circuits/Chapter5_2.ipynb +++ /dev/null @@ -1,1022 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 05 : BJT biasing" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.1, Page No 182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=12.0*10**3\n", - "Vcc=20.0\n", - "print(\" When Ic=0\")\n", - "Ic=0\n", - "\n", - "#Calculations\n", - "Vce=Vcc-Ic*Rc\n", - "print(\" At point A Ic=0 nad Vce=20\")\n", - "print(\"When Vce=0\")\n", - "Vce=0\n", - "Ic=Vcc/Rc\n", - "\n", - "#Results\n", - "print(\" At point B Ic=1.7mA and Vce=0\")\n", - "print(\"Ic is %.1f mA \" %(Ic*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " When Ic=0\n", - " At point A Ic=0 nad Vce=20\n", - "When Vce=0\n", - " At point B Ic=1.7mA and Vce=0\n", - "Ic is 1.7 mA \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.2 Page No 186" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vcc=18.0\n", - "Rc=2.2*10**3\n", - "Ib=40.0*10**-6\n", - "\n", - "#Calculations\n", - "print(\"when Ic=0\")\n", - "Ic=0\n", - "Vce=Vcc-Ic*Rc\n", - "print(\"At point A Ic=0 and Vce=18\")\n", - "print(\"when Vce=0\")\n", - "Ic=Vcc/Rc\n", - "\n", - "#Results\n", - "print(\" at point B Ic=8.2mA and Vce=0\")\n", - "print(\"Ic = %.1f mA \" %(Ic*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "when Ic=0\n", - "At point A Ic=0 and Vce=18\n", - "when Vce=0\n", - " at point B Ic=8.2mA and Vce=0\n", - "Ic = 8.2 mA \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.3 Page No 189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Rb=470*10**3\n", - "Rc=2.2*10**3\n", - "Vcc=18.0\n", - "hfe=100\n", - "Vee=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vee)/Rb\n", - "Ic=hfe*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.9 V \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.4, Page No 189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hFEmin=50.0\n", - "hFEmax=200.0\n", - "Vcc=18.0\n", - "Vbe=0.7\n", - "Rb=470.0*10**3\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vbe)/Rb\n", - "Ic=hFEmin*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "Ic=hFEmax*Ib\n", - "Vce=Vcc-Ic*Rc\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 1.8 V \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.5 Page No 193" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Rb=270*10**3\n", - "Rc=2.2*10**3\n", - "Vcc=18.0\n", - "hFE=100\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vcc-Vbe)/(Rb+Rc*(hFE+1))\n", - "Ic=hFE*Ib\n", - "Vce=Vcc-Rc*(Ic+Ib)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 10.2 V \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.7 Page No 197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "R1=33.0*10**3\n", - "R2=12.0*10**3\n", - "Rc=1.2*10**3\n", - "Re=1*10**3\n", - "Vcc=18.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "Ve=Vb-Vbe\n", - "Ie=(Vb-Vbe)/Re\n", - "Ic=Ie\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.0 V \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.8, Page No 199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=18.0\n", - "Vbe=.7\n", - "hfe=100.0\n", - "R1=33*10**3\n", - "R2=12.0*10**3\n", - "Re=1.0*10**3\n", - "\n", - "#Calculations\n", - "Vt=(Vcc*R2)/(R1+R2)\n", - "Rt=(R1*R2)/(R1+R2)\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.7 V \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.9 Page No 200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hfe=50.0\n", - "Vt=4.8\n", - "Rt=8.8*10**3#from example 5.7\n", - "Re=1.0*10**3\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 10.4 V \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.10 Page No 201" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vt=4.8\n", - "Rt=8.8*10**3#from example 5.8\n", - "Re=1*10**3\n", - "Vbe=.7\n", - "hfe=200.0\n", - "\n", - "#Calculations\n", - "Ib=(Vt-Vbe)/(Rt+Re*(1+hfe))\n", - "Ic=hfe*Ib\n", - "Ie=Ib+Ic\n", - "Ve=Ie*Re\n", - "Vc=Vcc-(Ic*Rc)\n", - "Vce=Vc-Ve\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current voltage is 9.4 V \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.11 Page No 208" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ic=5*10**-3\n", - "Vcc=15.0\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "Rc=(Vcc-Vce)/Ic\n", - "Ib=Ic/hfe\n", - "Rb=(Vcc-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rv is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rv is 286.0 kohm \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.12, Page No 209" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ic=5*10**-3\n", - "Vcc=15.0\n", - "hfe=100.0\n", - "\n", - "#Calculations\n", - "Ib=Ic/hfe\n", - "Rc=(Vcc-Vce)/(Ic+Ib)\n", - "Rb=(Vce-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 86.0 kohm \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.13, Page No 211" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=5.0\n", - "Ve=Vce\n", - "Ic=5.0*10**-3\n", - "hFE=100.0\n", - "Vcc=15.0\n", - "Vbe=0.7\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "Re=Ve/Ie\n", - "Rc=(Vcc-Vce-Ve)/Ic\n", - "I2=Ic/10\n", - "Vb=Ve+Vbe\n", - "R2=Vb/I2\n", - "R1=(Vcc-Vb)/I2\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kOhm \" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 18.6 kOhm \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.14, Page No 212" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=3.0\n", - "Ve=5.0\n", - "Ic=1*10**-3\n", - "Vcc=12.0\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "R4=Ve/Ie\n", - "print(\" with Ic=1mA and R4=4.7Kohm\")\n", - "R4=4.7*10**3\n", - "Ve=Ic*R4\n", - "Vc=Ve+Vce\n", - "Vr3=Vcc-Vc\n", - "R3=Vr3/Ic\n", - "Vb=Ve+Vbe\n", - "I2=Ic/10\n", - "R2=Vb/I2\n", - "print(\" with R2=56Kohm and Vb=5.4V\")\n", - "R2=56*10**3\n", - "I2=Vb/R2\n", - "R1=(Vcc-Vb)/I2\n", - "\n", - "#Results\n", - "print(\"The value of R1 is %.1f V \" %(R1/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with Ic=1mA and R4=4.7Kohm\n", - " with R2=56Kohm and Vb=5.4V\n", - "The value of R1 is 68.4 V \n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.15, Page No 214" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vce=9.0\n", - "Ve=4.0\n", - "Ic=4*10**-3\n", - "Vcc=18.0\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "R4=Ve/Ie\n", - "Vb=Ve+Vbe\n", - "I2=Ic/10\n", - "R2=Vb/I2\n", - "print(\" with R2=12Kohm standard\")\n", - "R2=12*10**3\n", - "I2=Vb/R2\n", - "R1=(Vce+Ve-Vb)/I2\n", - "print(\" with R1=22kohm standard\")\n", - "R1=22*10**3\n", - "Vr3=Vcc-Vce-Ve\n", - "R3=Vr3/(Ic+I2)\n", - "\n", - "#Results\n", - "print(\"The value of R3 %.2f V \" %(R3/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R2=12Kohm standard\n", - " with R1=22kohm standard\n", - "The value of R3 1.14 V \n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.16, Page No 216" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vc=5.0\n", - "Ic=1.0*10**-3\n", - "hFE=70.0\n", - "Vbe=.7\n", - "Vee=9.0\n", - "Vcc=Vee\n", - "Re=8.2*10**3\n", - "\n", - "#Calculations\n", - "Ve=Vee-Vbe\n", - "Ie=Ic\n", - "R3=Ve/Ie\n", - "print(\" with R3=8.2kohm standard value\")\n", - "R3=8.2*10**3\n", - "Ie=Ve/R3\n", - "Vr2=Vcc-Vc\n", - "R2=Vr2/Ic\n", - "Ib=Ic/hFE\n", - "Vr1=Vbe/10\n", - "R1=Vr1/Ib\n", - "print(\" use 4.7Kohm as standard\")\n", - "#the transistor emitter terminal is .7 below ground and voltage across Re is\n", - "Ve=Vee-Vbe\n", - "Ie=Ve/Re\n", - "Vc=Vcc-(Ie*3.9*10**3)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vc))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " with R3=8.2kohm standard value\n", - " use 4.7Kohm as standard\n", - "Current voltage is 5.1 V \n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.17, Page No 220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hFE=100.0\n", - "Rc=2.2*10**3\n", - "Rb=270.0*10**3\n", - "Re=1.0*10**3\n", - "R1=33.0*10**3\n", - "R2=12*10**3\n", - "\n", - "#Calculations\n", - "S=1+hFE\n", - "print(\"for collector to base bias\")\n", - "S=(1+hFE)/(1+(hFE*Rc)/(Rc+Rb))\n", - "print(\" for voltage divider bias\")\n", - "print(\"S=(1+hFE)/(1+hFE*Re(Re+R1||R2))\")\n", - "S=(1+hFE)/(1+(hFE*Re)/(Re+(R1*R2)/(R1+R2)))\n", - "\n", - "#Results\n", - "print(\"Voltage-divider bias is %.2f \" %(S))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "for collector to base bias\n", - " for voltage divider bias\n", - "S=(1+hFE)/(1+hFE*Re(Re+R1||R2))\n", - "Voltage-divider bias is 9.01 \n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.18, Page No 221" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Icbo1=15.0*10**-9# at 25C\n", - "S=101.0\n", - "print(\"chnage in temp\")\n", - "T=105-25\n", - "print(\" n=T in 10 step\")\n", - "n=T/10.0\n", - "\n", - "#Calculations\n", - "Icbo2=Icbo1*2**n\n", - "Icbo=Icbo2-Icbo1\n", - "print(\" for base bais\")\n", - "Ic=S*Icbo\n", - "print(\" for collector to base bais\")\n", - "S=56\n", - "Ic=S*Icbo\n", - "print(\" for voltage divider bais\")\n", - "S=8.2\n", - "Ic=S*Icbo\n", - "\n", - "#Results\n", - "print(\"The value of Ic is %.1f mA \" %(Ic*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "chnage in temp\n", - " n=T in 10 step\n", - " for base bais\n", - " for collector to base bais\n", - " for voltage divider bais\n", - "The value of Ic is 31.4 mA \n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.19, Page No 223" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Re=4.7*10**3\n", - "T=125-25\n", - "\n", - "#Calculations\n", - "Vbe=T*(1.8*10**-3)\n", - "Ie=Vbe/Re\n", - "\n", - "#Results\n", - "print(\"The value of Ie is %.1f V \" %(Ie*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Ie is 38.3 V \n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.20, Page No 223" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=10.0\n", - "Rc=1.0*10**3\n", - "Rb=6.8*10**3\n", - "Vs=5.0\n", - "\n", - "#Calculations\n", - "print(\" hFE calculation\")\n", - "Ic=Vcc/Rc\n", - "Ib=(Vs-Vbe)/Rb\n", - "hFE=Ic/Ib\n", - "print(\"when hFE=10\")\n", - "hFE=10\n", - "Ic=hFE*Ib\n", - "Vce=Vcc-(Ic*Rc)\n", - "\n", - "#Results\n", - "print(\"Current voltage is %.1f V \" %(Vce))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " hFE calculation\n", - "when hFE=10\n", - "Current voltage is 2.9 V \n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.21, Page No 227" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Vcc=15.0\n", - "Rc=3.3*10**3\n", - "Vbe=.7\n", - "Rb=56.0*10**3\n", - "\n", - "#Calculations\n", - "Ic=Vcc/Rc\n", - "Ib=(Vcc-Vbe)/Rb\n", - "hFE=Ic/Ib\n", - "\n", - "#Results\n", - "print(\" minimum hFE is %3.2f \" %hFE)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " minimum hFE is 17.80 \n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.22, Page No 229" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#initialisation of variables\n", - "Vcc=12.0\n", - "Ic=1.5*10**-3\n", - "Vs=5.0\n", - "hFE=10.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Rc=Vcc/Ic\n", - "Ib=Ic/hFE\n", - "Rb=(Vs-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.1f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 28.7 kohm \n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 5.23, Page No 229" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#Calculations\n", - "Vcc=9.0\n", - "Ic=2*10**-3\n", - "hFE=10.0\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "Rc=Vcc/Ic\n", - "Ib=Ic/hFE\n", - "Rb=(Vcc-Vbe)/Ib\n", - "\n", - "#Results\n", - "print(\"The value of Rb is %.2f kohm \" %(Rb/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The value of Rb is 41.50 kohm \n" - ] - } - ], - "prompt_number": 22 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter6.ipynb b/Electronic_Devices_and_Circuits/Chapter6.ipynb deleted file mode 100755 index 85bada6c..00000000 --- a/Electronic_Devices_and_Circuits/Chapter6.ipynb +++ /dev/null @@ -1,656 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 06 : Ac analysis of BJT circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.1, Page No 240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=12.0\n", - "R2=15.0*10**3\n", - "R1=33.0*10**3\n", - "rs=600\n", - "\n", - "#Calculations\n", - "print(\"with no signal source\")\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "print(\" base bais voltage when no signal source is present %3.2fV \" %Vb)\n", - "print(\" signal source directly connected\")\n", - "Vb=(Vcc*((rs*R2)/(rs+R2))/(R1+((rs*R2)/(rs+R2))))\n", - "\n", - "#Results\n", - "print(\"base bais voltage is %3.2fV \" %Vb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "with no signal source\n", - " base bais voltage when no signal source is present 3.75V \n", - " signal source directly connected\n", - "base bais voltage is 0.21V \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.2, Page No 244" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Rc=2.2*10**3\n", - "Re=2.7*10**3\n", - "R1=18.0*10**3\n", - "R2=8.2*10**3\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "print(\"drawing dc load line\")\n", - "Rldc=Rc+Re\n", - "print(\" for Vce\")\n", - "Ic=0\n", - "Vcc=20\n", - "Vce=Vcc-Ic*(Rc+Re)\n", - "print(\"plot point A at\")\n", - "Ic=Vcc/(Rc+Re)\n", - "print(\"plot point B Ic=4.08mA and Vce=0\")\n", - "print(\" draw dc laod line through point A nad B\")\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "Ve=Vb-Vbe\n", - "Ic=Ve/Re\n", - "Ie=Ic\n", - "print(\"drawing the ac load line\")\n", - "Rlac=Rc#when there is no external Rl\n", - "Vce=Ic*Rc\n", - "\n", - "\n", - "#Results\n", - "print(\"The voltage is %.2f v \" %Vce)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "drawing dc load line\n", - " for Vce\n", - "plot point A at\n", - "plot point B Ic=4.08mA and Vce=0\n", - " draw dc laod line through point A nad B\n", - "drawing the ac load line\n", - "The voltage is 4.53 v \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.3 Page No 251" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=4.5\n", - "Ib=40.0*10**-6\n", - "\n", - "#Calculations\n", - "print(\"from current characteristic at Vce=4.5V and Ib=40uA\")\n", - "Ic=4.0*10**-3\n", - "Ib=30.0*10**-6\n", - "hFE=Ic/Ib\n", - "print(\" the value of hFE is %d \" %hFE)\n", - "print(\"from output characteristic at Vce=4.5 and Ib=40uA\")\n", - "Ic=0.2\n", - "Vce=6\n", - "hoe=(Ic/Vce)\n", - "R=1/hoe\n", - "\n", - "#Results\n", - "print(\"the value of hoe is %3.1fuS \" %(hoe*10**3))\n", - "print(\"the value of 1/hoe is %3.1fuS \" %(1/hoe))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "from current characteristic at Vce=4.5V and Ib=40uA\n", - " the value of hFE is 133 \n", - "from output characteristic at Vce=4.5 and Ib=40uA\n", - "the value of hoe is 33.3uS \n", - "the value of 1/hoe is 30.0uS \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.4, Page No 253" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hfe=133.0\n", - "hoe=33.3*10**-6\n", - "hfc=1+hfe\n", - "\n", - "#Calculations\n", - "hob=hoe/(1+hfe)\n", - "A=hfe/(1+hfe)\n", - "\n", - "#Results\n", - "print(\"tye value of a is %3.1fuS \" %(A))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "tye value of a is 1.0uS \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.5 Page No 253" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ib=20.0*10**-6\n", - "Ic=1.0*10**-3\n", - "Ie=Ic\n", - "\n", - "#Calculations\n", - "re=(26*10**-3)/Ie\n", - "hfe=Ic/Ib\n", - "hie=(1+hfe)*re\n", - "r=hie\n", - "B=hfe\n", - "\n", - "#Results\n", - "print(\"the value of b is %3.1f \" %(B))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the value of b is 50.0 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.6 Page No 258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "hoe=1*10**-6\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82*10**3\n", - "\n", - "#Calculations\n", - "print(\" input impedance Zi=R1||R2||hie\")\n", - "Zi=((R1*R2*hie)/(R1+R2+hie))*10**-3\n", - "print(\" input impedance is %3.2fKohm \" %Zi)\n", - "print(\"output impedance is Zo=Rc||(1/hoe)\")\n", - "Zo=((Rc*(1/hoe))/(Rc+(1/hoe)))*10**-3\n", - "print(\" output impadance is %f3.2fKohm \" %Zo)\n", - "Av=-(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "\n", - "\n", - "#Results\n", - "print(\" voltage gain is %d \" %Av)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input impedance Zi=R1||R2||hie\n", - " input impedance is 63416.34Kohm \n", - "output impedance is Zo=Rc||(1/hoe)\n", - " output impadance is 3.8848493.2fKohm \n", - " voltage gain is -132 \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.7, Page No 259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Ic=1.5*10**-3\n", - "Rc=4.7*10**3\n", - "Rl=56.0*10**3\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "re=(26*10**-3)/Ie\n", - "Av=-(((Rc*Rl)/(Rc+Rl))/re)\n", - "\n", - "#Results\n", - "print(\" voltage gain is %d \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage gain is -250 \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.8 Page No 262" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "hoe=1.0*10**-6\n", - "Re=4.7*10**3\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "Zb=hie+Re*(1+hfe)\n", - "print(\" input impedance is Zi=R1||R2||Zb\")\n", - "Zi=((R1*R2*Zb)/(R1+R2+Zb))\n", - "print(\" input circuit resistance is %3.3fKohm \" %Zi)\n", - "Zo=Rc\n", - "Av=-hfe*((Rc*Rl)/(Rc+Rl))/(hie+Re*(1+hfe))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input impedance is Zi=R1||R2||Zb\n", - " input circuit resistance is 2830983654.045Kohm \n", - "voltage gain is -0.777 \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.9 Page No 267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "R1=10.0*10**3\n", - "R2=10.0*10**3\n", - "Re=4.7*10**3\n", - "Rl=12.0*10**3\n", - "rs=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" Rl is not connected\")\n", - "hic=hie\n", - "hfc=1+hfe\n", - "Zb=hic+hfc*(Re)\n", - "Zi=(R1*R2*Zb)/(R1+R2+Zb)\n", - "Ze=(hic+(R1*R2*rs)/(R1+R2+rs))/hfc\n", - "Z0=(Ze*Re)/(Ze+Re)\n", - "print(\" when Rl is connected\")\n", - "Zb=hic+hfc*((Re*Rl)/(Re+Rl))\n", - "Zi=(R1*R2*Zb)/(R1+R2+Zb)\n", - "hib=hie/(1+hfe)\n", - "Av=((Re*Rl)/(Re+Rl))/(hib+((Re*Rl)/(Re+Rl)))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Rl is not connected\n", - " when Rl is connected\n", - "voltage gain is 0.992 \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.10 Page No 273" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "Re=4.7*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "hib=hie/(1+hfe)\n", - "hfb=hfe/(1+hfe)\n", - "Zi=(hib*Re)/(Re+hib)\n", - "print(\"input impedance is %3.2fohm \" %Zi)\n", - "Zo=Rc\n", - "print(\" output impedance is %3.2fohm \" %Zo)\n", - "Av=(hfb*((Rc*Rl)/(Rc+Rl)))/hib\n", - "\n", - "#Results\n", - "print(\" voltage gain is %3.2f \" %Av)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance is 27.47ohm \n", - " output impedance is 3900.00ohm \n", - " voltage gain is 132.96 \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.11, Page No 273" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hib=27.6\n", - "hfb=.987\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Re=4.7*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Ze=hib+Rb*(1-hfb)\n", - "Zi=(Ze*Re)/(Ze+Re)\n", - "Av=(hfb*((Rc*Rl)/(Rc+Rl)))/(hib+Rb*(1-hfb))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain is 8.609 \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.12, Page No 277" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=5.6*10**3\n", - "Rl=33.0*10**3\n", - "rs=600.0\n", - "hfe=100\n", - "hie=1.5*10**3\n", - "vs=50.0*10**-3\n", - "\n", - "#Calculations\n", - "print(\" CE circuit operation with vs at transistor base and Re bypassed\")\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Zb=hie\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Zi=(Rb*Zb)/(Rb+Zb)\n", - "vi=(vs*Zi)/(rs+Zi)\n", - "vo=Av*vi\n", - "print(\"Cb circuit operation with vs at emitter and the base resistor bypassed\")\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Ze=hie/(1+hfe)\n", - "Zi=(Ze*Re)/(Ze+Re)\n", - "vi=(vs*Zi)/(rs+Zi)\n", - "vo=Av*vi\n", - "\n", - "#Results\n", - "print(\"voltage vo is %3.2f \" %(vo*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " CE circuit operation with vs at transistor base and Re bypassed\n", - "Cb circuit operation with vs at emitter and the base resistor bypassed\n", - "voltage vo is 384.29 \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.13, Page No 279" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Io=50.0*10**-9\n", - "Vbe=.7\n", - "Vbc=-10\n", - "Af=.995\n", - "Ar=.5\n", - "Vt=26.0*10**-3\n", - "n=2.0\n", - "Vd=-10.0\n", - "\n", - "#Calculations\n", - "x=Vd/(n*Vt)\n", - "Idc=(Io*((2.73**-x)-1))*10**9\n", - "Idc=Io*(-1)\n", - "y=Vbe/(n*Vt)\n", - "Ide=Io*((2.73**y)-1)\n", - "I1=Af*Ide\n", - "I2=Ar*Idc\n", - "Ic=I1-Idc\n", - "Ie=Ide-I2\n", - "Ib=Ie-Ic\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %(Ib*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain is 185.909 \n" - ] - } - ], - "prompt_number": 13 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter6_1.ipynb b/Electronic_Devices_and_Circuits/Chapter6_1.ipynb deleted file mode 100755 index 85bada6c..00000000 --- a/Electronic_Devices_and_Circuits/Chapter6_1.ipynb +++ /dev/null @@ -1,656 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 06 : Ac analysis of BJT circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.1, Page No 240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=12.0\n", - "R2=15.0*10**3\n", - "R1=33.0*10**3\n", - "rs=600\n", - "\n", - "#Calculations\n", - "print(\"with no signal source\")\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "print(\" base bais voltage when no signal source is present %3.2fV \" %Vb)\n", - "print(\" signal source directly connected\")\n", - "Vb=(Vcc*((rs*R2)/(rs+R2))/(R1+((rs*R2)/(rs+R2))))\n", - "\n", - "#Results\n", - "print(\"base bais voltage is %3.2fV \" %Vb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "with no signal source\n", - " base bais voltage when no signal source is present 3.75V \n", - " signal source directly connected\n", - "base bais voltage is 0.21V \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.2, Page No 244" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Rc=2.2*10**3\n", - "Re=2.7*10**3\n", - "R1=18.0*10**3\n", - "R2=8.2*10**3\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "print(\"drawing dc load line\")\n", - "Rldc=Rc+Re\n", - "print(\" for Vce\")\n", - "Ic=0\n", - "Vcc=20\n", - "Vce=Vcc-Ic*(Rc+Re)\n", - "print(\"plot point A at\")\n", - "Ic=Vcc/(Rc+Re)\n", - "print(\"plot point B Ic=4.08mA and Vce=0\")\n", - "print(\" draw dc laod line through point A nad B\")\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "Ve=Vb-Vbe\n", - "Ic=Ve/Re\n", - "Ie=Ic\n", - "print(\"drawing the ac load line\")\n", - "Rlac=Rc#when there is no external Rl\n", - "Vce=Ic*Rc\n", - "\n", - "\n", - "#Results\n", - "print(\"The voltage is %.2f v \" %Vce)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "drawing dc load line\n", - " for Vce\n", - "plot point A at\n", - "plot point B Ic=4.08mA and Vce=0\n", - " draw dc laod line through point A nad B\n", - "drawing the ac load line\n", - "The voltage is 4.53 v \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.3 Page No 251" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=4.5\n", - "Ib=40.0*10**-6\n", - "\n", - "#Calculations\n", - "print(\"from current characteristic at Vce=4.5V and Ib=40uA\")\n", - "Ic=4.0*10**-3\n", - "Ib=30.0*10**-6\n", - "hFE=Ic/Ib\n", - "print(\" the value of hFE is %d \" %hFE)\n", - "print(\"from output characteristic at Vce=4.5 and Ib=40uA\")\n", - "Ic=0.2\n", - "Vce=6\n", - "hoe=(Ic/Vce)\n", - "R=1/hoe\n", - "\n", - "#Results\n", - "print(\"the value of hoe is %3.1fuS \" %(hoe*10**3))\n", - "print(\"the value of 1/hoe is %3.1fuS \" %(1/hoe))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "from current characteristic at Vce=4.5V and Ib=40uA\n", - " the value of hFE is 133 \n", - "from output characteristic at Vce=4.5 and Ib=40uA\n", - "the value of hoe is 33.3uS \n", - "the value of 1/hoe is 30.0uS \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.4, Page No 253" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hfe=133.0\n", - "hoe=33.3*10**-6\n", - "hfc=1+hfe\n", - "\n", - "#Calculations\n", - "hob=hoe/(1+hfe)\n", - "A=hfe/(1+hfe)\n", - "\n", - "#Results\n", - "print(\"tye value of a is %3.1fuS \" %(A))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "tye value of a is 1.0uS \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.5 Page No 253" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ib=20.0*10**-6\n", - "Ic=1.0*10**-3\n", - "Ie=Ic\n", - "\n", - "#Calculations\n", - "re=(26*10**-3)/Ie\n", - "hfe=Ic/Ib\n", - "hie=(1+hfe)*re\n", - "r=hie\n", - "B=hfe\n", - "\n", - "#Results\n", - "print(\"the value of b is %3.1f \" %(B))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the value of b is 50.0 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.6 Page No 258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "hoe=1*10**-6\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82*10**3\n", - "\n", - "#Calculations\n", - "print(\" input impedance Zi=R1||R2||hie\")\n", - "Zi=((R1*R2*hie)/(R1+R2+hie))*10**-3\n", - "print(\" input impedance is %3.2fKohm \" %Zi)\n", - "print(\"output impedance is Zo=Rc||(1/hoe)\")\n", - "Zo=((Rc*(1/hoe))/(Rc+(1/hoe)))*10**-3\n", - "print(\" output impadance is %f3.2fKohm \" %Zo)\n", - "Av=-(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "\n", - "\n", - "#Results\n", - "print(\" voltage gain is %d \" %Av)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input impedance Zi=R1||R2||hie\n", - " input impedance is 63416.34Kohm \n", - "output impedance is Zo=Rc||(1/hoe)\n", - " output impadance is 3.8848493.2fKohm \n", - " voltage gain is -132 \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.7, Page No 259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Ic=1.5*10**-3\n", - "Rc=4.7*10**3\n", - "Rl=56.0*10**3\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "re=(26*10**-3)/Ie\n", - "Av=-(((Rc*Rl)/(Rc+Rl))/re)\n", - "\n", - "#Results\n", - "print(\" voltage gain is %d \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage gain is -250 \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.8 Page No 262" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "hoe=1.0*10**-6\n", - "Re=4.7*10**3\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "Zb=hie+Re*(1+hfe)\n", - "print(\" input impedance is Zi=R1||R2||Zb\")\n", - "Zi=((R1*R2*Zb)/(R1+R2+Zb))\n", - "print(\" input circuit resistance is %3.3fKohm \" %Zi)\n", - "Zo=Rc\n", - "Av=-hfe*((Rc*Rl)/(Rc+Rl))/(hie+Re*(1+hfe))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input impedance is Zi=R1||R2||Zb\n", - " input circuit resistance is 2830983654.045Kohm \n", - "voltage gain is -0.777 \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.9 Page No 267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "R1=10.0*10**3\n", - "R2=10.0*10**3\n", - "Re=4.7*10**3\n", - "Rl=12.0*10**3\n", - "rs=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" Rl is not connected\")\n", - "hic=hie\n", - "hfc=1+hfe\n", - "Zb=hic+hfc*(Re)\n", - "Zi=(R1*R2*Zb)/(R1+R2+Zb)\n", - "Ze=(hic+(R1*R2*rs)/(R1+R2+rs))/hfc\n", - "Z0=(Ze*Re)/(Ze+Re)\n", - "print(\" when Rl is connected\")\n", - "Zb=hic+hfc*((Re*Rl)/(Re+Rl))\n", - "Zi=(R1*R2*Zb)/(R1+R2+Zb)\n", - "hib=hie/(1+hfe)\n", - "Av=((Re*Rl)/(Re+Rl))/(hib+((Re*Rl)/(Re+Rl)))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Rl is not connected\n", - " when Rl is connected\n", - "voltage gain is 0.992 \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.10 Page No 273" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "Re=4.7*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "hib=hie/(1+hfe)\n", - "hfb=hfe/(1+hfe)\n", - "Zi=(hib*Re)/(Re+hib)\n", - "print(\"input impedance is %3.2fohm \" %Zi)\n", - "Zo=Rc\n", - "print(\" output impedance is %3.2fohm \" %Zo)\n", - "Av=(hfb*((Rc*Rl)/(Rc+Rl)))/hib\n", - "\n", - "#Results\n", - "print(\" voltage gain is %3.2f \" %Av)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance is 27.47ohm \n", - " output impedance is 3900.00ohm \n", - " voltage gain is 132.96 \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.11, Page No 273" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hib=27.6\n", - "hfb=.987\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Re=4.7*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Ze=hib+Rb*(1-hfb)\n", - "Zi=(Ze*Re)/(Ze+Re)\n", - "Av=(hfb*((Rc*Rl)/(Rc+Rl)))/(hib+Rb*(1-hfb))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain is 8.609 \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.12, Page No 277" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=5.6*10**3\n", - "Rl=33.0*10**3\n", - "rs=600.0\n", - "hfe=100\n", - "hie=1.5*10**3\n", - "vs=50.0*10**-3\n", - "\n", - "#Calculations\n", - "print(\" CE circuit operation with vs at transistor base and Re bypassed\")\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Zb=hie\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Zi=(Rb*Zb)/(Rb+Zb)\n", - "vi=(vs*Zi)/(rs+Zi)\n", - "vo=Av*vi\n", - "print(\"Cb circuit operation with vs at emitter and the base resistor bypassed\")\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Ze=hie/(1+hfe)\n", - "Zi=(Ze*Re)/(Ze+Re)\n", - "vi=(vs*Zi)/(rs+Zi)\n", - "vo=Av*vi\n", - "\n", - "#Results\n", - "print(\"voltage vo is %3.2f \" %(vo*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " CE circuit operation with vs at transistor base and Re bypassed\n", - "Cb circuit operation with vs at emitter and the base resistor bypassed\n", - "voltage vo is 384.29 \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.13, Page No 279" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Io=50.0*10**-9\n", - "Vbe=.7\n", - "Vbc=-10\n", - "Af=.995\n", - "Ar=.5\n", - "Vt=26.0*10**-3\n", - "n=2.0\n", - "Vd=-10.0\n", - "\n", - "#Calculations\n", - "x=Vd/(n*Vt)\n", - "Idc=(Io*((2.73**-x)-1))*10**9\n", - "Idc=Io*(-1)\n", - "y=Vbe/(n*Vt)\n", - "Ide=Io*((2.73**y)-1)\n", - "I1=Af*Ide\n", - "I2=Ar*Idc\n", - "Ic=I1-Idc\n", - "Ie=Ide-I2\n", - "Ib=Ie-Ic\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %(Ib*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain is 185.909 \n" - ] - } - ], - "prompt_number": 13 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter6_2.ipynb b/Electronic_Devices_and_Circuits/Chapter6_2.ipynb deleted file mode 100755 index 85bada6c..00000000 --- a/Electronic_Devices_and_Circuits/Chapter6_2.ipynb +++ /dev/null @@ -1,656 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 06 : Ac analysis of BJT circuits" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.1, Page No 240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Vcc=12.0\n", - "R2=15.0*10**3\n", - "R1=33.0*10**3\n", - "rs=600\n", - "\n", - "#Calculations\n", - "print(\"with no signal source\")\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "print(\" base bais voltage when no signal source is present %3.2fV \" %Vb)\n", - "print(\" signal source directly connected\")\n", - "Vb=(Vcc*((rs*R2)/(rs+R2))/(R1+((rs*R2)/(rs+R2))))\n", - "\n", - "#Results\n", - "print(\"base bais voltage is %3.2fV \" %Vb)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "with no signal source\n", - " base bais voltage when no signal source is present 3.75V \n", - " signal source directly connected\n", - "base bais voltage is 0.21V \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.2, Page No 244" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "\n", - "Rc=2.2*10**3\n", - "Re=2.7*10**3\n", - "R1=18.0*10**3\n", - "R2=8.2*10**3\n", - "Vbe=.7\n", - "\n", - "#Calculations\n", - "print(\"drawing dc load line\")\n", - "Rldc=Rc+Re\n", - "print(\" for Vce\")\n", - "Ic=0\n", - "Vcc=20\n", - "Vce=Vcc-Ic*(Rc+Re)\n", - "print(\"plot point A at\")\n", - "Ic=Vcc/(Rc+Re)\n", - "print(\"plot point B Ic=4.08mA and Vce=0\")\n", - "print(\" draw dc laod line through point A nad B\")\n", - "Vb=(Vcc*R2)/(R1+R2)\n", - "Ve=Vb-Vbe\n", - "Ic=Ve/Re\n", - "Ie=Ic\n", - "print(\"drawing the ac load line\")\n", - "Rlac=Rc#when there is no external Rl\n", - "Vce=Ic*Rc\n", - "\n", - "\n", - "#Results\n", - "print(\"The voltage is %.2f v \" %Vce)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "drawing dc load line\n", - " for Vce\n", - "plot point A at\n", - "plot point B Ic=4.08mA and Vce=0\n", - " draw dc laod line through point A nad B\n", - "drawing the ac load line\n", - "The voltage is 4.53 v \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.3 Page No 251" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=4.5\n", - "Ib=40.0*10**-6\n", - "\n", - "#Calculations\n", - "print(\"from current characteristic at Vce=4.5V and Ib=40uA\")\n", - "Ic=4.0*10**-3\n", - "Ib=30.0*10**-6\n", - "hFE=Ic/Ib\n", - "print(\" the value of hFE is %d \" %hFE)\n", - "print(\"from output characteristic at Vce=4.5 and Ib=40uA\")\n", - "Ic=0.2\n", - "Vce=6\n", - "hoe=(Ic/Vce)\n", - "R=1/hoe\n", - "\n", - "#Results\n", - "print(\"the value of hoe is %3.1fuS \" %(hoe*10**3))\n", - "print(\"the value of 1/hoe is %3.1fuS \" %(1/hoe))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "from current characteristic at Vce=4.5V and Ib=40uA\n", - " the value of hFE is 133 \n", - "from output characteristic at Vce=4.5 and Ib=40uA\n", - "the value of hoe is 33.3uS \n", - "the value of 1/hoe is 30.0uS \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.4, Page No 253" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hfe=133.0\n", - "hoe=33.3*10**-6\n", - "hfc=1+hfe\n", - "\n", - "#Calculations\n", - "hob=hoe/(1+hfe)\n", - "A=hfe/(1+hfe)\n", - "\n", - "#Results\n", - "print(\"tye value of a is %3.1fuS \" %(A))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "tye value of a is 1.0uS \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.5 Page No 253" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "\n", - "Ib=20.0*10**-6\n", - "Ic=1.0*10**-3\n", - "Ie=Ic\n", - "\n", - "#Calculations\n", - "re=(26*10**-3)/Ie\n", - "hfe=Ic/Ib\n", - "hie=(1+hfe)*re\n", - "r=hie\n", - "B=hfe\n", - "\n", - "#Results\n", - "print(\"the value of b is %3.1f \" %(B))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the value of b is 50.0 \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.6 Page No 258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "hoe=1*10**-6\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82*10**3\n", - "\n", - "#Calculations\n", - "print(\" input impedance Zi=R1||R2||hie\")\n", - "Zi=((R1*R2*hie)/(R1+R2+hie))*10**-3\n", - "print(\" input impedance is %3.2fKohm \" %Zi)\n", - "print(\"output impedance is Zo=Rc||(1/hoe)\")\n", - "Zo=((Rc*(1/hoe))/(Rc+(1/hoe)))*10**-3\n", - "print(\" output impadance is %f3.2fKohm \" %Zo)\n", - "Av=-(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "\n", - "\n", - "#Results\n", - "print(\" voltage gain is %d \" %Av)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input impedance Zi=R1||R2||hie\n", - " input impedance is 63416.34Kohm \n", - "output impedance is Zo=Rc||(1/hoe)\n", - " output impadance is 3.8848493.2fKohm \n", - " voltage gain is -132 \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.7, Page No 259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Ic=1.5*10**-3\n", - "Rc=4.7*10**3\n", - "Rl=56.0*10**3\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "re=(26*10**-3)/Ie\n", - "Av=-(((Rc*Rl)/(Rc+Rl))/re)\n", - "\n", - "#Results\n", - "print(\" voltage gain is %d \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " voltage gain is -250 \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.8 Page No 262" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "hoe=1.0*10**-6\n", - "Re=4.7*10**3\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "Zb=hie+Re*(1+hfe)\n", - "print(\" input impedance is Zi=R1||R2||Zb\")\n", - "Zi=((R1*R2*Zb)/(R1+R2+Zb))\n", - "print(\" input circuit resistance is %3.3fKohm \" %Zi)\n", - "Zo=Rc\n", - "Av=-hfe*((Rc*Rl)/(Rc+Rl))/(hie+Re*(1+hfe))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input impedance is Zi=R1||R2||Zb\n", - " input circuit resistance is 2830983654.045Kohm \n", - "voltage gain is -0.777 \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.9 Page No 267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "R1=10.0*10**3\n", - "R2=10.0*10**3\n", - "Re=4.7*10**3\n", - "Rl=12.0*10**3\n", - "rs=1.0*10**3\n", - "\n", - "#Calculations\n", - "print(\" Rl is not connected\")\n", - "hic=hie\n", - "hfc=1+hfe\n", - "Zb=hic+hfc*(Re)\n", - "Zi=(R1*R2*Zb)/(R1+R2+Zb)\n", - "Ze=(hic+(R1*R2*rs)/(R1+R2+rs))/hfc\n", - "Z0=(Ze*Re)/(Ze+Re)\n", - "print(\" when Rl is connected\")\n", - "Zb=hic+hfc*((Re*Rl)/(Re+Rl))\n", - "Zi=(R1*R2*Zb)/(R1+R2+Zb)\n", - "hib=hie/(1+hfe)\n", - "Av=((Re*Rl)/(Re+Rl))/(hib+((Re*Rl)/(Re+Rl)))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " Rl is not connected\n", - " when Rl is connected\n", - "voltage gain is 0.992 \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.10 Page No 273" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hie=2.1*10**3\n", - "hfe=75.0\n", - "Re=4.7*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "hib=hie/(1+hfe)\n", - "hfb=hfe/(1+hfe)\n", - "Zi=(hib*Re)/(Re+hib)\n", - "print(\"input impedance is %3.2fohm \" %Zi)\n", - "Zo=Rc\n", - "print(\" output impedance is %3.2fohm \" %Zo)\n", - "Av=(hfb*((Rc*Rl)/(Rc+Rl)))/hib\n", - "\n", - "#Results\n", - "print(\" voltage gain is %3.2f \" %Av)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input impedance is 27.47ohm \n", - " output impedance is 3900.00ohm \n", - " voltage gain is 132.96 \n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.11, Page No 273" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "hib=27.6\n", - "hfb=.987\n", - "R1=68.0*10**3\n", - "R2=56.0*10**3\n", - "Re=4.7*10**3\n", - "Rc=3.9*10**3\n", - "Rl=82.0*10**3\n", - "\n", - "#Calculations\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Ze=hib+Rb*(1-hfb)\n", - "Zi=(Ze*Re)/(Ze+Re)\n", - "Av=(hfb*((Rc*Rl)/(Rc+Rl)))/(hib+Rb*(1-hfb))\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %Av)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain is 8.609 \n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.12, Page No 277" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Rc=5.6*10**3\n", - "Rl=33.0*10**3\n", - "rs=600.0\n", - "hfe=100\n", - "hie=1.5*10**3\n", - "vs=50.0*10**-3\n", - "\n", - "#Calculations\n", - "print(\" CE circuit operation with vs at transistor base and Re bypassed\")\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Zb=hie\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Zi=(Rb*Zb)/(Rb+Zb)\n", - "vi=(vs*Zi)/(rs+Zi)\n", - "vo=Av*vi\n", - "print(\"Cb circuit operation with vs at emitter and the base resistor bypassed\")\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Ze=hie/(1+hfe)\n", - "Zi=(Ze*Re)/(Ze+Re)\n", - "vi=(vs*Zi)/(rs+Zi)\n", - "vo=Av*vi\n", - "\n", - "#Results\n", - "print(\"voltage vo is %3.2f \" %(vo*10**3))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " CE circuit operation with vs at transistor base and Re bypassed\n", - "Cb circuit operation with vs at emitter and the base resistor bypassed\n", - "voltage vo is 384.29 \n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 6.13, Page No 279" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Io=50.0*10**-9\n", - "Vbe=.7\n", - "Vbc=-10\n", - "Af=.995\n", - "Ar=.5\n", - "Vt=26.0*10**-3\n", - "n=2.0\n", - "Vd=-10.0\n", - "\n", - "#Calculations\n", - "x=Vd/(n*Vt)\n", - "Idc=(Io*((2.73**-x)-1))*10**9\n", - "Idc=Io*(-1)\n", - "y=Vbe/(n*Vt)\n", - "Ide=Io*((2.73**y)-1)\n", - "I1=Af*Ide\n", - "I2=Ar*Idc\n", - "Ic=I1-Idc\n", - "Ie=Ide-I2\n", - "Ib=Ie-Ic\n", - "\n", - "#Results\n", - "print(\"voltage gain is %3.3f \" %(Ib*10**6))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage gain is 185.909 \n" - ] - } - ], - "prompt_number": 13 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter8.ipynb b/Electronic_Devices_and_Circuits/Chapter8.ipynb deleted file mode 100755 index d91fc639..00000000 --- a/Electronic_Devices_and_Circuits/Chapter8.ipynb +++ /dev/null @@ -1,499 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 08 : BJT specifications and performance" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.2, Page No 313" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "P2=25.0*10**-3#when frequency increase to 20KHz\n", - "P1=50.0*10**-3#when signal frequency is 5KHz\n", - "\n", - "#Calculations\n", - "Po=10*math.log((P2/P1),10)\n", - "\n", - "#Results\n", - "print(\" output power change in decibels is %.2f dB \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " output power change in decibels is -3.01 dB \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.3, Page No 314" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "v1=1# output voltage measured at 5KHz\n", - "v2=.707# output voltage measure at 20kHz\n", - "\n", - "#Calculations\n", - "Po=20*math.log((v2/v1),10)\n", - "\n", - "#Results\n", - "print(\" output power change is %.2f dB \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " output power change is -3.01 dB \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.4 Page No 317" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ic=1.0*10**-3\n", - "hfe=50.0\n", - "hie=1.3*10**3\n", - "fT=250.0*10**6\n", - "Cbc=5.0*10**-12\n", - "Rc=8.2*10**3\n", - "Rl=100.0*10**3\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Cbe=(6.1*Ie)/fT\n", - "Cin=(Cbe+(1+Av)*Cbc)*10**9\n", - "\n", - "#Results\n", - "print(\" input capacitance when the circuit operated as CE is %.2fnF \"%Cin)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input capacitance when the circuit operated as CE is 1.49nF \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.5, Page No 319" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=100*10**3\n", - "R2=47.0*10**3\n", - "Re=4.7*10**3\n", - "Cbc=5.0*10**-12\n", - "Cbe=24.4*10**-12\n", - "hfe=50\n", - "hie=1.3*10**3\n", - "hib=24.5\n", - "rs=hib\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "print(\" common emitter circuit\")\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Zi=(Rb*hie)/(Rb+hie)\n", - "Cin=1.48*10**-9\n", - "f2=1/(2*3.14*Cin*((rs*Zi)/(rs+Zi)))\n", - "print(\"input-capacitance upper cutoff frequency is %dHz \" %f2)\n", - "print(\"common base circuit\")\n", - "Zi=(Re*hib)/(Re+hib)\n", - "Cin=(Cbe+Cbc)\n", - "f2=(1/(2*3.14*Cin*((rs*Zi)/(rs+Zi))))*10**-6\n", - "\n", - "#Results\n", - "print(\" input capacitance upper cutoff when operating as CB circuit with base bypassed to ground is %.2f MHz \" %f2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " common emitter circuit\n", - "input-capacitance upper cutoff frequency is 265447Hz \n", - "common base circuit\n", - " input capacitance upper cutoff when operating as CB circuit with base bypassed to ground is 231.25 MHz \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.6 Page No 322" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "fT=50.0*10**6\n", - "hfe=50.0\n", - "f2o=60.0*10**3\n", - "Rc=10.0*10**3\n", - "\n", - "#Calculations\n", - "fae=fT/hfe\n", - "C4=(1.0/(2*3.14*f2o*Rc))*10**12\n", - "\n", - "#Results\n", - "print(\"capacitance required for C4 to give 60kHz upper cutoff frequency is %.2f pF \" %C4)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "capacitance required for C4 to give 60kHz upper cutoff frequency is 265.39 pF \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.8 Page No 326" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "ton=100.0*10**-9\n", - "Rs=600.0\n", - "Rb=4.7*10**3\n", - "\n", - "#Calculations\n", - "C1=(ton/Rs)*10**12\n", - "print(\" suitable speed up capacitor is %dpF \" %C1)\n", - "C1=160*10**-12#standard value\n", - "PWmin=(5*Rs*C1)\n", - "SWmin=5*Rb*C1\n", - "fmax=1/(PWmin+SWmin)\n", - "\n", - "#Results\n", - "print(\"maximum signal frequency is %.2f Hz \" %(fmax/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable speed up capacitor is 166pF \n", - "maximum signal frequency is 235.85 Hz \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.9, Page No 330" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=30.0*10**3\n", - "R2=30.0*10**3\n", - "rs=30.0*10**3\n", - "f2=40.0*10**3\n", - "f1=100.0\n", - "k=1.37*10**-23\n", - "R=10.0*10**3\n", - "Av=600.0\n", - "Ri=3.0*10**3\n", - "\n", - "#Calculations\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Rg=(rs*Rb)/(rs+Rb)\n", - "T=(273+25)\n", - "B=f2-f1\n", - "en=math.sqrt(4*k*T*B*R)\n", - "eni=en*((Ri/(Ri+Rg)))\n", - "eno=(Av*eni)*10**6\n", - "\n", - "#Results\n", - "print(\"noise output voltage is %.2f uV \" %eno)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "noise output voltage is 353.44 uV \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.10 Page No 331" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Ic=30.0*10**-6\n", - "Vce=5.0\n", - "eno=354.0*10**-6\n", - "NF=10.0\n", - "F=2.51#F=antilog(NF/10)\n", - "\n", - "#Calculations\n", - "Vn=((math.sqrt(F))*eno)*10**6\n", - "\n", - "#Results\n", - "print(\"total noise output volateg for amplifier is %.2f uV \" %Vn)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "total noise output volateg for amplifier is 560.84 uV \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.11 Page No 333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Pd25=625.0*10**-3\n", - "D=5.0*10**-3\n", - "Vce=10.0\n", - "T2=55.0\n", - "\n", - "#Calculations\n", - "Pdt2=Pd25-D*(T2-25)\n", - "Pd=Pdt2\n", - "Ic=Pd/Vce\n", - "\n", - "#Results\n", - "print(\" maximum Ic level is %.2fA \" %(Ic*1000))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum Ic level is 47.50A \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.13 Page No 335" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Pd=80.0\n", - "Vce=60.0\n", - "\n", - "#Calculations\n", - "Ic=Pd/Vce\n", - "print(\"point 1 Vce=60 and Ic= %.2f A\" %Ic)\n", - "Vce=40.0\n", - "Ic=Pd/Vce\n", - "print(\"point 2 Vce=40 and Ic= %.2f A\" %Ic)\n", - "Vce=20.0\n", - "Ic=Pd/Vce\n", - "print(\" point 3 Vce=20 and Ic= %.2f A\" %Ic)\n", - "Vce=10.0\n", - "Ic=Pd/Vce\n", - "\n", - "#Results\n", - "print(\" point 4 Vce=10 and Ic= %.2f A\" %Ic)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "point 1 Vce=60 and Ic= 1.33 A\n", - "point 2 Vce=40 and Ic= 2.00 A\n", - " point 3 Vce=20 and Ic= 4.00 A\n", - " point 4 Vce=10 and Ic= 8.00 A\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.14, Page No 339" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=20.0\n", - "Ic=1.0\n", - "T2=90.0\n", - "T1=25.0\n", - "\n", - "#Calculations\n", - "Q=Vce*Ic\n", - "Qcs=.4\n", - "Qjc=1#from table\n", - "Qsa=((T2-T1)/Q)-(Qjc+Qcs)\n", - "\n", - "#Results\n", - "print(\"Qsa= %.2f \" %Qsa)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Qsa= 1.85 \n" - ] - } - ], - "prompt_number": 11 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter8_1.ipynb b/Electronic_Devices_and_Circuits/Chapter8_1.ipynb deleted file mode 100755 index d91fc639..00000000 --- a/Electronic_Devices_and_Circuits/Chapter8_1.ipynb +++ /dev/null @@ -1,499 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 08 : BJT specifications and performance" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.2, Page No 313" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "P2=25.0*10**-3#when frequency increase to 20KHz\n", - "P1=50.0*10**-3#when signal frequency is 5KHz\n", - "\n", - "#Calculations\n", - "Po=10*math.log((P2/P1),10)\n", - "\n", - "#Results\n", - "print(\" output power change in decibels is %.2f dB \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " output power change in decibels is -3.01 dB \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.3, Page No 314" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "v1=1# output voltage measured at 5KHz\n", - "v2=.707# output voltage measure at 20kHz\n", - "\n", - "#Calculations\n", - "Po=20*math.log((v2/v1),10)\n", - "\n", - "#Results\n", - "print(\" output power change is %.2f dB \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " output power change is -3.01 dB \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.4 Page No 317" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ic=1.0*10**-3\n", - "hfe=50.0\n", - "hie=1.3*10**3\n", - "fT=250.0*10**6\n", - "Cbc=5.0*10**-12\n", - "Rc=8.2*10**3\n", - "Rl=100.0*10**3\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Cbe=(6.1*Ie)/fT\n", - "Cin=(Cbe+(1+Av)*Cbc)*10**9\n", - "\n", - "#Results\n", - "print(\" input capacitance when the circuit operated as CE is %.2fnF \"%Cin)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input capacitance when the circuit operated as CE is 1.49nF \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.5, Page No 319" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=100*10**3\n", - "R2=47.0*10**3\n", - "Re=4.7*10**3\n", - "Cbc=5.0*10**-12\n", - "Cbe=24.4*10**-12\n", - "hfe=50\n", - "hie=1.3*10**3\n", - "hib=24.5\n", - "rs=hib\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "print(\" common emitter circuit\")\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Zi=(Rb*hie)/(Rb+hie)\n", - "Cin=1.48*10**-9\n", - "f2=1/(2*3.14*Cin*((rs*Zi)/(rs+Zi)))\n", - "print(\"input-capacitance upper cutoff frequency is %dHz \" %f2)\n", - "print(\"common base circuit\")\n", - "Zi=(Re*hib)/(Re+hib)\n", - "Cin=(Cbe+Cbc)\n", - "f2=(1/(2*3.14*Cin*((rs*Zi)/(rs+Zi))))*10**-6\n", - "\n", - "#Results\n", - "print(\" input capacitance upper cutoff when operating as CB circuit with base bypassed to ground is %.2f MHz \" %f2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " common emitter circuit\n", - "input-capacitance upper cutoff frequency is 265447Hz \n", - "common base circuit\n", - " input capacitance upper cutoff when operating as CB circuit with base bypassed to ground is 231.25 MHz \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.6 Page No 322" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "fT=50.0*10**6\n", - "hfe=50.0\n", - "f2o=60.0*10**3\n", - "Rc=10.0*10**3\n", - "\n", - "#Calculations\n", - "fae=fT/hfe\n", - "C4=(1.0/(2*3.14*f2o*Rc))*10**12\n", - "\n", - "#Results\n", - "print(\"capacitance required for C4 to give 60kHz upper cutoff frequency is %.2f pF \" %C4)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "capacitance required for C4 to give 60kHz upper cutoff frequency is 265.39 pF \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.8 Page No 326" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "ton=100.0*10**-9\n", - "Rs=600.0\n", - "Rb=4.7*10**3\n", - "\n", - "#Calculations\n", - "C1=(ton/Rs)*10**12\n", - "print(\" suitable speed up capacitor is %dpF \" %C1)\n", - "C1=160*10**-12#standard value\n", - "PWmin=(5*Rs*C1)\n", - "SWmin=5*Rb*C1\n", - "fmax=1/(PWmin+SWmin)\n", - "\n", - "#Results\n", - "print(\"maximum signal frequency is %.2f Hz \" %(fmax/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable speed up capacitor is 166pF \n", - "maximum signal frequency is 235.85 Hz \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.9, Page No 330" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=30.0*10**3\n", - "R2=30.0*10**3\n", - "rs=30.0*10**3\n", - "f2=40.0*10**3\n", - "f1=100.0\n", - "k=1.37*10**-23\n", - "R=10.0*10**3\n", - "Av=600.0\n", - "Ri=3.0*10**3\n", - "\n", - "#Calculations\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Rg=(rs*Rb)/(rs+Rb)\n", - "T=(273+25)\n", - "B=f2-f1\n", - "en=math.sqrt(4*k*T*B*R)\n", - "eni=en*((Ri/(Ri+Rg)))\n", - "eno=(Av*eni)*10**6\n", - "\n", - "#Results\n", - "print(\"noise output voltage is %.2f uV \" %eno)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "noise output voltage is 353.44 uV \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.10 Page No 331" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Ic=30.0*10**-6\n", - "Vce=5.0\n", - "eno=354.0*10**-6\n", - "NF=10.0\n", - "F=2.51#F=antilog(NF/10)\n", - "\n", - "#Calculations\n", - "Vn=((math.sqrt(F))*eno)*10**6\n", - "\n", - "#Results\n", - "print(\"total noise output volateg for amplifier is %.2f uV \" %Vn)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "total noise output volateg for amplifier is 560.84 uV \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.11 Page No 333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Pd25=625.0*10**-3\n", - "D=5.0*10**-3\n", - "Vce=10.0\n", - "T2=55.0\n", - "\n", - "#Calculations\n", - "Pdt2=Pd25-D*(T2-25)\n", - "Pd=Pdt2\n", - "Ic=Pd/Vce\n", - "\n", - "#Results\n", - "print(\" maximum Ic level is %.2fA \" %(Ic*1000))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum Ic level is 47.50A \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.13 Page No 335" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Pd=80.0\n", - "Vce=60.0\n", - "\n", - "#Calculations\n", - "Ic=Pd/Vce\n", - "print(\"point 1 Vce=60 and Ic= %.2f A\" %Ic)\n", - "Vce=40.0\n", - "Ic=Pd/Vce\n", - "print(\"point 2 Vce=40 and Ic= %.2f A\" %Ic)\n", - "Vce=20.0\n", - "Ic=Pd/Vce\n", - "print(\" point 3 Vce=20 and Ic= %.2f A\" %Ic)\n", - "Vce=10.0\n", - "Ic=Pd/Vce\n", - "\n", - "#Results\n", - "print(\" point 4 Vce=10 and Ic= %.2f A\" %Ic)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "point 1 Vce=60 and Ic= 1.33 A\n", - "point 2 Vce=40 and Ic= 2.00 A\n", - " point 3 Vce=20 and Ic= 4.00 A\n", - " point 4 Vce=10 and Ic= 8.00 A\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.14, Page No 339" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=20.0\n", - "Ic=1.0\n", - "T2=90.0\n", - "T1=25.0\n", - "\n", - "#Calculations\n", - "Q=Vce*Ic\n", - "Qcs=.4\n", - "Qjc=1#from table\n", - "Qsa=((T2-T1)/Q)-(Qjc+Qcs)\n", - "\n", - "#Results\n", - "print(\"Qsa= %.2f \" %Qsa)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Qsa= 1.85 \n" - ] - } - ], - "prompt_number": 11 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/Chapter8_2.ipynb b/Electronic_Devices_and_Circuits/Chapter8_2.ipynb deleted file mode 100755 index d91fc639..00000000 --- a/Electronic_Devices_and_Circuits/Chapter8_2.ipynb +++ /dev/null @@ -1,499 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 08 : BJT specifications and performance" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.2, Page No 313" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "P2=25.0*10**-3#when frequency increase to 20KHz\n", - "P1=50.0*10**-3#when signal frequency is 5KHz\n", - "\n", - "#Calculations\n", - "Po=10*math.log((P2/P1),10)\n", - "\n", - "#Results\n", - "print(\" output power change in decibels is %.2f dB \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " output power change in decibels is -3.01 dB \n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.3, Page No 314" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "v1=1# output voltage measured at 5KHz\n", - "v2=.707# output voltage measure at 20kHz\n", - "\n", - "#Calculations\n", - "Po=20*math.log((v2/v1),10)\n", - "\n", - "#Results\n", - "print(\" output power change is %.2f dB \" %Po)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " output power change is -3.01 dB \n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.4 Page No 317" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Ic=1.0*10**-3\n", - "hfe=50.0\n", - "hie=1.3*10**3\n", - "fT=250.0*10**6\n", - "Cbc=5.0*10**-12\n", - "Rc=8.2*10**3\n", - "Rl=100.0*10**3\n", - "\n", - "#Calculations\n", - "Ie=Ic\n", - "Av=(hfe*((Rc*Rl)/(Rc+Rl)))/hie\n", - "Cbe=(6.1*Ie)/fT\n", - "Cin=(Cbe+(1+Av)*Cbc)*10**9\n", - "\n", - "#Results\n", - "print(\" input capacitance when the circuit operated as CE is %.2fnF \"%Cin)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " input capacitance when the circuit operated as CE is 1.49nF \n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.5, Page No 319" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=100*10**3\n", - "R2=47.0*10**3\n", - "Re=4.7*10**3\n", - "Cbc=5.0*10**-12\n", - "Cbe=24.4*10**-12\n", - "hfe=50\n", - "hie=1.3*10**3\n", - "hib=24.5\n", - "rs=hib\n", - "rs=600.0\n", - "\n", - "#Calculations\n", - "print(\" common emitter circuit\")\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Zi=(Rb*hie)/(Rb+hie)\n", - "Cin=1.48*10**-9\n", - "f2=1/(2*3.14*Cin*((rs*Zi)/(rs+Zi)))\n", - "print(\"input-capacitance upper cutoff frequency is %dHz \" %f2)\n", - "print(\"common base circuit\")\n", - "Zi=(Re*hib)/(Re+hib)\n", - "Cin=(Cbe+Cbc)\n", - "f2=(1/(2*3.14*Cin*((rs*Zi)/(rs+Zi))))*10**-6\n", - "\n", - "#Results\n", - "print(\" input capacitance upper cutoff when operating as CB circuit with base bypassed to ground is %.2f MHz \" %f2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " common emitter circuit\n", - "input-capacitance upper cutoff frequency is 265447Hz \n", - "common base circuit\n", - " input capacitance upper cutoff when operating as CB circuit with base bypassed to ground is 231.25 MHz \n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.6 Page No 322" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "fT=50.0*10**6\n", - "hfe=50.0\n", - "f2o=60.0*10**3\n", - "Rc=10.0*10**3\n", - "\n", - "#Calculations\n", - "fae=fT/hfe\n", - "C4=(1.0/(2*3.14*f2o*Rc))*10**12\n", - "\n", - "#Results\n", - "print(\"capacitance required for C4 to give 60kHz upper cutoff frequency is %.2f pF \" %C4)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "capacitance required for C4 to give 60kHz upper cutoff frequency is 265.39 pF \n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.8 Page No 326" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "ton=100.0*10**-9\n", - "Rs=600.0\n", - "Rb=4.7*10**3\n", - "\n", - "#Calculations\n", - "C1=(ton/Rs)*10**12\n", - "print(\" suitable speed up capacitor is %dpF \" %C1)\n", - "C1=160*10**-12#standard value\n", - "PWmin=(5*Rs*C1)\n", - "SWmin=5*Rb*C1\n", - "fmax=1/(PWmin+SWmin)\n", - "\n", - "#Results\n", - "print(\"maximum signal frequency is %.2f Hz \" %(fmax/1000))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " suitable speed up capacitor is 166pF \n", - "maximum signal frequency is 235.85 Hz \n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.9, Page No 330" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "R1=30.0*10**3\n", - "R2=30.0*10**3\n", - "rs=30.0*10**3\n", - "f2=40.0*10**3\n", - "f1=100.0\n", - "k=1.37*10**-23\n", - "R=10.0*10**3\n", - "Av=600.0\n", - "Ri=3.0*10**3\n", - "\n", - "#Calculations\n", - "Rb=(R1*R2)/(R1+R2)\n", - "Rg=(rs*Rb)/(rs+Rb)\n", - "T=(273+25)\n", - "B=f2-f1\n", - "en=math.sqrt(4*k*T*B*R)\n", - "eni=en*((Ri/(Ri+Rg)))\n", - "eno=(Av*eni)*10**6\n", - "\n", - "#Results\n", - "print(\"noise output voltage is %.2f uV \" %eno)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "noise output voltage is 353.44 uV \n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.10 Page No 331" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "\n", - "#initialisation of variables\n", - "Ic=30.0*10**-6\n", - "Vce=5.0\n", - "eno=354.0*10**-6\n", - "NF=10.0\n", - "F=2.51#F=antilog(NF/10)\n", - "\n", - "#Calculations\n", - "Vn=((math.sqrt(F))*eno)*10**6\n", - "\n", - "#Results\n", - "print(\"total noise output volateg for amplifier is %.2f uV \" %Vn)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "total noise output volateg for amplifier is 560.84 uV \n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.11 Page No 333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#initialisation of variables\n", - "Pd25=625.0*10**-3\n", - "D=5.0*10**-3\n", - "Vce=10.0\n", - "T2=55.0\n", - "\n", - "#Calculations\n", - "Pdt2=Pd25-D*(T2-25)\n", - "Pd=Pdt2\n", - "Ic=Pd/Vce\n", - "\n", - "#Results\n", - "print(\" maximum Ic level is %.2fA \" %(Ic*1000))\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " maximum Ic level is 47.50A \n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.13 Page No 335" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Pd=80.0\n", - "Vce=60.0\n", - "\n", - "#Calculations\n", - "Ic=Pd/Vce\n", - "print(\"point 1 Vce=60 and Ic= %.2f A\" %Ic)\n", - "Vce=40.0\n", - "Ic=Pd/Vce\n", - "print(\"point 2 Vce=40 and Ic= %.2f A\" %Ic)\n", - "Vce=20.0\n", - "Ic=Pd/Vce\n", - "print(\" point 3 Vce=20 and Ic= %.2f A\" %Ic)\n", - "Vce=10.0\n", - "Ic=Pd/Vce\n", - "\n", - "#Results\n", - "print(\" point 4 Vce=10 and Ic= %.2f A\" %Ic)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "point 1 Vce=60 and Ic= 1.33 A\n", - "point 2 Vce=40 and Ic= 2.00 A\n", - " point 3 Vce=20 and Ic= 4.00 A\n", - " point 4 Vce=10 and Ic= 8.00 A\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 8.14, Page No 339" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#initialisation of variables\n", - "Vce=20.0\n", - "Ic=1.0\n", - "T2=90.0\n", - "T1=25.0\n", - "\n", - "#Calculations\n", - "Q=Vce*Ic\n", - "Qcs=.4\n", - "Qjc=1#from table\n", - "Qsa=((T2-T1)/Q)-(Qjc+Qcs)\n", - "\n", - "#Results\n", - "print(\"Qsa= %.2f \" %Qsa)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Qsa= 1.85 \n" - ] - } - ], - "prompt_number": 11 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/README.txt b/Electronic_Devices_and_Circuits/README.txt deleted file mode 100755 index 005586a5..00000000 --- a/Electronic_Devices_and_Circuits/README.txt +++ /dev/null @@ -1,10 +0,0 @@ -Contributed By: Mayur Sabban -Course: be -College/Institute/Organization: Vishwakarma Institute of Technology Pune -Department/Designation: Computer Engg -Book Title: Electronic Devices and Circuits -Author: David A. Bell -Publisher: Oxford University Press(2008), -Year of publication: 2008 -Isbn: 019569340 -Edition: 5 \ No newline at end of file diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter3.png b/Electronic_Devices_and_Circuits/screenshots/Chapter3.png deleted file mode 100755 index 17bf554f..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter3.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter3_1.png b/Electronic_Devices_and_Circuits/screenshots/Chapter3_1.png deleted file mode 100755 index 17bf554f..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter3_1.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter3_2.png b/Electronic_Devices_and_Circuits/screenshots/Chapter3_2.png deleted file mode 100755 index 17bf554f..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter3_2.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter4.png b/Electronic_Devices_and_Circuits/screenshots/Chapter4.png deleted file mode 100755 index 721d70c1..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter4.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter4_1.png b/Electronic_Devices_and_Circuits/screenshots/Chapter4_1.png deleted file mode 100755 index 721d70c1..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter4_1.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter4_2.png b/Electronic_Devices_and_Circuits/screenshots/Chapter4_2.png deleted file mode 100755 index 721d70c1..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter4_2.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter5.png b/Electronic_Devices_and_Circuits/screenshots/Chapter5.png deleted file mode 100755 index 205ddb6d..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter5.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter5_1.png b/Electronic_Devices_and_Circuits/screenshots/Chapter5_1.png deleted file mode 100755 index 205ddb6d..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter5_1.png and /dev/null differ diff --git a/Electronic_Devices_and_Circuits/screenshots/Chapter5_2.png b/Electronic_Devices_and_Circuits/screenshots/Chapter5_2.png deleted file mode 100755 index 205ddb6d..00000000 Binary files a/Electronic_Devices_and_Circuits/screenshots/Chapter5_2.png and /dev/null differ -- cgit