Arduino Support Package Failing to Connect With any Arduino Mega

11 views (last 30 days)
Hello,
I'm trying to use matlab to connect to an arduino Mega, but every time I try the connection fails. When I use arduinosetup I can hit program and it will say it programmed successfully, but when I try to test the connection it tells me to check the settings. When I use a = arduino('COM13','Mega2560','Trace',true), It tells me: "Internal error: The initialization of the server code is incorrect." I have tried it on atleast five other arduino megas and it's always the same result. Thank you.

Accepted Answer

Jadon Clugston
Jadon Clugston on 3 Feb 2020
For anyone with this same problem, the solution is to press the reset button right after you create the arduino object. It might be best to upload the server to the board first using arduinosetup, and then create the arduino object and right after you press enter hit the reset button.
  3 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!