Вы находитесь на странице: 1из 3

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)

Вам также может понравиться