Vernier Software and Technology
Vernier Software & Technology

Guided Navigation


In this activity, students recreate the functionality of Mode C–Line Following of the Default Program. Students learn how to read data from the Line-Follower Sensor and use that data to guide mBot’s motion. During this activity, students build and try two different types of line-following programs in addition to testing mBot on courses of varying design.


  • Practice writing code and troubleshooting when problems arise.
  • Learn how the Line-Follower Sensor works.
  • Practice using variables, "if-then-else" blocks, and loops in code.
  • Explore the difference between edge-following and traditional line-following programs for mBot.

Sensors and Equipment

This experiment features the following Vernier sensors and equipment.

Option 1

Option 2

Additional Requirements

You may also need an interface and software for data collection. What do I need for data collection?

Computer Science Teachers Association (CSTA) Standards

Create clearly named variables that represent different data types and perform operations on their values.
Design and iteratively develop programs that combine control structures, including nested loops and compound conditionals.
Decompose problems and subproblems into parts to facilitate design, implementation, and review of programs.
Systematically test and refine programs using a range of test cases.
Document programs in order to make them easier to follow, test, and debug.

Experiment C3 from Coding with mBot: Self-Driving Vehicles Activities Module Lab Book

<i>Coding with mBot: Self-Driving Vehicles</i> Activities Module book cover

Included in the Lab Book

Vernier lab books include word-processing files of the student instructions, essential teacher information, suggested answers, sample data and graphs, and more.

Buy the Book

Go to top