How to conduct the lesson about moving around the Moon with Python for EV3 Pro Preview

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #1540
  • 15 Feb 2020

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. Did you succeed?" for more than 5 minutes. In this task, the students have to reach the conclusion that this is impossible because the program is waiting for one motor to stop before the other motor begins moving.

Solution to the task "Now that you know about the fourth input parameter of the run_time command, try again to program the robot to move forward for 2 seconds using only this command.".

Motor(Port.B).run_time(360, 2000, Stop.COAST, False)
Motor(Port.C).run_time(360, 2000, Stop.COAST)

The second run_time command must be awaited without a forth False parameter by the program because then the program ends and that stops the motor movement.

 

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Python with LEGO Mindstorms EV3 - Level 1
  • 74
  • 28:18
  • 114
Image for Lesson 3 - Luna 3
  • 5
  • 3
  • 6
  • 3d_rotation 1