Attention: Safety Recall of Vernier Go Direct Charge Station. Click to learn more.



Autonomous Parking

Experiment #M11 from Coding with mBot: Self-Driving Vehicles


During this activity, students practice their mBot programming skills by guiding mBot through two parking scenarios: parallel parking and angled parking.

NOTE In this activity, students are presented with a set of scenarios 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 (autonomous parking).
  • Apply an understanding of the Ultrasonic Sensor to mimic the actions of real-world autonomous vehicles.
  • Troubleshoot coding issues when problems arise.

Sensors and Equipment

This experiment features the following sensors and equipment. Additional equipment may be required.

Ready to Experiment?

Ask an Expert

Get answers to your questions about how to teach this experiment with our support team.

Purchase the Lab Book

This experiment is #M11 of Coding with mBot: Self-Driving Vehicles. The experiment in the book includes student instructions as well as instructor information for set up, helpful hints, and sample graphs and data.

Learn More