summaryrefslogtreecommitdiff
path: root/Basic_Electronics_(Electronics_Engineering)_by_J.B.Gupta/chapter14.ipynb
blob: e1196f928eaa5d84ae0d25fe076d6b1d24ab2b29 (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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#Chapter 14 , Electronics Instruments"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example 14.1 , Page Number 516"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Value of shunt resistance required for the instrument :  0.0500025 ohm.\n"
     ]
    }
   ],
   "source": [
    "#Variables\n",
    "\n",
    "Im = 50.0 * 10**-6                     #Full scale deflection current (in Ampere) \n",
    "Rm = 1.0 * 10**3                       #Instrument resistance (in ohm)\n",
    "I = 1.0                                #Total current to be measured (in Ampere)\n",
    "\n",
    "#Calculation\n",
    "\n",
    "RS = Rm/(1/Im - 1)                     #Resistance of ammeter shunt required (in ohm)\n",
    "\n",
    "#Result\n",
    "\n",
    "print \"Value of shunt resistance required for the instrument : \",round(RS,7),\"ohm.\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example 14.2 , Page Number 518"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Required series resistance  99900.0 ohm.\n"
     ]
    }
   ],
   "source": [
    "#Variables\n",
    "\n",
    "Im = 1.0 * 10**-3                      #Full scale deflection current (in Ampere) \n",
    "Rm = 1.0 * 10**2                       #Instrument resistance (in ohm)\n",
    "V = 100.0                              #Voltage to be measured (in volts)\n",
    "\n",
    "#Calculation\n",
    "\n",
    "R = V/Im - Rm                          #Required series resistance (in ohm) \n",
    "\n",
    "#Result\n",
    "\n",
    "print \"Required series resistance \",R,\"ohm.\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example 14.3 , Page Number 528"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Resolution for full scale of range 1 V : 0.001 V.\n",
      "Resolution for full scale of range 10 V :  0.01 V.\n",
      "Total possible error :  0.015 V.\n"
     ]
    }
   ],
   "source": [
    "#Variables\n",
    "\n",
    "num = 3.0                   #Number of full digits on display\n",
    "\n",
    "#Calculation\n",
    "\n",
    "R = 1/10**num               #Resolution\n",
    "V1 = 1 * R                  #Resolution for full scale of range 1 V (in volts) \n",
    "V10 = 10 * R                #Resolution for full scale of range 10 V (in volts)\n",
    "dig = 5.0 * 1/10**3         #Least significant digit\n",
    "toterror = 0.5/100 * 2 + dig #total possible error (in volts)\n",
    "\n",
    "#Result\n",
    "\n",
    "print \"Resolution for full scale of range 1 V :\",V1,\"V.\"\n",
    "print \"Resolution for full scale of range 10 V : \",V10,\"V.\"\n",
    "print \"Total possible error : \",round(toterror,3),\"V.\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example 14.4 , Page Number 528"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Resolution of 1 V range is  0.0001 V.\n",
      "Any reading upto 4th decimal can be displayed.\n",
      "Hence 0.5243 will be displayed as 0.5243.\n",
      "Resolution of 10 V range is  0.001 V.\n",
      "Any reading upto 3rd decimal can be displayed.\n",
      "Hence 0.5243 will be displayed as 0.524 instead of 0.5243.\n"
     ]
    }
   ],
   "source": [
    "#Variables\n",
    "\n",
    "num = 4.0                   #Number of full digits on display\n",
    "\n",
    "#Calculation\n",
    "\n",
    "R = 1/10**num               #Resolution\n",
    "V1 = 1 * R                  #Resolution for full scale of range 1 V (in volts) \n",
    "V10 = 10 * R                #Resolution for full scale of range 10 V (in volts)\n",
    "\n",
    "#Result\n",
    "\n",
    "print \"Resolution of 1 V range is \",V1,\"V.\\nAny reading upto 4th decimal can be displayed.\\nHence 0.5243 will be displayed as 0.5243.\"\n",
    "print \"Resolution of 10 V range is \",V10,\"V.\\nAny reading upto 3rd decimal can be displayed.\\nHence 0.5243 will be displayed as 0.524 instead of 0.5243.\""
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}