Skip to content

Craft-Core/MMotorTank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMotorTank — EV3-G Custom Block

A custom block for LEGO MINDSTORMS EV3 Education software (EV3-G) that controls two M Motors simultaneously for tank drive. The standard EV3-G software has no block for driving two M Motors as a tank, so this fills that gap.


Download

Get the latest MMotorTank.ev3b from the Releases page.


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.

Features

Item Details
Target Software LEGO MINDSTORMS EV3 Education (EV3-G) v1.4.5+
Modes Off / On / Seconds / Degrees / Rotations
Port Selection Two-port UI in the top-right corner (default: A+D)
Power Left/Right Independent, -100 to 100
Invert Right Compensates for physically reversed right motor mounting
Reverse Both Reverses both motors for backward driving
Languages 15 languages

Parameters

# Parameter Description
1 Ports Select the two M Motor ports (e.g. A+D). Shown in the top-right corner of the block.
2 Power Left Left motor power, -100 to 100. Negative = reverse direction.
3 Power Right Right motor power, -100 to 100. Negative = 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 backward.
6 Brake at End Applies brake after movement ends. Off = coast to stop.

Modes

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

Inversion Logic

XOR = Invert Right XOR Reverse Both

actual_left  = Power Left  × (1 − 2 × Reverse Both)
actual_right = Power Right × (1 − 2 × XOR)
  • Invert Right = on, Reverse Both = off → Right motor runs in reverse (standard tank wiring compensation)
  • Invert Right = off, Reverse Both = on → Both motors reversed (backward)
  • Invert Right = on, Reverse Both = on → Only left motor reversed (left turns backward)

Documentation by Language

Language Link
🇺🇸 English (US) docs/en-US.md
🇬🇧 English (GB) docs/en-GB.md
🇯🇵 Japanese (日本語) docs/ja.md
🇩🇪 German (Deutsch) docs/de.md
🇫🇷 French (Français) docs/fr.md
🇪🇸 Spanish (Español) docs/es.md
🇮🇹 Italian (Italiano) docs/it.md
🇳🇱 Dutch (Nederlands) docs/nl.md
🇵🇹 Portuguese (Português) docs/pt.md
🇷🇺 Russian (Русский) docs/ru.md
🇰🇷 Korean (한국어) docs/ko.md
🇨🇳 Simplified Chinese (简体中文) docs/zh-Hans.md
🇩🇰 Danish (Dansk) docs/da.md
🇳🇴 Norwegian (Norsk) docs/nb-NO.md
🇸🇪 Swedish (Svenska) docs/sv.md

Requirements

  • LEGO MINDSTORMS EV3 Education software (EV3-G) v1.4.5 or later
  • Windows (EV3-G is Windows/Mac only)

License

MIT License

About

EV3-G custom block to control two M Motors simultaneously for tank drive

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages