MyBlock for controlling the Medium Motor by position - port A

Using the On for degrees (rotations) option of the the Medium Motor Move Block you program the motor to rotate for the given number of degrees. However, sometimes is useful to program the motor to go to a given position, instead. To achieve that you can use this block. It takes the start position of the motor as 0 degrees. Then when you run the block with given number of degrees it just rotates the motor to that position. For exaple if your current position is -20 degrees and you run the block with 30 degrees, the motor will rotate for 50 degrees. But if your current position is 10 degrees the same program will rotate the motor for 20 degrees.

How to open?

Download
  • #o5xdws
  • 05 Aug 2019

Courses and lessons with this Program

This Program is used in the following courses and lessons

Image for Level B1. "Spy gadgets". Robotics with LEGO
  • 30
  • 7:30
  • 108