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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
|
{
"metadata": {
"name": "ch_8"
},
"nbformat": 2,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"source": [
"<h1>Chapter 8: Voltage Regulators<h1>"
]
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No. 8.1 Page No:362 <h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Linear Voltage Regulator'''",
"",
"#Variable Declaration:",
"Vo=15.0 #Output voltage in volt",
"Vr=2.0 #Ripple voltage in volt",
"",
"#Calculations:",
"Vimin=Vo+3.0 #Calculating minimum input voltage ",
"",
"Vi=Vimin + Vr/2.0 #Calculating input voltage",
"",
"Vz=Vi/2.0 #Calculating zener voltage",
"",
"Vz=10.0 #Volatge in volt",
"Iz=20.0*10**-3 #Current in ampere",
"",
"R1=(Vi-Vz)/Iz #Calculating resistance value",
" ",
"I2=50.0*10**-6 #Current ampere",
"R2=(Vo-Vz)/I2 #Calculating Resistance value",
"R2=R2/1000.0 #Calculating resistance value",
"",
"R3=Vz/I2 #Calculating resistance value",
"R3=R3/1000.0 #Calculating resistance value",
"",
"Vcemax=Vi+Vr/2 #Calculating volatge",
"",
"IE=50.0*10**-6 #Current in ampere",
"IL=50.0*10**-6 #Current in ampere",
"",
"P=(Vi-Vo)*IL #Calculating power ",
"P1=P*1000000.0 #Calculating power",
"",
"",
"#Results:",
"print('As Vz=%.1f, use Zener diode 1N758 for 10V'%Vz)",
"print('\\nR1= %d ohm'%R1)",
"print('\\nR2= %.1f kohm'%R2)",
"print('\\nR3= %d kohm'%R3)",
"print('\\nSelect C1= 50uF')",
"print('\\nP= %.1f mW'%P1)",
"print('\\nUse the transstor 2N718 for Q1')"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"As Vz=10.0, use Zener diode 1N758 for 10V",
"",
"R1= 450 ohm",
"",
"R2= 100.0 kohm",
"",
"R3= 200 kohm",
"",
"Select C1= 50uF",
"",
"P= 200.0 mW",
"",
"Use the transstor 2N718 for Q1"
]
}
],
"prompt_number": 1
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No. 8.2, Page No: 366<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''7805 Voltage Regulator'''",
"",
"#Variable Declaration:",
"IL=0.25 #Current in ampere",
"Vr=5.0 #Ripple voltage in volt",
"",
"#Calculations:",
"R=Vr/IL #Calculating value of resistance ",
"RL=10.0 #Calculating value of resistance",
"VL=IL*RL #Calculating voltage",
"",
"Vo=Vr+VL #Calculating output voltage",
"Vdrop=2.0 #Voltage drop in volt",
"Vi=Vo+Vdrop #Calculating voltage",
"",
"#Results:",
"print('R= %d ohm'%R)",
"print('\\nVo= %.1f V'%Vo)",
"print('\\nVo= %.1f V'%Vi)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"R= 20 ohm",
"",
"Vo= 7.5 V",
"",
"Vo= 9.5 V"
]
}
],
"prompt_number": 2
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No. 8.3, Page No: 368<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''7805 Regulator Circuit'''",
"",
"#Variable Declaration:",
"VL=5.0 #Voltage in volt",
"RL=100.0 #Resistance in ohm",
"",
"#Calculations:",
"IL=VL/RL #Calculating current ",
"IL1=IL*1000.0 #Calculating current",
"#Part A",
"R1=7.0 #Resistance in ohm ",
"VR1=IL*R1 #Calculaing voltage drop across R1",
"VR1x=VR1*1000.0 #Calculatingvoltage drop across R1",
"",
"#Part B",
"VLb=5.0 #Voltage in volt",
"RLb=2.0 #Resistance in ohm",
"",
"ILb=VLb/RLb #Calculating current",
"",
"R1=7.0 #Resistance in ohm ",
"VR1=ILb*R1 #Calculating voltage drop accross R1",
"",
"Io=0.147 #Current in ampere ",
"Ic=ILb-Io #Calculating current",
"",
"#Results:",
"print('Part A')",
"print('\\nLoad Current IL= %d mA'% IL1)",
"print('\\nVoltage accross R1= %d mV'%VR1x)",
"print('\\nAs voltage < 0.7V, Q1 is OFF')",
"print('\\nHence IL=Io=Ii=50 mA')",
"print('\\n\\nPart B')",
"print('\\nLoad Current IL= %.1f A'%ILb)",
"print('\\nVoltage accross R1= %.1f V'%VR1)",
"print('\\nAs voltage > 0.7V, Q1 is ON')",
"print('\\nHence Ic= %.3f A'%Ic)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Part A",
"",
"Load Current IL= 50 mA",
"",
"Voltage accross R1= 350 mV",
"",
"As voltage < 0.7V, Q1 is OFF",
"",
"Hence IL=Io=Ii=50 mA",
"",
"",
"Part B",
"",
"Load Current IL= 2.5 A",
"",
"Voltage accross R1= 17.5 V",
"",
"As voltage > 0.7V, Q1 is ON",
"",
"Hence Ic= 2.353 A"
]
}
],
"prompt_number": 1
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No. 8.4, Page No: 371<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''LM317 Regulator'''",
"",
"#Variable Declaration:",
"R1=240.0 #Resistance in ohm",
"R2=2000.0 #Resistance in ohm",
"Iadj=50.0*10**-6 #Current in ampere",
"Vref=1.25 #Reference voltage in volt ",
"",
"#Calculation:",
"Vo=(Vref*(1+R2/R1))+(Iadj*R2) #Calculating output voltage",
"",
"#Result:",
"print('Vo= %.2f V'%Vo)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Vo= 11.77 V"
]
}
],
"prompt_number": 4
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No. 8.5, Page NO:371<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Voltage regulator using LM317'''",
"",
"#Variable Declaration:",
"Iadjmax=100.0*10**-6 #Current in ampere",
"R1=240.0 #Resistance in ohm",
"Vref=1.25 #Reference voltage in volt ",
" ",
"#Calculations:",
"#First case: Vo=4",
"Vo=4.0 #Voltage in volt",
"R2a1=(Vo-Vref)/(Vref/R1 + Iadjmax) #Calculating value of resistance",
"R2a=R2a1/1000.0 #Calculating value of resistance",
"",
"#First case: Vo=12",
"Vo=12.0 #Voltage in volt",
"R2b1=(Vo-Vref)/(Vref/R1 + Iadjmax) #Calculating value of resistance",
"R2b=R2b1/1000.0 #Calculating value of resistance",
"",
"#Results:",
"print('\\nR2= %.2f kohm'%R2a)",
"print('\\nR2= %.2f kohm'%R2b)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"",
"R2= 0.52 kohm",
"",
"R2= 2.03 kohm"
]
}
],
"prompt_number": 5
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No.8.6, Page No: 377<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Current Limiting Circuit'''",
"",
"#Variable Declaration:",
"ILmax=0.5 #Current in ampere",
"",
"#Calculations:",
"#Part 1",
"Rsc=0.7/ILmax #Calculting value of resistance",
"",
"#Part 2",
"RL=100.0 #Resistance in ohm",
"Vo=20.0 #Voltage in volt",
"",
"IL1=Vo/RL #Calculating current",
"",
"#Part 3",
"RLn=10.0 #Resistance in ohm",
"",
"IL2=Vo/RLn #Calculating current",
"Von=RLn*ILmax #Calculating voltage",
"",
"#Results:",
"print('Rsc= %.1f ohm'%Rsc)",
"print('\\nIL= %.1f A'%IL1)",
"print('\\nIL= %.1f A'%IL2)",
"print('\\nSince IL > ILmax of 0.5A, current limiting will happen')",
"print('\\nVo= %.1f V'%Von)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Rsc= 1.4 ohm",
"",
"IL= 0.2 A",
"",
"IL= 2.0 A",
"",
"Since IL > ILmax of 0.5A, current limiting will happen",
"",
"Vo= 5.0 V"
]
}
],
"prompt_number": 2
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No. 8.7, Page No: 378<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"''' LM723 Regulator'''",
"",
"#Variable Declaration:",
"R2=10000.0 #Resistance in ohm ",
"Vo=12.0 #Output voltage in volt",
"Vref=7.15 #Reference voltage",
"",
"#Calculations:",
"R1=(Vo/Vref)*R2 - R2 #Calculating resistance value",
"R1a=R1/1000.0 #Calculating resistance value",
"",
"#Result:",
"print('\\nR1= %.2f kohm'%R1a)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"",
"R1= 6.78 kohm"
]
}
],
"prompt_number": 3
},
{
"cell_type": "markdown",
"source": [
"<h3>Example No.8.8, Page NO: 380<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Continuously adjustable power supply'''",
"",
"#Variable Declaration:",
"Vref=7.15 #Reference voltage in volt",
"Vo=5.0 #Output voltage in volt",
"",
"#Calculations:",
"k=Vref/Vo ",
"k1=k-1",
"",
"#For min voltage of 2V",
"Vom=2.0 ",
"km=Vref/Vom",
"km1=km-1.43",
"",
"R1a=10000.0 #Resistance in ohm",
"R1b=2000.0 #Resistance in ohm",
" ",
"R2=R1a/2.145 #Calculating resistance value",
"R2n=R2/1000.0 #Calculating resistance value",
"",
"R1=6000.0 #Resistance in ohm",
"R3=(R1*R2)/(R1+R2) #Calculating resistance value",
"R3n=R3/1000.0 #Calculating resistance value",
"",
"#Results:",
"print('(R1b+R2)/R2= %.2f'%k)",
"print('\\nR1 = %.2f * R2'%k1)",
"print('\\n(R1a+R1b+R2)/R2= %.3f'%km)",
"print('\\nR1a = %.3f * R2'%km1)",
"print('\\nR2= %.2f kohm'%R2n)",
"print('\\nR3= %.2f kohm'%R3n)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(R1b+R2)/R2= 1.43",
"",
"R1 = 0.43 * R2",
"",
"(R1a+R1b+R2)/R2= 3.575",
"",
"R1a = 2.145 * R2",
"",
"R2= 4.66 kohm",
"",
"R3= 2.62 kohm"
]
}
],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": true,
"input": [],
"language": "python",
"outputs": []
}
]
}
]
}
|