blob: 6e06fc842b97c24b2f017d71ce3f5355d92495f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//calculating deflecting torque
N=50 //no. of turns in coil
B=.12 //flux density in Wb/m^2
A=5D-4 //area of coil in m^2
I=15D-3 //current through coil
Td=N*B*A*I
mprintf("Deflecting torque=%fD-6 N-m\n",Td*10^6)
//calculating deflection of pointer
C=18D-7 //constant for spring in N-m per degree
Tc=Td //controlling torque
theta=Tc/C
mprintf("Deflection=%d degrees", theta)
|