MATLAB AND ARDUINO SERIAL COMMUNICATION

バージョン 1.0.0.0 (6.59 KB) 作成者: VALARMATHY K
Serial communication between matlab and arduino by matlab GUI Push button
ダウンロード: 493
更新 2017/10/13

ライセンスの表示

By changing the COM port in the code you can connect after clicking connect wait for few second and then it will works
ARDUINO CODE:
const int LED=13;
int NewValue;
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop()
{
if(Serial.available()>0)
{
NewValue=Serial.read();
if (NewValue == 100)
{
digitalWrite(LED, HIGH);

}
if(NewValue == 101)
{
digitalWrite(LED, LOW);
}
}
}

引用

VALARMATHY K (2025). MATLAB AND ARDUINO SERIAL COMMUNICATION (https://jp.mathworks.com/matlabcentral/fileexchange/64709-matlab-and-arduino-serial-communication), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2013a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

SERIAL_COMMUNICATION/

バージョン 公開済み リリース ノート
1.0.0.0

.
ARDUINO CODE: