MATLAB GUI for Arduino LED blinking

버전 1.0.0.0 (5.2 KB) 작성자: MATuino R
This GUI is used to toggle LED connected to pin 13 of Arduino uno
다운로드 수: 1.8K
업데이트 날짜: 2014/8/1

라이선스 보기

This interactive GUI consists of a webcam display which is only used to view the Arduino UNO in the frame(if required). The interface consists of four butons, 1.Connect arduino ,which is used to establish serial communication 2. ON , to turn ON the LED 3.OFF, to turn off LED 4.Exit button , to exit the program.
The program required to be uploaded before executing this files:
Note: Make sure the COM port number is correctly entered in MATLAB program

const int ledpin=13;
int recValue;

void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
}

void loop()
{
if(Serial.available()>0)
{
recValue=Serial.read();

if (recValue == 100) // If use will send value 100 from MATLAB then LED will turn ON
{
digitalWrite(ledpin, HIGH);
}
if(recValue == 101) // If use will send value 101 from MATLAB then LED will turn OFF
{
digitalWrite(ledpin, LOW);
}
}
}

인용 양식

MATuino R (2025). MATLAB GUI for Arduino LED blinking (https://kr.mathworks.com/matlabcentral/fileexchange/47424-matlab-gui-for-arduino-led-blinking), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2013a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0