The image below highlights the area where it is above
black_line_L - 100
and
black_line_R - 100
. Note that
we need to do this for the left and right line following sensor due to the slight differences. As a result, anything
above
~875
for the left line following sensor (as indicated by the red line) is probably a dark surface. Additionally,
anything above
~892
for the right line following sensor (as indicated by the black line) is probably a dark surface.
As we turn on the motors for the micro:bot and view the data, the output will become noisy instead of being a
steady output. You'll also see the output become slightly bigger when ever the motors are turned on whenever it
tries to follow a dark black line. The image below highlights the area when both sensors see a dark black line.
When this happens, the micro:bot will drive forward.
The image below shows when the left line following sensor (when it is above
black_line_L - 100
) sees a dark
black line. The motors turn on and tries to move toward the line on the left. Note that the right line following sensor
stays around the same value but becomes noisy.