Reading Serial Data on Arduino into Matlab

41 ビュー (過去 30 日間)
Justin
Justin 2020 年 7 月 21 日
回答済み: Priyanshu Mishra 2020 年 7 月 27 日
Hello!
I am trying to read in data from a dust sensor (Plantower PMS 5003) into matlab. The dust sensor his plugged into an arduino UNO board which is connected to Matlab via the Arduino Hardware Support Package.
Here is the datasheet for the dust sensor, page 13 shows the details of the serial communication protocol.
To be clear, I'm not having an issue connecting to the arduino - that works fine, Matlab is talking to it. I have not seen an example of how to read the serial data coming off the digital pins from the arduino into Matlab.
thank you for your help!!

回答 (1 件)

Priyanshu Mishra
Priyanshu Mishra 2020 年 7 月 27 日
Hi Justin,
You may refer the following link for reading streaming data from Arduino

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by