You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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);
}
}
}
Cite As
VALARMATHY K (2026). MATLAB AND ARDUINO SERIAL COMMUNICATION (https://uk.mathworks.com/matlabcentral/fileexchange/64709-matlab-and-arduino-serial-communication), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Simple GUI for serial port communication, MATLAB And Arduino Interfacing, Find Serial Ports
General Information
- Version 1.0.0.0 (6.59 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
.
|
