how do you awoid that your robot drive over the cleff, or down the stairs?
Cant find any solution, as it have to know that the edge is there in time to either stop, or drive around it. And right now i cant see any way that ultrasonic, IR or any other sensor that can detect that kind of ting from a distance.
I tried the Sharp IR distance sensor on my 1069-e1 (search for it).
It worked. With just one sensor, I was able to detect obstacles in front of the bot. And by tilting down the sensor by maybe 10-20 degrees, I also detected the absence of a floor in front of the bot.
A cliff detector that detects you just went over the cliff, will only be beneficial if your bot lives in RoadRunner’s world. Meep Meep!
It did not work perfectly though. But that made for funny video. The fault was in the coding by the way. The sensor worked beautifully.
If you point the IR at the floor ahead of the bot, then you know there’s a drop when the IR detector stops seeing a reflection. If the reflection can still be detected, then you know there’s more floor ahead.