You can use MATLAB to communicate with an Arduino board using MATLAB Support Package for Arduino.
You can program an Arduino board using Simulink Support Package for Arduino. The support package automatically generates code from your Simulink model that then runs on the Arduino board (in a click of a button).
This tutorial covers a step-by-step guide to:
MATLAB Support Package
- Set up the MATLAB support package for Arduino
- Send commands from MATLAB to Arduino to blink an LED
Simulink Support Package
- Set up the Simulink support package for Arduino
- Build a simple Simulink model for controlling pins on the Arduino
- Generate, download and run code on the Arduino to blink an LED
This is the first tutorial in a series on using MATLAB and Simulink to program an Arduino. In this tutorial Arduino Due is used as an example, however the same steps can be used for other boards like Uno, Mega 2560 etc.
Page last edited August 28, 2013
Text editor powered by tinymce.