summaryrefslogtreecommitdiff
path: root/Electronic_Communication_by_D_Roddy/8-AMPLITUDE_MODULATION.ipynb
blob: e3df6eef94ed8620a2f8f202b45a697d6e17ab98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"cells": [
 {
		   "cell_type": "markdown",
	   "metadata": {},
	   "source": [
       "# Chapter 8: AMPLITUDE MODULATION"
	   ]
	},
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 8.11_1: exampple_4.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc;\n",
"//page no 274\n",
"//prob no. 8.11.1\n",
"//RC load ckt for diode detector with c=1000pF in paralel with R=10Kohm\n",
"fm=10*10^3;//modulation freq\n",
"c=1000*10^-12;R=10*10^3;\n",
"Yp=(1/R)+((%i)*2*(%pi)*fm*c);//admittance of RC load\n",
"disp(Yp);\n",
"Zp=1/sqrt((real(Yp)^2)+(imag(Yp)^2));\n",
"disp(Zp);\n",
"//Determination of max modulation index\n",
"m=Zp/R;\n",
"disp(m,'The max modulation index is');"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 8.3_1: example_1.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc;\n",
"//page no 257\n",
"//prob no. 8.3.1\n",
"//A modulating signal with zero dc component & vpp=11,vcp=10 carrier peak voltage\n",
"vpp=11;//peak to peak voltage of modulating signal\n",
"vcp=10;//carrier peak voltage\n",
"//Determination of modulation index\n",
"E_max=vcp+(vpp/2);\n",
"E_min=vcp-(vpp/2);\n",
"m=(E_max-E_min)/(E_max+E_min);\n",
"disp(m,'The modulation index is');\n",
"//determination of kratio of side lengths\n",
"L1_L2=E_max/E_min;\n",
"disp(L1_L2,'The ratio of side lengths L1/L2 is');"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 8.5_1: example_2.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc;\n",
"//page no 260\n",
"//prob no. 8.5.1\n",
"//A carrier with fc=10MHz & vp=10V modulated with fm=5kHz & Vm=6V\n",
"fc=10*10^6;//Carrier freq\n",
"fm=5*10^3;//Modullating freq\n",
"vp=10;vm=6;\n",
"//Determination of modulation index\n",
"m=vm/vp;\n",
"disp(m,'The modulation index is');"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 8.7_1: example_3.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc;\n",
"//page no 263\n",
"//prob no. 8.7.1\n",
"//AM radio Tx=10A when unmodulated & 12A when modulated\n",
"I=12;Ic=10;\n",
"//Determination of modulation index\n",
"m=sqrt(2*(((I/Ic)^2)-1));\n",
"disp(m,'The modulation index is');"
   ]
   }
],
"metadata": {
		  "kernelspec": {
		   "display_name": "Scilab",
		   "language": "scilab",
		   "name": "scilab"
		  },
		  "language_info": {
		   "file_extension": ".sce",
		   "help_links": [
			{
			 "text": "MetaKernel Magics",
			 "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
			}
		   ],
		   "mimetype": "text/x-octave",
		   "name": "scilab",
		   "version": "0.7.1"
		  }
		 },
		 "nbformat": 4,
		 "nbformat_minor": 0
}