diff options
Diffstat (limited to 'Modern_Electronics_Communication')
20 files changed, 3818 insertions, 0 deletions
diff --git a/Modern_Electronics_Communication/Chapter1.ipynb b/Modern_Electronics_Communication/Chapter1.ipynb new file mode 100755 index 00000000..57d5c1d3 --- /dev/null +++ b/Modern_Electronics_Communication/Chapter1.ipynb @@ -0,0 +1,649 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1:Introductory Topics "
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1 Page No 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P1=0.001 #power\n",
+ "x=10**0\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "dB=10*math.log(0.001/0.001)\n",
+ "y=x*P1*600\n",
+ "V=math.sqrt(y)\n",
+ "\n",
+ "#Result\n",
+ "print\"V2 =\",round(V,3),\"V\"\n",
+ "print\"dBm(600)=20log(V2/0.775)\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "V2 = 0.775 V\n",
+ "dBm(600)=20log(V2/0.775)\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2 Page No 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P=0.001 #power\n",
+ "R=75 #resistance of audio system\n",
+ "R1=50 \n",
+ "x=(8/20.0)\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "y=(10**x)\n",
+ "V2=(y*0.775)\n",
+ "V=math.sqrt(P*R)\n",
+ "V1=math.sqrt(P*R1)\n",
+ "dBm= 20*math.log(V2/0.775)\n",
+ "\n",
+ "#Result\n",
+ "print\"the dBm voltage reference for 50 ohm system is: \",round(V1,4),\"V\"\n",
+ "print\"dBm(50)= 20log(V/0.2236)\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the dBm voltage reference for 50 ohm system is: 0.2236 V\n",
+ "dBm(50)= 20log(V/0.2236)\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.3 Page No 10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=(10/10.0) #laser diode output\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "y=(10**x)\n",
+ "P2=(y*0.001)\n",
+ "a=(math.log10(0.01/1.0))\n",
+ "z=(10*a)\n",
+ "\n",
+ "#result\n",
+ "print\"(a) P2 = \",P2,\"W\" #convert +10dB to Watts\n",
+ "print\"(b) dBW =\",z,\"dBW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) P2 = 0.01 W\n",
+ "(b) dBW = -20.0 dBW\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.4 Page No 16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "kT=(1.6*10**-20)\n",
+ "f=(1*10**6) #bandwidt, Hz\n",
+ "R=(1*10**6) #resistance, ohm\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "x=math.sqrt(kT*f*R)\n",
+ "#4kT at room temperature (17 degree C) is 1.6*10**-20 Joules\n",
+ "\n",
+ "#Result\n",
+ "print\"en = \",round(x,6),\"Vrms\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "en = 0.000126 Vrms\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.5 Page No 16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "\n",
+ "k=(1.38*10**-23)\n",
+ "T=(27+273) #temperature\n",
+ "f=(4*10**6) #bandwidth,Hz\n",
+ "R=100 #source resistance, ohm\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "x=math.sqrt(4*k*T*f*R)\n",
+ "# to convert degres to kelvin, add 273 in it\n",
+ "\n",
+ "#result\n",
+ "print\"en= \",round(x,8),\"Vrms\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "en= 2.57e-06 Vrms\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.6 Page No 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=10 #input S/N power\n",
+ "y=5.0 #utput S/N power\n",
+ "z=(x/y)\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "a=(10*math.log10(z))\n",
+ "b=(10*math.log10(x))\n",
+ "c=(10*math.log10(y))\n",
+ "d=(b-c)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a)NR = \",z\n",
+ "print\"(b)NF = \",round(a,1),\"dB\"\n",
+ "print\"(c) 10log(Si/Ni) =\",b,\"dB\"\n",
+ "print\" 10log(So/No) = \",round(c,0),\"dB\"\n",
+ "print\"their difference = \",round(d,0),\"dB\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a)NR = 2.0\n",
+ "(b)NF = 3.0 dB\n",
+ "(c) 10log(Si/Ni) = 10.0 dB\n",
+ " 10log(So/No) = 7.0 dB\n",
+ "their difference = 3.0 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.7 Page No 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "BW=200*10**3 #bandwidth\n",
+ "k=(1.38*10**-23)\n",
+ "T=(273+22) #converting degrees C into kelvin\n",
+ "R=(10*10**3)\n",
+ "R1=300\n",
+ "NF1=3\n",
+ "NF2=8\n",
+ "NR1=2\n",
+ "NR2=6.31\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "df=((math.pi/2.0)*BW)\n",
+ "Pn=(k*T*df)\n",
+ "en=math.sqrt(4*Pn*R)\n",
+ "x=(14+20+20) #sum of the power gain of the three stages\n",
+ "y=(x/10.0)\n",
+ "Pg=(10**y)\n",
+ "Po=(Pn*Pg)\n",
+ "eno=math.sqrt(Po*R1)\n",
+ "pg1=(10**(1.4))\n",
+ "pg2=(10**(20))\n",
+ "NR=(NR1+((NR2-1)/pg1)+((NR2-1)/(pg1*pg2)))\n",
+ "NF=10*math.log10(NR)\n",
+ "No=(NR*Pn*Pg)\n",
+ "a=math.sqrt(No*R1)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) en(out)= \",round(eno,5),\"V\"\n",
+ "print\"(b) NF = \",round(NF,2),\"dB\"\n",
+ "print\"(c) No = \",round(a,6),\"V\" #outputnoise voltage\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) en(out)= 0.00031 V\n",
+ "(b) NF = 3.45 dB\n",
+ "(c) No = 0.000462 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.8 Page No 24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "k=1.38*10**-23\n",
+ "T=(35+40+52) #total temperature\n",
+ "df=(1*10**6)\n",
+ "Teq=52\n",
+ "To=290.0\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "Pn=(k*T*df)\n",
+ "x=(Teq/To)\n",
+ "NR=(x+1)\n",
+ "NF=(10*math.log10(NR))\n",
+ "\n",
+ "#Result\n",
+ "print\"NR = \",round(NR,2) #noise ratio\n",
+ "print\"NF =\",round(NF,3),\"dB\" #noise figure"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "NR = 1.18\n",
+ "NF = 0.716 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.9 Page No 25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=7*10**-3 # o/p power measured 400-Hz audio signal modulates a carrier \n",
+ "y=0.18*10**-3 # o/p power measured when a filter cancels 400-Hz portion of the o/p\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "z=10*math.log10(x/y)\n",
+ "\n",
+ "#Result\n",
+ "print\"SINAD = \",round(z,2),\"dB\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "SINAD = 15.9 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.10 Page No 26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "i= 14*10**-3 #dc current\n",
+ "R=50 #resistance, ohm\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=(20*i*R)\n",
+ "y=10*math.log10(x)\n",
+ "\n",
+ "#Result\n",
+ "print\"NF=\",round(y,2),\"dB\" #noise figure"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "NF= 11.46 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.11 Page No 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f=(12*10**3)\n",
+ "L=3*10**-3\n",
+ "C=(0.1*10**-6)\n",
+ "R=30 #resistance,ohm\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=L*C\n",
+ "y=math.sqrt(x)\n",
+ "z=(2*math.pi*y)\n",
+ "a=(1/z)\n",
+ "Xl=(2*math.pi*f*L)\n",
+ "Xc=(1/(2*math.pi*f*C))\n",
+ "b=(Xl-Xc)**2\n",
+ "c=R**2\n",
+ "d=math.sqrt(c+b)\n",
+ "\n",
+ "#Result\n",
+ "print\"fr = \",round(a,2),\"Hz\"\n",
+ "#at 12kHz\n",
+ "print\"Z = \",round(d,2),\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "fr = 9188.81 Hz\n",
+ "Z = 98.26 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.12 Page No 38"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "R1=20 #resistance, ohm\n",
+ "R2=1 \n",
+ "L=1*10**-3 #inductor \n",
+ "C=0.4*10**-6 #capacitor\n",
+ "ein=50*10**-3\n",
+ "f=12*10**3 #frequency\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=math.sqrt(L*C)\n",
+ "y=(1/(2*math.pi*x))\n",
+ "eo= ein*(R2/(R2+R1))\n",
+ "XL=(2*math.pi*f*L)\n",
+ "XC=(1/(2*math.pi*f*C))\n",
+ "a=(R1+R2)**2\n",
+ "b=(XL-XC)**2\n",
+ "z=math.sqrt(a+b)\n",
+ "zo=math.sqrt((R2**2)+b)\n",
+ "m=(ein*(zo/z))\n",
+ "\n",
+ "#Result\n",
+ "print\"resonant frequency is\",round(y,2),\"Hz\"\n",
+ "print\"o/p voltage at 12kHz =\",round(m,3),\"V\" \n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "resonant frequency is 7957.75 Hz\n",
+ "o/p voltage at 12kHz = 0.045 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.13 Page No 40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=460*10**3\n",
+ "b=450*10**3\n",
+ "fr=455*10**3 #frequency\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "BW=a-b\n",
+ "Q=(fr/BW)\n",
+ "C=0.001*10**-6\n",
+ "x=(fr*2*math.pi)\n",
+ "y=(1/x)**2\n",
+ "z=y/C\n",
+ "R=(2*math.pi*z*BW)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a)Bandwidth = \",BW,\"Hz\"\n",
+ "#filter's peak o/p occurs at 455kHz\n",
+ "print\"(b)Quality factor = \",Q,\"KHz\"\n",
+ "print\"(c)inductance =\",round(z,5),\"H\"\n",
+ "print\"(d)total circuit resistance= \",round(R,2),\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a)Bandwidth = 10000 Hz\n",
+ "(b)Quality factor = 45 KHz\n",
+ "(c)inductance = 0.00012 H\n",
+ "(d)total circuit resistance= 7.69 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.14 Page No 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "R=2 #resistance,ohm\n",
+ "L=3*10**-3 #inductance\n",
+ "C=0.47*10**-6 #capacitance\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=(2*math.pi*math.sqrt(L*C))\n",
+ "y=1/x\n",
+ "XL=(2*math.pi*y*L)\n",
+ "Q=(XL/R)\n",
+ "Z=((Q**2)*R)\n",
+ "BW=(R/(2*math.pi*L))\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Resonant frequency= \",round(y,2),\"Hz\"\n",
+ "print\"(b)Quality factor = \",round(Q,2)\n",
+ "print\"(c)Maximam impedence= \",round(Z,1),\"Ohm\"\n",
+ "print\"(d)Bandwidth = \",round(BW,1),\"Hz\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Resonant frequency= 4238.48 Hz\n",
+ "(b)Quality factor = 39.95\n",
+ "(c)Maximam impedence= 3191.5 Ohm\n",
+ "(d)Bandwidth = 106.1 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/Chapter2.ipynb b/Modern_Electronics_Communication/Chapter2.ipynb new file mode 100755 index 00000000..1e4a523b --- /dev/null +++ b/Modern_Electronics_Communication/Chapter2.ipynb @@ -0,0 +1,384 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "chapter 2 Amplitude Modulation-Transmission"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.1 Page no 74"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "c=1.4*10**6 #frequency of carrier wave,Hz\n",
+ "m1=20 #frequency component,Hz\n",
+ "m2=10*10**3 #KHz\n",
+ "\n",
+ "#calculation \n",
+ "Ur1=c+m1\n",
+ "Ur2=c+m2\n",
+ "Lr1=c-m1\n",
+ "Lr2=c-m2\n",
+ "\n",
+ "#result\n",
+ "#range of upper sideband(usb)\n",
+ "print\"upper sideband will include frequencies from \",Ur1,\"Hz\"\n",
+ "print\"to \",Ur2,\"Hz\"\n",
+ "#range of lower sideband (lsb)\n",
+ "print\"lower sideband will include frequencies from \",Lr2,\"Hz\"\n",
+ "print\"to \",Lr1,\"Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "upper sideband will include frequencies from 1400020.0 Hz\n",
+ "to 1410000.0 Hz\n",
+ "lower sideband will include frequencies from 1390000.0 Hz\n",
+ "to 1399980.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2 Page no 78"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "b=100.0 #maximum p-p carrier (V)\n",
+ "a=60.0\n",
+ "d=125.0\n",
+ "c=35.0\n",
+ "x=180\n",
+ "y=0\n",
+ "\n",
+ "#Calculation\n",
+ "m1=((b-a)/(b+a))*100\n",
+ "m2=((d-c)/(d+c))*100\n",
+ "m3=((x-y)/(y+x))*100\n",
+ "\n",
+ "#result\n",
+ "print\"(a) percent(m) = \",m1,\"percent\"\n",
+ "print\"(b) percent(m) = \",m2,\"percent\"\n",
+ "print\"(c) percent(m) = \",m3,\"percent\"\n",
+ "print\"(d) this is a case of overmodulation\"\n",
+ "print\"(e) this is a distorted AM wave as the increase > decrease in carrier's amplitude\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) percent(m) = 25.0 percent\n",
+ "(b) percent(m) = 56.25 percent\n",
+ "(c) percent(m) = 100 percent\n",
+ "(d) this is a case of overmodulation\n",
+ "(e) this is a distorted AM wave as the increase > decrease in carrier's amplitude\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.3 Page no 79"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "c=1*10**3 #carrier output\n",
+ "\n",
+ "#calculation\n",
+ "esb= 1/4.0*(c)\n",
+ "tsp=(esb*2)\n",
+ "tp=(tsp+c)\n",
+ "\n",
+ "#result\n",
+ "print\"Total transmitted power =\",tp,\"W\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total transmitted power = 1500.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.4 Page no 81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "m=0.9 #modulation index\n",
+ "Pc=500 #carrier Power \n",
+ "\n",
+ "#calculation\n",
+ "x=(m**2)/2.0\n",
+ "y=(1+x)*Pc\n",
+ "\n",
+ "#result\n",
+ "print\"total transmitted power= \",y,\"W\" #total transmitted powwer\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "total transmitted power= 702.5 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.5 Page no 81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "m=0.95 #modulation index\n",
+ "Pt= 50*10**3 #total transmitted power\n",
+ "\n",
+ "#calculation\n",
+ "x=(m**2)/2.0\n",
+ "y=1+x\n",
+ "z=(Pt/y)\n",
+ "Pi=Pt-z\n",
+ "\n",
+ "#result\n",
+ "print\"Pc = \",round(z,2),\"W\" #carrier power\n",
+ "print\"total intelligence power = \",round(Pi,2),\"W\" #intelligence signal\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Pc = 34453.06 W\n",
+ "total intelligence power = 15546.94 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.6 Page no 81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "Ic=12 #antenna current of AM transmitter when unmodulated\n",
+ "It=13 #current when modulated\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "x=2*((13/12.0)**2-1)\n",
+ "m=math.sqrt(x)\n",
+ "a=m*100\n",
+ "\n",
+ "#result\n",
+ "print\"percent(m) = \",round(a,0),\"percent\" \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "percent(m) = 59.0 percent\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.7 Page no 82"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "n=0.7 #efficiency\n",
+ "c=10*10**3 #carrier wave\n",
+ "\n",
+ "#calculation\n",
+ "Is=0.5*c #intelligence signal\n",
+ "p=(Is/n)\n",
+ "\n",
+ "#result\n",
+ "print\"dc input power = \",round(p,2),\"W\" #dc input power"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "dc input power = 7142.86 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.8 Page no 82"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "Pc=10.0*10**3 #carrier power\n",
+ "Pt=11.2*10**3 #transmitted power\n",
+ "m2=0.5 #modulation index of another sine wave\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "x=2*((Pt/Pc)-1)\n",
+ "m=math.sqrt(x)\n",
+ "meff=math.sqrt((m**2)+(m2**2))\n",
+ "a=Pc*(1+((meff**2)/2.0))\n",
+ "\n",
+ "#result\n",
+ "print\"Pt = \",a,\"W\" #total transmitted power"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Pt = 12450.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.9 Page no 100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "v1=1.0\n",
+ "v2=0.03\n",
+ "v3=0.05\n",
+ "v4=0.02\n",
+ "v5=0.04\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "x=math.sqrt((v2**2+v3**2+v4**2+v5**2)/v1**2)\n",
+ "y=x*100\n",
+ "\n",
+ "#result\n",
+ "print\"THD = \",round(y,2),\"percent\" #Total harmonic distortion "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "THD = 7.35 percent\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/Chapter3.ipynb b/Modern_Electronics_Communication/Chapter3.ipynb new file mode 100755 index 00000000..23d71dd2 --- /dev/null +++ b/Modern_Electronics_Communication/Chapter3.ipynb @@ -0,0 +1,166 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3 Amplitude modulation-Reception "
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.1 Page no 120"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "fr=550*10**3 #frequency, Hz\n",
+ "L=10.0*10**-6 #inductor, H\n",
+ "fr1=1550*10**3\n",
+ "\n",
+ "#calculation \n",
+ "import math\n",
+ "a=fr*2*math.pi\n",
+ "x=fr1*2*math.pi\n",
+ "b=1/a\n",
+ "y=1/x\n",
+ "C1=((b)**2/L)\n",
+ "C2=((y)**2/L)\n",
+ "fr2=1100*10**3\n",
+ "BW=10.0*10**3\n",
+ "Q=(fr2/BW)\n",
+ "BW1=(fr1/Q)\n",
+ "BW2=(fr/Q)\n",
+ "\n",
+ "#result\n",
+ "print\"(a) required range of capacitance is from \",round(C2,12),\"F\",\"to\",round(C1,12),\"F\"\n",
+ "print\"(b) Q= \",Q\n",
+ "print\"(c) Bandwidth of receiver at 1550 KHz = \",round(BW1,2),\"Hz\"\n",
+ "print\"Babdwidth of receiver at 550 KHz = \",BW2,\"Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) required range of capacitance is from 1.054e-09 F to 8.374e-09 F\n",
+ "(b) Q= 110.0\n",
+ "(c) Bandwidth of receiver at 1550 KHz = 14090.91 Hz\n",
+ "Babdwidth of receiver at 550 KHz = 5000.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.2 Page no 134"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# given\n",
+ "f=620*10**3 #frequency, Hz\n",
+ "IF=455*10**3\n",
+ "\n",
+ "#calculation\n",
+ "LO=f+IF\n",
+ "X=IF+LO\n",
+ "# image frequency of local oscillator\n",
+ "#station frequency = 620 kHz\n",
+ "\n",
+ "#Result\n",
+ "print\"LO = Hz\",LO\n",
+ "print\"X-1075kHz=\",X,\"Hz\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "LO = Hz 1075000\n",
+ "X-1075kHz= 1530000 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3 Page no 150"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V=8*10**-6 #microvolts\n",
+ "R=50 #input resistance, ohm\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "P=(V**2)/R\n",
+ "dBm=10*math.log10(P/0.001)\n",
+ "dBW=10*math.log10(P/1)\n",
+ "a=(-89+8+3+24+26+26-2+34)\n",
+ "x=(a/10)\n",
+ "y=10**x\n",
+ "z=y*0.001\n",
+ "\n",
+ "#Result\n",
+ "print\"input power is= \",P,\"W\" \n",
+ "print\"dBm = \",round(dBm,0),\"dBm\"\n",
+ "print\"dBW = \",round(dBW,0),\"dBw\"\n",
+ "print\"Pout(dBm) =\",a,\" dBm into speaker\"\n",
+ "print\"Pout(dBW) =\",z,\"W\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "input power is= 1.28e-12 W\n",
+ "dBm = -89.0 dBm\n",
+ "dBW = -119.0 dBw\n",
+ "Pout(dBm) = 30 dBm into speaker\n",
+ "Pout(dBW) = 1.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/Chapter4.ipynb b/Modern_Electronics_Communication/Chapter4.ipynb new file mode 100755 index 00000000..5c291ef8 --- /dev/null +++ b/Modern_Electronics_Communication/Chapter4.ipynb @@ -0,0 +1,149 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4 single-sideband communication"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.1 Page no 172"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "x=1*10**6 #DSB range\n",
+ "y=10**(80/20.0)\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "z=math.sqrt(y)\n",
+ "df=200.0\n",
+ "Q=(x*z)/(4.0*df)\n",
+ "a=100*10**3\n",
+ "Q1=(a*z)/(4.0*df)\n",
+ "\n",
+ "\n",
+ "#result\n",
+ "print\"(a) Q for 1MHz = \",Q\n",
+ "print\"(b) Q for 100KHz = \",Q1"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Q for 1MHz = 125000.0\n",
+ "(b) Q for 100KHz = 12500.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.2 Page no 178"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "a=3*10**6\n",
+ "b=3.1*10**6 #new DSB signal range\n",
+ "c=2.9*10**6 #new DSB signal range\n",
+ "\n",
+ "#calculation\n",
+ "Q=(a/(b-c))\n",
+ "\n",
+ "#result\n",
+ "print\"the required filter Q is = \",Q"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the required filter Q is = 15.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4 Page no 187"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "a=455\n",
+ "x=2000+1 #frequency\n",
+ "y=2000+3 #frequency\n",
+ "\n",
+ "#calculation\n",
+ "c=2000+a #local oscillator value\n",
+ "d=c-x\n",
+ "e=c-y\n",
+ "f=a-454\n",
+ "g=a-452\n",
+ "\n",
+ "#result\n",
+ "print\"RF =\",x,\"KHz\", \"at which first mixer input=\" ,y,\"kHz\"\n",
+ "print\"local oscillator value is \",c,\"KHz\"\n",
+ "print\"First mixer output is\",d,\"to\",e,\"KHz\" #IF amp and second mixer input\n",
+ "print\"BFO = \",a,\"KHz\"\n",
+ "print\"Second mixer output is\",f,\"KHz\", \"and audio amplifier value is =\",g, \"kHz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RF = 2001 KHz at which first mixer input= 2003 kHz\n",
+ "local oscillator value is 2455 KHz\n",
+ "First mixer output is 454 to 452 KHz\n",
+ "BFO = 455 KHz\n",
+ "Second mixer output is 1 KHz and audio amplifier value is = 3 kHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/Chapter5.ipynb b/Modern_Electronics_Communication/Chapter5.ipynb new file mode 100755 index 00000000..5e894199 --- /dev/null +++ b/Modern_Electronics_Communication/Chapter5.ipynb @@ -0,0 +1,360 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 5 Frequency Modulation : Transmission"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.1 Page no 209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "v=25*10**-3\n",
+ "f=750 #deviation constant\n",
+ "vg=10.0*10**-3 #deviation constant\n",
+ "\n",
+ "#calculation\n",
+ "pfd=v*(f/vg) #positive frequency deviation\n",
+ "nfd=-v*(f/vg) #negative frequency deviation\n",
+ "\n",
+ "#result\n",
+ "print\"(a) positive frequency deviation = \",pfd,\"Hz\"\n",
+ "print\"negative frequency deviation = \",nfd,\"Hz\"\n",
+ "print\"The total deviation is written as +-2.25kHz for the given input signal level\"\n",
+ "print\"(b) The carrier wil deviate \",pfd,\"Hz\",\"&\",nfd,\"Hz\",\"at 400 Hz\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) positive frequency deviation = 1875.0 Hz\n",
+ "negative frequency deviation = -1875.0 Hz\n",
+ "The total deviation is written as +-2.25kHz for the given input signal level\n",
+ "(b) The carrier wil deviate 1875.0 Hz & -1875.0 Hz at 400 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.3 Page no 214"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "d=20*10**3 #maximum deviation\n",
+ "fi=10.0*10**3 #input frequency\n",
+ "\n",
+ "#calculation\n",
+ "mf=d/fi\n",
+ "a=mf*40\n",
+ "\n",
+ "#result\n",
+ "print\"total required bandwidth is \",a,\"KHz\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "total required bandwidth is 80.0 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.4 Page no 214"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "d=20*10**3 #maximum deviation\n",
+ "fi=5.0*10**3 #input frequency\n",
+ "\n",
+ "#calculation\n",
+ "mf=d/fi\n",
+ "a=2*35\n",
+ "\n",
+ "#print\n",
+ "print\"the required bandwidth is \",mf\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the required bandwidth is 4.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5 Page no 215"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "Vm=2000\n",
+ "R=50.0 #resistance, ohm\n",
+ "\n",
+ "#calcultion\n",
+ "import math\n",
+ "fc=(2*math.pi*(10**8))/2.0*math.pi\n",
+ "P=(2000/math.sqrt(2))**2/R\n",
+ "mf=2 #by inspection of FM equation\n",
+ "fi=(math.pi*10**4)/(2.0*math.pi)\n",
+ "d=(mf*fi)\n",
+ "BW=mf*40\n",
+ "bw=2*(d+fi)\n",
+ "P1=((0.58*2000/math.sqrt(2))**2)/R\n",
+ "P2=((0.03*2000/math.sqrt(2))**2)/R\n",
+ "\n",
+ "#result\n",
+ "print\"(a) carrier frequency = \",round(fc,-9),\"Hz\" #by inspection of FM equation\n",
+ "print\"(b) the peak voltage is 2000V P thus= \",P,\"W\"\n",
+ "print\"(c) mf = 2\" #by inspection of FM equation\n",
+ "print\"(d) the intelligence frequency fi = \",fi,\"Hz\"\n",
+ "print\"(e) BW = \",bw ,\"Hz\" #using carson's rule \n",
+ "print\"(f) The smallest sideband J4 is 0.03 times the carrier = \",P2,\"W\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) carrier frequency = 1000000000.0 Hz\n",
+ "(b) the peak voltage is 2000V P thus= 40000.0 W\n",
+ "(c) mf = 2\n",
+ "(d) the intelligence frequency fi = 5000.0 Hz\n",
+ "(e) BW = 30000.0 Hz\n",
+ "(f) The smallest sideband J4 is 0.03 times the carrier = 36.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.6 Page no 218"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "d=75*10**3 #maximum deviation\n",
+ "fi=30.0 #modulating frequency, Hz\n",
+ "fi1=15.0*10**3 \n",
+ "d1=1*10**3\n",
+ "fi2=100 #Hz\n",
+ "fi3=2.0*10**3\n",
+ "\n",
+ "#calculation\n",
+ "mf1=d/fi\n",
+ "mf2=d/fi1\n",
+ "mf3=d1/fi2\n",
+ "mf4=d1/fi3\n",
+ "DR=d1/fi3\n",
+ "\n",
+ "#result\n",
+ "print\"(a)maximum deviation at 30 Hz = \",mf1 \n",
+ "print\"maximum deviation at 15kHz= \",mf2\n",
+ "print\"(b) maximum deviation at 100Hz = \",mf3\n",
+ "print\"maximum deviation at 2KHz= \",mf4\n",
+ "print \"(c)Deviation Ratio \",DR #deviation ratio"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a)maximum deviation at 30 Hz = 2500.0\n",
+ "maximum deviation at 15kHz= 5.0\n",
+ "(b) maximum deviation at 100Hz = 10\n",
+ "maximum deviation at 2KHz= 0.5\n",
+ "(c)Deviation Ratio 0.5\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.7 Page no 218"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "mf=0.25\n",
+ "a=0.98\n",
+ "b=0.12\n",
+ "x=10*10**3 #power, watt\n",
+ "\n",
+ "#calculation\n",
+ "P=(a**2)*x\n",
+ "P1=(b**2)*x\n",
+ "t=P+2*P1\n",
+ "\n",
+ "#result\n",
+ "print\"power of each sideband = \",P1,\"W\"\n",
+ "print\"total power = \",round(t,-4),\"W\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "power of each sideband = 144.0 W\n",
+ "total power = 10000.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.8 Page no 222"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "phi=0.5 #maximum intelligence frequency\n",
+ "fi=5.0*10**3\n",
+ "x=75*10**3\n",
+ "\n",
+ "#calculation\n",
+ "d=phi*fi\n",
+ "y=x/d\n",
+ "\n",
+ "#result\n",
+ "print\"o/p S/N = \",y\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "o/p S/N = 30.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.9 Page no 222"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "dm=10*10**3\n",
+ "x=(1/3.0) #N/S input ratio\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "phi=math.asin(x)\n",
+ "phi1=math.asin(x)\n",
+ "fi=3*10**3\n",
+ "d=phi1*fi\n",
+ "a=dm/d\n",
+ "\n",
+ "#result\n",
+ "print\"The S/N output will be \",round(a,0)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The S/N output will be 10.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/README.txt b/Modern_Electronics_Communication/README.txt new file mode 100755 index 00000000..799a1197 --- /dev/null +++ b/Modern_Electronics_Communication/README.txt @@ -0,0 +1,10 @@ +Contributed By: nishu mittal +Course: others +College/Institute/Organization: university of delhi +Department/Designation: electronics +Book Title: Modern Electronics Communication +Author: J S Beasley and Miller +Publisher: Phi Publication +Year of publication: 9th +Isbn: 9788120340046 +Edition: 2008
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter10.ipynb b/Modern_Electronics_Communication/chapter10.ipynb new file mode 100755 index 00000000..878fe5de --- /dev/null +++ b/Modern_Electronics_Communication/chapter10.ipynb @@ -0,0 +1,101 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 10 Wireless digital communication"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.2 Page no 467"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "n=3 #shift registers\n",
+ "n1=7\n",
+ "\n",
+ "#calculation\n",
+ "x=(2**n)-1\n",
+ "y=(2**7)-1\n",
+ "\n",
+ "#result\n",
+ "print\"(a) n =\",n,\"PN sequence length = \",x\n",
+ "print\"(b) n =\",n1,\"PN sequence length = \",y"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) n = 3 PN sequence length = 7\n",
+ "(b) n = 7 PN sequence length = 127\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.3 Page no 477"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "x=56.0 #modulation bit rate\n",
+ "y=560 #chip rate\n",
+ "a=256.0 #modulation bit rate\n",
+ "b=1792 #chip rate\n",
+ "\n",
+ "#calculation\n",
+ "z=y/x\n",
+ "c=b/a\n",
+ "\n",
+ "#result\n",
+ "#part(a)\n",
+ "print\"Spreading of a DSSS signal = \",z\n",
+ "print\"Spreading of a DSSS signal = \",c"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Spreading of a DSSS signal = 10.0\n",
+ "Spreading of a DSSS signal = 7.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter12.ipynb b/Modern_Electronics_Communication/chapter12.ipynb new file mode 100755 index 00000000..79f6b2af --- /dev/null +++ b/Modern_Electronics_Communication/chapter12.ipynb @@ -0,0 +1,401 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 12 Transmission Lines"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.1 Page no 573"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "L=73.75*10**-9 #inductance, H\n",
+ "C=29.5*10**-12 #capacitance\n",
+ "x=5280\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "Z=math.sqrt(L/C)\n",
+ "z1=math.sqrt((x*L)/(x*C))\n",
+ "\n",
+ "#result\n",
+ "print\"characterstics impedence for 1-ft =\",Z,\"ohm\"\n",
+ "print\"characterstics impedence for 1-mi = \",z1,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "characterstics impedence for 1-ft = 50.0 ohm\n",
+ "characterstics impedence for 1-mi = 50.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.2 Page no 574"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "a=2 #parallel wire line\n",
+ "b=2.35 #coaxial line\n",
+ "D=0.285\n",
+ "d=0.08\n",
+ "e=1.0 #dielectric constant of insulating material relative to air\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "z=(276/e)*math.log10(2*2)\n",
+ "z1=(138/e)*math.log10(b)\n",
+ "z2=(138/math.sqrt(2.3)*math.log10(D/d))\n",
+ "\n",
+ "#result\n",
+ "print\"(a) characterstics impedence for a parallel wire = \",round(z,0),\"ohm\"\n",
+ "print\"(b) characterstics impedence for a air dielectric coaxial line= \",round(z1,1),\"ohm\"\n",
+ "print\"(c) characterstics impedence = \",round(z2,0),\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) characterstics impedence for a parallel wire = 166.0 ohm\n",
+ "(b) characterstics impedence for a air dielectric coaxial line= 51.2 ohm\n",
+ "(c) characterstics impedence = 50.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.3 Page no 579"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "L=73.75*10**-9 #inductance, H\n",
+ "C=29.5*10**-12 #capacitance\n",
+ "d=1 #distance\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "t=math.sqrt(L*C)\n",
+ "Vp=d/t\n",
+ "\n",
+ "#result\n",
+ "print\"the delay introduced is t =\",round(t,10),\"s\"\n",
+ "print\"The velocity of propagation is \",round(Vp*10**-8,3),\"*10**8 ft/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the delay introduced is t = 1.5e-09 s\n",
+ "The velocity of propagation is 6.78 *10**8 ft/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.4 Page no 580"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "v=2.07*10**8 #velocity\n",
+ "c=3.0*10**8 #velocity of light\n",
+ "Er=2.3 #relative dielectric constant\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "vf=(v/c) #velocity factor\n",
+ "vf1=1/math.sqrt(Er)\n",
+ "\n",
+ "#result\n",
+ "print\"The velocity = \",vf,\"m/s\"\n",
+ "print\"vf = \",round(vf1,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity = 0.69 m/s\n",
+ "vf = 0.659\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.5 Page no 581"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "c=3*10**8 #speed of light\n",
+ "f=100.0*10**6 #frequency of signal\n",
+ "x=2.07*10**8 #velocity of wave propagation\n",
+ "\n",
+ "#Calcultion\n",
+ "w=c/f #wavelength in free-space\n",
+ "w1=x/f #wavelength while traveling through an RG-8A/U coaxial cable\n",
+ "\n",
+ "#Result\n",
+ "print\"In free space, lambda =\",w,\"m\"\n",
+ "print\"While traveling through RG-8A/U cable, lamda= \",w1,\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "In free space, lambda = 3.0 m\n",
+ "While traveling through RG-8A/U cable, lamda= 2.07 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.7 Page no 592"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Zl=300.0 #load impedance\n",
+ "Zo=50.0 #characteristic impedance\n",
+ "v=2.07*10**8 #velocity in RG-8A/U cable\n",
+ "f=27.0*10**6 #operating frequency of citizen's band transmitter\n",
+ "Po=4 #output power of transmitter\n",
+ "l=10 #length of RG-8A/U cable\n",
+ "Rl=300 #input resistance of antenna\n",
+ "\n",
+ "#calculation\n",
+ "T=((Zl-Zo)/(Zl+Zo)) #reflection coefficient\n",
+ "h=v/f #length of cable in wavelength\n",
+ "le=l/h #electrical length\n",
+ "x=Rl/Zo #VSWR\n",
+ "y=((1+T)/(1-T)) #VSWR\n",
+ "rp=(T)**2*Po #reflected power\n",
+ "Pl=Po-rp #load power\n",
+ "#part(a): The reflection coefficient\n",
+ "\n",
+ "#result\n",
+ "print\"(a) reflection cofficient = \",round(T,2)\n",
+ "print\"(b) electrical length =\",round(le,2),\"lambda\"\n",
+ "print\"(c) VSWR = \",y\n",
+ "print\"(d) the reflected voltage = \",round(Pl,2),\"W\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) reflection cofficient = 0.71\n",
+ "(b) electrical length = 1.3 lambda\n",
+ "(c) VSWR = 6.0\n",
+ "(d) the reflected voltage = 1.96 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.8 Page no 597"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "Zo=100.0 #characteristic impedance\n",
+ "j=1j\n",
+ "Zl = 200-j*150 #load impedance\n",
+ "l=4.3 #length of transmission line\n",
+ "\n",
+ "#calculation\n",
+ "x=200/Zo\n",
+ "y=150/Zo\n",
+ "a=0.4*Zo\n",
+ "b=0.57*Zo\n",
+ "\n",
+ "#result\n",
+ "print\"Zin = \",a,\"Ohm\",\"+j*\",b,\"Ohm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Zin = 40.0 Ohm +j* 57.0 Ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.9 Page no 599"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "import cmath\n",
+ "j=1j\n",
+ "RL=120 #load resistance from smith chart\n",
+ "ZL=complex(75,50) #load impedance\n",
+ "Z0=50.0 #characteristic impedance\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "z1=ZL/Z0\n",
+ "z=2.4 #normalized z at a point that is purely resistive\n",
+ "ar=z*Z0 #actual resistance\n",
+ "x=math.sqrt(Z0*RL)\n",
+ "\n",
+ "#Result\n",
+ "print\"zl= \",z1\n",
+ "#VSWR,zin,R can be found out from smith chart manually\n",
+ "print\"characteristic impedance is =\",round(x,2),\"ohm\" \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "zl= (1.5+1j)\n",
+ "characteristic impedance is = 77.46 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.10 Page no 601"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "import cmath\n",
+ "Z0=75.0 #characteristic impedance\n",
+ "j=1j\n",
+ "ZL=complex(50,-100) #load impedance\n",
+ "\n",
+ "#Calculation\n",
+ "zL=ZL/Z0\n",
+ "#Result\n",
+ "print\"zL =\",zL\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "zL = (0.666666666667-1.33333333333j)\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter13.ipynb b/Modern_Electronics_Communication/chapter13.ipynb new file mode 100755 index 00000000..f28a3b72 --- /dev/null +++ b/Modern_Electronics_Communication/chapter13.ipynb @@ -0,0 +1,238 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:358c1b86e82f27b9eee799b4793457200c3f930f370a7e7347103331d9245d4d"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 13 Wave Propagation"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.1 Page no 628"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "x=(2*(1/2.0))\n",
+ "a=15\n",
+ "d=53.5*10**-6 #duration for each horizontal line on the reciever\n",
+ "t=1/186000.0 #time delay between direct and reflected signal\n",
+ "\n",
+ "#calculation\n",
+ "g=(t/d)*a #ghost width\n",
+ "\n",
+ "#result\n",
+ "print\"ghost width = \",round(g,2),\"in.\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ghost width = 1.51 in.\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.2 Page no 641"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "S=83 #satellite longitude in degrees\n",
+ "N=90 #site longitude in degrees\n",
+ "L=35 #site longitude in degrees\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "b=0.1512 #constant in equation\n",
+ "A=180+math.atan(math.tan(-7*3.14/180)/math.sin(35*3.14/180))*180/3.14 \n",
+ "E=math.atan((math.cos((S-N)*3.14/180)*math.cos(L*3.14/180)-b)/math.sqrt(1-((math.cos(L*3.14/180))**2*(math.cos((S-N)*3.14/180))**2)))*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"The azimuth is equal to A = \",round(A,0),\"degree\"\n",
+ "print\"the elevation angle = \",round(E,1),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The azimuth is equal to A = 168.0 degree\n",
+ "the elevation angle = 48.7 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.3 Page no 646"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "import math\n",
+ "x=(32+(44/60.0)+(36/3600.0)) # N latitude\n",
+ "y=(106+(16/60.0)+(37/3600.0)) #W longitude\n",
+ "D=42.1642*10**6 #distance from the satellite to the center of the earth\n",
+ "R=6.378*10**6 #earth's radius\n",
+ "a=32.74333*3.14/180.0 #in degree\n",
+ "B=-7.27694*3.14/180.0 #in degree\n",
+ "\n",
+ "#calculation\n",
+ "q=math.cos(a)*math.cos(B)\n",
+ "\n",
+ "d=math.sqrt(D**2+R**2-(2*D*R*q))\n",
+ "c=2.997925*10**5 #velocity of light\n",
+ "de=d/c\n",
+ "rd=(2*d)/c\n",
+ "\n",
+ "#result\n",
+ "print\"N longitude converted into degrees = \",round(x,2)\n",
+ "print\"W longitude coverted into degrees =\",round(y,2)\n",
+ "print\"distance = \",round(d/1000,1),\"*10**6 meters\"\n",
+ "print\"delay =\",round(de/1000,3),\"seconds\"\n",
+ "print\"roundtrip delay = \",round(rd/1000,3),\"seconds\" \n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "N longitude converted into degrees = 32.74\n",
+ "W longitude coverted into degrees = 106.28\n",
+ "distance = 37009.1 *10**6 meters\n",
+ "delay = 0.123 seconds\n",
+ "roundtrip delay = 0.247 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.4 Page no 651"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "G=45 #antenna gain\n",
+ "nt=25 #antenna noise temperature\n",
+ "nt1=70 #LNB noise temperature\n",
+ "nt2=2 #noise temperature(reciever and passive components)\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "T=nt+nt1+nt2 #total noise temperature\n",
+ "x=G-10*math.log10(T) #figure of merit\n",
+ "\n",
+ "#result\n",
+ "print\"Sum of all of the noise temperature contributions Ts = \",T,\"k\"\n",
+ "print\"The figure of merit = \",round(x,2),\"dB\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Sum of all of the noise temperature contributions Ts = 97 k\n",
+ "The figure of merit = 25.13 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.5 Page no 652"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "d=41.130383*10**6 #dismath.tance\n",
+ "c=2.997925*10**8 #velocity of light\n",
+ "f=14.25*10**9 #uplink frequency\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "h=c/f #wavelength\n",
+ "x=(4*math.pi*d)/h\n",
+ "Lp=20*math.log10(x) #free-space path loss\n",
+ "\n",
+ "#result\n",
+ "print\"The wavelength is= \",round(h,2)\n",
+ "print\"Lp(dB)= \",round(Lp,2),\"dB\"\n",
+ "#INcorrect answer of h in the textbook"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The wavelength is= 0.02\n",
+ "Lp(dB)= 207.81 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter14.ipynb b/Modern_Electronics_Communication/chapter14.ipynb new file mode 100755 index 00000000..39f00cfe --- /dev/null +++ b/Modern_Electronics_Communication/chapter14.ipynb @@ -0,0 +1,180 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 14 Antennas"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.1 Page no 669"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "c=3*10**8 #m/s , speed of light \n",
+ "f=150*10**6 #frequency\n",
+ "\n",
+ "#calculation\n",
+ "h=c/f\n",
+ "x=1/2.0 #antennas dimension(D)\n",
+ "D=0.5*2\n",
+ "Rff=5*D\n",
+ "h=c/f \n",
+ "D = h/2\n",
+ "\n",
+ "#result\n",
+ "print\" distance =\",Rff,\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " distance = 5.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.2 Page no 669"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "c=3*10**8 #velocity of light\n",
+ "f=12.0*10**9 #frequency\n",
+ "D=4.5 #diameter of parabolic reflector\n",
+ "\n",
+ "#calculation\n",
+ "h=c/f #wavelength\n",
+ "x=D/h\n",
+ "R=(2*D**2)/h\n",
+ "\n",
+ "#result\n",
+ "print\"distance from parabolic reflector= \",R,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "distance from parabolic reflector= 1620.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.3 Page no 671"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "Pt=10 #transmitted power\n",
+ "#dipoles have gain 2.15dB \n",
+ "Gr=1.64\n",
+ "c=3*10**8 #velocity of light\n",
+ "f=144.0*10**6 #frequency\n",
+ "d=50*10**3 #distance between antennas\n",
+ "Gt=1.64 #recieving antenna gain(ratio) compared to isotropic radiator\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "Pr=Pt*Gt*Gr*(c/f)**2/((16*(math.pi)**2)*(d**2)) #power recieved\n",
+ "\n",
+ "#result\n",
+ "print\"Power received = \",round(Pr,12),\"w\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power received = 2.96e-10 w\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.4 Page no 674"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "c=3*10**8 #velocity of light\n",
+ "f=100*10**6 #frequency\n",
+ "\n",
+ "#Calculation\n",
+ "h=c/f #wavelength\n",
+ "x=h/2.0 #dipole i.e h/2\n",
+ "l=0.95*x #applying 95% correction,the actual optimum physical length\n",
+ "L=486/100.0 #alternative method to find length\n",
+ "\n",
+ "#Result\n",
+ "print\"length of antenna = \",l,\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "length of antenna = 1.425 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter16.ipynb b/Modern_Electronics_Communication/chapter16.ipynb new file mode 100755 index 00000000..ab90f6a3 --- /dev/null +++ b/Modern_Electronics_Communication/chapter16.ipynb @@ -0,0 +1,134 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 16 Microwaves and Lasers"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.1 Page no 753"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "h=0.3 #curve depth of parabolic reflector\n",
+ "D=3 #diameter of parabolic reflector\n",
+ "\n",
+ "#calculation\n",
+ "f=D/(16*h) #focal \n",
+ "\n",
+ "#result\n",
+ "print\"The focal length is \",f,\" m out from the center of the parabolic reflector\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The focal length is 0.625 m out from the center of the parabolic reflector\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.2 Page no 755"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "D=3.0 #diameter of microwave dish\n",
+ "k=0.6 #efficiency of reflector\n",
+ "c=2.997925*10**8 #velocity of light\n",
+ "f=10.0*10**9 #frequency\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "Ap=10*math.log10((c/f)*k*((math.pi*D)**2/(c/f)**2)) #powergain\n",
+ "B=(70*(c/f))/D #beamwidth\n",
+ "\n",
+ "#result\n",
+ "print\"beamwidth = \",round(B,3),\"micrometer\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "beamwidth = 0.7 micrometer\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.3 Page no 756"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "D=4.5 #diameter of parabolic reflector\n",
+ "k=0.62 #efficiency factor\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "Ae=(k*math.pi)*(D/2.0)**2 #aperture efficiency\n",
+ "i=(math.pi*(D/2.0)**2) #ideal capture area\n",
+ "\n",
+ "#result\n",
+ "print\"The ideal capture area for\",D,\"m\",\"1f m parabolic antenna is\",round(i,3),\"sq.m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The ideal capture area for 4.5 m 1f m parabolic antenna is 15.904 sq.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter17.ipynb b/Modern_Electronics_Communication/chapter17.ipynb new file mode 100755 index 00000000..44c3e3d8 --- /dev/null +++ b/Modern_Electronics_Communication/chapter17.ipynb @@ -0,0 +1,96 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 17 Television"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.1 Page no 882"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "bw=5*10**6 #bandwidth\n",
+ "t=53.5*10**-6 #time allocated for each visible trace\n",
+ "\n",
+ "#calculation\n",
+ "T=2*bw*t #increase in horizontal resolution\n",
+ "\n",
+ "#result\n",
+ "print\"Thus, the total number of vertical lines resolvable is \",T,\"lines\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thus, the total number of vertical lines resolvable is 535.0 lines\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.2 Page no 822"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "bw=5.0*10**6 #bandwidth\n",
+ "l=428 #horizontal resolution\n",
+ "\n",
+ "#calculation\n",
+ "t=l/(bw*2) #trace time\n",
+ "x=1/30.0 #time available for a full picture\n",
+ "y=t+10.0*10**-6 #assuming that 10us is used for horizontal blanking\n",
+ "n=x/y #no. of horizontal traces\n",
+ "c=600*0.7 #allowing 32 lines for vertical retrace\n",
+ "\n",
+ "#result\n",
+ "print\"vertical resolution = \",c,\"lines\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "vertical resolution = 420.0 lines\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter18.ipynb b/Modern_Electronics_Communication/chapter18.ipynb new file mode 100755 index 00000000..fee42ea4 --- /dev/null +++ b/Modern_Electronics_Communication/chapter18.ipynb @@ -0,0 +1,216 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 18 Fibre Optics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.1 Page no 859"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "c=3*10**8 #velocity of light\n",
+ "f=4.4*10**14 #frequency of red light\n",
+ "f1=7.0*10**14 #frequency of violet light\n",
+ "\n",
+ "#calculation\n",
+ "h1=c/f #wavelength of red light\n",
+ "h2=c/f1 #wavelength of violet light\n",
+ "\n",
+ "#result\n",
+ "print\"wavelenght for red= \",round(h1,9),\"m\"\n",
+ "print\"wavelngth for violet= \",round(h2,8),\"micron\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "wavelenght for red= 6.82e-07 m\n",
+ "wavelngth for violet= 4.3e-07 micron\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.2 Page no 862"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "n1=1.535 #refractive index of fibre optics\n",
+ "n2=1.490 #refractive index of cladding\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "x=(n1**2)-(n2**2)\n",
+ "y=math.sqrt(x) #numerical aperture\n",
+ "z=math.asin(y)*180/3.14 #theta\n",
+ "\n",
+ "#result\n",
+ "print\"NA = \",round(y,3)\n",
+ "print\"(theta)in(max) = \",round(z,1),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "NA = 0.369\n",
+ "(theta)in(max) = 21.7 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.3 Page no 868"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "w=22 #spectral width of LED\n",
+ "l=2 #length of fibre\n",
+ "d=95 #dispersion value\n",
+ "p=d*w #pulse dispersion\n",
+ "pt=p*l #total pulse dispersion\n",
+ "\n",
+ "#result\n",
+ "print\"pulse dispersion = \",p,\"ps/km\"\n",
+ "print\"total pulse dispersion = \",pt,\"ps/km\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "pulse dispersion = 2090 ps/km\n",
+ "total pulse dispersion = 4180 ps/km\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.4 Page no 885"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "d=30 #length of fibre cable\n",
+ "l=0.4 #loss\n",
+ "\n",
+ "#calculation\n",
+ "T=d*l #total cable loss\n",
+ "\n",
+ "#result\n",
+ "print\"total cable loss = \",T,\"dB\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "total cable loss = 12.0 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.5 Page no 887"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "b=565 #Line bit rate of fibre 1\n",
+ "c=3.5 #Cable dispersion of fibre 1\n",
+ "t=4 #Transmitter spectral width of fibre 1\n",
+ "b1=1130 #Line bit rate of fibre 2\n",
+ "c1=3.5 #Cable dispersion of fibre 2\n",
+ "t1=2 #Transmitter spectral width of fibre 2\n",
+ "x=440000 #assumed gaussian constant \n",
+ "\n",
+ "#calculation\n",
+ "L1=x/(b*c*t) #span length in km of fibre 1\n",
+ "L2=x/(b1*c1*t1) #span length in km of fibre 2\n",
+ "\n",
+ "#result \n",
+ "print\"span lenght of fibre 1= \",round(L1,2),\"Km\"\n",
+ "print\"span lenght of fibre 2= \",round(L2,2),\"Km\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "span lenght of fibre 1= 55.63 Km\n",
+ "span lenght of fibre 2= 55.63 Km\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter6.ipynb b/Modern_Electronics_Communication/chapter6.ipynb new file mode 100755 index 00000000..2342c49f --- /dev/null +++ b/Modern_Electronics_Communication/chapter6.ipynb @@ -0,0 +1,98 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 6: Frequency Modulation:Reception"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.1 Page no 265"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "G=200000 #voltage gain\n",
+ "v=200*10**-3 #quieting voltage\n",
+ "\n",
+ "#calculation\n",
+ "In=v/G\n",
+ "\n",
+ "#Result\n",
+ "print\"To reach quieting, the input must be \",In*10**6,\"microV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "To reach quieting, the input must be 1.0 microV\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.2 Page no 272"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f=10*10**6 #frequency\n",
+ "f1=50*10**3 #input frequency\n",
+ "f2=200*10**3 #output frequency\n",
+ "\n",
+ "#Calculatiion\n",
+ "x=f1*2\n",
+ "y=f2*2\n",
+ "\n",
+ "#Result\n",
+ "print\"The capture occurred at from the free-running VCO frequency.\",f1,\"Hz\"\n",
+ "print\"Assume symmetrical operation,which implies a capture range of \",x,\"Hz\"\n",
+ "print\"Once captured the VCO follows the input to a \",f2,\"Hz deviation,implying a lock range of \",y,\"Hz\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The capture occurred at from the free-running VCO frequency. 50000 Hz\n",
+ "Assume symmetrical operation,which implies a capture range of 100000 Hz\n",
+ "Once captured the VCO follows the input to a 200000 Hz deviation,implying a lock range of 400000 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter7.ipynb b/Modern_Electronics_Communication/chapter7.ipynb new file mode 100755 index 00000000..39f04dbf --- /dev/null +++ b/Modern_Electronics_Communication/chapter7.ipynb @@ -0,0 +1,243 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 7 Communication Techniques"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.6 Page no 304"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "Q=60\n",
+ "IF=455*10**3\n",
+ "x=680.0*10**3\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "imf=x+2*(IF) #image frequency\n",
+ "a=(imf/x)\n",
+ "b=(x/imf)\n",
+ "c=(Q*(a-b))\n",
+ "d=20*math.log10(c)\n",
+ "\n",
+ "#result\n",
+ "print\"The image frequency is \",imf,\"Hz\"\n",
+ "print\"image rejection = \",round(d,3),\"dB\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The image frequency is 1590000.0 Hz\n",
+ "image rejection = 41.186 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7 Page no 314"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "NF=20.0\n",
+ "df=10**6\n",
+ "\n",
+ "#calculation\n",
+ "x=10*math.log10(df)\n",
+ "S=-174+NF+x\n",
+ "a=5 #input intercept\n",
+ "dr=2/3.0*(a-S)\n",
+ "\n",
+ "#result\n",
+ "print\"S= \",S,\"dB\"\n",
+ "print\"dynamic range= \",dr,\"dB\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "S= -94.0 dB\n",
+ "dynamic range= 66.0 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.8 Page no 315"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "nf=5.0\n",
+ "x=24.0\n",
+ "y=20.0\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "NR0=10**(nf/10.0)\n",
+ "NR1=10**(y/10.0)\n",
+ "PG1=10**(x/10.0)\n",
+ "NR=NR0+((NR1-1)/PG1)\n",
+ "NF=10*math.log10(NR)\n",
+ "S=-174+NF+60\n",
+ "a=nf-x #the system's third-order intercept point \n",
+ "dr=2/3.0*(a-S)\n",
+ "\n",
+ "#result\n",
+ "print\"NR1 = \",round(NR0,3)\n",
+ "print\"NR2 = \",NR1\n",
+ "print\"PG1= = \",round(PG1,3)\n",
+ "print\"NR = \",round(NR,3),\"dB\"\n",
+ "print\"NF = \",round(NF,3),\"dB\" #total system noise figure\n",
+ "print\"S = \",round(S,3),\"dBm\" #sensitivity\n",
+ "print\"the systems third-order intercept point is\",a,\"dB\"\n",
+ "print\"dynamic range = \",round(dr,1),\"dB\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "NR1 = 3.162\n",
+ "NR2 = 100.0\n",
+ "PG1= = 251.189\n",
+ "NR = 3.556 dB\n",
+ "NF = 5.51 dB\n",
+ "S = -108.49 dBm\n",
+ "the systems third-order intercept point is -19.0 dB\n",
+ "dynamic range = 59.7 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.9 Page no 315"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "x=24\n",
+ "nf=-5\n",
+ "NR = 3.16+(99/10.0)\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "NF = 10*math.log10(NR)\n",
+ "S=-174+NF+60\n",
+ "dr = 2/3.0*(nf-S)\n",
+ "\n",
+ "#result\n",
+ "print\"NR = \",NR #noise ratio\n",
+ "print\"NF = \",round(NF,3),\"dB\" #noise figure\n",
+ "print\"S = \",round(S,3),\"dBm\" #sensitivity\n",
+ "print\"dynamic range = \",round(dr,3),\"dB\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "NR = 13.06\n",
+ "NF = 11.159 dB\n",
+ "S = -102.841 dBm\n",
+ "dynamic range = 65.227 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.10 Page no 329"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "x=0.40*100*10**6\n",
+ "y=(100*10**6/(2.0**32))\n",
+ "#fCLK is reference oscillator\n",
+ "\n",
+ "#result\n",
+ "print\"The maximum output frequency is approximately 40 percent of fCLK MAX\",x,\"Hz\"\n",
+ "print\"The frequency resolution is given by \",round(y,3),\"Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum output frequency is approximately 40 percent of fCLK MAX 40000000.0 Hz\n",
+ "The frequency resolution is given by 0.023 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter8.ipynb b/Modern_Electronics_Communication/chapter8.ipynb new file mode 100755 index 00000000..b7931b29 --- /dev/null +++ b/Modern_Electronics_Communication/chapter8.ipynb @@ -0,0 +1,190 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "chapter 8 Digital Communication-Coding Techniques"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.1 Page no 357"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "fa=20*10**3\n",
+ "\n",
+ "#calculation\n",
+ "fs=2*fa #minimum sample rate\n",
+ "\n",
+ "#result\n",
+ "print\"maximum sample rate\",\"is greater than equal to\",fs,\"Hz\" #frequency\n",
+ " "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "maximum sample rate is greater than equal to 40000 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.2 Page no 362"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "dr=55\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "n=(dr/6.02)\n",
+ "l=2**10\n",
+ "y=10*math.log10(3*(l**2)) #signal-to-quantization-noise level\n",
+ "x=(1.76+(6.02*10)) #signal-to-noise ratio for digitizing system\n",
+ "\n",
+ "#result\n",
+ "print\"(S/N)q =\",round(y,2),\"dB\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(S/N)q = 64.98 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.3 Page no 368"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "R=100.0*10**3 #resistance, ohm\n",
+ "Rf=10*10**3\n",
+ "Vref=-10 #reference voltage\n",
+ "\n",
+ "#calculation\n",
+ "Vo=-(Vref)*(Rf/R) # resolution\n",
+ "a=(10/100.0)\n",
+ "b=(10/50.0)\n",
+ "c=(10/25.0)\n",
+ "d=(10/12.5)\n",
+ "V=-(Vref)*(a+b+c+d) #output voltage\n",
+ "\n",
+ "#result\n",
+ "print\"The step-size is \",Vo\n",
+ "print\"output voltage = \",V,\"volts\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The step-size is 1.0\n",
+ "output voltage = 15.0 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.4 Page no 375"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "d=2 #Dmin\n",
+ "d1=3\n",
+ "d2=4\n",
+ "\n",
+ "#calculation\n",
+ "x=d-1 \n",
+ "a=(d/2.0)-1\n",
+ "y=d1-1\n",
+ "b=1/2.0*(d1-1)\n",
+ "z=d2-1\n",
+ "c=(d2/2.0)-1 \n",
+ "#part (a)\n",
+ "\n",
+ "#result\n",
+ "print\"(a) the no. of error detected for the distance 2 is \",x\n",
+ "print\" the no. of errors corrected = \",a\n",
+ "print\"(b) the no. of error detected for the distance 3 is \",y\n",
+ "print\" the no. of errors corrected = \",b\n",
+ "print\"(c) the no. of error detected for the distance 4 is \",z\n",
+ "print\" the no. of errors corrected = \",c\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) the no. of error detected for the distance 2 is 1\n",
+ " the no. of errors corrected = 0.0\n",
+ "(b) the no. of error detected for the distance 3 is 2\n",
+ " the no. of errors corrected = 1.0\n",
+ "(c) the no. of error detected for the distance 4 is 3\n",
+ " the no. of errors corrected = 1.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/chapter9.ipynb b/Modern_Electronics_Communication/chapter9.ipynb new file mode 100755 index 00000000..812fc2f5 --- /dev/null +++ b/Modern_Electronics_Communication/chapter9.ipynb @@ -0,0 +1,203 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 9 Wired Digital Communications"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.1 Page no 405"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "M=110\n",
+ "x=7.0\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "a=math.log10(110)/(math.log10(2))\n",
+ "n=math.log(M)\n",
+ "b=2**a\n",
+ "u=(a/x)*100\n",
+ "y=math.log10(b)\n",
+ "u1=(y/3.0)*100\n",
+ "\n",
+ "#result\n",
+ "print\"the number of bits required = \",round(a,2) #number of bits\n",
+ "print\"The efficiency is \",round(u1,0),\"percent\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the number of bits required = 6.78\n",
+ "The efficiency is 68.0 percent\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.2 Page no 407"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "m=10**7\n",
+ "Pe=10**-6 #error probability\n",
+ "\n",
+ "#calculation\n",
+ "a=m*Pe #average number of errors\n",
+ "\n",
+ "#result\n",
+ "print\"expected number of errors =\",a\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "expected number of errors = 10.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.3 Page no 407"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "Tb=1/9600.0 #bit frequency\n",
+ "Pt=0.8 #transmit power\n",
+ "\n",
+ "#calculation\n",
+ "Eb=Pt*Tb #energy per bit\n",
+ "\n",
+ "#result\n",
+ "print\"Energy per bit = \",round(Eb,7),\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy per bit = 8.33e-05 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.4 Page no 410"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "bw=3*10**3 #bandwidth\n",
+ "x=1023 #signal-to-noise ratio\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "C=bw*math.log(1+x)/math.log(2) #capacity of telephone channel\n",
+ "\n",
+ "#result\n",
+ "print\"the capacity of a telephone channel =\",C,\"bit per second\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the capacity of a telephone channel = 30000.0 bit per second\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.5 Page no 411"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "Tb=1/(8.0*10**3) #bit frequency\n",
+ "BWmin=1/(2.0*Tb) #minimum bandwidth\n",
+ "\n",
+ "#result\n",
+ "print\"minimum bandwidth = \",BWmin,\"Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "minimum bandwidth = 4000.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_Electronics_Communication/screenshots/2_3.png b/Modern_Electronics_Communication/screenshots/2_3.png Binary files differnew file mode 100755 index 00000000..f92e9c53 --- /dev/null +++ b/Modern_Electronics_Communication/screenshots/2_3.png diff --git a/Modern_Electronics_Communication/screenshots/3_2.png b/Modern_Electronics_Communication/screenshots/3_2.png Binary files differnew file mode 100755 index 00000000..e55d1484 --- /dev/null +++ b/Modern_Electronics_Communication/screenshots/3_2.png diff --git a/Modern_Electronics_Communication/screenshots/4_2.png b/Modern_Electronics_Communication/screenshots/4_2.png Binary files differnew file mode 100755 index 00000000..526dd950 --- /dev/null +++ b/Modern_Electronics_Communication/screenshots/4_2.png |