Day 3: Loops and Line Following
Today we will learn about loops and line following. Line following algorithms are well studied in robotics. As we investigate these algorithms, we will gain more experience using conditionals, loops, and our color sensor.
- Unplugged activity: Relay Races
- Lesson: Loops and Line Following
- Lab: Mr. Grabs Saves the Trolls
Resources
Lab
We will use the vehicle described in this build to create Mr. Grabs. Then we will implement a simple line following algorithm using loops and conditionals to clear an imaginary road of obstacles and help the trolls find each other!