summaryrefslogtreecommitdiff
path: root/A_Textbook_of_Applied_Electronics_by_R_S_Sedha/chapter36_5.ipynb
blob: 82205bce142ee64ade9d824dfeb04e14ccb61bd7 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:18142c4d926311a435ed592a7ec40be6e57bd0d23bda115aad3c84afb60326d1"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 36 , Basic Op-Amp Applications"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 36.1 , Page Number 920"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variables\n",
      "\n",
      "R1 = 1.0 * 10**3                #Resistance (in ohm)\n",
      "R2 = 100.0 * 10**3              #Resistance (in ohm)\n",
      "f1 = 159.0                      #Frequency (in Hertz)\n",
      "\n",
      "#Calculation\n",
      "\n",
      "C = 1.0/(2*math.pi*R2*f1)       #Capacitance (in Farad) \n",
      "\n",
      "#Result\n",
      "\n",
      "print \"Capacitance required in the circuit is \",round(C * 10**6,2),\" micro-Farad.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Capacitance required in the circuit is  0.01  micro-Farad.\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 36.2 , Page Number 921"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variables\n",
      "\n",
      "R1 = 1.0 * 10**3                #Resistance (in ohm)\n",
      "Rf = 51.0 * 10**3               #Resistance (in ohm)\n",
      "Cf = 0.01 * 10**-6               #Capacitance (in Farad)\n",
      "\n",
      "#Calculation\n",
      "\n",
      "f = 1.0/(2*math.pi*Rf*Cf)       #Frequency (in Hertz)\n",
      "fmin = 10* f                    #Minimum frequency required (in Hertz)     \n",
      "\n",
      "#Result\n",
      "\n",
      "print \"The cut-off frequency of an integrator circuit is \",round(f),\" Hz.\"\n",
      "print \"Minimum non-linear operating frequency is \",round(fmin),\" Hz.\"\n",
      "\n",
      "#Printing mistake about the value of Cf. It should be 0.01 micro-Farad."
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The cut-off frequency of an integrator circuit is  312.0  Hz.\n",
        "Minimum non-linear operating frequency is  3121.0  Hz.\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 36.3 , Page Number 922"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variables\n",
      "\n",
      "R1 = 10.0 * 10**3                     #Resistance (in ohm)\n",
      "C1 = 0.01 * 10**-6                    #Capacitor (in Farad)\n",
      "\n",
      "#Calculation\n",
      "\n",
      "f2 = 1.0/(2*math.pi*R1*C1)            #Frequency (in Hertz)\n",
      "fmax = f2 / 10.0                      #Maximum linear operating freqeuncy (in Hertz)\n",
      "\n",
      "#Result\n",
      "\n",
      "print \"Cut-off frequency is \",round(f2,1),\" Hz.\"\n",
      "print \"Maximum linear operating frequency is \",round(fmax),\" Hz.\"\n",
      "\n",
      "#Printing mistake in book about the value of f2."
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Cut-off frequency is  1591.5  Hz.\n",
        "Maximum linear operating frequency is  159.0  Hz.\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 36.4 , Page Number 924"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variables\n",
      "\n",
      "R1 = R2 = 51.0 * 10**3                    #Resistance (in ohm)\n",
      "C1 = C2 = C =  0.001 * 10**-6             #Capacitance (in Farad) \n",
      "\n",
      "#Calculation\n",
      "\n",
      "fo = 1.0/(2*math.pi*R1*C1)                #Resonant frequency (in Hertz)\n",
      "\n",
      "#Result\n",
      "\n",
      "print \"The frequency of oscillations is \",round(fo,1),\" Hz.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The frequency of oscillations is  3120.7  Hz.\n"
       ]
      }
     ],
     "prompt_number": 4
    }
   ],
   "metadata": {}
  }
 ]
}