- :-

Topics Covered

  • Line Tracking
  • Lesson Links

    Check Your Understanding:
    1. 1. True / False: To build a simple line tracking algorithm, you just use an if/else statement.
      You do not need a repeat loop.
    2. True
      False
    3. 2. True / False: Threshold is the average of the values read by the light and dark portions of the line.
    4. True
      False
    5. 3. True / False: The threshold value does not change according to the lighting conditions.
    6. True
      False
    Color Sensor (Line Tracking) - Mini Challenges

    Mini Challenge 1: Minefield Challenge

    In this challenge, the robot needs to move through the challenge board without coming into contact with any mines or the dividing wall.

    The robot should begin at one end of the challenge board and then use the light sensor to navigate through the northern minefield.

    Once the robot is in the safe zone, it must then traverse down and back across the southern minefield to reach the end tile.
    • Recreate the table below on any surface. Have the robot traverse the field, from start (1) to end (2) without touching obstacles or walls.

    Mini Challenge PDF[ Minefield Challenge.pdf ]

    Mini Challenge 2: Line Track for Rotations

    The robot should start at the beginning of the line and be programmed to perform the line tracking until the robot reaches the “safe zone”.

    Use the motors debugging window to see how far the robot needs to travel.
    • Recreate the table below on any surface. Have the robot start from one end (1), then follow the line and stop somewhere in the safezone (2).

    Mini Challenge PDF[ Line Track for Rotations Challenge.pdf ]