diff options
Diffstat (limited to 'tbc/static/uploads/Hardik/C++/Chapter4.ipynb')
-rw-r--r-- | tbc/static/uploads/Hardik/C++/Chapter4.ipynb | 455 |
1 files changed, 455 insertions, 0 deletions
diff --git a/tbc/static/uploads/Hardik/C++/Chapter4.ipynb b/tbc/static/uploads/Hardik/C++/Chapter4.ipynb new file mode 100644 index 0000000..b76b7b1 --- /dev/null +++ b/tbc/static/uploads/Hardik/C++/Chapter4.ipynb @@ -0,0 +1,455 @@ +{ + "metadata": { + "name": "Chapter_4" + }, + "nbformat": 2, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "source": [ + "<h1>Chapter 4: Bipolar Junction Transistors (BJTs)<h1>" + ] + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.1, Page Number: 120 <h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab inline" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].", + "For more information, type 'help(pylab)'." + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "''' To find Emitter current'''", + "", + "# variable declaration", + "I_C=3.65*10**-3; #collector current in amperes", + "I_B=50*10**-6; #base current in amperes", + "", + "#calculation", + "B_DC=I_C/I_B; #B_DC value", + "I_E=I_B+I_C; #current in ampere", + "", + "# result", + "print \"B_DC = %d \" %B_DC", + "print \"Emitter current = %.4f ampere\" %I_E" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "B_DC = 73 ", + "Emitter current = 0.0037 ampere" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.2, Page Number: 121<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "''' Current and Voltage values'''", + "", + "# variable declaration", + "V_BE=0.7; # voltage in volt", + "B_DC=150; # voltage in volt", + "V_BB=5; # voltage in volt", + "V_CC=10; # voltage in volt", + "R_B=10*10**3; # resistance in ohm", + "R_C=100; # resistance in ohm", + "", + "#calculation", + "I_B=(V_BB-V_BE)/R_B; #base current in amperes", + "I_C=B_DC*I_B; #collector current in amperes", + "I_E=I_C+I_B; #emitter current in amperes", + "V_CE=V_CC-I_C*R_C; #collector to emitter voltage in volts", + "V_CB=V_CE-V_BE; #collector to base voltage in volts", + "", + "# result", + "print \"base current = %.5f amperes\" %I_B", + "print \"collector current = %.4f amperes\" %I_C", + "print \"emitter current = %.5f amperes\" %I_E", + "print \"collector to emitter voltage =%.2f volts\" %V_CE", + "print \"collector to base voltage =%.2f volts\" %V_CB" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "base current = 0.00043 amperes", + "collector current = 0.0645 amperes", + "emitter current = 0.06493 amperes", + "collector to emitter voltage =3.55 volts", + "collector to base voltage =2.85 volts" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.3, Page Number: 123<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "'''Ideal family of collector curve'''", + "", + "", + "import pylab as py", + "import numpy as np", + "", + "#variable declaration", + "beta=100 # current gain", + "print'Ideal family of collector curve'", + "", + "ic1 = arange(0.00001, 0.45, 0.0005)", + "ic2 = arange(0.00001, 0.5, 0.0005)", + "ic3 = arange(0.00001, 0.6, 0.0005)", + "ic4 = arange(0.00001, 0.7, 0.0005)", + "vcc1=ic1*0.5/0.7", + "vcc2=ic2*1.35/0.7", + "vcc3=ic3*2/0.7", + "vcc4=ic4*2.5/0.7", + "m1=arange(0.45,5.0,0.0005)", + "m2=arange(0.5,5.0,0.0005)", + "m3=arange(0.6,5.0,0.0005)", + "m4=arange(0.7,5.0,0.0005)", + "", + "plot(ic1,vcc1,'b')", + "plot(ic2,vcc2,'b')", + "plot(ic3,vcc3,'b')", + "plot(ic4,vcc4,'b')", + "plot(m1,0.32*m1/m1,'b')", + "plot(m2,0.96*m2/m2,'b')", + "plot(m3,1.712*m3/m3,'b')", + "plot(m4,2.5*m4/m4,'b')", + "", + "ylim( (0,3) )", + "ylabel('Ic(mA)')", + "xlabel('Vce(V)')", + "title('Ideal family of collector curve')" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ideal family of collector curve" + ] + }, + { + "output_type": "pyout", + "prompt_number": 4, + "text": [ + "<matplotlib.text.Text at 0xa11e74c>" + ] + }, + { + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYEAAAEXCAYAAABLZvh6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtYVPW6B/DvIHjhIkop4IBg4gVSAcVIQ0UNTVOizBQz\nUalQj6nVfmrno0dteyzTrWm2Pdb2caeluPV4QbnkJUa8czS8ZB4vKHIVREEhlevv/LFiYGCAQefC\nzPp+nocn1qzLvIy0XtbvXb93KYQQAkREJEtWpg6AiIhMh0mAiEjGmASIiGSMSYCISMaYBIiIZIxJ\ngIhIxpgEZCwtLQ1WVlaorKx86mN5enri8OHDWtc9evQIY8eORbt27TBhwoSnfq+a0tPT4eDggKo7\nnYODg7Fx40a9vgcA7N69G+7u7nBwcMD58+f1ckyVSgV3d3f1ckOfIZGhMAlYOGOdWBQKBRQKhdZ1\nO3fuRF5eHu7du4ft27fr9X07d+6MoqIi9Xs3FMfT+Mtf/oJ//OMfKCoqgq+vr96PD+gn9qlTp2Lh\nwoV6iojkgEnAwhnqpNgUt27dQvfu3WFlZZ6/bkIIpKenw8fHx9ShGJw+rgpNcWx6cub5fyU9kYqK\nCvzlL39Bhw4d0LVrV8TGxmqsv3//PiIjI9GpUye4ublh4cKF6v9xU1NTMWzYMDz77LPo0KEDJk+e\njPv37zf6nosWLcLf/vY3bN++HQ4ODti0aRNu3LjR4LE8PT2xcuVK9OnTBw4ODoiMjERubi5Gj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2bVsMGTJEo5VxdHQ0wsPD\nAQDBwcGIi4sz8k9KpB2TAMmak5MTXnjhBfVJOTo6GhMmTEB8fDxiYmKQnJyMc+fOqZ9l8f777+Ob\nb77BmTNnsGLFCvWw0bFjx9C/f3/1cWteYWRnZ+PatWsYNmwYAMDGxgZKpRKXL1825o9KpBWTAMle\nzRP29u3bER4ejsOHD2P69Olo3bo1AKBdu3YoLi7GyZMnMX78ePj7+2PGjBm4ffs2ACA9PR0uLi7q\nY44ePRrHjx9HUVER/v3vf+PNN9/UmMXaqVMnpKWlGe+HJKoHkwDJXmhoKA4fPoyUlBQ8fPhQ3X+n\n9mT6yspKtGvXDikpKeqvS5cuqdfX3L5NmzZ45ZVXsGvXLnViqUkIwZbH1Czwt5Bkz97eHkOHDsW0\nadPUBeGQkBBs2rRJXdwtKChA27Zt0aVLF+zcuROAdCK/cOECAMDDw0N9VVAlPDwcq1atQl5eHl58\n8UWNdTk5OfDw8DD0j0bUKCYBIkgn7IsXL6r/Yh85ciRCQ0MREBAAf39//P3vfwcA/PTTT9i4cSP8\n/PzQq1cv9SMMg4KC6rRxfvnll5GTk4MJEyZovF5WVobMzEz07NnTCD8ZUcPYQI5ID4QQ6Nu3L06f\nPo2WLVs2uO2BAwcQGxuLNWvWGCk6ovrxSoBIDxQKBd577z389NNPjW77z3/+Ex9++KERoiJqHK8E\niIhkjFcCREQyxiRARCRjTAJERDLGJEBEJGNMAkREMsYkQEQkY/8PuzhceEoO66YAAAAASUVORK5C\nYII=\n" + } + ], + "prompt_number": 4 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.4, Page Number: 125<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "''' Transistor saturtion condition'''", + "", + "# variable declaration", + "V_CE_sat=0.2; # voltage in volt", + "V_BE=0.7; # voltage in volt", + "V_BB=3; # voltage in volt", + "V_CC=10; # voltage in volt", + "B_DC=50; # voltage in volt", + "R_B=10*10**3; # resistance in ohm", + "R_C=1*10**3; # resistance in ohm", + "", + "#calculation", + "I_C_sat=(V_CC-V_CE_sat)/R_C; # saturation current", + "I_B=(V_BB-V_BE)/R_B; # base current", + "I_C=B_DC*I_B; # current in ampere", + "", + "# result", + "if I_C>I_C_sat:", + " print \"transistor in saturation\"", + "else:", + " print \"transistor not in saturation\"" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "transistor in saturation" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.5, Page Number: 127<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "'''maximum collector current'''", + "", + "#Variable declaration", + "P_D_max=250*10**-3; #max power rating of transistor in watts", + "V_CE=6; #voltage in volt", + "", + "#Calculation", + "I_Cu=P_D_max/V_CE; #Current (Amp)", + "I_C=I_Cu*1000;", + "", + "#Result", + "print \"collector current that can be handled by the transistor = %.1f mA\" %I_C", + "print \"\\nRemember that this is not necessarily the maximum IC. The transistor\"", + "print \"can handle more collectore current if Vce is reduced as long as PDmax\"", + "print \"is not exceeded.\"" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "collector current that can be handled by the transistor = 41.7 mA", + "", + "Remember that this is not necessarily the maximum IC. The transistor", + "can handle more collectore current if Vce is reduced as long as PDmax", + "is not exceeded." + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.6, Page Number: 127<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "'''voltage drop across transistor''' ", + "", + "#Variable declaration", + "P_D_max=800*10**-3; #max power rating of transistor in watts", + "V_BE=0.7; #voltage in volt", + "V_CE_max=15; #voltage in volt", + "I_C_max=100*10**-3; #Current (Amp)", + "V_BB=5; #voltage in volt", + "B_DC=100; #voltage in volt", + "R_B=22*10**3; # resistance in ohm", + "R_C=10**3; # resistance in ohm", + "", + "#Calculation", + "I_B=(V_BB-V_BE)/R_B; # base current", + "I_C=B_DC*I_B; #collector current ", + "V_R_C=I_C*R_C; #voltage drop across R_C", + "V_CC_max=V_CE_max+V_R_C; #Vcc max in volt", + "P_D=I_C*V_CE_max; #max power rating", + "", + "#Result", + "if P_D<P_D_max:", + " print \"V_CC = %.2f volt\" %V_CC_max", + " print \"V_CE_max will be exceeded first because entire supply voltage V_CC will be dropped across the transistor\"", + " " + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "V_CC = 34.55 volt", + "V_CE_max will be exceeded first because entire supply voltage V_CC will be dropped across the transistor" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.7, Page Number: 128<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "'''Power dissipation'''", + "", + "#Variable declaration", + "df=5*10**-3; #derating factor in watts per degree celsius", + "T1=70; #temperature 1", + "T2=25; #temperature 2", + "P_D_max=1; #in watts", + "", + "#Calculation", + "del_P_D=df*(T1-T2); #change due to temperature", + "P_D=P_D_max-del_P_D; # power dissipation", + "", + "#Result", + "print \"Power dissipated max at a temperature of 70 degree celsius = %.3f watts\" %P_D" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power dissipated max at a temperature of 70 degree celsius = 0.775 watts" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.8, Page Number: 130<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "'''voltage gain'''", + "", + "#Variable declaration", + "R_C=1*10**3; #resistance in ohm", + "r_e=50; #resistance in ohm", + "V_b=100*10**-3; #voltage in volt", + "", + "#Calculation", + "A_v=R_C/r_e; #voltage gain", + "V_out=A_v*V_b; #voltage in volt", + "", + "#Result", + "print \"voltage gain = %d \" %A_v", + "print \"AC output voltage = %d volt\" %V_out" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage gain = 20 ", + "AC output voltage = 2 volt" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 4.9, Page Number: 132 <h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "'''Power dissipation'''", + "", + "#Variable declaration", + "V_CC=10.0; #voltage in volt", + "B_DC=200.0; #voltage in volt", + "R_C=1.0*10**3; #resistance in ohm", + "V_IN=0.0; #voltage in volt", + "", + "#Calculation", + "V_CE=V_CC; #equal voltage", + "print \"when V_IN=0, transistor acts as open switch(cut-off) and collector emitter voltage = %.2f volt\" %V_CE", + "#now when V_CE_sat is neglected", + "I_C_sat=V_CC/R_C; #saturation current", + "I_B_min=I_C_sat/B_DC; #minimum base current", + "print \"\\nminimum value of base current to saturate transistor = %.5f ampere\" %I_B_min", + "V_IN=5; #voltage in volt", + "V_BE=0.7; #voltage in volt", + "V_R_B=V_IN-V_BE; #voltage across base resiatance", + "R_B_max=V_R_B/I_B_min;", + "", + "", + "#Result", + "kw=round (R_B_max)", + "print \"\\nmaximum value of base resistance when input voltage is 5V = %d ohm\" %kw" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "when V_IN=0, transistor acts as open switch(cut-off) and collector emitter voltage = 10.00 volt", + "", + "minimum value of base current to saturate transistor = 0.00005 ampere", + "", + "maximum value of base resistance when input voltage is 5V = 86000 ohm" + ] + } + ], + "prompt_number": 10 + } + ] + } + ] +}
\ No newline at end of file |