Servers by jDrones

Reading the Voltage from ADC 3.3V pin


(Hima Bindu) #1

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.


(gmorph) #2

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 mechanism
http://ardupilot.org/copter/docs/common-rangefinder-maxbotix-analog.html
and 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, Grant.


(Hima Bindu) #3

Thanks a lot, I figured it out.