Hi All, How to read the Voltage on ADC 3.3v pin, I have a leak sensor which gives me a digital output of 0 or 3 volts according to the wetness of the Sensor I want to read the voltage on the ADC3.3v pin.
So you can either set it up as a second battery- lots of references in this discussion thread here:https://github.com/ArduPilot/ardupilot_wiki/issues/154
or alternatively you can hijack the analogue rangefinder setup - this is what I'd do if I were you. Connect via this mechanismhttp://ardupilot.org/copter/docs/common-rangefinder-maxbotix-analog.htmland you should see values in the 2 sonarxxxxx variables that you can graph or post process from the tlog file.
Finally you could modify the code to do it properly but the above will work.
Thanks a lot, I figured it out.