summaryrefslogtreecommitdiff
path: root/electronic_instrumentation_by_H_S_Kalsi/chap2_1.ipynb
blob: 96e1d4726b8175eccd563afbbd82eb58b0f7401a (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:25c836d1606fcfdd3be702967e2c46de8c90c4ed0ada91a05ae2508868159a1c"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 2 Indicators and display devices"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.1 (a) Page no 27"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "N=100\n",
      "W=20*10**-3                                #Width of the coil in m\n",
      "A=30*10**-3                               #Depth of the coil in mm\n",
      "B=0.1                                     #flux density in wb/m**2\n",
      "I=10*10**-3                                 #current in A\n",
      "K=2.0*10**-6                                #Nm/degree\n",
      "\n",
      "#Calculation\n",
      "T=B*A*W*I*N\n",
      "x=T/K\n",
      "\n",
      "#Result\n",
      "print\"The deflection torque is \",T,\"m\"\n",
      "print\"The deflection is \", x,\"degree\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The deflection torque is  6e-05 m\n",
        "The deflection is  30.0 degree\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.1 (b) Page no 27"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "N=100\n",
      "A=20*10**-3                               #m\n",
      "d=30*10**-3                               #m\n",
      "D=0.1                                     #Wb/m**2\n",
      "t=30*10**-6                               #Nm\n",
      "\n",
      "#Calculation\n",
      "I=(t/(D*d*A*N))*10**3\n",
      "\n",
      "#Result\n",
      "print\"The current through the moving coil is \", I,\"mA\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The current through the moving coil is  5.0 mA\n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}