ping sensor
ltmhall
Posts: 102
Can the ping Ultrasonic Sensor be used for obstacle avoidance, for stationary objects.
Comments
http://www.parallax.com/detail.asp?product_id=28015
-Stephanie Lindsay
Editor, Parallax Inc.
The "but..."?· You must write the BS2 program to manage the Ping and the data which the Ping provides. And, you must understand enough about your "obstacle"(s) --e.g., their shape, size, echoing characteristics, movement (speed, direction of both the Ping and the obstacle target(s)), so that your program can account for the variations in echo signals (and other attributes/situations/elements)·that your system must know about, to detect and to avoid (or seek out).
That's the fun....· Defining/describing/understanding the detailed characteristics·of the system you want to build, and then designing the microcontroller program to handle those static and dynamic characteristics.
PAR
The latest Stamps in Class book, Smart Sensors and Applications, has a chapter about the Ping))) sensor that addresses a few of those details he mentions, and also shows you how to account for air temperature affecting the speed of sound in your measurements, if that is an issue. You can download the book here:
http://www.parallax.com/detail.asp?product_id=28029
In addition to the sample code that goes with the "Roaming with Ping" video, you can find a couple more applications with source code to study in·the Stamps in Class Mini Projects sticky-thread:
·Boe-Bot + Ping))) Ultrasonic Rangefinder
· Ping)))Dar - a Radar Style Display
· Scan for and Go to Closest Object
I would like to know basic stuff like variance in measurments. My search in the PING))) docs didn't reveal if it was plus or minus 3inches or any variances along those lines.
From personal experience, my Ping))) projects had accuracy of·+/-·1 cm/m·in controlled·conditions (solid cylindrical object, in direct line of sight, temperature measured and used to scale the speed of sound in air).· There's a little more variation up close when the sides of the distance triangle (speaker -> object -> transducer) since the sides of the triangle approach equilateral.·
In robotic circumstances, if you don't know the shape of the object, the angle of its reflecting surface with respect to the bot, its acoustic properties (solid·vs. stuffed animal), well then it's the measurement is pretty much anybody's guess.··That's where extensive testing comes in·to make sure your robot can detect the object and its distance given the variety of conditions you expect to subject it to.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
What do you mean by "a ladder path"? Are you speaking of a squared zig-zag route like the following pattern:
··· _
|_| |_|
Generally speaking regardless of what type of structured travel you are attempting, any sort of obstacle detector can be used. You (via the program) will be required to get the mobile platform back on track, after the object is avoided. Please remember that the PING)) sensor was designed as a distance measuring device although it can be used in other manners. You might want to consider infrared sensors as well, as a less expensive alternative, unless this is an outdoor application.
As far a sample programs are concerned, that will depend highly on what it is that you're actually trying to do. It sounds rather like maze solving (if you were to treat it that way) so someone may have some code like that.
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 3/26/2007 7:36:36 AM GMT
operates indoors at room temperature on a linoleum floor.....your results may vary
Edit - Sorry for the post - I just saw how old the original post is. The guy is probably a in Ping))) expert by now!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Whit+
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
Bryan
With the servo controller, you can have the Ping scanning while the robot is in motion. You can use the ramp parameter on the serial command to the controller to slowly sweep the ping assembly from one side to the other without any additional input from the stamp. This allows you to continuously read the ping while the servo controller takes care of moving the sensor head.
One thing that I have learned about the Ping. Upolstered furniture, including the dust ruffle on our bed, is almost invisable to the Ping!