Shop OBEX P1 Docs P2 Docs Learn Events
Help with ultrasonic ping))) — Parallax Forums

Help with ultrasonic ping)))

HEIMDAL13HEIMDAL13 Posts: 3
edited 2009-01-27 14:45 in Robotics
Hi, I' m building a program that measures distances and catch the most long, but sometimes the ultrasonics measure bad.
example:

dibujo333sj2.th.jpg" border="0">

the ultasonic waves bounce and i have a diferent mesure than reality.
It's posible to solution this problem?

sorry for my bad english and drawing

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2009-01-27 14:45
    You have to work within the physics of the situation.

    Since the "Ping" is echo-based, you're not going to be able to get accurate distances "on the slant" as in your picture. This is why there's a kit that puts the Ping sensor on a steerable servo.

    This is not the "Ping" "Measuring bad", as you put it, it's simply the physics of the situation. So, you need to adjust for this in code -- meaning you probably need to do some tests to determine how 'slanted' the surface in front of the ping can be before the measurement becomes inaccurate.
Sign In or Register to comment.