KEY TAKE AWAY POINTS:
START A BIT > Knowledge Base > This page
This page describes an algorithm for line following, for robotic vehicle using a Left-Right 2 sides line following sensor.
The sensor is typically IR LED+IR detector integrated board, we use TM016: Kitronik :MOVE mat line following and activity map for this case.
"IR light sensor" and "line following sensor" are meaning the same thing here.
The "Left" and "Right" are talked from the vehicle's point of view when driving forward
Referred by PJ009.5: Make MOVE Vehicle Line-Following
It's very helpful to use PJ009.2: Collect MOVE Vehicle Sensors Data or PJ009.2.1: Collect MOVE Vehicle Sensors Data Using VIEW OLED Display to visualize the real time sensor data so to find out the threshold values to judge the deviation.
Below pictures are from https://circuitdigest.com/microcontroller-projects/line-follower-robot-using-arduino
Too much to Left!
Left value >> Right value
Difference > 100
Good in the middle
Left value ≈≈ Right value
Difference <= 100
Too much to Right!
Left value << Right value
Difference > 100
Arrived at intersection
Left value ≈≈ Right value
Difference <= 100