Go Down

Topic: my line follower (Read 2 times) previous topic - next topic


i am using an old arduino atmega 8 board



What are you using as your robot controller? You might find the PID line following section of the 3pi robot user's guide helpful. To really use PID well, you want to find a way to convert the sensor readings into a single "position" value that tells you where the line is. Ideally, the function you come up with will vary monotonically as the sensor array sweeps over the line. That is to say, as you sweep across the line, you want your position value to always increase as you move in one direction and always decrease as you move in the other. If the position value sometimes increases and sometimes decreases for the same sweep direction, the PID algorithm could result in instability problems.


5kb is lots of space.... :o


Perhaps you can use the PID library to control overshoot and improve line following?

It's in the Playground: http://www.arduino.cc/playground/Code/PIDLibrary

Sorry I can't be of more help, I haven't used it myself yet.


yeah wanted to knw how to reduce that overshoot...

Go Up