This animation demonstrates the principle of aligning to a line with two color sensors and a LEGO Mindstorms Robot Inventor robot. This is a useful concept for FIRST LEGO League competitions where you want to know exactly where you are on the field and to achieve consistent behavior. In the course lesson you will also find a live video tutorial where we enter into more details about aligning. We align the robot to a line by moving both sensors slowly until they both see a black line. When one of them sees the line we move only the other. At the end we return the first sensor back.
- 24 Mar 2022