pid tuning for line following robot

Hi guys. I was designing a line following robot and got some problems about the PID tuning. According to the tutorials online, I should start with tuning Kp in terms of speed.

However, I found it is impossible for my robot to finish the whole track with just pure P controll(especially the sharp corner).

So I am confused about how to tune the kP. Do I need to pick a particular part of the track?

Hi shen, I am also doing a line follower robot soon and I had found this website, which has helped me a lot. So it may be helpful to you too.

SMM2: Hi shen, I am also doing a line follower robot soon and I had found this website, which has helped me a lot. So it may be helpful to you too.

Thanks a lot! Now my problem is my robot can't really following the track with pure P control. Do you have the same problem?

Do you have the same problem?

I am also doing a line follower robot soon

I haven’t quite started the robot, but I’ve been studying PID so I can have a good understanding of it when I start building it.

Now my problem is my robot can’t really following the track with pure P control.

If you read the “Tuning the Kp, Ki, Kd Values” section from that website he talks about using only Proportional and some ways to help you tune the Kp value. Now when you mentioned how it doesn’t follow the line well on sharp corners, I think that’s pretty normal because of what I’ve understood is that when you incorporate Derivative it helps a lot with the sharp corners.

Have you made some progress?