Error using arduino (line 101). How do you interface MATLAB with an Adafruit V2 motor shield using the MATLAB Support Package for Arduino?

1 view (last 30 days)
I am attempting to interface the Adafruit V2 motor shield with Matlab so that I can write a program to run two stepper motors for a class project. However, whenever I attempt to interface the motor_V2 code provided in the MATLAB Support Package for Arduino I receive the following error:
Error using arduino (line 101) Connection unsuccessful, please make sure that the Arduino is powered on, running either srv.pde, adiosrv.pde or mororsrv.pde, and that the board is connected to the indicated serial port. You might also try to unplug and re-plug the USB cable before attempting a reconnection.
I have tested out my arduino set up and it runs just fine with the examples provided with the V2 motor shield, so I know that it is not a hardware problem or a problem with the adafruit motor shield library. I have also reset the COM port several times and verified that the all of the other .pde programs for Matlab / arduino communication load without any trouble at all.
I am kind of at my wits end with this error, I have scoured the internet to the best of my ability, but have been unable to find a clear answer as to what would cause this error to occur.
I have found several postings where people have run into issues with the V2 motor shield and Matlab due to a compatibility issue when the V2 first came out. However, since the MATLAB Support Package for Arduino has a specific .pde for the V2 shield I would have thought that the issue had been resolved.
I would greatly appreciate any help that I can get in resolving this issue. I would hate to have to scrap the V2 motor shield that I have and try to track down the old version just because of a programming issue.
  1 Comment
Matthew Hinton
Matthew Hinton on 2 Apr 2014
I found the solution to the problem that I was having. Apparently I had neglected to get the arduino.m file updated to the new version that comes with the Matlab support package. So when I would try to interface the v2 motor shield it would load properly but since it was not a possible option in the old version of the arduino.m file it would send the error code as if the .pde was missing.

Sign in to comment.

Answers (0)

Communities

More Answers in the  Power Electronics Control

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!