detection range of PING))) sensor
kirashi
Posts: 4
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
because the default range is too short for my BoeBot to detect the obstacle, thanks ya
Comments
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.
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.
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.
I thought that the ping was capable of spotting a broom handle at 6 foot, which is better tha my homemade effort.