Asked
— Edited

What Kind Of Sensor Do I Need
I want to put a sensor on a robot to keep it from running off the table or down a flight of stairs. Something that can sense the drop off. What do I need for this? is there a way to configure an Ultrasonic sensor to do this?
Thanks
This will work too (depending on how low to the ground your bot is)... Basically an off/on analog switch... Short range IR sensor
These would use the analog ports and are easy to use... Roombas use this kind of sensor too to keep from falling down stairs...
A ping sensor would probably work, but I think the IR sensors are more sensitive to close objects.
Alan
The type of sensor only depends on the distance you need to measure. An IR sensor will measure short distances really well (a couple of inches) where a Ultrasonic sensor will measure a few feet. Also, the sensor you pickup for this could go further or shorter depending on the brand of the sensor. Ultrasonic isnt as good for really close up (a few inches) for the most part.
edit: It's best to hook up to an analog port just like the sharp sensors
Thanks
Alan
Back to back Alans posted to this thread