Lego Boost Robot
What “Lego Boost” is?
Lego boost is an educational Lego set allows children to build models with motors and sensors. Using Scratch kids can bring the creation to life through block-based coding. Here we are going to use one model of Lego Boost “Vernie the Robot”.

What are the prerequisites?
To integrate Scratch with Lego Boost, you need Wi-Fi, Bluetooth, and Scratch Link. Lego Boost is an extension, and you must add the extension to the block pallet.




How to use “turn motor () for () seconds” block?
This block allows to turn on the motor for given port for given seconds.
Example “turn motor (A) for (2) seconds”

Rotate the Robot right side for 2 seconds

Rotate the Robot Left side for 1 second

Rotate the Robot head for 1 second

Move the Robot forward for 1 second

Move the Robot forward and rotate the head together for 1 second

How to use “turn motor () for () rotations” block?
This block allows to turn on the motor for given port for given rotation
Rotate the Robot right side for 1 rotation

Rotate the Robot Left side for 1 rotation

Rotate the Robot head for 1 rotation

Move the Robot forward for 1 rotation

Move the Robot forward and rotate the head together for 1 rotation

How to use “turn motor () on” block?
This block allows to turn on the motor continuously until you use “turn motor () off” block.

Rotate the Robot right side continuously

Rotate the Robot Left side continuously

Rotate the Robot head continuously

Move the Robot forward continuously

Move the Robot forward and rotate the head together continuously

How to use “turn motor () off” block?
This block allows to turn off the motor.

How to use “set motor () speed () %” block?
This block allows to set the motor speed to specific %
.

How to use “set motor () direction ()” block?
This block allows to set the direction. There are 3 directions available – this way, that way and reverse
This way:
This direction allows the robot to move forward
That way:
This direction allows the robot to move backward
Reverse:
This direction allows the robot to move opposite direction of previous direction

How to use “motor () position” block?
This block returns the degree that the selected motor is currently positioned at.

How to use “when () brick seen” block?
This is a hat block, trigger the instruction under this block when a particular color is seen.

How to use “seeing () brick” block?
This block allows to activate the sensor. This block returns the color sensor sees.

How to use “when tilted ()” block?
This is a hat block, trigger the instruction under it when tilted angle is satisfied. There are tilted positions – up, down, left, right and any.


How to use “tilt angle ()” block?
This block returns the tilt angle and we can display

How to use “set light color to ()” block?
This block allows to set the light color.
