Ping and Couches, Chairs, and Carpet
Bill Chennault
Posts: 1,198
All--
What will Ping)) tell me about fabric-covered couches, chairs, and carpet? All I want to do is avoid HITTING a couch or chair, so just a few inches alert is good enough. I would like to be able to use Ping)) looking straight down to indicate when the the skid-steer--Ugly Buster!--is about to run off the floor and fall down the stairs.
Thanks!
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
What will Ping)) tell me about fabric-covered couches, chairs, and carpet? All I want to do is avoid HITTING a couch or chair, so just a few inches alert is good enough. I would like to be able to use Ping)) looking straight down to indicate when the the skid-steer--Ugly Buster!--is about to run off the floor and fall down the stairs.
Thanks!
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
Comments
I suspect for the "drop off" detection that either a PING or an IR distance sensor would work unless you have carpeted stairs. Still, the distances are short and either might work. The trick is to get the sensor mounted far enough ahead of the Buster to see the drop off in time to stop.
You may need to include IR sensors fused with the PING))) readings to catch things the PING))) may miss due to surface composition or angle. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thank you. I will experiment. Ugly Buster can stop very fast, so just a little notice might be sufficient.
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
-Stephanie
Ugly Buster has two inches of ground clearance. I will be sure to report results of my experiments.
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
For each reading you get (including averaged readings) you set a threshold where if the reading is outside of that range it is ignored as a bad reading.· This threshold is in relation to the previous final value.·This has to be done before the next reading is averaged so you can ignore these extreme limit readings. The gap for the threshold really depends on whether you’re using the raw data or calculating distance first. Here’s a kind of pseudo-code procedure:
- Get sensor data
- Convert reading to inches/cm if needed
- Is current reading outside threshold of previous reading +/-
- If yes ignore current reading and start over
- If no then average with previous reading
- Make navigational decisions here
The next thing is that when using the HB-25 or any other device that doesn’t require the BASIC Stamp to do refreshing, you have extra time to handle these extra tasks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thank you for all the good ideas! I imagine I will try all, or most of·them. Using Ping)) in conjunction with an IR device sounds like a place I might start. If EITHER one says there is something dead ahead, "stop and think."
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
Yes, we used to use Bubble Sort and Trickle Sort to alphabetize string data…These are the same except the order. Then there was heap sort and some other methods. In this case though I immediately eliminate what I consider bad readings and average the rest. The algorithm is made slightly more complex by the fact that it has to account for something suddenly showing up at close range. In this case one reading is lost, but at the speed we’re talking you wouldn’t even notice it. There are merits to your concept because it would avoid some of these exceptions. It’s always the exceptions that hang people up when trying to implement a concept. But writing an example is difficult because of the unique nature of the code to the application. Still, I will post what I have when I finish with the robot a recently posted a picture of. It uses the above concepts. Take care.
P.S. - I don't have the sensor fusion concept hammered out myself.· Still trying to figure out how to best implement it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support