summaryrefslogtreecommitdiff
path: root/Electronic_Circuits_by_M._H._Tooley/Chapter12_1.ipynb
blob: f2eb51d40b3e5b80583b7109eef2259101b261f8 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:611418a55a1ce6f7d6191bc684572e25d4bc1141f66c946bcb6af8a7291dd55c"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter12-The 555 timer"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg220"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "##Ex:12.1\n",
      "import math\n",
      "C=100.*10**-9;\n",
      "t_on=10.*10**-3;\n",
      "R=(t_on/(1.1*C))/1000.;\n",
      "print'%s %.2f %s'%(\"R= \",R,\" kohm\");"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "R=  90.91  kohm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg220"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "##Ex:12.2\n",
      "import math\n",
      "C=100.*10**-6;\n",
      "t_on=60.;\n",
      "R=(t_on/(1.1*C))/1000.;\n",
      "print'%s %.2f %s'%(\"R= \",R,\" kohm\");"
     ],
     "language": "python",
     "metadata": {},
     "outputs": []
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex3-pg223"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "##Ex:12.3\n",
      "import math\n",
      "##R1=R2=R\n",
      "prf=10.;\n",
      "C=1.*10**-6;\n",
      "R=0.48/(prf*C);\n",
      "print'%s %.2f %s'%(\"R= \",R,\" ohm\");"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "R=  48000.00  ohm\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex4-pg223"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "##Ex:12.4\n",
      "import math\n",
      "prf=50.;\n",
      "C=100*10**-9;\n",
      "R=0.72/(prf*C);##in ohms\n",
      "print'%s %.2f %s'%(\"R= \",R/1000,\" kohm\");"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "R=  144.00  kohm\n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}