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

Shop

Experiments​

Safety Features

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

Introduction

During this activity, students explore two safety features found in many modern vehicles, Forward Collision Warning and Automatic Emergency Braking. Students replicate these safety features with mBot taking advantage of the Ultrasonic Sensor. Additionally, students use the Line-Follower Sensor in an obstacle-avoidance program, which makes it possible for mBot to detect cliffs and respond accordingly. To simulate safety features during nighttime driving, students learn to use the Light Sensor to control the speed of mBot.

Objectives

  • Practice writing, running, and troubleshooting code.
  • Apply an understanding of the Ultrasonic and Line-Follower Sensors to mimic real-world vehicle safety features.
  • Learn how to use the mBot Light Sensor.

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

SAVE/SHARE YOUR CART