blob: 46f9afa6759fea0a5d2473255a4024acf3ac2fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
i=20D-3 //current throught the coil
r=4 //resistance of coil
V=i*r
//when total current to be measured=2 A
Is=2-i //shunt current
R1=V/Is
mprintf("Resistance of shunt for 2A range=%f ohm\n",R1)
//when total current to be measured=4 A
Is=4-i //shunt current
R2=V/Is
mprintf("Resistance of shunt for 4A range=%f ohm\n", R2)
//when total current to be measured=6 A
Is=6-i //shunt current
R3=V/Is
mprintf("Resistance of shunt for 6A range=%f ohm",R3)
|