Main Content
Motor
Control power and direction of EV3 motor
Add-On Required: This feature requires the Simulink Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Libraries:
Simulink Support Package for LEGO MINDSTORMS EV3 Hardware
Description
Use the Motor block to control the power and direction of an EV3 motor. You can use this block with the Encoder block to measure the rotation of a motor connected to an EV3 brick.
This block converts the data type of the values it receives. You do not need to convert the data type of the input signal.
During simulations without hardware, this block emits zeros. See Block Produces Zeros or Does Nothing in Simulation.
Ports
Input
Parameters
Version History
Introduced in R2012a