Ops Manager Extension: Line Follower Explained
2. How does a line follower work?
Each of the 6 line sensors works by shining an infrared light down at the floor below and measuring the amount of light reflected back. The more infrared light that is reflected back, the higher the number that the sensor will read.
You can read the sensors with the following line of code:
If you print the result, you will get a series of decimal numbers, all between 0 and 1. Let's learn another method for calibration and run some experiments.