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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 5 : Power Amplifiers"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 5.1, Page No. 167"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# efficiency\n",
"\n",
"import math\n",
"#Variable declaration\n",
"Pac=0.1 #in W\n",
"Vcc=20.0 #in V\n",
"Ic=20.0 #in mA\n",
"\n",
"#Calculations\n",
"Pdc=Vcc*Ic*10**-3 #in W\n",
"eta=(Pac/Pdc)*100 #efficiency\n",
"\n",
"#Result\n",
"print(\"efficiency is ,(%%)= %.f\"%eta)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"efficiency is ,(%)= 25\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 5.2, Page No. 167"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# collector current\n",
"\n",
"import math\n",
"#Variable declaration\n",
"Pac=2.0 #in W\n",
"Vcc=12.0 #in V\n",
"\n",
"#Calculations\n",
"Ic=(Pac*math.sqrt(2)*math.sqrt(2))/Vcc\n",
"\n",
"#Result\n",
"print(\"maximum collector current is ,(A)= %.2f\" %Ic)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"maximum collector current is ,(A)= 0.33\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 5.3, Page No. 167"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# collector efficiency and power rating\n",
"\n",
"import math\n",
"#Variable declaration\n",
"Pac=3.0 #in W\n",
"Pdc=10.0 #in W\n",
"\n",
"#Calculations\n",
"eta=(Pac/Pdc)*100 #percentage efficieny \n",
"\n",
"#Result\n",
"print(\"collector efficiency is , (%%) = %.f\"%eta)\n",
"print(\"power rating of transistor is ,(W) = %.f\" %Pdc)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"collector efficiency is , (%) = 30\n",
"power rating of transistor is ,(W) = 10\n"
]
}
],
"prompt_number": 11
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 5.4, Page No. 168"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# power\n",
"\n",
"import math\n",
"#Variable declaration\n",
"dIc=100.0 #in mA\n",
"Rl=6.0 #in ohm\n",
"Rl=6.0 #in ohm\n",
"dVc=10.0 #in V\n",
"\n",
"#Calculations\n",
"mv=dIc*Rl*10**-3 #in V\n",
"pd=mv*dIc #in mW\n",
"oi=(dVc/dIc)*10**3 #in ohm\n",
"n=math.sqrt(oi/Rl) #turn ratio of transformer\n",
"tsv=dVc/n #om V\n",
"Il=tsv/Rl #in A\n",
"ptr= Il**2*Rl*10**3 #in mW\n",
"\n",
"#Result\n",
"print(\"(i) power developed in loudspeaker is , (mW)= %.f\"%pd)\n",
"print(\"(ii) power transferred to loudspeaker is ,(mw)= %.f\"%ptr)\n",
"#in textbook in second case there is one point deviation in the answer."
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) power developed in loudspeaker is , (mW)= 60\n",
"(ii) power transferred to loudspeaker is ,(mw)= 1000\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 5.5, Page No. 168"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# power\n",
"\n",
"import math\n",
"#Variable declaration\n",
"n=10.0 #turn ratio\n",
"Rl=10.0 #ohm\n",
"Ic=100.0 #in mA\n",
"\n",
"#Result\n",
"Rld=n**2*Rl #in ohm\n",
"Irms=Ic/(math.sqrt(2)) #in mA\n",
"P=Irms**2*Rld #in W\n",
"\n",
"#Result\n",
"print(\"maximum power output is ,(W)= %.f\"%(P*10**-6))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"maximum power output is ,(W)= 5\n"
]
}
],
"prompt_number": 20
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 5.6, Page No. 169"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# harmonic distortions and change in power\n",
"\n",
"import math\n",
"#Variable declaration\n",
"#ie=15*sin 400*t+1.5*sin 800*t + 1.2*sin 1200*t + 0.5*sin 1600*t given equation\n",
"I2=1.5 #in A\n",
"I1=15.0 #in A\n",
"I3=1.2 #in A\n",
"I4=0.5 #in A\n",
"D2=(I2/I1)*100 #Second percentage harmonic distortion\n",
"D3=(I3/I1)*100 #Third percentage harmonic distortion\n",
"#in book I2 is mentioned wrongly in place of I1\n",
"D4=(I4/I1)*100 #Fourth percentage harmonic distortion\n",
"D=math.sqrt(D2**2+D3**2+D4**2)/100 #Distortion Factor\n",
"P1=1.0 #assume\n",
"P=(1+D**2)*P1 #in W\n",
"peri=((P-P1)/P1)*100 #percentage increase in power due to distortion\n",
"\n",
"#Result\n",
"print(\"part (i)\")\n",
"print(\"Second percentage harmonic distortion (D2) is ,(%%) = %.f\"%D2)\n",
"print(\"Third percentage harmonic distortion (D3) is ,(%%) = %.f\"%D3)\n",
"print(\"Fourth percentage harmonic distortion (D4) is ,(%%) = %.2f\"%D4)\n",
"print(\"\\npart (ii)\")\n",
"print(\"percentage increase in power due to distortion is ,(%%) = %.2f\"%peri)\n",
"# answer for % increase is slightly different than book"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"part (i)\n",
"Second percentage harmonic distortion (D2) is ,(%) = 10\n",
"Third percentage harmonic distortion (D3) is ,(%) = 8\n",
"Fourth percentage harmonic distortion (D4) is ,(%) = 3.33\n",
"\n",
"part (ii)\n",
"percentage increase in power due to distortion is ,(%) = 1.75\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 5.7, Page No. 169"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# power dissipated\n",
"\n",
"import math\n",
"#Variable declaration\n",
"Vcc=15.0 #in V\n",
"Vpeak=24.0/2 #in V\n",
"Rl=100.0 #in ohm\n",
"\n",
"#Calculations\n",
"Ipeak= Vpeak/Rl #in A\n",
"Pdc=Vcc*(2/(math.pi))*Ipeak #in W\n",
"pad=(1.0/2)*(Vpeak**2)/Rl #in W\n",
"pd=Pdc-pad #in W\n",
"pde=pd/2 #in W\n",
"\n",
"#Result\n",
"print(\"power dissipated by each transistor is,(mW)= %.f\"%(pde*10**3))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"power dissipated by each transistor is,(mW)= 213\n"
]
}
],
"prompt_number": 28
}
],
"metadata": {}
}
]
}
|