Recommended for Middle School through High School.
In this activity, students simulate various security and emergency systems using different sensors and devices on mBot:
- A car alarm (triggered by the Line-Follower Sensor)
- A security system (requires a "keyless entry" code be entered on the IR Remote Control)
- The sirens and warning lights on an emergency vehicle (using the Buzzer and the LEDs) Students also learn to use mBlock’s "timer" block to control code execution.
- Practice writing, running, and troubleshooting mBot code.
- Learn how to use the "timer" block to control code execution, allowing for mBot to do multiple things simultaneously.
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.
- Document programs in order to make them easier to follow, test, and debug.