Looking for line following algorithms

I'm looking for Line following Algorithms that can be used with two sensors or possibly four.

I'm using this robot www.irobot.com/create/

Please help, so far I only found these ones

  • http://www.wrighthobbies.net/guides/linefollower.htm
  • http://linefollower-robot.blogspot.com/2008/02/simple-algorithm-for-linefollower-robot.html

Try the search box for 'line

Try the search box for ‘line follower’.

There are many examples, but no so much for the iRobot Create specifically.

Here’s one link for this bot over at SOR http://www.societyofrobots.com/robot_iRobot_Create_mod.shtml.

I don’t know 'bout algorithms

I think that is when a blood vessel blows up in your brain…

If you are looking for some kinda super-duper line follower or line racer, you may get into some complicated code. If not, if you are just starting out, or this is your first line follower you really just need some simple code.

Basically,

if the line is being seen by the left sensors, turn right. If the line is being seen by the right sensors, turn left. That’s it. You can expand from there to turn proportionally, figure out what to do if you loose the line, etc.

What language is this irobot programmed in? --irobot is the roomba without the vac, right? --I gotta check your links…