Main Content

DC Motor

Represent connected DC motor and set motor speed

Add-On Required: This feature requires the Simulink Coder Support Package for VEX EDR V5 Robot Brain add-on.

  • DC Motor block

Libraries:
Simulink Coder Support Package for VEX EDR V5 Robot Brain / Actuators

Description

The DC Motor block represents a DC motor connected to a specified 3-wire port on an VEX® EDR V5 Robot Brain. The input signal sets the speed of the motor. There are eight 3-wire ports on the VEX EDR V5 Robot Brain that you can connect to DC motors.

Ports

Input

expand all

The block input value can range from –128 to 127. The sign determines the direction of rotation of the motor, and the amplitude determines the speed. A block input value of 0 stops the motor.

Data Types: double

Parameters

expand all

If you are using a 3-Wire Expander, specify the smart port on VEX EDR V5 Robot Brain to which the expander is connected.

Select the 3-wire port on the VEX EDR V5 Robot Brain that is connected to the DC motor.

Do not assign the same port number to more than one DC Motor block within the same model.

Version History

Introduced in R2018b