Simulink Support Package for Arduino Hardware
Run models on Arduino boards
261.4K Downloads
Updated
14 May 2025
Key Capabilities
- Automated build, deployment, and execution of models on Arduino hardware
- Library of Simulink blocks for Arduino peripherals (ADC, PWM, Serial, I2C, SPI), Capture data using Sensor blocks
- Communicate with hardware in simulation using Connected I/O mode
- Real-time parameter tuning and signal acquisition with External mode
- Simulink Coder™ lets you access the C code generated from Simulink and trace it back to the original model.
- Embedded Coder® lets you generate optimized code, use code replacement libraries, and perform software-in-the-loop (SiL) and processor-in-the-loop (PiL) verification.
- Supports programming Arduino compatible ESP32 hardware (R2022a onwards)
- Wide range of example models for control systems, robotics, signal processing, IoT, and more
- Guide to create custom device driver block for Arduino Library
Documentation
- Main Page
- Setup and Configuration
- Examples
- Applications to Arduino hardware
- Boards Supported
- Arduino Documentation
- Release Notes
Support
- Installation FAQs: The most frequently asked questions about installation of Simulink Arduino support package
- If you have download or installation problems, please contact - Technical Support
Notes
- For MATLAB R2017a and earlier versions, this support package is currently unable to download third-party software. For details and workaround, see this Bug Report. MATLAB R2017b and later versions are unaffected.
- Log4j CVE-2021-44228 Vulnerability : Affected releases - R2019b and Onwards
Platform Compatability:
- Windows : R2016b onwards
- Linux : R2016b onwards
- macOS (Intel) : R2016b onwards
- macOS (Apple Silicon): R2024a onwards
Videos
- Run Models Interactively on Arduino and Raspberry Pi
- Simulink IO on Arduino
- Deploy Algorithms to Arduino Using MATLAB Function Blocks in Simulink
- Classroom Ready Projects with the Arduino Engineering Kit
- Build Something! MATLAB and Simulink for Hardware Projects
- Teaching Dynamics and Control with Arduino Based TCLab
- Build a Solar Tracking System Using Simulink and ThingSpeak for Arduino
MATLAB Release Compatibility
Created with
R2016b
Compatible with R2016b to R2025a
Platform Compatibility
Windows macOS (Apple silicon) macOS (Intel) LinuxCategories
- Simulink > Simulink Supported Hardware >
- Test and Measurement > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Code Generation > Embedded Coder > Deployment, Integration, and Supported Hardware > Embedded Coder Supported Hardware >
Find more on Simulink Supported Hardware in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Autonomous 4-Wheel Robot Light Tracker - Arduino Mega 2560, Device Drivers, Simulink Library for Zumo Robot
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.