MATLAB GUI for Arduino LED blinking

This GUI is used to toggle LED connected to pin 13 of Arduino uno
Updated 1 Aug 2014

View License

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()
pinMode(13, OUTPUT);

void loop()

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 (2024). MATLAB GUI for Arduino LED blinking (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes