Arduino Uno I2C with (motorshield) in Matlab

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Ejri
 
Posts: 2
Joined: Fri Dec 14, 2012 5:15 pm

Arduino Uno I2C with (motorshield) in Matlab

Post by Ejri »

Hi,


Little background:
I am working on a project to run 2 stepper motors simultaneously using Matlab. I was able to run the 2 motors in Matlab using an Uno and an adafruit motorshield (after uploading the srv.pde. The srv.pde is required for the shield to work in my case.), but I wasn't able to run the motors simultaneously.

I tried I2C with an another Uno and using the Wire library (http://arduino.cc/en/Tutorial/MasterWriter) in addition to the AccelStepper library, I was able to run the motors simultaneously using the Arduino 1.0.2 software.


My question is:
Is there a way of adding the Wire and AccelStepper libraries to the srv.pde so that I can use I2C and AccelStepper in Matlab?

Is there another way of running 2 motors simultaneously using Matlab?


Thank you.

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

Re: Arduino Uno I2C with (motorshield) in Matlab

Post by adafruit_support_bill »

I'm not familiar with srv.pde. Is that a MathWorks product?

Ejri
 
Posts: 2
Joined: Fri Dec 14, 2012 5:15 pm

Re: Arduino Uno I2C with (motorshield) in Matlab

Post by Ejri »

It is a part of the "MATLAB Support Package for Arduino (aka ArduinoIO Package)"
(http://www.mathworks.com/matlabcentral/ ... io-package)

The srv.pde file can be found in the (...ArduinoIO/pde/srv/srv.pde) directory.

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

Re: Arduino Uno I2C with (motorshield) in Matlab

Post by adafruit_support_bill »

That is not something we support. You should post your question to MathWorks.

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

Return to “Arduino”