You are on page 1of 3

Unit 2:

mBot Hardware and Software

Lesson 11:
COMMAND BLOCKS
OBJECTIVES
After studying this lesson, you should be able to:
¥ use different Command blocks; and
¥ create a sample program using different Command blocks.

Command blocks come in different shapes designed to be connected to each other


vertically.

Block Shapes
Hat Block or Event Block
This block is used to start the script and is always placed on top of
other blocks.

Stack Blocks
A stack block is a rectangular block that can fit other blocks above or
below them. This is used to get the key commands executed.

RoboClass - RoboJuno 1
Looks Block is for display charter with LED matrix.

Show Block is for turning on LED lights and playing sounds.

Action Block is for DC motor movements.

Control Block is for executing command action from the script.

Sensing Block is for executing command for sensors.

Reporter Blocks
Each reporter block contains a value that can be a numerical value or character string. This can
be used in any script that requires data but cannot be used independently.

It is typically located at the operators block and sensing block.

Copyright 2021 EduLearn Technologies


Boolean Blocks
A Boolean block contains a condition, which can be either “true” or “false”.  

It is typically located at the operators block and sensing block.

Cap Blocks
A cap block ends a script or a project. It can only be placed under all the other blocks.

RoboClass - RoboJuno 1

You might also like