What are all the different ways I can use Arduino with MathWorks products? Which of these approaches is possible on the release I’m using? Which are officially supported by MathWorks? How can I decide which one I should be using?
MATLAB: Arduino support from MATLAB and Simulink across releases
arduinoMATLABsimulink
Related Solutions
Arduino is supported in current and previous MathWorks releases. It is recommended to move to the latest release if at all possible, as that will generally be the most capable and robust offering from MathWorks.
Several workflows are available as noted below.
Run on Target Hardware
• As of R2013a, Simulink provides built-in support for the Arduino Uno and Mega 2560.
• Feature information:
• You can install the support package from within MATLAB using Add-On Explorer. From the MATLAB Toolstrip (R2013a and later): go to Home > Resources > Add-Ons > Get Hardware Support Packages
Embedded Coder Support Package for Arduino Hardware
• Support for deploying Simulink applications to an Arduino Uno, Mega and Duemilanove
• Requires a separate downloadable package
• Blocks supported for code generation, simulation and processor-in-the-loop (PIL).
• Support package uses the Arduino as an example production code target
• Available for and tested on R2010b to R2011b
• Required Products:
1. for R2010b: Real Time Workshop Embedded Coder, Target Support Package
2. for R2011a to R2011b: Embedded Coder
• Windows platform only (either 32-bit or 64-bit)
• Tested with
1. Arduino Uno
2. Arduino Duemilanove (ATmega168 or ATmega328p)
3. Arduino Mega (ATmega1280)
• Requires Arduino IDE version 20, 21, 22 or 23. Does not work with Arduino IDE 1.0 (list of IDEs)
MATLAB Support Package for Arduino
• Support for host-based communication with an Arduino Uno, Mega and Duemilanove over a serial port.
• Requires a separate downloadable package
• Also includes Simulink blocks for host-based communication. These blocks are not supported for code generation.
• Available for and tested on R2010a to current release
• Supported on all Platforms
• Requires Arduino IDE, version 20 or later (list of IDEs)
• Tested with
1. Arduino Uno
2. Arduino Duemilanove
3. should also work with other boards
• For more information see:
Best Answer