Hi, I am planning on creating a line follower robot, and I ran across something called PID, and I am trying to understand this concept and how it can be implemented in a line follower robot.
What I do understand is that this is a control method used to set the current position of something, or current value, to a set point in a short amount of time. Is this correct? Also, I'm assuming this can be used with a line follower robot to move the robot back to it's set point, which would be it centered right above the line.
So, I guess my question(s) is how would you use this control method in your sketch? What code do you need to write to do this? How exactly does it work? What does it do? Do I need a library?(Example code would be awesome)
I really would like to understand this so I could implement it in a line follower robot, and possibly a self-balancing robot.
Any help would be great. :)