Controlling Adafruit Motor Shields with MATLAB GUI

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
cjieun1194
 
Posts: 26
Joined: Mon May 26, 2014 11:00 am

Controlling Adafruit Motor Shields with MATLAB GUI

Post by cjieun1194 »

Hi,

I know there is a function called motorRun(a,num,dir) in MATLAB to control motors connected to the arduino...but in the case of using Motor shields such as Motor Shield v2 and/or 16-Channel PWM Servo driver, how would I control the motors through the gui?

As in what would the pinModes be set as, what would the pin numbers be, etc. ?

Thank you

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Controlling Adafruit Motor Shields with MATLAB GUI

Post by adafruit_support_bill »

The Motor Shield V2 and the 16 channel Servo Controller are both controlled entirely by I2C. You can't control them by simply toggling pins.

Not sure about the servo controller. But this driver has support for MotorShield V2:
http://www.mathworks.com/matlabcentral/ ... or-shields

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”