Simulink Support Package For Arduino
Simulink Support Package For Arduino
===============================================================
====
Version 1.2 (R2011b), November 2011
QUICK START
-----------
1. Download and install the Arduino IDE and Driver. Detailed instructions
can be found at http://arduino.cc/en/Guide/HomePage
Ensure that you select the right IDE and Board on the Tools menu.
4. Add the subfolders arduino, demos and blocks to your MATLABPATH, e.g. by
typing the following commands in the MATLAB comand window:
>> cd c:\ArduinoTarget
>> addpath(fullfile(pwd,'arduino'),fullfile(pwd,'blocks'),fullfile(pwd,'demos'))
>> savepath
If the savepath command does not work, you may need to invoke MATLAB in
administrator mode. For more information, see
http://www.mathworks.com/support/solutions/en/data/1-9574H9/
>> sl_refresh_customizations
>> comPorts=arduino.Prefs.searchForComPort
If the above command doesn't show any ports, open Windows Device
Manager (http://technet.microsoft.com/en-us/library/cc754081.aspx),
navigate to "Ports (COM & LPT)", and look for ports labeled
"USB Serial Port" or "Arduino"
>> arduino.Prefs.setComPort('COM9');
>> demo_arduino_blink
The available demo models are briefly described below. More details are
available by opening the models and reading their documentation.
>> demo_arduino_blink
>> demo_arduino_blink_challenge_stateflow
demo_arduino_serial_communication
demo_arduino_serial_communication_host
>> demo_arduino_pil
>> arduino_lib
PRODUCT REQUIREMENTS
--------------------
pre-R2011a:
* MATLAB
* Simulink
* Real-Time Workshop
* Embedded Coder
Supported platforms:
* Arduino Uno
* Arduino Duemilanove (ATmega168 or ATmega328p)
* Arduino Mega (ATmega1280)
* Arduino Mega (ATmega2560)
You will also need a USB cable for connection to your PC.