Hardware Support

Arduino Support from Simulink

Create and run Simulink models on Arduino boards


Capabilities and Features

With Simulink® Support Package for Arduino® Hardware, you can use Simulink to develop and simulate algorithms that run standalone on your Arduino. The package includes:

  • Hardware plugin detection for Arduino boards in MATLAB®
  • UDP and TCP/IP blocks in the Ethernet shield library and Wi-Fi library to let your Arduino hardware communicate with LEGO MINDSTORMS® EV3, Raspberry Pi™, and mobile devices (Android™ and iOS) over Ethernet or Wi-Fi
  • Simulink blocks for configuring and accessing Arduino sensors and actuators
  • Write and read blocks to communicate directly with a ThingSpeak™ channel from your algorithms running on an Arduino board
  • Access to Arduino WiFi Shield, onboard Wi-Fi chip on Arduino MKR1000, ESP8266, and Ethernet Shield
  • External mode for interactive parameter tuning and signal monitoring as your algorithm runs on the device (not available on some boards – see list below)
  • Model deployment for standalone operation on the Arduino
  • Documentation that guides you on how to create a device driver block to access specific features of your hardware board

Learn more about Arduino programming with MATLAB and Simulink.

Supported Hardware

Arduino Board Shield Support Interactive Tuning and monitoring Comments
Arduino Due* Y Y CAN channel not currently supported.
Arduino Uno* Y Y Interactive tuning supported as of R2016b. You can log one signal at 1 kHz or up to 6 signals at 5 ms rate.
Arduino Leonardo* Y Y  
Arduino Mega 2560* Y Y Log one signal at 1 kHz or up to 6 signals at 5 ms rate in R2016b and more recent releases.
Arduino Mega ADK* Y Y Log one signal at 1 kHz or up to 6 signals at 5 ms rate in R2016b and more recent releases.
Arduino Micro* N N  
Arduino LilyPad USB N N Supported in R2014b–R2017b.
Arduino Esplora N N Additional IO supported via analog multiplexer. Supported in R2014b–R2017b.
Arduino Robot N N Additional IO supported via analog multiplexer.
Arduino Mini*
(ATmega328)
N N Mini with ATmega168 not supported. Supported in R2014b–R2017b.
Arduino Nano 3.X*
(ATmega328)
N N Nano 2.X with ATmega168 not supported.
Arduino Pro*
(ATmega328)
N N Pro with ATmega168 not supported. Supported in R2014b–R2017b.
Arduino Fio N N Supported in R2014b–R2017b.
Arduino Yún N Y Supported in R2015b–R2017b.
Arduino MKR1000 N Y MKR1000 has an onboard Wi-Fi chip to provide Wi-Fi capabilities. Supported in R2017b.
Arduino Ethernet Shield     See Shield Support column for compatibility
Arduino WiFi Shield     See Shield Support column for compatibility
*Also supported in MATLAB Support Package for Arduino Hardware
 

Platform and Release Support

See the hardware support package system requirements table for current and prior version, release, and platform availability.

View enhancements and bug fixes in release notes.

*Also supported in MATLAB Support Package for Arduino Hardware
 

Platform and Release Support

See the hardware support package system requirements table for current and prior version, release, and platform availability.

View enhancements and bug fixes in release notes.


Related Hardware Support Views: Simulink, Arduino, Consumer Electronics, Control Systems, C ∕ C++ Code Generation, Embedded Systems, Ethernet, Internet of Things, MathWorks Supported, Mechatronics, Project-Based Learning, Run on Target Hardware, Serial, Simulink Product Family, Support Package Installer Enabled

Ready to install?

Before installing the support package, confirm you have the correct setup. View system requirements and installation options.

Get support package

Software

Required

Recommended

Support Package

Required

Support Package Installer installs this support package and all required third-party software. To start the installer, go to the MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages. For more information, read the documentation.

Get support package

Optional supported Arduino shields or modules: Arduino Ethernet Shield, Arduino WiFi Shield, ESP8266 Wi-Fi Module

Software

Required

All required third-party software is installed by the Support Package Installer.

Don't see the hardware you're looking for?