verticallimit
05-07-2010, 01:34 PM
I've thought about how to get the analogue instruments to operate.
These "vu Meters" are easy to find and do not cost so much. We will use digital outputs to control the needle up and down.
3 outputs corresponding to 8 steps.
4 outputs corresponding to 16 steps.
5 outputs corresponding to 32 steps.
6 outputs corresponding to 64 steps.
7 outputs corresponding to 128 steps.
I'm used three outputs for these test.
http://www.youtube.com/watch?v=YF1v5sMUua4
http://www.youtube.com/watch?v=VvE6D2rPBA8
How is it done?
1: Find out how much resistance there has to be in series with your analog gauges for it to show 100% of full voltage.
2: Let us assume that resistance must be 20 Kohm.
Then the total resistance of all six resistors together must be 20,000 ohms. All six resistors is the same size, therefore one can calculate the resistance for each resistor, because we know that the amp / flow through R1+2+3+4 is one time, through R5+6, two times and through R7 is 3 times, and overall, the amps is 6 times (1 +2 +3). Ohm law: volt = amp x resistance
3: Where we have only one resistor we know that we have only 50% of the total amp power. Therefore, the resistance must only be the double of the resistance. Therefore, 20000 x 2 = 40,000 ohms, so each resistors are 40 kohm. Or 6 x 20Kohm / 3 = 40 Kohm
Diagram
http://img195.imageshack.us/img195/9373/trinb.jpg
You can of cause select R1+2+3+4 as one resistor (4 x 40Kohm) 160 KOhm
(If you want to use the four outputs, you must count the total amp power 1 +2 +3 +4 = 10
The last resistance must then pull a current of 4 out of 10 10 x 20000 / 4 = 50000 Ohm)
The script for 3 output kontrol:
Var 1100, Link IOCP, Offset 2750 // Get APU RPM 0 - 80% IOCPServer beta offfset
{
IF V1100 < 2 // meter 0%
{
V1101 = 0 // Output 1
V1102 = 0 // Output 2
V1103 = 0 // Output 3
}
IF V1100 > 4 // First needle movment 17 %
{
IF V1100 < 10
{
V1101 = 1 // set 1
V1102 = 0
V1103 = 0
}
}
IF V1100 > 9 // Set 33 %
{
IF V1100 < 24
{
V1101 = 0
V1102 = 1 // set 2
V1103 = 0
V1104 = 0
}
}
IF V1100 > 25 // Set 17% + 33%
{
IF V1100 < 40
{
V1101 = 1 // set 1 +
V1102 = 1 // set 3
V1103 = 0
}
}
IF V1100 > 39
{
IF V1100 < 53
{
V1101 = 0
V1102 = 0
V1103 = 1
V1104 = 0
}
}
IF V1100 > 52
{
IF V1100 < 77
{
V1101 = 1
V1102 = 0
V1103 = 1
}
}
IF V1100 > 66
{
IF V1100 < 90
{
V1101 = 1
V1102 = 1
V1103 = 1
}
}
}
Var 1101, Link IOCARD_OUT, Output 11 // 17 %
Var 1102, Link IOCARD_OUT, Output 12 // 33 %
Var 1103, Link IOCARD_OUT, Output 13 // 50 %
__________________________________________________________
http://www.md80project.dk
These "vu Meters" are easy to find and do not cost so much. We will use digital outputs to control the needle up and down.
3 outputs corresponding to 8 steps.
4 outputs corresponding to 16 steps.
5 outputs corresponding to 32 steps.
6 outputs corresponding to 64 steps.
7 outputs corresponding to 128 steps.
I'm used three outputs for these test.
http://www.youtube.com/watch?v=YF1v5sMUua4
http://www.youtube.com/watch?v=VvE6D2rPBA8
How is it done?
1: Find out how much resistance there has to be in series with your analog gauges for it to show 100% of full voltage.
2: Let us assume that resistance must be 20 Kohm.
Then the total resistance of all six resistors together must be 20,000 ohms. All six resistors is the same size, therefore one can calculate the resistance for each resistor, because we know that the amp / flow through R1+2+3+4 is one time, through R5+6, two times and through R7 is 3 times, and overall, the amps is 6 times (1 +2 +3). Ohm law: volt = amp x resistance
3: Where we have only one resistor we know that we have only 50% of the total amp power. Therefore, the resistance must only be the double of the resistance. Therefore, 20000 x 2 = 40,000 ohms, so each resistors are 40 kohm. Or 6 x 20Kohm / 3 = 40 Kohm
Diagram
http://img195.imageshack.us/img195/9373/trinb.jpg
You can of cause select R1+2+3+4 as one resistor (4 x 40Kohm) 160 KOhm
(If you want to use the four outputs, you must count the total amp power 1 +2 +3 +4 = 10
The last resistance must then pull a current of 4 out of 10 10 x 20000 / 4 = 50000 Ohm)
The script for 3 output kontrol:
Var 1100, Link IOCP, Offset 2750 // Get APU RPM 0 - 80% IOCPServer beta offfset
{
IF V1100 < 2 // meter 0%
{
V1101 = 0 // Output 1
V1102 = 0 // Output 2
V1103 = 0 // Output 3
}
IF V1100 > 4 // First needle movment 17 %
{
IF V1100 < 10
{
V1101 = 1 // set 1
V1102 = 0
V1103 = 0
}
}
IF V1100 > 9 // Set 33 %
{
IF V1100 < 24
{
V1101 = 0
V1102 = 1 // set 2
V1103 = 0
V1104 = 0
}
}
IF V1100 > 25 // Set 17% + 33%
{
IF V1100 < 40
{
V1101 = 1 // set 1 +
V1102 = 1 // set 3
V1103 = 0
}
}
IF V1100 > 39
{
IF V1100 < 53
{
V1101 = 0
V1102 = 0
V1103 = 1
V1104 = 0
}
}
IF V1100 > 52
{
IF V1100 < 77
{
V1101 = 1
V1102 = 0
V1103 = 1
}
}
IF V1100 > 66
{
IF V1100 < 90
{
V1101 = 1
V1102 = 1
V1103 = 1
}
}
}
Var 1101, Link IOCARD_OUT, Output 11 // 17 %
Var 1102, Link IOCARD_OUT, Output 12 // 33 %
Var 1103, Link IOCARD_OUT, Output 13 // 50 %
__________________________________________________________
http://www.md80project.dk