Main Content
dcmotor
Connection to DC motor on Adafruit Motor Shield V2 for Arduino
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Description
A dcmotor
object represents a connection to a DC motor on an
Adafruit® Motor Shield V2 connected to Arduino® hardware. Attach a motor shield to the Arduino hardware, and connect a DC motor to the appropriate pins on the motor shield.
Create a motor shield object using the addon
function, and create a dcmotor
object using the
dcmotor
function. You can control your DC motor in MATLAB® using the object functions.
Creation
Description
Input Arguments
Properties
Object Functions
Use these object functions to control your DC motor.
Examples
Version History
Introduced in R2014b