Colors and Lines
Use colored lines for navigation.
![engage-1-4](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltfa9eb65dbd2d0cfd/5ec7c0ed857d582712bdac33/engage-1-4.jpg?locale=en-us&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
The factory floor is set up with lines connecting the different work stations. If this works, it’ll save a lot of time because we won’t have to hardcode the movements of the Driving Base!
What are the advantages and limitations of using colored lines for navigation?
Build this extension.
![build-1-4](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltd12879ff0cadacbf/5ec7c0e9a320cd4409cdeb72/build-1-4.png?locale=en-us&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
We’ll need the Color Sensor Down extension to detect and follow lines. Build it onto the Driving Base.
Try the first two programming stacks.
![MCR-LV-1-4-Colors-and-Lines-Cover](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blt4e15119cc21e8961/5ec7c0ead6d1293eb9eff3c2/mcr-lv-1-4-colors-and-lines-cover.jpg?locale=en-us&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Set up your robot near the line. What do you see?
Calibrate the Color Sensor.
![explain-1-4](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blta8ccec75afe659d4/5ec7c0e956542b5199dbd70f/explain-1-4.png?locale=en-us&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
First, run the programming stacks that calibrate the Color Sensor and then run the line-following program again.
Why is it important to calibrate the Color Sensor?
It’s time for a challenge!
![elaborate-1-4](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltd89a99823d2d3beb/5ec7c0ef3d12bb3e9be205ae/elaborate-1-4.png?locale=en-us&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Program the Driving Base to follow the line quicker and more smoothly.
How did you do?
![evaluate](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltd0df7199dd4dccb8/5ec7c0ebf1de13036f79ac03/evaluate.png?locale=en-us&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
What did you do well? Is there anything you could’ve done better?
Now that’s smart! You can detect and follow lines to get around.