Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.69 KB

File metadata and controls

50 lines (35 loc) · 1.69 KB

M Motor Tank — EV3-G Custom Block

A custom block for tank drive using two M Motors simultaneously. Independent power control for left and right, with motor inversion and reverse support.


Installation

  1. Download MMotorTank.ev3b from the Releases page.
  2. Open EV3-G.
  3. Go to Tools → Import Block.
  4. Select MMotorTank.ev3b and import.
  5. The M Motor Tank block appears in the Action palette.

Parameters

# Name Description
1 Ports Select the two M Motor ports (e.g. A+D).
2 Power Left Left motor power (-100 to 100). Negative values reverse direction.
3 Power Right Right motor power (-100 to 100). Negative values reverse direction.
4 Invert Right Enable if the right M Motor is physically mounted in reverse (default: on).
5 Reverse Both Reverses both motors simultaneously. Use for driving backwards.
6 Brake at End Applies brake after movement ends. Off = coast to stop.

Modes

Mode Description
Off Stops both motors.
On Runs continuously at specified power (unlimited).
Seconds Runs for a specified number of seconds.
Degrees Runs for a specified number of degrees. 360° = 1 rotation.
Rotations Runs for a specified number of rotations.

Notes

  • In tank drive, the right motor is typically mounted in reverse. Enable 'Invert Right' in that case.
  • 'Reverse Both' is XOR'd with 'Invert Right'. Both on means only the right motor runs forward.
  • Seconds / Degrees / Rotations modes wait for completion before proceeding.

LEGO MINDSTORMS EV3 Education Software (v1.4.5 or later)