Movement (Part 1)

The movement blocks move 2 motors at the same time.

(In my case, I connect Motors B and C)

Pink-arrows Pink-blocks
pink-movement-robot

We are using 2 of these large motors to make up the wheels.

gif-rotation

Look at the white pointy lego. Notice that the wheel rotates a full circle.

These 2 codes are the same:

Movement-rotations-degrees

Forward and Backward

Pink-ford-back
Pink-rotations-of-2-wheels

You use Positive(+) and Negative(-) numbers.

Wheels Move Forward

iphone-gif
1-Pink-Forward

The robot moves 450 degress FORWARD at the speed of 50%.

➡️ Notice that BOTH speed are positives

Wheels Move Backward

iphone-gif
2-Pink-backward

The robot moves 450 degress BACKWARD at the speed of -50%.

➡️ Notice that BOTH speed are negatives

Moving Forward and Backward

movement-gif
10-3-Pink-Ford-Back

Notice that you can change the degrees and speed. As long as they are the same numbers. For example: [-75]speed for both.

Pivot Turn

Pink-Pivot-Turn-img

➡️ Only one wheel moves. The other one doesn't move.

Turn Right:

movement-gif
3Pink-R

The robot turns 450 degress to the RIGHT at the speed of 50%

➡️ Only motor B moves, turning toward Motor C

Turn Left:

iphone-gif
5-Pink-L450

The robot turns 750 degress to the RIGHT at the speed of 50%

➡️ Only motor C moves, turning toward Motor B

Spin Turn

Pink-spin-Turn-img

Both wheels move in opposite direction at the same speed. (Positive and negative)

Turn Right:

turn-img
10-1-Pink-Spin-Turn-Right

The robot turns 450 degress to the RIGHT at the speed of -50%

➡️ Notice that [left_speed] is positive. [right_speed] is negative

Turn Left:

iphone-gif
10-2-Pink-Spin-Turn-Left

The robot turns 450 degress to the LEFT at the speed of -50%

➡️ Notice that [left_speed] is negative, [right_speed] is positive

Key-Takeaways