Vernier Software and Technology
Vernier Software & Technology

Put mBot to Work


For safety reasons, when self-driving vehicles first hit the road, they will most likely be tasked jobs such transporting goods or cleaning streets rather than carrying passengers. In this activity, students program mBot to clear a parking lot of snow using the Line-Follower Sensor to keep mBot in the parking lot.

NOTE In this activity, students are presented with a scenario designed to engage their creativity and challenge their coding skills; step-by-step directions are not included as the activity is intended for students who are familiar with programming mBot using the mBlock Blockly app.


  • Practice writing code for mBot to complete a task (clearing a parking lot of snow).
  • Use the mBot Line-Follower Sensor to detect a line and mimic the actions of real-world vehicles.
  • Troubleshoot coding issues when problems arise.

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?

Experiment M12 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