|
Re: Ultrasonic analog input?
We have had more luck with an AnalogChannel object instead of Ultrasonic. Then the getAverageVoltage method returns a value between 0-5v which you can use a scale factor to translate into a distance. We found the scale factor on the stats sheet that came with the rangefinder.
|