blob: e7f4dcdb613a99a75fa3acddcca8ad590cf4f43f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//calculating resistance of manganin shunt to extend range to 1 A
R=10 //resistance of instrument coil
I=10D-3 //current through coil
V=I*R
Is=1-I //shunt current
r=V/Is
mprintf("Resistance of manganin shunt to extend range to 1 A=%f ohm\n", r)
//calculating value of series resistance to extend the range to 15 V
v=15-V //voltage across series resistance
Rs=v/I
mprintf("Series resistance to be connected to extend range to 15 V=%d ohm", Rs)
|