Motors
Motor blocks are used to start, stop, position, and tune motors connected to hub ports.
Core motor command blocks
Start motor
Starts selected motor.
- Direction options: clockwise / counterclockwise
Stop motor
Stops selected motor.
Run for
Runs selected motor for specified time/angle/rotation based on block settings.
- Direction options: clockwise / counterclockwise
- Unit options:
rotations,degrees,seconds - Note: this feature requires a motor on the selected port that supports encoder-based control.
Start motor at speed
Starts motor with explicit speed value.
Run for at speed
Runs motor for a target duration/amount with explicit speed.
- Unit options:
rotations,degrees,seconds - Note: this feature requires a motor on the selected port that supports encoder-based control.
Set motor speed
Sets speed used by related motor run blocks.
Position and movement blocks
Go to position
Moves motor to target absolute position.
- Path options:
shortest path,clockwise,counterclockwise - Note: this feature requires a motor on the selected port that supports encoder-based control.
Go to relative position
Moves motor by a relative offset.
- Note: this feature requires a motor on the selected port that supports encoder-based control.
BuWizz 3 go to relative position
BuWizz 3 variant of relative positioning block.
- Note: this feature requires a motor on the selected port that supports encoder-based control.
Set relative position
Sets motor relative-position reference.
- Note: this feature requires a motor on the selected port that supports encoder-based control.
Calibrate steering rack
Calibrates steering rack neutral/reference position.
- Requirement: the motor connected to the selected port must support absolute/relative angle tracking (internal encoder).
- Mechanical requirement: steering axis movement must be physically limited to a valid range (for example with steering rack/gearing end limits).
- How it works: the block sweeps and measures the available steering rotation range, then computes calibration data used for steering configuration.
- Output behavior: block arguments write results into variables passed to the block (function-like pass-by-reference behavior). Those variables are mutated by the block and should be used to read calibration results.
Motor tuning and safety blocks
Set motor behavior at stop
Sets motor stop mode (for example brake/hold/float based on available options).
- Stop mode options:
brake,hold position,coast - Note: this feature requires a motor on the selected port that supports encoder-based control.
Set stall detection
Enables or disables stall detection.
- Note: available only for the MINDSTORMS Robot Inventor hub.
Set acceleration
Sets motor acceleration profile/rate.
- Profile options:
default,fast,balanced,smooth,slow,very slow - Note: this feature requires a motor on the selected port that supports encoder-based control.
Set deceleration
Sets motor deceleration profile/rate.
- Profile options:
default,fast,balanced,smooth,slow,very slow - Note: this feature requires a motor on the selected port that supports encoder-based control.
Motor reporter blocks
Position
Returns current motor position.
Relative position
Returns current relative position value.
Speed
Returns current motor speed.
Power
Returns current motor power value.
- Note: available only for the MINDSTORMS Robot Inventor hub.
Technic Move motor blocks
Start motors at speed
Starts Technic Move drive motors at selected speed.
Stop motors
Stops Technic Move drive motors.
Brake
Applies brake behavior to Technic Move motors.
- Brake options:
off,on
Set steering rack to
Sets steering rack target position/value.
Calibrate steering rack
Calibrates the Technic Move steering rack using the hub's internal calibration algorithm and automatic steering range detection.
- Note: the motor axis must be mechanically limited (for example, by a steering rack mechanism).