Line Tracking with Edison

Let’s use Edison’s line tracking sensor to get Edison to drive until it detects a black line. This could be useful if you want your Edison to stay within a certain area (like a Sumobot ring!). 

Challenge

  • Program Edison to drive until it detects a black line
  • If Edison detects a black line, program it so that it will back up, turn away from the line and then start driving again until it detects a black line

When you are done, select the Sample Answers button below to compare answers.

  • Turn on line detection 
  • Forever loop
    • drive forwards until non-reflective 
    • drive backwards 
    • turn

    Challenge question and sample answer from [1 p. 109].