SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By iaditya
#164506
Design-->i have made a robot which has got two motors at the back and one castor wheel on the front end nd I have attached two infra red sensors on the front .
My aim is to move my robot on a surface without the robot falling off the surface.That is the reason i have used infra red sensors as it will detect where the surface is ending and will turn accordingly so that it doesnt fall off the surface.Also i want my robot to follow the below path
http://www.flickr.com/photos/61306507@N03/10325037905/

And i cant make this a line follower which works only for while surface
By iaditya
#164517
Yes I want to know how I should I go on programming so that it follows the path(refer to the image) and doesn't even fell off the surface
By waltr
#164518
The front IR sensors, are they pointing down?
Do they change when over a black to white surface?
What is the table color and what are the sensor outputs when on the table?
What is the sensor outputs when off the edge of the table?

Have you googled "line following robot"?? There are many, many projects written about that do line following.
Some of these also detect and "avoid table edges". I got 185,000 hits on googling "robot avoid table edges".