Shop OBEX P1 Docs P2 Docs Learn Events
detection range of PING))) sensor — Parallax Forums

detection range of PING))) sensor

kirashikirashi Posts: 4
edited 2010-10-15 01:20 in Propeller 1
May i know how to set the detection range of PING))) sensor in spin language?
because the default range is too short for my BoeBot to detect the obstacle, thanks ya:lol:

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2010-10-14 03:39
    You say the range is too short. Can you actually provide a number?
    Just off the top of my head, the PING should be working find with your robot and the range is mostly built into the hardware configuration.

    The PING PDF file, should have specific information about the range. And Parallax offers example code with all its products to verify that they are working. You might look on the product page for those files.
  • Mike GreenMike Green Posts: 23,101
    edited 2010-10-14 07:39
    There is no default range for the PING. Please read the description of how the PING works in the documentation. There is sample code available for the Propeller.

    The PING produces a pulse of ultrasound and, after a short delay, starts looking for a received echo and sets its I/O pin to output high. When the first echo is received, the PING changes its I/O pin to output low. The minimum I/O pulse width is 115us and the maximum width is 18.5ms. This pulse width is used to calculate the distance to the object based on the speed of sound.
  • kirashikirashi Posts: 4
    edited 2010-10-14 20:32
    Thanks for information provided :)
    I did read the pdf file given by mike and found that ping))) sensor cant work at 3 situation.

    The PING))) sensor cannot accurately measure the distance to an object that: a) is more than 3 meters away
    b) that has its reflective surface at a shallow angle so that sound will not be reflected back towards the sensor, or
    c) is too small to reflect enough sound back to the sensor.

    i think my problem was mentioned at b) where ping))) burst out the ultrasonic wave but cant receive the echo due to the angle of the echo reflection.

    Thanks a lot ya! i try edit my code see whether can solve the problem or not.
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2010-10-15 01:20
    I don't think that the Ping does it, but, the echo received back from more distant object will obviously be smaller than closer ones even if they present the same apparent area. The receiver would have to have a dynamic gain, running according to range, to account for this.

    I thought that the ping was capable of spotting a broom handle at 6 foot, which is better tha my homemade effort.
Sign In or Register to comment.