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



Autonomous Parking and mBot-to-mBot Communication

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


During this activity, students practice their mBot programming skills by guiding mBot through various parking scenarios, including finding a parking space, parallel parking, and perpendicular parking. Additionally, students learn how to use the IR transmitter and receiver (built into mCore) to send and receive messages from one mBot to another. Students use mBot-to-mBot communication to simulate a traffic light and to prevent head-on collisions between mBots.


  • Practice writing, running, and troubleshooting mBot code.
  • Learn how to use the “send mBot’s message” and “mBot’s message received” blocks to communicate from one mBot to another.

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 #C8 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