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:22e515cfdcb31a0dc094c823dd4160ebc2cdde6bfeeb65b5dbdb65b6ac7c27a6"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 14 Signal conditioning"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 14.2 Page no 508"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Va=2 #Volts\n",
"Vb=1 #Volts\n",
"Vc=3 #Volts\n",
"R=3000.0 #ohm\n",
"Rf=1000 #ohm\n",
"Rom=270 #ohm\n",
"\n",
"#Calculation\n",
"V0=-(Rf/R)*(Va+Vb+Vc)\n",
"\n",
"#Result\n",
"print\"The output voltage is \", V0,\"Volts\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The output voltage is -2.0 Volts\n"
]
}
],
"prompt_number": 9
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 14.3 Page no 519"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"R1=2.2*10**3 #ohm\n",
"Rf=10*10**3 #ohm\n",
"R=120.0*10**3 #ohm\n",
"E=5 #volts\n",
"a=-1000 \n",
"T1=-25 #degree C\n",
"T=100 #degree C\n",
"\n",
"#Calculation\n",
"R0=a*T1\n",
"V0=-((R0*E)/(2.0*(2*R+R0)))*(Rf/R1)\n",
"R2=a*(T+T1)\n",
"V1=-((R2*E)/(2.0*(2*R+R2)))*(Rf/R1)\n",
"\n",
"#Result\n",
"print\" The output voltage is at 0 degree C is \", round(V0,2),\"Volts\",\"\\n The output Voltage at 100 Degree C is \",round(V1,2),\"volts\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
" The output voltage is at 0 degree C is -1.07 Volts \n",
" The output Voltage at 100 Degree C is 5.17 volts\n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 14.4 Page no 521"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"V0=1.5 #Volts\n",
"E=10 #Volts\n",
"R=100 #ohm\n",
"Rf=100 #ohm\n",
"\n",
"#Calculation\n",
"R0=(V0*R)/(E*Rf)\n",
"\n",
"#Result\n",
"print\"The change in resistance of each gauge element is \", R0,\"ohm\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The change in resistance of each gauge element is 0.15 ohm\n"
]
}
],
"prompt_number": 16
}
],
"metadata": {}
}
]
}
|