Suggested Reading
Introduction to Using Multiple Line Sensors
In the previous experiment, you used a single line sensor (the middle sensor) to detect the line on the floor. That is
great for staying inside of a line, but now, you need to follow a line. That is where the other two line sensors come
in.
Essentially, you want the center sensor to detect the line, but not the other two, meaning that the robot is centered
on the line. If one of the side sensors detect a line it means that you are veering to one side or another and your
robot should correct itself. We will use the information from multiple sensors combined with an
if/else
statement
block to build a decision tree for your robot to follow. For simplicity, we will start with using just two of the line
sensors (the left and right sensors) to follow a dark black line. As you add more line following sensors to a robot,
the code can get complex. However, the robot will able to follow a line better.
Getting Started with the micro:bit
The BBC micro:bit is a compact, powerful programming
tool that requires no software installation. Read on to
learn how to use it YOUR way!