Search the Arduino Playground
Manuals and Curriculum
(http://playground.arduino.cc/Main/ManualsAndCurriculum)
Arduino StackExchange
(http://arduino.stackexchange.com)
Board Setup and Configuration
(http://playground.arduino.cc/Main/ArduinoCoreHardware)
Development Tools
(http://playground.arduino.cc/Main/DevelopmentTools)
MATLAB and Simulink let you build Arduino projects using high level programming and block diagrams.
Arduino on other Chips
(http://playground.arduino.cc/Main/ArduinoOnOtherAtmelChips)
Interfacing With Hardware
MATLAB Support Package for Arduino lets you communicate over USB to your Arduino and connected
(http://playground.arduino.cc/Main/InterfacingWithHardware)
devices such as Adafruit motor shield, I2C, and SPI devices. Because MATLAB is a high level interpreted
Summary:
Output
language you can see results from I/O instructions immediately without compiling. MATLAB includes
and plotting functions that you can use to analyze and visualize data from
Input
your Arduino. The intuitive language and ability to easily plot sensor data draw many Arduino users to
(http://playground.arduino.cc/Main/InterfacingWithHardware#InputTOC)
MATLAB. Learn more about plot types available in MATLAB here:
(http://playground.arduino.cc/Main/InterfacingWithHardware#Output)
built-in math, engineering,
User Interface
(http://playground.arduino.cc/Main/InterfacingWithHardware#ui)
-
Storage
http://www.mathworks.com/discovery/gallery.html
(http://www.mathworks.com/discovery/gallery.html)
(http://playground.arduino.cc/Main/InterfacingWithHardware#Storage)
-
Communication
lets you develop algorithms that run standalone on your
Arduino. For those of you not familiar with Simulink, it is a block-diagram environment for modeling
dynamic systems and developing algorithms. The support package extends Simulink with blocks for
(http://playground.arduino.cc/Main/IntWithHWconfiguring Arduino sensors and reading and writing data from them. After creating your Simulink
PwrSup)
model, you can simulate it, tune algorithm parameters, and download the completed algorithm for
General
standalone execution on the device. One particularly useful (and unique) capability offered by Simulink
(http://playground.arduino.cc/Main/InterfacingWithHardware#General)
is the ability to tune parameters live from your computer while the algorithm runs on the hardware.
Interfacing with Software
Learn more about this capability here:
(http://playground.arduino.cc/Main/InterfacingWithSoftware)
-
Simulink Support Package for Arduino
(http://playground.arduino.cc/Main/InterfacingWithHardware#Communication)
Power supplies
User Code Library
(http://playground.arduino.cc/Main/GeneralCodeLibrary)
-
http://www.mathworks.com/help/supportpkg/arduino/ug/tune-and-monitor-model-running-onarduino-mega-2560-hardware.html
(http://playground.arduino.cc/Main/SketchList)
(http://www.mathworks.com/help/supportpkg/arduino/ug/tune-and-monitor-model-running-onLibraries
arduino-mega-2560-hardware.html)
Snippets and Sketches
(http://playground.arduino.cc/Main/LibraryList)
-
Tutorials
Learn more:
(http://playground.arduino.cc/Main/TutorialList)
Suggestions & Bugs
(https://github.com/arduino/arduino/issues)
Electronics Technique
You can learn more, see examples, and install the MATLAB and Simulink support packages for Arduino
(http://playground.arduino.cc/Main/ElectroInfoResources)
here:
Sources for Electronic Parts
(http://playground.arduino.cc/Main/Resources)
Related Hardware and Initiatives
http://www.mathworks.com/hardware-support/arduino-matlab.html
(http://playground.arduino.cc/Main/SimilarBoards)
(http://www.mathworks.com/hardware-support/arduino-matlab.html)
Arduino People/Groups & Sites
(http://playground.arduino.cc/Main/People)
http://www.mathworks.com/hardware-support/arduino-simulink.html
Exhibition
(http://www.mathworks.com/hardware-support/arduino-simulink.html)
(http://playground.arduino.cc/Projects/ArduinoUsers)
Project Ideas
(http://playground.arduino.cc/Projects/Ideas)
Languages
(http://playground.arduino.cc/Main/Languages)
MATLAB code example:
Instantiate an Arduino object from MATLAB using:
Participate
>> a = arduino('COM5');
(http://playground.arduino.cc/Main/Participate)
-
Formatting guidelines
Connect to and control
(http://playground.arduino.cc/Main/Participate#contribrules)
Arduino inputs and outputs:
All recent changes
(http://playground.arduino.cc/Site/AllRecentChanges)
>> av = readVoltage(a,5);
PmWiki
(http://playground.arduino.cc/PmWiki/PmWiki)
>> writeDigitalPin(a,13,1);
WikiSandBox training
(http://playground.arduino.cc/Main/WikiSandbox)
-
>> delete(a)
Basic Editing
(http://playground.arduino.cc/PmWiki/BasicEditing)
-
Control the position of an Adafruit motor shield V2:
Documentation index
(http://www.pmwiki.org/wiki/PmWiki/DocumentationIndex)
>> a = arduino('com5','Uno','libraries','Adafruit\MotorshieldV2');
>> shield = addon(a,'Adafruit\MotorshieldV2')
>> s = servo(shield,1);
>> writePosition(s,0.5)
>> dcm = dcmotor(shield,1);
>> start(dcm)
>> pause(4)
>> stop(dcm)
>> sm = stepper(shield,1,200,'RPM',10)
>> move(sm,10)
Share
NEWSLETTER
Enter your email to sign up
2015 Arduino
Copyright Notice (http://arduino.cc/en/Main/CopyrightNotice)
(https://twitter.com/arduino)
Contact us (http://arduino.cc/en/Main/ContactUs)
(http://www.facebook.com/official.arduino)
(http://www.flickr.com/photos/arduino_cc)
(http://youtube.com/arduinoteam)
(https://plus.google.com/+Arduino)