Motion#

Introduction#

The blue Motion cards drive and turn the robot, and spin the motor connected to port 3.

Below is a list of available cards:

drive 15 cm#

The drive 15 cm card makes the robot drive forward 15 centimeters (cm).

A blue Coder card that reads drive 15 cm.

Example

Drive forward 15 cm, turn right 90°, then drive forward 15 cm more.

A red Coder card that reads when start GO.

A blue Coder card that reads drive 15 cm.

A blue Coder card that reads turn right 90°.

A blue Coder card that reads drive 15 cm.

drive 30 cm#

The drive 30 cm card makes the robot drive forward 30 centimeters (cm).

A blue Coder card that reads drive 30 cm.

Example

Drive forward 30 cm, then glow the LED Bumper green.

A red Coder card that reads when start GO.

A blue Coder card that reads drive 30 cm.

A purple Coder card that reads LED green.

drive 45 cm#

The drive 45 cm card makes the robot drive forward 45 centimeters (cm).

A blue Coder card that reads drive 45 cm.

Example

Glow the LED Bumper green, then drive forward 45 cm.

A red Coder card that reads when start GO.

A purple Coder card that reads LED green.

A blue Coder card that reads drive 45 cm.

reverse 15 cm#

The reverse 15 cm card makes the robot drive in reverse 15 centimeters (cm).

A blue Coder card that reads reverse 15 cm.

Example

Drive forward 15 cm, then reverse 15 cm back to where the robot started.

A red Coder card that reads when start GO.

A blue Coder card that reads drive 15 cm.

A blue Coder card that reads reverse 15 cm.

reverse 30 cm#

The reverse 30 cm card makes the robot drive in reverse 30 centimeters (cm).

A blue Coder card that reads reverse 30 cm.

Example

Drive up to an object, then back away 30 cm.

A red Coder card that reads when start GO.

A blue Coder card that reads drive until object.

A blue Coder card that reads reverse 30 cm.

reverse 45 cm#

The reverse 45 cm card makes the robot drive in reverse 45 centimeters (cm).

A blue Coder card that reads reverse 45 cm.

Example

Drive forward 45 cm, wait 1 second, then reverse 45 cm.

A red Coder card that reads when start GO.

A blue Coder card that reads drive 45 cm.

A gray Coder card that reads wait 1 second.

A blue Coder card that reads reverse 45 cm.

turn left 45°#

The turn left 45° card makes the robot turn in place 45 degrees to the left.

A blue Coder card that reads turn left 45°.

Example

Turn left 45°, then drive forward 30 cm.

A red Coder card that reads when start GO.

A blue Coder card that reads turn left 45°.

A blue Coder card that reads drive 30 cm.

turn left 90°#

The turn left 90° card makes the robot turn in place 90 degrees to the left.

A blue Coder card that reads turn left 90°.

Example

Turn left 90°, then drive forward 15 cm.

A red Coder card that reads when start GO.

A blue Coder card that reads turn left 90°.

A blue Coder card that reads drive 15 cm.

turn right 45°#

The turn right 45° card makes the robot turn in place 45 degrees to the right.

A blue Coder card that reads turn right 45°.

Example

Turn right 45°, drive forward 15 cm, then turn left 45° to face the starting direction.

A red Coder card that reads when start GO.

A blue Coder card that reads turn right 45°.

A blue Coder card that reads drive 15 cm.

A blue Coder card that reads turn left 45°.

turn right 90°#

The turn right 90° card makes the robot turn in place 90 degrees to the right.

A blue Coder card that reads turn right 90°.

Example

Turn right 90° 4 times to spin all the way around.

A red Coder card that reads when start GO.

A blue Coder card that reads turn right 90°.

A blue Coder card that reads turn right 90°.

A blue Coder card that reads turn right 90°.

A blue Coder card that reads turn right 90°.

turn around 180°#

The turn around 180° card makes the robot turn in place 180 degrees to the right from its starting position.

A blue Coder card that reads turn around 180°.

Example

Drive forward 30 cm, turn around, and drive back to where the robot started.

A red Coder card that reads when start GO.

A blue Coder card that reads drive 30 cm.

A blue Coder card that reads turn around 180°.

A blue Coder card that reads drive 30 cm.

turn random#

The turn random card makes the robot turn in place a random number of degrees.

A blue Coder card that reads turn random.

Example

Turn a random amount, then drive forward 30 cm.

A red Coder card that reads when start GO.

A blue Coder card that reads turn random.

A blue Coder card that reads drive 30 cm.

drive until object#

The drive until object card makes the robot drive forward until the Eye Sensor detects an object. An object needs to be approximately 18 mm from the Eye Sensor to be detected.

A blue Coder card that reads drive until object.

Example

Drive up to an object, then turn around.

A red Coder card that reads when start GO.

A blue Coder card that reads drive until object.

A blue Coder card that reads turn around 180°.

drive until pressed#

The drive until pressed card makes the robot drive forward until the LED Bumper is pressed and released.

A blue Coder card that reads drive until pressed.

Example

Drive forward until the LED Bumper is pressed, then reverse 15 cm.

A red Coder card that reads when start GO.

A blue Coder card that reads drive until pressed.

A blue Coder card that reads reverse 15 cm.

motor forward#

The motor forward card spins the motor connected to port 3 forward. The motor keeps spinning until a motor stop card or another motor card runs. Motor cards and Magnet cards can’t be used in the same project, because the motor and the Electromagnet both connect to port 3.

A blue Coder card that reads motor forward.

Example

Spin the motor forward for 2 seconds, then stop it.

A red Coder card that reads when start GO.

A blue Coder card that reads motor forward.

A gray Coder card that reads wait 2 seconds.

A blue Coder card that reads motor stop.

motor reverse#

The motor reverse card spins the motor connected to port 3 in reverse. The motor keeps spinning until a motor stop card or another motor card runs. Motor cards and Magnet cards can’t be used in the same project, because the motor and the Electromagnet both connect to port 3.

A blue Coder card that reads motor reverse.

Example

Spin the motor forward for 1 second, then in reverse for 1 second, then stop it.

A red Coder card that reads when start GO.

A blue Coder card that reads motor forward.

A gray Coder card that reads wait 1 second.

A blue Coder card that reads motor reverse.

A gray Coder card that reads wait 1 second.

A blue Coder card that reads motor stop.

motor slow#

The motor slow card sets the speed of the motor connected to port 3 to slow. It does not spin the motor on its own. Any motor forward or motor reverse cards after it spin the motor slowly. Motor cards and Magnet cards can’t be used in the same project, because the motor and the Electromagnet both connect to port 3.

A blue Coder card that reads motor slow.

Example

Spin the motor forward for 2 seconds, then set it to slow and spin it forward for 2 more seconds to see the difference. Then, stop the motor.

A red Coder card that reads when start GO.

A blue Coder card that reads motor forward.

A gray Coder card that reads wait 2 seconds.

A blue Coder card that reads motor slow.

A blue Coder card that reads motor forward.

A gray Coder card that reads wait 2 seconds.

A blue Coder card that reads motor stop.

motor stop#

The motor stop card stops the motor connected to port 3 from spinning. Motor cards and Magnet cards can’t be used in the same project, because the motor and the Electromagnet both connect to port 3.

A blue Coder card that reads motor stop.

Example

Spin the motor until the LED Bumper is pressed, then stop it.

A red Coder card that reads when start GO.

A blue Coder card that reads motor forward.

A gray Coder card that reads wait until pressed.

A blue Coder card that reads motor stop.