Vernier Software and Technology
Vernier Software & Technology

Driving Safely

Introduction

Self-driving vehicles have a number of features designed to keep occupants safe. In this activity, students program some of these features into mBot.

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.

Objectives

  • Practice writing code for mBot to complete a task (forward collision warning, automatic emergency braking).
  • Apply an understanding of the mBot Ultrasonic Sensor to mimic the safety features of realworld autonomous vehicles.
  • Learn how to use the mBot Light Sensor to detect low light conditions and trigger a change in mBot's speed.
  • 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?

Coding with mBot: Self-Driving Vehicles

See other experiments from the lab book.

C1Manual Drive
C2Obstacle Avoidance
C3Guided Navigation
C4Safety Features
C5Cruise Control
C6Driving Outside the Lines
C7Security and Emergency Systems
C8Autonomous Parking and mBot-to-mBot Communication
C9Changing Lanes
M1Driving mBot
M2Teaching mBot to Drive by Itself
M3Point, Pivot, Swing!
M4Simplifying with Loops
M5Watch the Road
M6Walk the Line
M7Avoiding Obstacles
M8Use Your Lights!
M9Sounds and Security Systems
M10Driving Safely
M11Autonomous Parking
M12Put mBot to Work
M13Give mBot Some Personality

Experiment M10 from Coding with mBot: Self-Driving Vehicles Lab Book

<i>Coding with mBot: Self-Driving Vehicles</i> 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