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

Shop

Experiments​

Security and Emergency Systems

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

Introduction

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.

Objectives

  • 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 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 #C7 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