summaryrefslogtreecommitdiff
path: root/Electronic_Principles_/Chapter_1_New.ipynb
blob: e0a4b79942813cbc749faf5ee333bc0b07081207 (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
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
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "CHAPTER 1 INTRODUCTION"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1-1, Page 9"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Example 1.1.py\n",
      "#Ac voltage source has Rs 50 ohms. For what load resistance is the source stiff?\n",
      "\n",
      "#Variable declaration\n",
      "Rs=50              #source resistance(Ohm)\n",
      "\n",
      "#Calculation\n",
      "RL=100*Rs/1000     #Minimum Load resistance(KOhm)\n",
      "\n",
      "#Result\n",
      "print 'Minimum Load resistance =',RL,'KOhm'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Minimum Load resistance = 5 KOhm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1-2, Page 12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Example 1.2.py\n",
      "#Current source of 2 mA has Rs of 10Mohm. Over what range of load resistance is the current source stiff?\n",
      "\n",
      "#Variable declaration\n",
      "Is=0.002              #Current source(A)\n",
      "Rs=10000000           #internal resistance(Ohm)\n",
      "\n",
      "#Calculation\n",
      "Rl_Max=0.01*Rs/1000   #Maximum load resistance(KOhm)\n",
      "\n",
      "#Result\n",
      "print 'With 100:1 Rule, Maximum Load resistance =',Rl_Max,'KOhm'\n",
      "print 'Stiff range for current source is load resistance from 0 KOhm to',Rl_Max,'KOhm'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "With 100:1 Rule, Maximum Load resistance = 100.0 KOhm\n",
        "Stiff range for current source is load resistance from 0 KOhm to 100.0 KOhm\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1-3, Page 13"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Example 1.3.py\n",
      "#If a transistor is pumping 2 mA through RL of 10KOhm then find load voltage.\n",
      "\n",
      "#Variable declaration\n",
      "Il=0.002   #current source(A)\n",
      "Rl=10000   #load resistance(Ohm)\n",
      "\n",
      "#Calculation\n",
      "Vl=Il*Rl   #load voltage(V)\n",
      "\n",
      "#Result\n",
      "print 'Load Voltage =',Vl,'V'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Load Voltage = 20.0 V\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1-4, Page 14"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Example 1.4.py\n",
      "#What are the Thevenin voltage & resistance in Fig. 1-9a?\n",
      "\n",
      "print 'As per figure 1-9a, Calculate Thevenin resistor by opening load resistor'\n",
      "\n",
      "#Variable declaration\n",
      "Vs=72    #source voltage\n",
      "R1=6     #Resistance (KOhm)\n",
      "R2=3     #Resistance (KOhm)\n",
      "R3=4     #Resistance (KOhm)\n",
      "\n",
      "#Calculation\n",
      "Ro=R1+R2 #Resistance (KOhm)\n",
      "I=Vs/Ro\n",
      "Vab=R2*Vs/(R1+R2)         #Thevenin voltage(V)\n",
      "Rth=((R1*R2)/(R1+R2))+R3  #Thevenin Resistance(KOhm)\n",
      "\n",
      "#Result\n",
      "print 'After removing Rl current flowing through 6KOhm is',I,'mA'\n",
      "print 'Thevenin Voltage Vth =',Vab,'V'\n",
      "print 'Calculating Thevenin Resistance with considering R1 & R2 in parallel'\n",
      "print 'Thevenin Resistance =',Rth,'KOhm'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "As per figure 1-9a, Calculate Thevenin resistor by opening load resistor\n",
        "After removing Rl current flowing through 6KOhm is 8 mA\n",
        "Thevenin Voltage Vth = 24 V\n",
        "Calculating Thevenin Resistance with considering R1 & R2 in parallel\n",
        "Thevenin Resistance = 6 KOhm\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1-5, Page 15"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Example 1.5.py\n",
      "#In circuit shown in figure 1-11a, measure thevenin voltage and resistance.\n",
      "\n",
      "#Variable declaration\n",
      "Vs=72    #source voltage\n",
      "R1=2     #resistance1 (KOhm)\n",
      "R2=2     #resistance1 (KOhm)\n",
      "R3=1     #resistance1 (KOhm)\n",
      "R4=2     #resistance1 (KOhm)\n",
      "R5=1     #resistance1 (KOhm)\n",
      "R6=2     #resistance1 (KOhm)\n",
      "R7=0.5   #resistance1 (KOhm)\n",
      "RL=1     #load resistance (KOhm)\n",
      "\n",
      "#Calculation\n",
      "#from multimeter following values will be measured.\n",
      "Vth=9                     #Thevenin voltage(V)\n",
      "Rth=1.5                   #Thevenin resistance(KOhm)\n",
      "\n",
      "#Result\n",
      "print 'Thevenin Voltage Vth =',Vth,'V'\n",
      "print 'Thevenin Resistance =',Rth,'KOhm'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Thevenin Voltage Vth = 9 V\n",
        "Thevenin Resistance = 1.5 KOhm\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1-6, Page 19"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Example 1.6.py\n",
      "#Convert thevenin circuit of figure 1-14a into norton circuit.\n",
      "\n",
      "#Variable declaration\n",
      "Vs=10    #source voltage\n",
      "Rs=2     #series source resistance (KOhm)\n",
      "\n",
      "#Calculation\n",
      "IN=Vs/Rs                  #Norton current(mA)\n",
      "Rp=Rs                     #parallel source resistance(KOhm)\n",
      "\n",
      "#Result\n",
      "print 'Norton current IN =',IN,'mA'\n",
      "print 'Norton Resistance =',Rp,'KOhm'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Norton current IN = 5 mA\n",
        "Norton Resistance = 2 KOhm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}