Calibration
When you turn on the robot it will calibrate itself for 10 seconds. During this time you need to move the robot over the line so the sensors can learn what the line looks like.
PID Loop
The robot uses a kind of math to follow the line. It calculates an error value based on how the robot is from the line. The robot then uses this error value to adjust its speed.
PID value is calculated using the error value and some special numbers called Kp, Ki and Kd. The robot uses these numbers to adjust its speed and stay on the line.
Line-Loss Recovery
If the robot loses the line it will spin around until it finds it again. It does this by remembering the direction it was going and spinning in that direction.
Bluetooth PID Tuning
You can adjust the robots settings using Bluetooth. You can send packets of data to the robot to change its Kp, Ki and Kd values. This allows you to tune the robots performance.