Teacher's Notes: Line Following Part 2 Pro Preview

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2322
  • 31 Jul 2024

In this lesson, students will learn how to program the robot to follow a line using if/else blocks. The algorithm is similar to the last lesson - the ducky line following.


This lesson is a great opportunity to teach students the difference between verbally expressing a task and how that relates to programming it. For example, in the last lesson, they used wait until blocks, so the task was to program the robot to turn left until it reaches black, then turn right until it reaches white. In this lesson, the robot turns left if it is on black, else it turns right.


The main task is a bit complex, so students may need help. The most common mistake is forgetting to stop the inactive motor, causing the robot to just go forward.

Here's what the program should look like:

content picture

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Level B2 - Introduction to Robotics Competitions   - Robotics with LEGO SPIKE Prime
  • 21
  • 1:03
  • 60
Image for Lesson 6 - Line Following Part 2
  • 4
  • 6
  • 7
  • 3d_rotation 1