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




In this activity, students learn about variables and gain experience using flowcharts as a tool to help them think logically through their programming tasks. The flowchart example gives students exposure to the tool and helps students begin to understand some of the subtleties of the programming commands.


  • Practice writing code, uploading and running a program on mBot™, and troubleshooting code when problems arise.
  • Understand when and how to use variables.
  • Collect and use data from a potentiometer to set levels in the mBot program.
  • Practice skills from previous activities, including adding comments to programs.
  • Engineer the physical design of a robot, including consideration for the user interface.
  • Practice using flowcharts.

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 #3 of Coding with mBot: Life Hacks. 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