Arduino Leonardo Matlab Interface

5 次查看(过去 30 天)
Hello,
I was trying to interface my arduino leonardo board with Matlab.
On the matlab command window, i wrote;
a = arduino ('com3','Leonardo') and i got a message displayed as below,
'Leonardo' is not recognized as a supported board.
Possible board values are:
Uno, Mega2560, Due.
I tried the following commands but none of them worked,
EDU>> a = arduino('com3','Due','TraceOn', true)
Failed to open serial port COM3 to communicate with Arduino board Due. Make sure there is no other MATLAB arduino object for this board. For troubleshooting, see Arduino Hardware Troubleshooting.
EDU>> a = arduino
Cannot detect Arduino hardware. Make sure original Arduino hardware is properly plugged in. If using unofficial(clone)
hardware, specify port and board type. For more information, see this user's guide for additional troubleshooting steps
EDU>> a = arduino('com3')
No Arduino hardware is found on port com3. If using an official Arduino board, make sure it is plugged in. Otherwise,
please specify both port and board type. For more information, see this user's guide for additional troubleshooting
steps.
The arduino board is working fine on Com3 and i can read sensor values from Arduino's serial monitor.
Why is Matlab not detecting my Arduino Leonardo board??
Please Help!

回答(1 个)

Gareth Thomas
Gareth Thomas 2015-7-5
Try the latest version of MATLAB - R2015a.
It shows that Leonardo is supported from both MATLAB and Simulink.

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by