Safety Features
Recommended for Middle School through High School.
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 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?
Computer Science Teachers Association (CSTA) Standards
- 2-AP-11
- Create clearly named variables that represent different data types and perform operations on their values.
- 2-AP-12
- Design and iteratively develop programs that combine control structures, including nested loops and compound conditionals.
- 2-AP-13
- Decompose problems and subproblems into parts to facilitate design, implementation, and review of programs.
- 2-AP-14
- Create procedures with parameters to organize code and make it easier to reuse.
- 2-AP-17
- Systematically test and refine programs using a range of test cases.
- 2-AP-19
- Document programs in order to make them easier to follow, test, and debug.
Coding with mBot: Self-Driving Vehicles
See other experiments from the lab book.