Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
8 views1 page

Connect To Arduino Hardware - MATLAB & Simulink

Uploaded by

202370151
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Connect To Arduino Hardware - MATLAB & Simulink

Uploaded by

202370151
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

٢٠١٨/١/٦ Connect to Arduino Hardware - MATLAB & Simulink

Connect to Arduino Hardware


This example shows how to connect to Arduino® hardware in MATLAB®.

Make sure the Arduino hardware is connected to the computer. If the device is unofficial, note the port and board name.

Connect to an official Arduino hardware.

a = arduino()

a =

arduino with properties:

Port: 'COM25'
Board: 'Uno'
AvailableAnalogPins: [0 1 2 3 4 5]
AvailableDigitalPins: [2 3 4 5 6 7 8 9 10 11 12 13]
Libraries: {'I2C' 'SPI' 'Servo'}
Connect by specifying the port and board name.

If you are using an unofficial (clone) Arduino hardware, specify port and board name to establish connection.

a = arduino('COM3','Uno')

a =

arduino with properties:

Port: 'COM3'
Board: 'Uno'
AvailableAnalogPins: [0 1 2 3 4 5]
AvailableDigitalPins: [2 3 4 5 6 7 8 9 10 11 12 13]
Libraries: {'I2C' 'SPI' 'Servo'}

https://www.mathworks.com/help/supportpkg/arduinoio/ug/connect-to-arduino-hardware.html 1/1

You might also like