MATLAB Answers

Matlab Adruino Uno project troubleshooting

2 ビュー (過去 30 日間)
James Panhorst
James Panhorst 2019 年 5 月 6 日
回答済み: Mark Sherstan 2019 年 5 月 17 日
So I recreated the project used on this link, and am having trouble converting the adruino code to a matlab code. And after that am also having trouble getting the lights to work after uploading through the adruino app.

回答 (1 件)

Mark Sherstan
Mark Sherstan 2019 年 5 月 17 日
Read through the Arduino getting started support package for MATLAB. It has all the tools you need:
To get you started your code will look something like this in MATLAB:
a = arduino();
a = arduino();
Which is the same as (Arduino):
digitalWrite(5, HIGH);
digitalWrite(5, LOW);
Once you get through the material let me know if you have specific questions.


Community Treasure Hunt

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

Start Hunting!

Translated by