Robotics C++ Physics II AP Physics B Electronics Java Astronomy Other Courses Summer Session  

Move Blocks

 

Symbol and Purpose

Configuring the Move Block

 

 

Symbol and Purpose

Use this block to set your robot to go forwards or backwards in a straight line or to turn by following a curve. Define how far your robot will go by using the Duration property.

1. The letters at the top right corner of the block show which of your NXT’s ports will be controlled.

2. This icon shows which direction your robot will go. This depends, of course, on motor placement

3. This icon shows the power level. Your robot’s speed may also be affected by other conditions, like the surface it is moving over or whether it is

     moving up or down a slope.

4. This icon shows whether you have set the Duration property to unlimited, degrees, rotations, or seconds.

 

1. This icon shows that the Direction property is set to “stop”. This setting will stop all motors.

Configuring the Move Block

1. Select the motors you would like to control. If you choose to control two motors (Example: B & C), the motors will be synchronized, going forward

     or backwards at exactly the same power. If you select three motors, motors B & C will be synchronized.

2. Choose whether the motors will go forward, go backwards, or stop.

     Selecting Stop will also reset the motors.

3. If you’re using two motors to drive a vehicle (with one on each side), the Steering slider will appear with the chosen port letters indicated at each

     side. Move the slider to set a curved path for your robot.

     With the slider all the way to either side, your vehicle will spin in place.

4. This slider and the editable input box will let you set the power level [0-100%].

5. Using the Duration pull-down menu, you can set the motors to run for an unlimited interval or for a set number of seconds, rotations [default] or

     degrees.

     By choosing Time, Rotation or Degrees you can control how far your robot will travel.

6. Choose whether the motors will brake or coast after they’ve finished their action.

     If you want your robot to stop precisely at an exact location, set the motors to brake.

     Setting your motors to brake will also keep your robot from slowly rolling backwards on a slope but the setting will wear out the NXT’s batteries

     quicker because the motors are doing work to keep the robot in place.

7. The feedback boxes will count how many degrees or full rotations your motors turn.

     Press the reset button to return the values to zero.