Arduino Leonardo Matlab Interface

4 views (last 30 days)
Rajesh Ravindran
Rajesh Ravindran on 9 Jun 2015
Answered: Gareth Thomas on 5 Jul 2015
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!

Answers (1)

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

Categories

Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!