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

Shop

Experiments​

Introduction

mBot has a set of two LEDs that can be used for all sorts of useful (and fun!) purposes. In this activity, students use the LEDs to mimic brake lights, turn signals, and emergency flashing lights.

NOTE Unlike previous activities that include step-by-step directions, this activity is a set of coding challenges designed to engage students’ creativity and challenge their coding skills. The challenges are intended for students who have done the previous activities or already have some familiarity with how to program mBot using the mBlock Blockly app.

Objectives

  • Learn how to control and change color of the mBot LEDs.
  • Practice writing code for mBot to complete a task (brake lights, turn signals, emergency vehicle lights).
  • Troubleshoot coding issues when problems arise.

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 #M8 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