Hi,
I've added 5x POT inputs to a long program, but they're acting strangely.
Here's the CODE section:
'_____________________________________________________________________
Adcin 0, ch1 'Read AILERON
Adcin 1, ch2 'Read ELEVATOR
Adcin 2, ch3 'Read THROTTLE
Adcin 3, ch4 'Read RUDDER
Adcin 4, ch5 'Read SPARE
WaitMs 50
'rled = 0
'If ch1 > 250 Then rled = 1
'If ch2 > 128 Then rled = 1
'If ch3 > 128 Then rled = 1
'If ch4 > 128 Then rled = 1
If ch5 > 50 Then rled = 1 'Only testing this channel
If ch5 <= 50 Then rled = 0 'Only testing this channel
'_____________________________________________________________________
When any channel is moved over its full range, the LED switches 'ON', but with drop out 'OFF' sections, at regular places.
Does anyone know what's happening please?
(NOTE [ ' ] = commented out of program
EDIT:
I measured the voltages when the LED switches.
Below 240Mv OFF
0.9 v OFF
1.8V OFF
All other times ON.
Camerart.
I've added 5x POT inputs to a long program, but they're acting strangely.
Here's the CODE section:
'_____________________________________________________________________
Adcin 0, ch1 'Read AILERON
Adcin 1, ch2 'Read ELEVATOR
Adcin 2, ch3 'Read THROTTLE
Adcin 3, ch4 'Read RUDDER
Adcin 4, ch5 'Read SPARE
WaitMs 50
'rled = 0
'If ch1 > 250 Then rled = 1
'If ch2 > 128 Then rled = 1
'If ch3 > 128 Then rled = 1
'If ch4 > 128 Then rled = 1
If ch5 > 50 Then rled = 1 'Only testing this channel
If ch5 <= 50 Then rled = 0 'Only testing this channel
'_____________________________________________________________________
When any channel is moved over its full range, the LED switches 'ON', but with drop out 'OFF' sections, at regular places.
Does anyone know what's happening please?
(NOTE [ ' ] = commented out of program
EDIT:
I measured the voltages when the LED switches.
Below 240Mv OFF
0.9 v OFF
1.8V OFF
All other times ON.
Camerart.
Last edited: