Introduction
In this activity, students gain additional experience using an input (sensor data) to change an output (light an LED). Initially, students simply turn on the LED. Then they improve the program to control the LED with greater nuance.
Objectives
- Collect and use data to set levels in the mBotâ„¢ program.
- Practice writing code, uploading and running a program on mBot, and troubleshooting code
when problems arise. - Gain additional experience with the use of inputs and outputs.
- Use variables.