LEGO Mindstorms

Move Block

Understanding how to make the robot move

Getting movement 

In order to do anything with your robot, you need to be able to move! Go to the bottom of the screen and select the green tab.

What are each of these?

Each one of these is one of the movement blocks. If you highlight your mouse cursor over each of these, they will tell you which block they are and what they control. Drag the Large Motor (2nd from the left) onto the end of the Start Block until the two blocks snap together.

Customizing the large motor

The large motor block has many configurations. Let's go over them. Motor : The loop with a hashtag in it controls if the motor is ON or OFF, and what measure it is in. It could be On for Seconds, Degrees, or Rotations.

The speed icon is for the Power. Power can be set from 0 to 100, depending on what you desire.

The second hastag loop icon is for the Rotations. We will be talking about rotations in the next lesson.

The last icon that has a triangle is Brake at End. This controls whether the robot brakes after the motor is done moving.

The D on the green part is where you can change which motor port you are going to use. The port options are 1, 2, 3, 4, A, B, C, DMotors can only be plugged into ports A, B, C, and D. Sensors can only be plugged into ports 1, 2, 3 and 4.

Customizing the move tank

That code was to run a single motor. Now, let's work on getting 2 motors working. Go to the fourth from the left green block, which is Move Tank Block. This block allows you to use 2 motors to drive straight, turn, etc. Everything is the same as the Large Motor Block, except you can now apply it to 2 motors instead of 1.

Challenge Time!

Create a program that let's your robot drive straight for one rotation at 45% speed and brakes at the end. (Hint: Add use the move tank block.)

Try experimenting with the large motor and move blocks, messing with each of the controls. In the next lesson, we will be talking about rotations and how to upload the challenge code to our bot.

chevron_up