You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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);
}
}
}
Cite As
MATuino R (2026). MATLAB GUI for Arduino LED blinking (https://www.mathworks.com/matlabcentral/fileexchange/47424-matlab-gui-for-arduino-led-blinking), MATLAB Central File Exchange. Retrieved .
Categories
Find more on Image Acquisition Toolbox Supported Hardware in Help Center and MATLAB Answers
General Information
- Version 1.0.0.0 (5.2 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
