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?
Analog output voltage low
Hi,
are you trying to drive a relay at the time you're reading it? what does the output look like on the scope, if you have one? note the analog/pulse outputs are current limited to about 50mA (they are polyfuse protected).
Note the outputs are dip-switch settable to be in either PWM or analog output mode. These dip-switches are on-board the unit.
If you're wanting to simply activate an output you can configure one of the GPIO's to be in output mode. This has to be set in firmware settings as well as moving the jumper on-board. When configured as output the port can drive up to 1A via a self-protected mosfet.
See the installation guide for more info on the jumper and DIP switch settings.
http://www.autosportlabs.net/RaceCaptur ... tion_guide
Let us know what you find out!
are you trying to drive a relay at the time you're reading it? what does the output look like on the scope, if you have one? note the analog/pulse outputs are current limited to about 50mA (they are polyfuse protected).
Note the outputs are dip-switch settable to be in either PWM or analog output mode. These dip-switches are on-board the unit.
If you're wanting to simply activate an output you can configure one of the GPIO's to be in output mode. This has to be set in firmware settings as well as moving the jumper on-board. When configured as output the port can drive up to 1A via a self-protected mosfet.
See the installation guide for more info on the jumper and DIP switch settings.
http://www.autosportlabs.net/RaceCaptur ... tion_guide
Let us know what you find out!