enter image description hereI need to measure and detect a gap between two objects. I have an MB7062 (maxbotix) ultrasonic sonar sensor. Due to the wide beam of the sensor (FOV in distance of 2m is about 30cm from the center each side, that means totally 60cm,) the sensor cannot identify the gap. Is there any way to narrow its FOV so that it detects the gap?

This is the link to datasheet: http://www.warf.com/download/6439_4951_1.pdf

Sensor pin2 output:

enter image description here

  • 1
    \$\begingroup\$ Please provide a data sheet for the sensor AND indicate which circuit you are using to interface to it. \$\endgroup\$
    – Andy aka
    Mar 6 at 11:27
  • 1
    \$\begingroup\$ Hi! Welcome here, do you mean this sensor? I mean, looking at the directivity, this is an extremely narrow beam; making it any narrower will be hard as hell. What makes you thing the width of the beam is what stops it from identifying the gap? Is there something else in the beam, or how does that happen? \$\endgroup\$ Mar 6 at 11:46
  • \$\begingroup\$ Can you comment on why you think that a overly wide beam is the problem? I don't understand. \$\endgroup\$ Mar 6 at 11:50
  • \$\begingroup\$ @Andyaka The datasheet is provided, and I am only using a serial connection and observe the output in a GUI in python \$\endgroup\$ Mar 6 at 11:55
  • \$\begingroup\$ Which housing option do you have? \$\endgroup\$
    – datenheim
    Mar 6 at 11:58

1 Answer 1


The sensor operates at 42KHz. With speed of sound ~330m/s this gives a wavelength of around 8mm.

The Rayleigh Criterion allows us to approximate the imaging resolution of a system based on the diffraction limit. It is normally stated in terms of angular resolution, but a good approximation of the limit is

Resolution = Wavelength * Distance / Sensor Diameter

The source size appears to be about 25mm (based on physical dimensions in the datasheet), so at 2000mm distance, that sets a diffraction limit of ~80 wavelengths, or 640mm. This matches the observed behavior.

To get a resolution down to ~100mm @ 2m, would require a source of ~150mm in diameter. This might be possible to approximate with a custom elliptical horn (for focus at 2m), but I'm guessing this doesn't match you overall system requirements...


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.