Teacher's Notes: How to conduct the lesson about moving around the Moon Pro Preview

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2587
  • 10 Feb 2026

Select an object that will represent The Moon and place it in an open location. The students will attempt to circumvent it with their robots.

Mark (using tape) the starting position of the robots (the base) so that they can go to the side of the Moon with a single straight line move. 

Don't allow the students to work on the task "Take up to 5 minutes to check if it's possible to program the robot to move forward for 2 seconds by rotating both motors at the same time using only the "run_time" command." for more than 5 minutes. In this task, the students must conclude that this is impossible because the program waits for one motor to stop before the other begins moving.

Solution to the task "Now that you know about the "await" command, try again to program the robot to move forward for 2 seconds using only "run_for_time()", but use await only on the second motor command.".

from motor import run_for_time
import runloop
import motor, time

async def main():
    # write your code here
    run_for_time(port.D, 2000, 1000)
    await run_for_time(port.F, 2000, 1000)

runloop.run(main())

The second run_for_time command must be awaited.

Solution to the task "Now that you know how to use the API, program the robot to move forward for 2 seconds using the "motor_pair.move_for_time()" function".

from hub import port
import runloop
import motor_pair

async def main():
    # Pair motors on port A and B
    motor_pair.pair(motor_pair.PAIR_1, port.F, port.D)

    # Move straight at default velocity for 1 second
    await motor_pair.move_for_time(motor_pair.PAIR_1, 2000, 0)

runloop.run(main())