How to run Arduino Code with Matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, so I am very new with Matlab and with the Arduino Uno that I have. I watched some youtube videos where people have controlled their Arduino board through Matlab. I downloaded the Arduino support package on MathWorks. I want to control a stepper motor and was wondering if it would be possible to run the code all through MatLab. The reason why I want to control it with Matlab is because I will be having a data acquisition device and a load cell hooked up to the Arduino board to gather data. What I'm not sure is if I also have to have some code in the Arduino script. Just a simple answer to get me started will be greatly appreciated. I am in the process of learning the programming language.
댓글 수: 0
답변 (1개)
Kaustubha Govind
2013년 6월 13일
The "sample usage" section on the MATLAB Support Package for Arduino download page lists out all the available interfaces with the package. Note that if you have additional devices connected to the board, you can only talk to them through one of those interfaces (unless you want to extend the package). In the instructions for the Support Package, you will see that you need to download a server (.pde) file, which is also part of the package, to the Arduino board. This server will read and interpret the commands sent from the MATLAB Support package via the serial port (USB) interface.
댓글 수: 1
Michael Pawlowski
2017년 10월 21일
Is there a way to analyse your arduino "Code" through matlab. Meaning the code is uploaded to the arduino device using standard arduino software. Is there a way to interface to run that code through matlab to see its outputs?
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!