Problem with HRLV - MaxSonar -EZ (MB 1013)


Please help! We followed the instructions on the datasheet of the MaxSonar EZ sensor but it gave incorrect and constantly-changing result.
Here is the code to measure the distance to the nearest object in millimeter:
sensor.getValue()/4*5;

1 Like

What are you using the sensor for?
Does get value return the analog voltage the sensor is reading is it passing it through some A to D converter?

Also, what distances are you trying to measure? See the “Sensor Minimum Distance” and “Sensor Operation from 30cm to 50cm” sections of the data sheet. While I have not used these myself, it appears that these are not meant for close up (less than 30 or 50 cm) measurements.

Steve

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.