Documentation
  • Introduction
  • Components
    • User Interface
      • Button
      • Checkbox
      • Date Picker
      • Floating Button
      • Image
      • Label
      • List Picker
      • List View
      • List View Image and Text
      • Notifier
      • Radio Button
      • Rating Bar
      • Slider
      • Surface View
      • Spinner
      • Switch
      • TextBox
      • Time Picker
      • Web Viewer
    • Layout
      • Horizontal Arrangement
      • Horizontal Scroll Arrangement
      • Space
      • Table Arrangement
      • Vertical Arrangement
      • Vertical Scroll Arrangement
    • Media
      • Audio Picker
      • Camcorder
      • Camera
      • Image Picker
      • Metadata
      • OCR
      • Player
      • QR Code
      • Sound
      • Sound Recorder
      • Speech Recognizer
      • Text To Speech
      • Video Player
      • Yandex Translate
    • Drawing and Animation
      • Ball
      • Canvas
      • Image Editor
      • Image Sprite
    • Sensors
      • Accelerometer
      • Barcode Scanner
      • Clock
      • Finger Print
      • Gravity Sensor
      • Gyroscope Sensor
      • Light Sensor
      • Location Sensor
      • Magnetic Field Sensor
      • NearField
      • Orientation Sensor
      • Pedometer
      • Pressure Sensor
      • Proximity Sensor
      • Sound Sensor
      • Temperature Sensor
    • Social
      • Contact Picker
      • Email Picker
      • Google Account Picker
      • Phone Call
      • Phone Number Picker
      • Sharing
      • Texting
      • Twitter
    • Storage
      • File
      • Firebase DB
      • Fusiontables Control
      • SQLite
      • Tiny DB
      • Tiny Web DB
    • Connectivity
      • Activity Starter
      • Bluetooth Admin
      • Bluetooth Client
      • Bluetooth Server
      • Download
      • Network
      • Web
      • WiFi
    • Google
      • Google Account Picker
      • Google Maps
      • Google Shortlink
    • LEGO Mindstorms
      • NXT Drive
      • NXT Color Sensor
      • NXT Light Sensor
      • NXT Sound Sensor
      • NXT Touch Sensor
      • NXT Ultrasonic Sensor
      • NXT Direct Commands
      • EV3 Motors
      • EV3 Color Sensor
      • EV3 Gyro Sensor
      • EV3 Touch Sensor
      • EV3 Ultrasonic Sensor
      • EV3 Sound
      • EV3 UI
      • EV3 Commands
    • Monetization
      • AdMob Interstitial
      • AdMob Banner
      • AdMob Rewarded Video
      • Billing
      • Leadbolt
    • Device
      • Audio
      • Device Tools
      • Wallpaper
      • Package
      • Screenshot
    • Experimental
      • Push Notifications
      • Cloud DB
      • Notification
  • Blocks
    • Control
    • Logic
    • Math
    • Text
    • Lists
    • Colors
    • Variables
    • Procedures
    • Screen
    • Any Component
  • Testing
    • Live Development
      • Via WiFi
      • Via USB
    • Makeroid Companion
  • Extensions
    • List of Extensions
    • Creating Extensions
  • Other
    • Backpack
    • Release Notes
      • Andromeda
      • Beta Versions
    • Resources
      • Concept Cards
    • Terms of Service
Powered by GitBook
On this page
  • Properties
  • BluetoothClient
  • MotorPorts
  • WheelDiameter
  • ReverseDirection
  • EnableSpeedRegulation
  • StopBeforeDisconnect
  • TachoCountChangedEventEnabled
  • Methods
  • RotateIndefinitely (number power)
  • RotateInTachoCounts (number power, number tachoCounts, boolean useBrake)
  • RotateInDuration (number power, number milliseconds, boolean useBrake)
  • RotateInDistance (number power, number distance, boolean useBrake)
  • RotateSyncIndefinitely (number power, number turnRatio)
  • RotateSyncInDistance (number power, number distance, number turnRatio, boolean useBrake)
  • RotateSyncInDuration (number power, number milliseconds, number turnRatio, boolean useBrake)
  • RotateSyncInTachoCounts (number power, number tachoCounts, number turnRatio, boolean useBrake)
  • Stop (boolean useBrake)
  • ToggleDirection ()
  • ResetTachoCount ()
  • GetTachoCount ()
  1. Components
  2. LEGO Mindstorms

EV3 Motors

A component that provides both high- and low-level interfaces to a LEGO MINDSTORMS EV3 robot, with functions that can control the motors.

Properties

BluetoothClient

The BluetoothClient component that should be used for communication. Must be set in the Designer

MotorPorts

The motor ports that the motors are connected to. The ports are specified by a sequence of port letters. Must be set in the Designer

WheelDiameter

The diameter of the wheels attached on the motors in centimeters.

ReverseDirection

It specifies if the direction of the motors is reversed.

EnableSpeedRegulation

The robot adjusts the power to maintain the speed if speed regulation is enabled.

StopBeforeDisconnect

Whether to stop the motor before disconnecting.

TachoCountChangedEventEnabled

Whether the TachoCountChanged event should fire when the angle is changed.

Methods

RotateIndefinitely (number power)

Start to rotate the motors.

RotateInTachoCounts (number power, number tachoCounts, boolean useBrake)

Rotate the motors in a number of tacho counts.

RotateInDuration (number power, number milliseconds, boolean useBrake)

Rotate the motors in a period of time.

RotateInDistance (number power, number distance, boolean useBrake)

Rotate the motors in a distance.

RotateSyncIndefinitely (number power, number turnRatio)

Start to rotate the motors at the same speed.

RotateSyncInDistance (number power, number distance, number turnRatio, boolean useBrake)

Rotate the motors at the same speed for a distance in cm.

RotateSyncInDuration (number power, number milliseconds, number turnRatio, boolean useBrake)

Rotate the motors at the same speed in a period of time.

RotateSyncInTachoCounts (number power, number tachoCounts, number turnRatio, boolean useBrake)

Rotate the motors at the same speed in a number of tacho counts.

Stop (boolean useBrake)

Stop the motors of the robot.

ToggleDirection ()

Toggle the direction of motors.

ResetTachoCount ()

Set the current tacho count to zero.

GetTachoCount ()

Get the current tacho count.

PreviousNXT Direct CommandsNextEV3 Color Sensor

Last updated 7 years ago