Analog output voltage low
Posted: Fri Jun 21, 2013 3:42 am
I worked past the script writing difficulties described at http://www.autosportlabs.org/viewtopic. ... 9396#19396 to get to this point.
I have a switch wired from the +5v reference to an analog input. I get that input just fine. Value is 0 with switch off and 1023 with switch on. I wrote some Lua in the onTick to setAnalogOut(0, 5) if the switch is on. Using a volt meter, I read near nil with the switch off (as I'd expect) but unfortunately only reads 2.7v with the switch on. I'm trying to trigger a relay via this voltage.
Am I missing something either in the RC or basic electronics?
I have a switch wired from the +5v reference to an analog input. I get that input just fine. Value is 0 with switch off and 1023 with switch on. I wrote some Lua in the onTick to setAnalogOut(0, 5) if the switch is on. Using a volt meter, I read near nil with the switch off (as I'd expect) but unfortunately only reads 2.7v with the switch on. I'm trying to trigger a relay via this voltage.
Am I missing something either in the RC or basic electronics?