Recommended for Middle School through High School.
During this activity, students explore one of the more popular safety features found in cars today, cruise control. Students use the Ultrasonic Sensor and the Line-Follower Sensor simultaneously to simulate Adaptive Cruise Control. Students also learn how to use subroutines to simplify their programs.
- Practice writing, running, and troubleshooting mBot code.
- Apply an understanding of the mBot Ultrasonic and Line-Follower Sensors to mimic realworld safety features in newer cars.
- Learn how to simplify code by using subroutines.
Sensors and Equipment
This experiment features the following Vernier sensors and equipment.
You may also need an interface and software for data collection. What do I need for data collection?
Computer Science Teachers Association (CSTA) Standards
- Create clearly named variables that represent different data types and perform operations on their values.
- Design and iteratively develop programs that combine control structures, including nested loops and compound conditionals.
- Decompose problems and subproblems into parts to facilitate design, implementation, and review of programs.
- Create procedures with parameters to organize code and make it easier to reuse.
- Systematically test and refine programs using a range of test cases.
- Document programs in order to make them easier to follow, test, and debug.